2011-01-29 22:01:06 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2010 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2011-01-29 22:01:06 +00:00
|
|
|
|
|
|
|
module t
|
|
|
|
(
|
|
|
|
output wire o,
|
|
|
|
input wire i,
|
|
|
|
input wire i2
|
|
|
|
);
|
|
|
|
|
|
|
|
sub
|
2019-07-14 00:30:32 +00:00
|
|
|
#(, // Not found
|
|
|
|
.NEXIST(1), // Not found
|
|
|
|
.P(2),
|
|
|
|
.P(3)) // Dup
|
2011-01-29 22:01:06 +00:00
|
|
|
sub (.o(o),
|
2019-06-13 02:22:36 +00:00
|
|
|
.i(i),
|
2019-07-14 00:30:32 +00:00
|
|
|
.i(i2), // Dup
|
|
|
|
.nexist(i2) // Not found
|
2019-06-13 02:22:36 +00:00
|
|
|
);
|
2011-01-29 22:01:06 +00:00
|
|
|
|
|
|
|
endmodule
|
|
|
|
|
|
|
|
module sub
|
2019-07-14 00:30:32 +00:00
|
|
|
#(parameter P=1,
|
|
|
|
parameter EXIST=9)
|
2011-01-29 22:01:06 +00:00
|
|
|
(
|
|
|
|
output wire o,
|
2019-07-14 00:30:32 +00:00
|
|
|
input wire i,
|
|
|
|
input wire exists
|
2011-01-29 22:01:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
assign o = ~i;
|
|
|
|
|
|
|
|
endmodule
|