tests: add axis loopback test

This commit is contained in:
Phil
2026-06-09 17:23:07 +03:00
parent 7e7008ed87
commit 30fa85d01c
2 changed files with 149 additions and 0 deletions

View File

@ -0,0 +1,23 @@
TOPLEVEL_LANG = verilog
SIM ?= verilator
PWD := $(shell pwd)
RTL_DIR ?= $(PWD)/../../rtl
TB_DIR ?= $(PWD)
TOPLEVEL = tb_axis_loopback
MODULE = test_axis_loopback
VERILOG_SOURCES += $(RTL_DIR)/axis_if.sv
VERILOG_SOURCES += $(RTL_DIR)/axis_flat_to_if.sv
VERILOG_SOURCES += $(RTL_DIR)/axis_if_to_flat.sv
VERILOG_SOURCES += $(RTL_DIR)/axis_desc_flat_to_if.sv
VERILOG_SOURCES += $(RTL_DIR)/axis_desc_if_to_flat.sv
VERILOG_SOURCES += $(TB_DIR)/axis_loopback.sv
VERILOG_SOURCES += $(TB_DIR)/tb_axis_loopback.sv
COMPILE_ARGS += -I$(RTL_DIR)
EXTRA_ARGS += --trace
EXTRA_ARGS += --trace-structs
include $(shell cocotb-config --makefiles)/Makefile.sim