mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 17:08:38 -08:00
axi: Add STRB parameters to testbenches
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -31,6 +31,7 @@ VERILOG_SOURCES := $(call uniq_base,$(call process_f_files,$(VERILOG_SOURCES)))
|
||||
# module parameters
|
||||
export PARAM_DATA_W := 32
|
||||
export PARAM_ADDR_W := 16
|
||||
export PARAM_STRB_W := $(shell expr $(PARAM_DATA_W) / 8 )
|
||||
export PARAM_PIPELINE_OUTPUT := 0
|
||||
|
||||
ifeq ($(SIM), icarus)
|
||||
|
||||
@@ -220,6 +220,7 @@ def test_taxi_axi_ram(request, data_w):
|
||||
|
||||
parameters['DATA_W'] = data_w
|
||||
parameters['ADDR_W'] = 16
|
||||
parameters['STRB_W'] = parameters['DATA_W'] // 8
|
||||
parameters['ID_W'] = 8
|
||||
parameters['PIPELINE_OUTPUT'] = 0
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ module test_taxi_axi_ram #
|
||||
/* verilator lint_off WIDTHTRUNC */
|
||||
parameter DATA_W = 32,
|
||||
parameter ADDR_W = 16,
|
||||
parameter STRB_W = (DATA_W/8),
|
||||
parameter ID_W = 8,
|
||||
parameter PIPELINE_OUTPUT = 0
|
||||
/* verilator lint_on WIDTHTRUNC */
|
||||
@@ -32,6 +33,7 @@ logic rst;
|
||||
taxi_axi_if #(
|
||||
.DATA_W(DATA_W),
|
||||
.ADDR_W(ADDR_W+16),
|
||||
.STRB_W(STRB_W),
|
||||
.ID_W(ID_W)
|
||||
) s_axi(), m_axi();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user