2023-10-16 14:02:29 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
|
// any use, without warranty, 2023 by Antmicro Ltd.
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
2024-08-08 00:44:02 +02:00
|
|
|
class C;
|
|
|
|
|
task proc;
|
|
|
|
|
disable fork;
|
|
|
|
|
wait fork;
|
|
|
|
|
endtask
|
|
|
|
|
endclass
|
|
|
|
|
|
2023-10-16 14:02:29 +02:00
|
|
|
module t;
|
|
|
|
|
initial begin
|
|
|
|
|
fork begin
|
|
|
|
|
fork begin
|
|
|
|
|
#3 $stop;
|
|
|
|
|
end join_none
|
|
|
|
|
#1;
|
|
|
|
|
end join_none
|
|
|
|
|
#2 disable fork;
|
|
|
|
|
end
|
|
|
|
|
initial #4 $write("*-* All Finished *-*\n");
|
|
|
|
|
endmodule
|