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:
parent
4de5e718ed
commit
36e57017fe
8 changed files with 239 additions and 0 deletions
11
tests/liberty_verilog/run-test.sh
Executable file
11
tests/liberty_verilog/run-test.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue