RosettaCodeData/Task/Loops-While/Verilog/loops-while.v

14 lines
170 B
Coq
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
module main;
integer i;
initial begin
i = 1024;
while( i > 0) begin
$display(i);
i = i / 2;
end
$finish ;
end
endmodule