Skip to content

Commit

Permalink
target: Generate iDMA dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Aug 9, 2024
1 parent 4ba51b1 commit d14a448
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: Build Hardware
working-directory: target/snitch_cluster
run: |
pip install -r $($BENDER) path idma/requirements.txt)
make CFG_OVERRIDE=cfg/github-ci.hjson VLT_JOBS=1 bin/snitch_cluster.vlt
- name: Run Tests
working-directory: target/snitch_cluster
Expand Down
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ variables:

before_script:
source iis-setup.sh
pip install $($BENDER path idma)/requirements.txt

##############
# Build docs #
Expand Down
4 changes: 1 addition & 3 deletions iis-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ source .venv/bin/activate
# occurring when the /tmp folder is filled by other processes.
mkdir tmp
TMPDIR=tmp pip install -r python-requirements.txt
TMPDIR=tmp pip install -r $($BENDER path idma)/requirements.txt
rm -rf tmp

# Bender initialization
$BENDER vendor init

# Install spike-dasm
mkdir tools/
cd tools/
Expand Down
5 changes: 2 additions & 3 deletions target/common/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ VLT_ROOT ?= ${VERILATOR_ROOT}
VLT_JOBS ?= $(shell nproc)
VLT_NUM_THREADS ?= 1

MATCH_END := '/+incdir+/ s/$$/\/*\/*/'
MATCH_BGN := 's/+incdir+//g'
SED_SRCS := sed -e ${MATCH_END} -e ${MATCH_BGN}
MATCH_REMOVE := 's/+incdir+\/[^ ]*//g'
SED_SRCS := sed -e ${MATCH_REMOVE}

COMMON_BENDER_FLAGS += -t rtl

Expand Down
10 changes: 10 additions & 0 deletions target/snitch_cluster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,19 @@ include $(ROOT)/target/snitch_cluster/sw.mk
# RTL #
#######

# Include iDMA Makefile to generate prerequisite iDMA sources
include $(shell $(BENDER) path idma)/idma.mk

GENERATED_RTL_SOURCES = $(PERIPH_DIR)/snitch_cluster_peripheral_reg_top.sv
GENERATED_RTL_SOURCES += $(PERIPH_DIR)/snitch_cluster_peripheral_reg_pkg.sv
GENERATED_RTL_SOURCES += $(GENERATED_DIR)/snitch_cluster_wrapper.sv
GENERATED_RTL_SOURCES += $(IDMA_ROOT)/target/rtl/idma_inst64_top.sv
GENERATED_RTL_SOURCES += $(IDMA_ROOT)/target/rtl/include/idma/tracer.svh

# Add dependency on DMA header files
VSIM_SOURCES += $(IDMA_ROOT)/target/rtl/include/idma/tracer.svh
VLT_SOURCES += $(IDMA_ROOT)/target/rtl/include/idma/tracer.svh
VCS_SOURCES += $(IDMA_ROOT)/target/rtl/include/idma/tracer.svh

.PHONY: rtl clean-rtl

Expand Down

0 comments on commit d14a448

Please sign in to comment.