2026-03-04 15:08:07 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2026 Wilson Snyder
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t (
|
2026-03-05 02:12:10 +01:00
|
|
|
input logic a,
|
|
|
|
|
input logic b,
|
|
|
|
|
output logic [1:0] y
|
2026-03-04 15:08:07 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
logic [1:0] w;
|
|
|
|
|
|
|
|
|
|
assign w[0] = a; // <--- Warning
|
|
|
|
|
assign w[0] = b; // <--- Warning
|
|
|
|
|
assign w[1] = 1'b0;
|
|
|
|
|
|
|
|
|
|
assign y = w;
|
|
|
|
|
|
|
|
|
|
endmodule
|