verilator/test_regress/t/t_fork_jumpblock.v
2023-10-18 16:49:20 -04:00

24 lines
466 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
class bar;
task foo(logic r);
int a, b;
if (r) return;
fork a = #1 b; join_none
endtask
endclass
module t;
bar b = new;
initial begin
b.foo(0);
$write("*-* All Finished *-*\n");
$finish;
end
endmodule