mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
- 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
14 lines
236 B
Verilog
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
|