3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-13 02:34:44 +00:00

Add Liberty to verilog conversion tests

This commit is contained in:
Akash Levy 2024-10-05 01:34:12 -10:00
parent 4de5e718ed
commit 36e57017fe
8 changed files with 239 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
for x in *.lib; do
echo "Testing on $x.."
echo "read_liberty -lib $x" > test.ys
echo "write_verilog -blackboxes $x.v.tmp" >> test.ys
../../yosys -ql ${x%.lib}.log -s test.ys
sed '1,2d' $x.v.tmp > $x.v
diff $x.v $x.v.ok
done