blob: 453679e258c28750b3b90cc87b075c634f5df73c [file] [log] [blame] [edit]
#!/bin/bash
if [ ! -d $1/skywater-pdk/ ]; then
echo "Need a directory to the skywater-pdk"
exit 1
fi
set -x
set -e
find $1/skywater-pdk/ -name *.tb.v -delete
find $1/skywater-pdk/ -name *.blackbox.v -delete
find $1/skywater-pdk/ -name *.symbol.v -delete
./generate_verilog_blackbox.py $1/skywater-pdk/libraries/*/*/models/*
./generate_verilog_blackbox.py $1/skywater-pdk/libraries/*/*/cells/*
exit 1
#(cd $1/ ; git diff --no-renames --name-only --diff-filter=D -z | xargs -0 git checkout --)
for LIB in $1/skywater-pdk/libraries/*; do
LIBNAME=$(basename $LIB)
find $LIB -name \*.schematic.svg -delete
find $LIB -name \*.v -print | grep 'cells' | grep -v 'beha' \
| parallel -v symbolator --libname $LIBNAME --title -t --input \{\} \
; RETCODE=$?
if [ $RETCODE -ne 0 ]; then
echo "FAILURE on $LIB"
exit
fi
done
for LIB in $1/skywater-pdk/libraries/*; do
LIBNAME=$(basename $LIB)
find $LIB -name \*.symbol.svg -delete
find $LIB -name \*.symbol.v -print \
| parallel -v symbolator --libname $LIBNAME --title -t --input \{\} \
; RETCODE=$?
if [ $RETCODE -ne 0 ]; then
echo "FAILURE on $LIB"
exit
fi
done