mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-25 06:59:33 +00:00
verilog_parser: add port renaming tests
This commit is contained in:
parent
5b989b53f5
commit
60ae44dae8
7 changed files with 105 additions and 0 deletions
22
tests/verilog/port_rename_equivalence.ys
Normal file
22
tests/verilog/port_rename_equivalence.ys
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Equivalence
|
||||
read_verilog << EOF
|
||||
module gold(input a, input b, output c);
|
||||
assign c = a + b;
|
||||
endmodule
|
||||
|
||||
module gate_header (
|
||||
.a(x),
|
||||
.b(y),
|
||||
.c(z)
|
||||
);
|
||||
input x;
|
||||
input y;
|
||||
output z;
|
||||
|
||||
assign z = x + y;
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
equiv_make gold gate_header equiv_header
|
||||
equiv_simple
|
||||
equiv_status -assert
|
||||
Loading…
Add table
Add a link
Reference in a new issue