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.."
|
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
|
2019-03-24 16:54:18 -05:00
|
|
|
done
|
2024-09-18 09:14:52 -05:00
|
|
|
|
|
|
|
for x in *.ys; do
|
|
|
|
echo "Running $x.."
|
|
|
|
../../yosys -q -s $x -l ${x%.ys}.log
|
|
|
|
done
|