verilator/test_regress/t/t_timing_fork_unsup.v
Krzysztof Boronski 21c01ba97b V3Fork - transform processes that can outlive their parents into separate tasks (#4253)
Signed-off-by: Krzysztof Boronski <kboronski@antmicro.com>
2023-06-14 20:44:53 +02:00

25 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, 2022 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t;
class C;
task f;
int x = 0;
fork
#6 x = 4;
#2 x++;
x = #4 x * 3;
join_none
x = 1;
endtask
endclass
initial begin
C o = new;
o.f;
end
endmodule