verilator/test_regress/t/t_fork_jumpblock.v

24 lines
473 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2023 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