mirror of https://github.com/zachjs/sv2v.git
12 lines
228 B
Verilog
12 lines
228 B
Verilog
|
|
module Example(inp, out);
|
||
|
|
parameter ENABLED = 1;
|
||
|
|
input wire inp;
|
||
|
|
output reg out;
|
||
|
|
generate
|
||
|
|
if (ENABLED)
|
||
|
|
always @* out = inp;
|
||
|
|
else
|
||
|
|
initial out = 0;
|
||
|
|
endgenerate
|
||
|
|
endmodule
|