verilator/test_regress/t/t_param_bracket.v

19 lines
434 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2020 Wilson Snyder;
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
module t #(
parameter WIDTH = 8
) ( /*AUTOARG*/
// Outputs
o
);
output [WIDTH-1:0] o;
localparam DEPTH = $clog2(5);
// Note single bracket below
reg [WIDTH-1:0] arid[1<<DEPTH];
assign o = arid[0];
endmodule