verilator/test_regress/t/t_disable_outside3.v

33 lines
706 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2025 Antmicro
// SPDX-License-Identifier: CC0-1.0
module t;
initial begin
begin : blk
int x;
fork : fork_blk
begin
#4;
x = 3;
end
begin : begin_blk
x = 1;
#2;
x = 2;
end
join_none
#1;
disable fork_blk.begin_blk;
#2;
if (x != 1) $stop;
#2;
if (x != 3) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
end
endmodule