Tests: Fix t_fork_join_none_capture for other simulators

This commit is contained in:
Wilson Snyder 2026-02-22 11:36:22 -05:00
parent 1717df0261
commit 38d5da7a24
1 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
// DESCRIPTION: Verilator: Verilog Test module // DESCRIPTION: Verilator: Verilog Test module
// //
// This file ONLY is placed under the Creative Commons Public Domain, for // This file ONLY is placed under the Creative Commons Public Domain.
// any use, without warranty, 2026 by Antmicro Ltd. // SPDX-FileCopyrightText: 2026 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0 // SPDX-License-Identifier: CC0-1.0
module test; module test;
@ -11,14 +11,13 @@ module test;
mbox.put(10); mbox.put(10);
mbox.put(30); mbox.put(30);
repeat(2) begin repeat (2) begin
int item; automatic int item;
mbox.get(item); mbox.get(item);
fork fork
begin begin
$display("got", item); $display("got", item);
if(item==10) if (item == 10) $finish;
$finish;
end end
join_none join_none
end end