mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
b7af859ba3
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
29 lines
502 B
Systemverilog
29 lines
502 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2024 by Antmicro.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t;
|
|
bit p = 0, q = 0;
|
|
|
|
initial begin
|
|
t1(p);
|
|
t2(q);
|
|
if (p != 1) $stop;
|
|
if (q != 1) $stop;
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
|
|
task t1(inout p);
|
|
fork
|
|
p = 1;
|
|
join_none
|
|
endtask
|
|
|
|
task t2(output q);
|
|
q <= 1;
|
|
endtask
|
|
endmodule
|