yosys/tests/liberty/run-test.sh

16 lines
447 B
Bash
Raw Normal View History

2023-08-11 20:59:39 -05:00
#!/usr/bin/env bash
set -e
for x in *.lib; do
2024-08-13 11:36:31 -05:00
echo "Testing on $x.."
2024-09-18 09:09:47 -05:00
../../yosys -p "read_verilog small.v; synth -top small; dfflibmap -info -liberty ${x}" -ql ${x%.lib}.log
2024-08-13 11:36:31 -05:00
../../yosys-filterlib - $x 2>/dev/null > $x.filtered
../../yosys-filterlib -verilogsim $x > $x.verilogsim
diff $x.filtered $x.filtered.ok && diff $x.verilogsim $x.verilogsim.ok
done
for x in *.ys; do
echo "Running $x.."
../../yosys -q -s $x -l ${x%.ys}.log
done