2012-11-03 00:30:47 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
|
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
|
|
// without warranty, 2012 by Chandan Egbert.
|
2020-03-21 15:24:24 +00:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2012-11-03 00:30:47 +00:00
|
|
|
|
|
|
|
module sub();
|
|
|
|
endmodule
|
|
|
|
|
|
|
|
module t(input logic a, input logic b,
|
2018-10-27 14:03:28 +00:00
|
|
|
output logic x, output logic y);
|
2012-11-03 00:30:47 +00:00
|
|
|
|
|
|
|
always_comb begin
|
|
|
|
integer i;
|
|
|
|
x = a;
|
|
|
|
end
|
|
|
|
|
|
|
|
sub u0();
|
|
|
|
|
|
|
|
always_comb begin
|
|
|
|
integer j;
|
|
|
|
y = b;
|
|
|
|
end
|
|
|
|
|
|
|
|
endmodule
|