2021-12-07 09:06:35 -06:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2021-12-17 21:27:32 -06:00
|
|
|
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null
|
2021-12-07 09:32:22 -06:00
|
|
|
|
2021-12-07 09:06:35 -06:00
|
|
|
if [ ! -f caravan.spice ]; then
|
2022-04-08 11:05:58 -05:00
|
|
|
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF
|
2021-12-07 09:06:35 -06:00
|
|
|
drc off
|
|
|
|
crashbackups stop
|
|
|
|
load caravan
|
|
|
|
select top cell
|
|
|
|
expand
|
|
|
|
extract do local
|
|
|
|
extract all
|
|
|
|
ext2spice lvs
|
|
|
|
ext2spice
|
|
|
|
EOF
|
2021-12-07 21:21:49 -06:00
|
|
|
rm -f *.ext
|
2021-12-07 09:06:35 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
export NETGEN_COLUMNS=60
|
2022-04-08 11:05:58 -05:00
|
|
|
netgen -batch lvs "caravan.spice chip_io_alt" "../verilog/gl/chip_io_alt.v chip_io_alt" $PDK_ROOT/$PDK/libs.tech/netgen/$PDK_VARIENT_setup.tcl comp.out
|