3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-03-03 12:16:56 +00:00

Implement design_equal command

This commit is contained in:
Robert O'Callahan 2025-12-16 01:39:39 +00:00
parent 64a933d77b
commit 914e14946d
4 changed files with 392 additions and 0 deletions

View file

@ -0,0 +1,22 @@
logger -expect error "Second design missing module top_renamed" 1
read_rtlil <<EOT
module \top
wire width 1 input 1 \a
wire width 1 output 2 \y
connect \y \a
end
EOT
design -save golden
design -reset
read_rtlil <<EOT
module \top_renamed
wire width 1 input 1 \a
wire width 1 output 2 \y
connect \y \a
end
EOT
design_equal golden

View file

@ -0,0 +1,17 @@
read_rtlil <<EOT
module \top
wire width 1 input 1 \a
wire width 1 output 2 \y
connect \y \a
end
EOT
design -save golden
design_equal golden
design -save copy
design_equal copy
design -load golden
design_equal golden
design_equal copy