2021-12-07 09:06:35 -06:00
|
|
|
#!/bin/bassh
|
2021-11-21 21:07:16 -06:00
|
|
|
#
|
2021-12-07 09:32:22 -06:00
|
|
|
PDK_ROOT ?= /usr/share/pdk
|
|
|
|
|
2021-12-07 09:06:35 -06:00
|
|
|
if [ ! -f caravan.spice ]; then
|
2021-12-07 09:32:22 -06:00
|
|
|
magic -dnull -noconsole -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc << EOF
|
2021-12-02 19:45:39 -06:00
|
|
|
drc off
|
|
|
|
crashbackups stop
|
|
|
|
load caravan
|
|
|
|
select top cell
|
|
|
|
expand
|
|
|
|
extract do local
|
|
|
|
extract all
|
|
|
|
ext2spice lvs
|
|
|
|
ext2spice
|
|
|
|
EOF
|
2021-12-07 09:06:35 -06:00
|
|
|
fi
|
2021-12-02 19:45:39 -06:00
|
|
|
|
|
|
|
rm *.ext
|
|
|
|
|
2021-11-21 21:07:16 -06:00
|
|
|
export NETGEN_COLUMNS=60
|
|
|
|
netgen -batch lvs "caravan.spice caravan" "../verilog/gl/caravan.v caravan" ./sky130A_setup.tcl comp.out
|