mirror of https://github.com/efabless/caravel.git
22 lines
487 B
Bash
Executable File
22 lines
487 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null
|
|
|
|
if [ ! -f caravan.spice ]; then
|
|
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF
|
|
drc off
|
|
crashbackups stop
|
|
load caravan
|
|
select top cell
|
|
expand
|
|
extract do local
|
|
extract all
|
|
ext2spice lvs
|
|
ext2spice
|
|
EOF
|
|
rm -f *.ext
|
|
fi
|
|
|
|
export NETGEN_COLUMNS=60
|
|
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
|