Skip to content

Commit

Permalink
Add more variants of the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
thommythomaso authored and bsc22h2 Tobias Senti (tsenti) committed Aug 24, 2023
1 parent fbde85a commit 727f154
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Bender.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ packages:
- common_verification
- tech_cells_generic
common_cells:
revision: 9c1a1bdbd1a0928340863cad90c6fc0503da43a7
version: 1.27.1
revision: 4dc9413990622dcbf4b37a19f792834c800da5c7
version: 1.28.0
source:
Git: https://github.com/pulp-platform/common_cells.git
dependencies:
Expand All @@ -26,7 +26,7 @@ packages:
revision: null
version: null
source:
Path: /home/bsc22h2/bachelor-thesis/mdma/src/backend
Path: /home/tbenz/git/bslk/idma/idma-pd/mDMA/src/backend
dependencies:
- axi
- common_cells
Expand All @@ -36,7 +36,7 @@ packages:
revision: null
version: null
source:
Path: /home/bsc22h2/bachelor-thesis/mdma/src/package
Path: /home/tbenz/git/bslk/idma/idma-pd/mDMA/src/package
dependencies:
- axi
register_interface:
Expand All @@ -51,15 +51,15 @@ packages:
revision: null
version: null
source:
Path: /home/bsc22h2/bachelor-thesis/mdma/src/backend/../../test
Path: /home/tbenz/git/bslk/idma/idma-pd/mDMA/src/backend/../../test
dependencies:
- axi
- common_cells
- idma_pkg
- register_interface
tech_cells_generic:
revision: aef525b2dc7670525fc293dfc55f167e371b8c35
version: 0.2.10
revision: a9cae21902e75b1434328ecf36f85327ba5717de
version: 0.2.11
source:
Git: https://github.com/pulp-platform/tech_cells_generic.git
dependencies:
Expand Down
28 changes: 27 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@ BENDER ?= bender
PYTHON ?= python3

RTL_CFGS ?= \
gen_rtl_obi.obi.split \
gen_rtl_axi.obi.split \
gen_rtl_obi.axi.split \
gen_rtl_axi.axi.split \
gen_rtl_axi-obi.axi-obi.split \
gen_rtl_axi.axi.combined
gen_rtl_axi_lite.axi_lite.split \
gen_rtl_axi_stream-axi.axi_stream-axi.split \
gen_rtl_axi_stream.axi_stream.split \
gen_rtl_axi-init.axi.split \
gen_rtl_init.obi.split \
gen_rtl_tilelink.tilelink.split \
gen_rtl_tilelink-axi.tilelink-axi.split \
gen_rtl_tilelink-axi-obi-axi_lite-axi_stream-init.obi.split \
gen_rtl_obi.tilelink-axi-axi_lite-axi_stream-obi.split \
gen_rtl_tilelink-axi-axi_lite-axi_stream-init-obi.tilelink-axi-axi_lite-axi_stream-obi.split


# Extracting word nr. $(1) from $(2)-separated list $(3)
pw = $(word $(1), $(subst $(2), ,$(3)))
Expand Down Expand Up @@ -296,6 +307,14 @@ bender-rm:
gen_rtl: $(RTL_CFGS)

gen_rtl_%: util/idma_gen.py Makefile
$(PYTHON) util/idma_gen.py transportlayer \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*)) \
--shifter $(call pw,3,.,$*)
$(PYTHON) util/idma_gen.py legalizer \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*)) \
--shifter $(call pw,3,.,$*)
$(PYTHON) util/idma_gen.py backend \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*)) \
Expand All @@ -306,6 +325,13 @@ gen_rtl_%: util/idma_gen.py Makefile
$(PYTHON) util/idma_gen.py testbench \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*))
$(PYTHON) util/idma_gen.py wavefile \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*)) \
--shifter $(call pw,3,.,$*)
$(PYTHON) util/idma_gen.py bender \
--read-protocols $(subst -, ,$(call pw,1,.,$*)) \
--write-protocols $(subst -, ,$(call pw,2,.,$*))

rtl_clean:
rm -f src/backend/Bender.yml
Expand Down

0 comments on commit 727f154

Please sign in to comment.