Files
sv2v/test/core/named_genblk_cascade.v
Zachary Snow 16a13ee915 fix cascaded generate block cast and scope resolution
- scoper item injection can no longer affect generate scoping
- cast conversion injects functions into the top level when possible
- cast conversion considers loop variables to be local
- `else if` generate blocks are still scopes at the current level
2021-07-17 22:56:14 -04:00

14 lines
236 B
Verilog

module mod(
output wire [31:0] out
);
parameter P = 0;
if (P == 1)
assign out = 2;
else if (P == 2)
assign out = 3;
else if (P == 3)
assign out = 5;
else
assign out = 7;
endmodule