verilator/test_regress/t/t_force_scope.v

28 lines
524 B
Systemverilog
Raw Permalink Normal View History

// 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
2026-07-10 14:43:12 +02:00
module child (
input wire i
);
/*verilator no_inline_module*/
endmodule
module t;
2026-07-10 14:43:12 +02:00
child a (.i(1'b0));
child b (.i(1'b0));
2026-07-10 14:43:12 +02:00
initial begin
force a.i = 1'b1;
2026-07-10 14:43:12 +02:00
if (a.i !== 1'b1) $stop;
if (b.i !== 1'b0) $stop;
if (a.i === b.i) $stop;
2026-07-10 14:43:12 +02:00
$write("*-* All Finished *-*\n");
$finish;
end
endmodule