3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-11 09:44:44 +00:00
yosys/tests/various/hierarchy_reassign_localparam.ys
Krystine Sherwin 5748b37b1c
tests: Add test for reassigning localparam
i.e. Wrong error message mentioning defparam when overriding localparam #4927
2025-03-07 10:10:05 +13:00

18 lines
266 B
Text

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