mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 08:58:40 -08:00
56 lines
803 B
Systemverilog
56 lines
803 B
Systemverilog
// SPDX-License-Identifier: CERN-OHL-S-2.0
|
|
/*
|
|
|
|
Copyright (c) 2025 FPGA Ninja, LLC
|
|
|
|
Authors:
|
|
- Alex Forencich
|
|
|
|
*/
|
|
|
|
`resetall
|
|
`timescale 1ns / 1ps
|
|
`default_nettype none
|
|
|
|
/*
|
|
* AXI4 lite RAM testbench
|
|
*/
|
|
module test_taxi_axil_ram #
|
|
(
|
|
/* verilator lint_off WIDTHTRUNC */
|
|
parameter DATA_W = 32,
|
|
parameter ADDR_W = 16,
|
|
parameter STRB_W = (DATA_W/8),
|
|
parameter PIPELINE_OUTPUT = 0
|
|
/* verilator lint_on WIDTHTRUNC */
|
|
)
|
|
();
|
|
|
|
logic clk;
|
|
logic rst;
|
|
|
|
taxi_axil_if #(
|
|
.DATA_W(DATA_W),
|
|
.ADDR_W(ADDR_W+16),
|
|
.STRB_W(STRB_W)
|
|
) s_axil(), m_axil();
|
|
|
|
taxi_axil_ram #(
|
|
.ADDR_W(ADDR_W),
|
|
.PIPELINE_OUTPUT(PIPELINE_OUTPUT)
|
|
)
|
|
uut (
|
|
.clk(clk),
|
|
.rst(rst),
|
|
|
|
/*
|
|
* AXI4-Lite slave interface
|
|
*/
|
|
.s_axil_wr(s_axil),
|
|
.s_axil_rd(s_axil)
|
|
);
|
|
|
|
endmodule
|
|
|
|
`resetall
|