mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-01 13:50:30 +00:00
19 lines
430 B
Verilog
19 lines
430 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2020 by Wilson Snyder;
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
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
|