verilator/test_regress/t/t_tri_dangle.v

39 lines
695 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2011 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
module t ( /*AUTOARG*/
// Inouts
AVDD,
AVSS
);
inout AVDD;
inout AVSS;
2026-03-10 02:38:29 +01:00
sub sub ( /*AUTOINST*/
// Inouts
.AVDD(AVDD),
.AVSS(AVSS)
);
2026-03-10 02:38:29 +01:00
initial begin
$write("*-* All Finished *-*\n");
$finish;
end
endmodule
2026-03-10 02:38:29 +01:00
module sub ( /*AUTOARG*/
// Inouts
AVDD,
AVSS
);
// verilator no_inline_module
inout AVDD;
inout AVSS;
tri NON_IO;
// +verilator+rand+reset+0 so z will read as zero
initial if (NON_IO !== 'z) $stop;
endmodule