blob: a06331375786f9eefef821c89fa5e41aa9dc8672 [file] [log] [blame]
#!/bin/bash
if [ ! -d $1/skywater-pdk/ ]; then
echo "Need a directory to the skywater-pdk"
exit 1
fi
find $1/skywater-pdk/ -name *.v -delete
./generate_verilog_blackbox.py $1/skywater-pdk/libraries/*/*/cells/*
(cd $1/ ; git diff --no-renames --name-only --diff-filter=D -z | xargs -0 git checkout --)
exit
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