Files
sv2v/test/core/for_incrs.sv
Zachary Snow bfd0cee0dc improved handling of procedural for loops
- 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
2021-07-14 15:50:12 -04:00

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