aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog/conflict_pwire.ys
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2021-02-26 18:08:23 -0500
committerZachary Snow <zach@zachjs.com>2021-02-26 18:08:23 -0500
commitbbff844acd15c274a6619050d1251aea4698ef56 (patch)
tree9d1532428e3b5e587a014ed4d66e2e9cbcd364ab /tests/verilog/conflict_pwire.ys
parentdcd9f0af23f9b580b044890452ecf1aef59bbb85 (diff)
downloadyosys-bbff844acd15c274a6619050d1251aea4698ef56.tar.gz
yosys-bbff844acd15c274a6619050d1251aea4698ef56.tar.bz2
yosys-bbff844acd15c274a6619050d1251aea4698ef56.zip
genrtlil: improve name conflict error messaging
Diffstat (limited to 'tests/verilog/conflict_pwire.ys')
-rw-r--r--tests/verilog/conflict_pwire.ys8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/verilog/conflict_pwire.ys b/tests/verilog/conflict_pwire.ys
new file mode 100644
index 000000000..ecc30d33a
--- /dev/null
+++ b/tests/verilog/conflict_pwire.ys
@@ -0,0 +1,8 @@
+logger -expect error "Cannot add pwire `\\x' because a signal with the same name was already created" 1
+read_verilog -pwires <<EOT
+module top;
+ wire x;
+ assign x = 1;
+ localparam x = 2;
+endmodule
+EOT