verilator/test_regress/t/t_repeat.v
Wilson Snyder b085b34a69 Commentary
2009-09-18 22:35:46 -04:00

32 lines
600 B
Verilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2009 by Wilson Snyder.
module t (/*AUTOARG*/);
reg signed [2:0] negcnt;
integer times;
initial begin
times = 0;
repeat (1) begin
repeat (0) $stop;
repeat (-1) $stop;
negcnt = 'sb111;
repeat (negcnt) $stop;
repeat (5) begin
repeat (2) begin
times = times + 1;
end
end
end
if (times != 10) $stop;
//
forever begin
$write("*-* All Finished *-*\n");
$finish;
end
end
endmodule