mirror of https://github.com/YosysHQ/yosys.git
12 lines
168 B
Systemverilog
12 lines
168 B
Systemverilog
|
module top(out);
|
||
|
output integer out;
|
||
|
initial begin
|
||
|
integer i;
|
||
|
for (i = 0; i < 5; i = i + 1)
|
||
|
if (i == 0)
|
||
|
out = 1;
|
||
|
else
|
||
|
out += 2 ** i;
|
||
|
end
|
||
|
endmodule
|