mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-23 03:27:53 +00:00
genrtlil: improve name conflict error messaging
This commit is contained in:
parent
dcd9f0af23
commit
bbff844acd
7 changed files with 93 additions and 12 deletions
8
tests/verilog/conflict_pwire.ys
Normal file
8
tests/verilog/conflict_pwire.ys
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue