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