verilator/test_regress/t/t_tri_dangle.v

39 lines
695 B
Systemverilog

// 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
module t ( /*AUTOARG*/
// Inouts
AVDD,
AVSS
);
inout AVDD;
inout AVSS;
sub sub ( /*AUTOINST*/
// Inouts
.AVDD(AVDD),
.AVSS(AVSS)
);
initial begin
$write("*-* All Finished *-*\n");
$finish;
end
endmodule
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