verilator/test_regress/t/t_timing_strobe.v
Krzysztof Bieganski caed086516
Move Postponed logic after the eval loop (#3673)
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
2022-10-13 21:04:43 +02:00

32 lines
653 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2022 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/
// Inputs
clk
);
input clk;
event e1;
event e2;
int v = 0;
initial begin
#1 $strobe("v = %0d", v); ->e1;
@e2 $strobe("v = %0d", v); ->e1;
@e2 $strobe("v = %0d", v); ->e1;
@e2 $write("*-* All Finished *-*\n");
$finish;
end
initial begin
@e1 v = 1; #1 ->e2;
@e1 v = 2; #1 ->e2;
@e1 v = 3; #1 ->e2;
end
initial #5 $stop; // timeout
endmodule