2012-04-27 00:43:12 +02: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: 2012 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2012-04-27 00:43:12 +02:00
|
|
|
|
2025-09-13 15:28:43 +02:00
|
|
|
module t;
|
2026-03-08 23:26:40 +01:00
|
|
|
wire ok = 1'b0;
|
|
|
|
|
// verilator lint_off UNDRIVEN
|
|
|
|
|
wire nc;
|
|
|
|
|
// verilator lint_on UNDRIVEN
|
2023-03-02 03:19:21 +01:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
sub sub (
|
|
|
|
|
ok
|
|
|
|
|
,,
|
|
|
|
|
nc
|
|
|
|
|
);
|
2012-04-27 00:43:12 +02:00
|
|
|
endmodule
|
|
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
module sub (
|
|
|
|
|
input ok,
|
|
|
|
|
input none,
|
|
|
|
|
input nc,
|
|
|
|
|
input missing
|
|
|
|
|
);
|
|
|
|
|
initial
|
|
|
|
|
if (ok && none && nc && missing) begin
|
|
|
|
|
end // No unused warning
|
2012-04-27 00:43:12 +02:00
|
|
|
endmodule
|