yosys/tests/liberty/run-test.sh

14 lines
422 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.."
echo "read_verilog small.v" > test.ys
echo "synth -top small" >> test.ys
echo "dfflibmap -info -liberty ${x}" >> test.ys
../../yosys -ql ${x%.lib}.log -s test.ys
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