verilator/test_regress/t/t_bitsel_wire_array_bad.v

19 lines
488 B
Systemverilog

// DESCRIPTION: Verilator: Test of select from constant
//
// This tests issue #509, bit select of constant fails
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2012 Jeremy Bennett
// SPDX-License-Identifier: CC0-1.0
module t;
// a and b are arrays of length 1.
wire a[0:0]; // Array of nets
wire b[0:0];
assign a = 1'b0; // Only net assignment allowed
assign b = a[0]; // Only net assignment allowed
endmodule