2020-06-09 13:13:40 +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: 2020 Wilson Snyder;
|
2020-06-09 13:13:40 +02:00
|
|
|
// 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];
|
2020-06-09 13:13:40 +02:00
|
|
|
endmodule
|