Jan Belohoubek
10/11/2022, 11:05 AMSUMANTO KAR
10/11/2022, 11:26 AMJan Belohoubek
10/11/2022, 1:08 PMSUMANTO KAR
10/11/2022, 1:28 PMJan Belohoubek
10/11/2022, 1:36 PMSUMANTO KAR
10/11/2022, 1:37 PMJan Belohoubek
10/11/2022, 1:38 PMTim Edwards
10/11/2022, 1:51 PMnetlist_to_layout defined in one of the script files that magic loads on startup. It's not in the menu by default because it won't work unless you have a PDK device generator script, which defines how to translate from a SPICE netlist to each device type in the technology, and defines procedures to draw each parameterized device. So if you look at the sky130 PDK device generator script, which is in ${PDK_ROOT}/sky130A/libs.tech/magic/sky130A.tcl , you'll see that it defines procedure importspice, which calls the Tk file loading GUI and makes a callback to the above-mentioned netlist_to_layout procedure. Then the importspice procedure is added to the menu using a Tk menu command; it just gets inserted directly into the middle of the existing menu (pretty easy to do with Tk).Tim Edwards
10/11/2022, 1:54 PM-rcfile /path/to/sky130A.magicrc , then the startup script loads the sky130A.tcl device generator script, which in turn adds the new menu item for reading SPICE.Tim Edwards
10/11/2022, 1:57 PMnetlist_to_layout to the list of commands in the HTML documentation, instead of assuming I'm going to get around to writing the full toolkit tutorial.Jan Belohoubek
10/11/2022, 2:11 PMSUMANTO KAR
10/11/2022, 5:40 PMSUMANTO KAR
10/11/2022, 5:40 PMJan Belohoubek
10/11/2022, 6:32 PM