mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 08:37:35 +00:00
32 lines
600 B
Coq
32 lines
600 B
Coq
|
// 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
|