Files
sv2v/test/core/for_incrs.v
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

15 lines
370 B
Verilog

module top;
initial begin : blk1
integer x, y, z;
y = 10;
z = 101;
for (x = 0; x < y; {x, y, z} = {x + 32'd1, y - 32'd2, z >> 1})
$display("x = %0d, y = %0d, z = %0d", x, y, z);
end
initial begin : blk2
integer x;
for (x = 0; x < 3; x = x + 1)
$display("x = %0d", x);
end
endmodule