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.lymfiles in that directory. -
Execute the
RunLibrary.lymMacro: 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.lymmacro. You can do this by going toMacro Development>Macros, selecting theRunLibrary.lymmacro, and clicking on theRunbutton. 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.lymfiles. Select each functional macro file (GetCouplingCapStats.lym,GetPolygonLength.lym,PathToCPW.lym,ViewLayoutCenter.lym) and clickOpento 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
Runbutton. 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
.lymmacro file.