verilator/test_regress/t/t_force_scope.v

28 lines
524 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2026 Antmicro
// SPDX-License-Identifier: CC0-1.0
module child (
input wire i
);
/*verilator no_inline_module*/
endmodule
module t;
child a (.i(1'b0));
child b (.i(1'b0));
initial begin
force a.i = 1'b1;
if (a.i !== 1'b1) $stop;
if (b.i !== 1'b0) $stop;
if (a.i === b.i) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule