sv2v/test/core/do_while.sv

12 lines
238 B
Systemverilog
Raw Normal View History

2022-03-11 11:32:54 +01:00
module top;
integer x = 0;
initial
do begin
$display("hi %0d", x);
x++;
if (x == 2)
continue;
$display("step");
end while (0 < x && x < 3);
endmodule