mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 10:50:25 +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
9
tests/verilog/conflict_cell_memory.ys
Normal file
9
tests/verilog/conflict_cell_memory.ys
Normal file
|
@ -0,0 +1,9 @@
|
|||
logger -expect error "Cannot add cell `\\x' because a memory with the same name was already created" 1
|
||||
read_verilog <<EOT
|
||||
module mod;
|
||||
endmodule
|
||||
module top;
|
||||
reg [2:0] x [0:0];
|
||||
mod x();
|
||||
endmodule
|
||||
EOT
|
Loading…
Add table
Add a link
Reference in a new issue