2023-08-11 20:59:39 -05:00
|
|
|
#!/usr/bin/env bash
|
2019-03-24 16:54:18 -05:00
|
|
|
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
|
2019-03-24 16:54:18 -05:00
|
|
|
../../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
|
2019-03-24 16:54:18 -05:00
|
|
|
done
|