mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
- convert loops with no or many incrementations - restrict AST node to only contain traditional initializations - parser elaborates for loop decls into a synthetic block - decl list codegen is now specific to parameter decl lists - update jump conversion special cases for new representation - first experiments with bimapM
11 lines
302 B
Systemverilog
11 lines
302 B
Systemverilog
module top;
|
|
initial
|
|
for (integer x = 0, y = x + 10, z = y * 10 + 1; x < y; x += 1, y -= 2, z >>= 1)
|
|
$display("x = %0d, y = %0d, z = %0d", x, y, z);
|
|
initial
|
|
for (integer x = 0; x < 3; ) begin
|
|
$display("x = %0d", x);
|
|
++x;
|
|
end
|
|
endmodule
|