3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 01:24:10 +00:00
yosys/tests/verilog/global_parameter.ys
Zachary Snow cb9f3b6abf verilog: disallow overriding global parameters
It was previously possible to override global parameters on a
per-instance basis. This could be dangerous when using positional
parameter bindings, hiding oversupplied parameters.
2021-03-11 12:36:51 -05:00

17 lines
257 B
Plaintext

read_verilog -sv <<EOF
parameter P = 1;
module example(
output integer out
);
assign out = P;
endmodule
module top(
output integer out
);
example #(2) e1(out);
endmodule
EOF
logger -expect error "Can't find object for defparam" 1
hierarchy