3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-11 04:01:28 +00:00

rtlil: fix roundtrip test by eliminating absolute paths from src attributes with -relativeshare

This commit is contained in:
Emil J. Tywoniak 2025-09-03 01:58:08 +02:00
parent f8630d0777
commit 08d79595cc
2 changed files with 282 additions and 282 deletions

View file

@ -26,7 +26,7 @@ diff temp/roundtrip-text.dump.il temp/roundtrip-text.reload-hash-nogen.il
echo "Without ABC, we don't get any irreproducibility and can pin that" echo "Without ABC, we don't get any irreproducibility and can pin that"
echo "Has this test case started failing for you? Consider updating the reference" echo "Has this test case started failing for you? Consider updating the reference"
$YS -p "read_verilog -sv everything.v; synth -noabc; write_rtlil temp/roundtrip-text.synth.il" $YS -p "read_verilog -sv everything.v; synth -relativeshare -noabc; write_rtlil temp/roundtrip-text.synth.il"
sed '/^$/d' -i.bak temp/roundtrip-text.synth.il sed '/^$/d' -i.bak temp/roundtrip-text.synth.il
tail -n +2 temp/roundtrip-text.synth.il > temp/roundtrip-text.synth-nogen.il tail -n +2 temp/roundtrip-text.synth.il > temp/roundtrip-text.synth-nogen.il
diff temp/roundtrip-text.synth-nogen.il roundtrip-text.synth.ref.il diff temp/roundtrip-text.synth-nogen.il roundtrip-text.synth.ref.il

File diff suppressed because it is too large Load diff