verilator/test_regress/t/t_wait_no_triggered_bad.v
2024-11-05 01:22:56 -05:00

22 lines
439 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
event e_my_event;
initial begin
#(1us);
wait(e_my_event.triggered); // Ok
#(1us);
wait(e_my_event); // Bad
$write("*-* All Finished *-*\n");
$finish;
end
endmodule