diff options
author | whitequark <whitequark@whitequark.org> | 2021-03-01 08:10:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 08:10:19 -0800 |
commit | ca5f5ffcd63bc18a5e0ae1bdb1065f148ce3c4da (patch) | |
tree | d6fb01c328a9da739b2f2c0b448fe47791258e5d /tests/verilog/conflict_interface_port.ys | |
parent | 0fb4224ebca86156a1296b9210116d9a9cbebeed (diff) | |
parent | bbff844acd15c274a6619050d1251aea4698ef56 (diff) | |
download | yosys-ca5f5ffcd63bc18a5e0ae1bdb1065f148ce3c4da.tar.gz yosys-ca5f5ffcd63bc18a5e0ae1bdb1065f148ce3c4da.tar.bz2 yosys-ca5f5ffcd63bc18a5e0ae1bdb1065f148ce3c4da.zip |
Merge pull request #2615 from zachjs/genrtlil-conflict
genrtlil: improve name conflict error messaging
Diffstat (limited to 'tests/verilog/conflict_interface_port.ys')
-rw-r--r-- | tests/verilog/conflict_interface_port.ys | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/verilog/conflict_interface_port.ys b/tests/verilog/conflict_interface_port.ys new file mode 100644 index 000000000..b97ec029e --- /dev/null +++ b/tests/verilog/conflict_interface_port.ys @@ -0,0 +1,17 @@ +logger -expect error "Cannot add interface port `\\i' because a signal with the same name was already created" 1 +read_verilog -sv <<EOT +interface intf; + logic x; + assign x = 1; + modport m(input x); +endinterface +module mod(intf.m i); + wire x; + assign x = i.x; + wire i; +endmodule +module top; + intf i(); + mod m(i); +endmodule +EOT |