mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 23:27:48 +00:00
caed086516
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
32 lines
653 B
Systemverilog
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
|