Tests: Fix t_fork_join_none_capture for other simulators
This commit is contained in:
parent
1717df0261
commit
38d5da7a24
|
|
@ -1,7 +1,7 @@
|
|||
// DESCRIPTION: Verilator: Verilog Test module
|
||||
//
|
||||
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||||
// any use, without warranty, 2026 by Antmicro Ltd.
|
||||
// This file ONLY is placed under the Creative Commons Public Domain.
|
||||
// SPDX-FileCopyrightText: 2026 by Antmicro Ltd.
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
module test;
|
||||
|
|
@ -11,14 +11,13 @@ module test;
|
|||
mbox.put(10);
|
||||
mbox.put(30);
|
||||
|
||||
repeat(2) begin
|
||||
int item;
|
||||
repeat (2) begin
|
||||
automatic int item;
|
||||
mbox.get(item);
|
||||
fork
|
||||
begin
|
||||
$display("got", item);
|
||||
if(item==10)
|
||||
$finish;
|
||||
if (item == 10) $finish;
|
||||
end
|
||||
join_none
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue