mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Merge 913ac04764
into 63b3ce0c77
This commit is contained in:
commit
b52c094f6d
2 changed files with 29 additions and 0 deletions
18
tests/various/hierarchy_reassign_localparam.ys
Normal file
18
tests/various/hierarchy_reassign_localparam.ys
Normal file
|
@ -0,0 +1,18 @@
|
|||
read_verilog -defer <<EOT
|
||||
|
||||
module bb (...);
|
||||
localparam A = "abc";
|
||||
input a;
|
||||
output b;
|
||||
endmodule
|
||||
|
||||
module top (...);
|
||||
input a;
|
||||
output b;
|
||||
bb #(.A("def")) my_bb (a, b);
|
||||
endmodule
|
||||
|
||||
EOT
|
||||
|
||||
logger -expect error "does not have a parameter named 'A'" 1
|
||||
hierarchy -check -top top
|
Loading…
Add table
Add a link
Reference in a new issue