The Daily Relish
03/22/2024, 8:19 PMTim Edwards
03/22/2024, 8:33 PMmagic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF
gds flatten true
gds read filename.gds
load cellname
select top cell
extract path extfiles
extract all
ext2spice lvs
ext2spice -p extfiles
EOF
Then
netgen -batch lvs "filename.spice cellname" "schemname.spice cellname" $PDK_ROOT/sky130A/libs.tech/netgen/sky130A_setup.tcl
How far that gets you depends on many factors, but that's the basic recipe.The Daily Relish
03/22/2024, 8:46 PMThe Daily Relish
03/22/2024, 8:48 PMTim Edwards
03/22/2024, 8:52 PMfilename
as an argument.The Daily Relish
03/22/2024, 8:53 PMTim Edwards
03/22/2024, 8:54 PMgds flatglob
command to flatten specific cells.The Daily Relish
03/22/2024, 8:55 PMTim Edwards
03/22/2024, 8:55 PMThe Daily Relish
03/22/2024, 8:56 PMThe Daily Relish
03/23/2024, 7:12 PMTim Edwards
03/23/2024, 8:17 PM$PDK_ROOT
and $PDK
, and run iic-drc.sh <cellname>
, and it will give you a formatted dump of DRC violations. It can run both magic and klayout DRC (run without any arguments to see the options).