Some KLayout macros that I use to speed up NBR design work...
-
Launch KLayout: Start the KLayout application on your system.
-
Add Macro Directory to KLayout: In KLayout, go to
Macro Development
>Macros
>Add Location To Search Path
. In the dialog box that opens, navigate to the location of this repository on your system and clickOpen
. This will add the directory to KLayout's macro search path, and KLayout will automatically load all.lym
files in that directory. -
Execute the
RunLibrary.lym
Macro: After adding the directory, all the macros in the directory will be loaded automatically. To load all the PCells into the library, you need to execute theRunLibrary.lym
macro. You can do this by going toMacro Development
>Macros
, selecting theRunLibrary.lym
macro, and clicking on theRun
button. This macro will register all the custom PCells and add them to your library.
-
Load the Functional Macro Files: In KLayout, go to
Macro Development
>Macro
>Run/Debug Macro
. In the dialog box that opens, navigate to the location of this repository on your system. You will see multiple.lym
files. Select each functional macro file (GetCouplingCapStats.lym
,GetPolygonLength.lym
,PathToCPW.lym
,ViewLayoutCenter.lym
) and clickOpen
to load them one by one. -
Run the Macros: After loading each macro file, you can run the macros by selecting them and clicking on the
Run
button. Repeat this step for each macro file you've loaded. -
Use the Macro Functions: The functions provided by the macros can now be used. The specific usage will depend on the functions provided by each
.lym
macro file.