Skip to content

Commit

Permalink
Add proper reset test for DCLS
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Szczepanski <[email protected]>
  • Loading branch information
robertszczepanski committed Oct 25, 2024
1 parent aef1531 commit fc0b68c
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 47 deletions.
2 changes: 1 addition & 1 deletion verification/block/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ include $(shell cocotb-config --makefiles)/Makefile.sim

# Rules for generating VeeR config
$(CFGDIR)/common_defines.vh:
cd $(CURDIR) && $(CONFIG)/veer.config -fpga_optimize=0
cd $(CURDIR) && $(CONFIG)/veer.config -fpga_optimize=0 $(EXTRA_VEER_CONFIG)

9 changes: 7 additions & 2 deletions verification/block/dcls/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ SRCDIR := $(abspath $(CURDIR)../../../../design)
TEST_FILES = $(sort $(wildcard test_*.py))

MODULE ?= $(subst $(space),$(comma),$(subst .py,,$(TEST_FILES)))
TOPLEVEL = el2_veer_lockstep
TOPLEVEL = el2_veer_lockstep_wrapper

EXTRA_VEER_CONFIG = -set lockstep_enable=1 -set lockstep_regfile_enable=1

VERILOG_INCLUDE_DIRS += \
${RV_ROOT}/testbench \
${RV_ROOT}/design/include

VERILOG_SOURCES = \
${SRCDIR}/lib/el2_mem_if.sv \
${SRCDIR}/lib/el2_regfile_if.sv \
${SRCDIR}/el2_veer_wrapper.sv \
${SRCDIR}/el2_mem.sv \
${SRCDIR}/el2_pic_ctrl.sv \
Expand Down Expand Up @@ -57,6 +61,7 @@ VERILOG_SOURCES = \
${SRCDIR}/dmi/dmi_jtag_to_core_sync.v \
${SRCDIR}/dmi/rvjtag_tap.v \
${SRCDIR}/lib/el2_lib.sv \
$(SRCDIR)/el2_veer_lockstep.sv
$(SRCDIR)/el2_veer_lockstep.sv \
$(CURDIR)/dcls/el2_veer_lockstep_wrapper.sv

include $(CURDIR)/../common.mk
Loading

0 comments on commit fc0b68c

Please sign in to comment.