verilator/test_regress/t/t_event_class_fire.v

25 lines
445 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2024 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
class Cls;
2026-03-08 23:26:40 +01:00
event e;
task trig_e();
->>e;
endtask
endclass
2026-03-08 23:26:40 +01:00
module top ();
event e;
initial begin
Cls c;
c = new;
c.trig_e();
wait (e.triggered);
$write("*-* All Finished *-*\n");
$finish;
end
endmodule