Skip to content

Commit

Permalink
Move a check to a task
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 14, 2023
1 parent 97412db commit 4796694
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test_regress/t/t_fork_output_arg.v
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ class Cls;
endtask
endclass

module t();
task automatic test;
int o;
Cls c = new;
initial begin
int o;
fork
c.get_x(o);
join_any
if (o != 100) $stop;
fork
c.get_x(o);
join_any
if (o != 100) $stop;
endtask

module t();
initial begin
test();
$write("*-* All Finished *-*\n");
$finish;
end
Expand Down

0 comments on commit 4796694

Please sign in to comment.