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