simplify shadowing notes non-trivial localparams too

This commit is contained in:
Zachary Snow
2023-08-08 22:30:36 -04:00
parent 5b035613ee
commit b09fdaf76a
3 changed files with 16 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
module top;
localparam i = 1234;
if (1) begin
genvar j;
for (j = 0; j < 10; j = j + 1) begin
localparam i = j;
initial $display(i > 5 ? i + 100 : i - 100);
end
end
endmodule