mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-05 23:44:01 +00:00
rtlil: add roundtrip test for design -stash and design -save, fix #5321
This commit is contained in:
parent
4215f3c134
commit
fdbdd193c1
3 changed files with 12 additions and 3 deletions
8
tests/rtlil/roundtrip-design.sh
Normal file
8
tests/rtlil/roundtrip-design.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
set -euo pipefail
|
||||
YS=../../yosys
|
||||
|
||||
$YS -p "read_verilog -sv everything.v; write_rtlil roundtrip-design-push.tmp.il; design -push; design -pop; write_rtlil roundtrip-design-pop.tmp.il"
|
||||
diff roundtrip-design-push.tmp.il roundtrip-design-pop.tmp.il
|
||||
|
||||
$YS -p "read_verilog -sv everything.v; write_rtlil roundtrip-design-save.tmp.il; design -save foo; design -load foo; write_rtlil roundtrip-design-load.tmp.il"
|
||||
diff roundtrip-design-save.tmp.il roundtrip-design-load.tmp.il
|
Loading…
Add table
Add a link
Reference in a new issue