|
| 1 | +// Clear Info Window every script execution. |
| 2 | +dsp::clearInfoWin(); |
| 3 | +mask::clearFiles(); |
| 4 | +#include @layout; |
| 5 | +#include @mask/tech; |
| 6 | + |
| 7 | +int gdsLayer_BG = mask::AddLayer("WGTre", LD(37,6), RGB(0, 128, 255), true, false); |
| 8 | +int gdsLayer_WG = mask::AddLayer("WGCor", LD(37,4), RGB(128, 128, 255), true, false); |
| 9 | +int gdsLayer_Trench = mask::AddLayer("WGClad", LD(37,5), RGB(0 , 200, 255), true, false); |
| 10 | +int gdsLayer_ID = mask::AddLayer("LogoTxt", LD(100,0), RGB(128, 128, 128 ), true, false); |
| 11 | +int gdsLayer_Doping = mask::AddLayer("NBody", LD(25,0), RGB(255, 128, 0 ), true, false); |
| 12 | + |
| 13 | + |
| 14 | +layout myEchelle(devMode="DEMUX" KamusDropDown "MUX DEMUX") |
| 15 | + dlgname "Echelle grating" |
| 16 | + Domain_Optics |
| 17 | + AuthorInfo "Dr.-Ing. Marc Schneider, KIT, Germany" |
| 18 | + VersionInfo "Generated by Echelle Layout Program 2 v1.3 from 2022-09-05 by Dr.-Ing. Marc Schneider (KIT) " |
| 19 | + LicenseInfo "TBD" |
| 20 | + Maturity Research |
| 21 | + MaskLayers "based on IMEC ISIPP50G" |
| 22 | + Disclosure "For Internal Use Only" |
| 23 | + TexDoc "Just the title" |
| 24 | +{ |
| 25 | + string mcs=mask::CSget(); |
| 26 | + // ---------------------------------------------------- |
| 27 | + // Change this when moving or/and renaming the GDS file |
| 28 | + gdsfile("D:\EigeneProgramme\Matlab\EchelleLayoutProgramV2\Echelle_8chan_400GHz_rev_m9_211nm.gds", 0) myGDS; |
| 29 | + // ---------------------------------------------------- |
| 30 | + |
| 31 | + myGDS.place( wher->this@origin : "Echelle", 0); |
| 32 | + if (devMode=="MUX") { ml::setPort(this:out0->this@origin+[0, -75, 270]); } |
| 33 | + else { ml::setPort(this:in0 ->this@origin+[0, -75, 90]); } |
| 34 | + |
| 35 | + for (int ii=0; ii<=7; ii++) { |
| 36 | + if (devMode=="MUX") {ml::setPort(this:"in"+ii->this@origin+[0+(ii+1)*5.5, -75, 90]);} |
| 37 | + else {ml::setPort(this:"out"+ii->this@origin+[0+(ii+1)*5.5,-75, 270]);} |
| 38 | + } |
| 39 | + |
| 40 | + if (devMode=="MUX") { this{"nin"}=8; this{"nout"}=1; } // number of input and output ports |
| 41 | + else { this{"nout"}=8; this{"nin"}=1; } // number of input and output ports |
| 42 | + |
| 43 | + mask::CSselect(mcs); |
| 44 | +} |
| 45 | + |
| 46 | +var BB1 = ml::myEchelle( in0 -> [0,0,90] : "DEMUX"); |
| 47 | +//var BB2 = ml::myEchelle( out0 -> [100,0,-90] : "MUX"); |
| 48 | + |
0 commit comments