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:
parent
64a933d77b
commit
914e14946d
4 changed files with 392 additions and 0 deletions
22
tests/various/design_equal_fail.ys
Normal file
22
tests/various/design_equal_fail.ys
Normal 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
|
||||
17
tests/various/design_equal_pass.ys
Normal file
17
tests/various/design_equal_pass.ys
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue