2011-02-08 01:15:58 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2011 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2011-02-08 01:15:58 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module t ( /*AUTOARG*/
|
|
|
|
|
// Inouts
|
|
|
|
|
AVDD,
|
|
|
|
|
AVSS
|
|
|
|
|
);
|
|
|
|
|
inout AVDD;
|
|
|
|
|
inout AVSS;
|
2011-02-08 01:15:58 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
sub sub ( /*AUTOINST*/
|
|
|
|
|
// Inouts
|
|
|
|
|
.AVDD(AVDD),
|
|
|
|
|
.AVSS(AVSS)
|
|
|
|
|
);
|
2011-02-08 01:15:58 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
initial begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2011-02-08 01:15:58 +01:00
|
|
|
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;
|
2011-02-08 01:15:58 +01:00
|
|
|
endmodule
|