verilator/test_regress/t/t_fork_port.v
Krzysztof Bieganski 25b9a16bc7
Fix references to ports in forks (#5123)
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
2024-05-17 07:38:36 -04:00

20 lines
410 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 Antmicro.
// SPDX-License-Identifier: CC0-1.0
module t;
logic x;
sub s(x);
initial #1 x = 1;
endmodule
module sub(input x);
initial fork begin
@x;
$write("*-* All Finished *-*\n");
$finish;
end join_any
endmodule