Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
41f3772
bender,hw: Bump iDMA and update wrapper
sermazz Aug 12, 2025
5a315e2
hw,tb: Detach DMA from cluster bus, add wide port, test
da-gazzi Jul 2, 2024
f111702
hw,tb: Share HCI shallow intc between (wide) DMA and HWPEs
sermazz Feb 25, 2025
9015107
tb: handle non-word (64-bit bursts) aligned sections
sermazz Feb 13, 2025
62da89c
hw: Parametrize number of EXT ports to TCDM
sermazz Feb 18, 2025
9e4bc0f
package: Change config struct to packed type
sermazz Feb 20, 2025
0ef748d
hw,bender: Fix idma_wrap for updated obi v0.1.3
sermazz Jul 25, 2025
f9ae60a
makefile: Add target to generate iDMA hardware
sermazz Feb 27, 2025
6c6a472
hw: :bug: Fix cluster_id_i tied to 0 in cluster_interco and core_demux
sermazz Mar 6, 2025
24179c0
bender,hw: Bump hci to align ECC and non-ECC HCI interfaces + update …
sermazz Aug 12, 2025
3e48576
makefile: Bump pulp-runtime, regression_tests, and nonfree revs
sermazz Feb 11, 2025
c5a773a
ci,runtime: Disable ECC test in CI + disable HMR in runtime
sermazz Jul 11, 2025
a01279a
tb,bender: Disable ECC and HMR + bump to Neureka without hardcoded ECC
sermazz Aug 12, 2025
4f24ef1
readme: Update cluster diagram
DanielKellerM Oct 22, 2024
9dee98b
up-streaming changes from: d99955ad0883589769ac7a40c5ccc8306ab47090
DanielKellerM Jun 2, 2025
acad4d2
[wip] bump versions
DanielKellerM Jun 3, 2025
e1a8bfb
Update idma_wrap.sv to double byte width for BE_WIDTH
DanielKellerM Jun 4, 2025
4292f1d
[wip] parametrization of wide port
DanielKellerM Jul 23, 2025
c19af4e
Refactor dmac_wrap instantiation to support both wide and narrow port…
DanielKellerM Jul 24, 2025
821a362
makefile: Nonfree, runtime, tests
DanielKellerM Jul 24, 2025
25ec02c
track tip of the branch for nonfree repo, added idma tests in nonfree
DanielKellerM Jul 24, 2025
bdf2a89
fix narrow / wide master mismatch
DanielKellerM Aug 7, 2025
ef22b16
[wip] update TB to parametrize narrow vs wide port
DanielKellerM Aug 7, 2025
0903db8
propagate same variable for consistency
DanielKellerM Aug 7, 2025
ce78cc7
build different tests for using idma and mchan
DanielKellerM Aug 7, 2025
2a785b3
display TB configuration
DanielKellerM Aug 8, 2025
2435fd6
fix: move display to initial block
DanielKellerM Aug 8, 2025
42fc55d
[wip] add support for wide DMA port toggle in Makefile
DanielKellerM Aug 8, 2025
e7ffa78
remove nonfree artifacts; trigger job
DanielKellerM Aug 8, 2025
764220a
unset default
DanielKellerM Aug 8, 2025
e3bb685
avoid removing Bender.lock
DanielKellerM Aug 8, 2025
6fcdfc7
include legacy MCHAN configuration
DanielKellerM Aug 8, 2025
1ea7803
refactor: replace EnableWidePort with Cfg.EnableWidePort for consiste…
DanielKellerM Aug 11, 2025
f2ce6f6
refactor: NB_DMAS no longer overwritten; use macro defined DMA_USE_HW…
DanielKellerM Aug 11, 2025
fca548a
align wave.tcl for gui with new TB; add visible package instantiation…
DanielKellerM Aug 12, 2025
6e6cb91
clean up signals and comments
DanielKellerM Aug 12, 2025
2c3d3c1
wip: update deps in lock file; add HCI filter signal; fix waves to ta…
sermazz Aug 29, 2025
c71caec
add lock for dependencies
DanielKellerM Aug 21, 2025
a920f57
fix some lint problems
DanielKellerM Aug 21, 2025
813d331
fix: initialise submodules. Fixes issue where pulp-nnx was not initia…
DanielKellerM Aug 22, 2025
63a0d27
[WIP] hw,bender: Increase HCI FIFO depth towards HWPE and propagate p…
sermazz Feb 14, 2025
685b926
bender: Sync Bender.lock and Bender.yml
sermazz Aug 28, 2025
e5a8d58
Merge branch 'master' into smazzola/dkeller-rebased
Sep 23, 2026
be01813
[Makefile] Fix nonfree-init
Sep 23, 2026
5510e7d
[tb] Fix hierarchy
Sep 23, 2026
c3f2089
[interconnect_wrap] Increase number of filters if DMA is using hwpe port
Sep 24, 2026
98cfd61
[tb] Enable ECC
Sep 24, 2026
4013d3b
[deps] Bump hci
Sep 24, 2026
08f03ab
[treewide] Support hci's multicycle feature
Sep 30, 2026
7b637d2
[deps] Bump hci
Oct 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ scripts/compile.tcl
regression_tests/
pulp-runtime/
fault_injection_sim/
venv/
.venv/
23 changes: 11 additions & 12 deletions Bender.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ packages:
dependencies:
- common_cells
cluster_peripherals:
revision: 072ddd876c88324ef28856d4b2697424aaa231ce
revision: a3be530fccdcef4733d57163c6d979ff77ed554d
version: null
source:
Git: https://github.com/pulp-platform/cluster_peripherals.git
Expand Down Expand Up @@ -128,7 +128,7 @@ packages:
dependencies:
- common_cells
hci:
revision: 2a5a5081a2b32f1a04e7e28c00d3762d92602b84
revision: a42bd8bbf61eb4700b98d51af1b74603c278239e
version: null
source:
Git: https://github.com/pulp-platform/hci.git
Expand Down Expand Up @@ -159,8 +159,8 @@ packages:
dependencies:
- tech_cells_generic
hwpe-stream:
revision: b3d33afdd27e79bcda1348d0ab5f4afd52c03106
version: 1.9.0
revision: 05cb8303693065812e9d6bfe10976220fb455666
version: 1.10.0
source:
Git: https://github.com/pulp-platform/hwpe-stream.git
dependencies:
Expand All @@ -182,7 +182,7 @@ packages:
revision: 6be43a77c81e86c53e821dfbc618522c375ff28c
version: null
source:
Git: https://github.com/pulp-platform/iDMA.git
Git: https://github.com/pulp-platform/idma.git
dependencies:
- axi
- axi_stream
Expand All @@ -204,15 +204,14 @@ packages:
dependencies:
- common_cells
neureka:
revision: 2e076f7d25cdfba38821ee95595bb27aec53c764
revision: 9edd85ed16861a9b85eabbe87454bd3bdf73c69c
version: null
source:
Git: https://github.com/pulp-platform/neureka.git
dependencies:
- hci
- hwpe-ctrl
- hwpe-stream
- register_interface
- zeroriscy
obi:
revision: 0155fc34e900c7c884e081c0a1114a247937ff69
Expand All @@ -230,7 +229,7 @@ packages:
dependencies:
- axi_slice
redmule:
revision: dbcba6b1efda24dc909ebdd4ace132f798c8c12b
revision: 466bc59a9c5b263b08535a8e6f1d0637a9bcff34
version: null
source:
Git: https://github.com/pulp-platform/redmule.git
Expand All @@ -257,8 +256,8 @@ packages:
- register_interface
- tech_cells_generic
register_interface:
revision: 5daa85d164cf6b54ad061ea1e4c6f3624556e467
version: 0.4.5
revision: 8e8c209ea559d3b54f45cf30fcce95ce70ff5e49
version: 0.4.6
source:
Git: https://github.com/pulp-platform/register_interface.git
dependencies:
Expand All @@ -274,10 +273,10 @@ packages:
dependencies:
- tech_cells_generic
softex:
revision: 11dd29e85d40e29fea0481b471f1c0cc967df1a4
revision: cda21ff7793a481bac079ab28cc5af209621ae45
version: null
source:
Git: https://github.com/belanoa/softex.git
Git: https://github.com/pulp-platform/softex.git
dependencies:
- common_cells
- fpnew
Expand Down
12 changes: 6 additions & 6 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 }
hier-icache: { git: "https://github.com/pulp-platform/hier-icache.git", version: =1.3.0 }
cluster_icache: { git: "https://github.com/pulp-platform/cluster_icache.git", version: =0.2.0 }
cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", rev: "072ddd876c88324ef28856d4b2697424aaa231ce" }
cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", rev: "a3be530fccdcef4733d57163c6d979ff77ed554d" }
axi: { git: "https://github.com/pulp-platform/axi.git", version: =0.39.8 }
timer_unit: { git: "https://github.com/pulp-platform/timer_unit.git", version: =1.0.2 }
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: =1.38.0 }
Expand All @@ -31,12 +31,13 @@ dependencies:
cv32e40p: { git: "https://github.com/pulp-platform/cv32e40p.git", rev: astral-v1.0 }
ibex: { git: "https://github.com/pulp-platform/ibex.git", rev: "pulpissimo-v6.1.2" }
scm: { git: "https://github.com/pulp-platform/scm.git", rev: v1.2.0 }
hci: { git: "https://github.com/pulp-platform/hci.git", rev: 2a5a508 } # yt/wen-filter
hci: { git: "https://github.com/pulp-platform/hci.git", rev: a42bd8bbf61eb4700b98d51af1b74603c278239e }
register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.4 }
redundancy_cells: { git: "https://github.com/pulp-platform/redundancy_cells.git", rev: 6ba6f41 } # yt/redmule-v2
redmule: { git: "https://github.com/pulp-platform/redmule.git", version: =2.0.4 }
neureka: { git: "https://github.com/pulp-platform/neureka.git", rev: f4e131c } # branch: lg/astral-v1.1
softex: { git: "https://github.com/belanoa/softex.git" , rev: astral-v1.0 }
redmule: { git: "https://github.com/pulp-platform/redmule.git", rev: 466bc59a9c5b263b08535a8e6f1d0637a9bcff34 } # branch: yt/hci-structs
neureka: { git: "https://github.com/pulp-platform/neureka.git", rev: 9edd85ed16861a9b85eabbe87454bd3bdf73c69c } # branch: yt/hci-structs
softex: { git: "https://github.com/belanoa/softex.git" , rev: cda21ff7793a481bac079ab28cc5af209621ae45 } # branch: master
obi: { git: "https://github.com/pulp-platform/obi.git", rev: v0.1.3 }

export_include_dirs:
- include
Expand Down Expand Up @@ -96,4 +97,3 @@ sources:
files:
- nonfree/gf12/sourcecode/tc_sram.sv
- nonfree/gf12/sourcecode/tc_clk.sv

71 changes: 70 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ QUESTA ?=
endif

BENDER ?= bender
PYTHON ?= python3

BENDER_SUPPRESS_WARNINGS ?= E24
export BENDER_SUPPRESS_WARNINGS
Expand All @@ -37,6 +38,12 @@ REGRESSIONS := $(ROOT_DIR)/regression_tests
VLOG_ARGS_LINT += -suppress vlog-2583 -suppress vlog-13314 -suppress vlog-13233 \"+incdir+$(shell pwd)/include\"
VLOG_ARGS += -suppress vlog-2583 -suppress vlog-13314 -suppress vlog-13233 -timescale \"1ns / 1ps\" \"+incdir+$(shell pwd)/include\"

# TB's wide DMA port toggle override
export TB_ENABLE_WIDE_PORT
ifneq ($(strip $(TB_ENABLE_WIDE_PORT)),)
VLOG_ARGS += +define+TB_ENABLE_WIDE_PORT=$(TB_ENABLE_WIDE_PORT)
endif

define generate_vsim
echo 'set ROOT [file normalize [file dirname [info script]]/$3]' > $1
$(BENDER) script vsim --vlog-arg="$(VLOG_ARGS)" $2 | grep -v "set ROOT" >> $1
Expand All @@ -51,6 +58,7 @@ NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:pulp-restricted/pulp-cluster-nonfree.gi
NONFREE_COMMIT ?= aad59d36bfef6b74f03ffed28903a44cb86b9497

nonfree-init:
rm -rf nonfree;
git clone $(NONFREE_REMOTE) nonfree
cd nonfree && git checkout $(NONFREE_COMMIT)

Expand All @@ -72,6 +80,8 @@ Bender.lock:
$(BENDER) checkout
touch Bender.lock

update:
$(BENDER) update

######
# SW #
Expand All @@ -88,33 +98,85 @@ PULP_RUNTIME_REMOTE ?= https://github.com/pulp-platform/pulp-runtime.git
PULP_RUNTIME_COMMIT ?= 3b48b0c6872cc01ba169a2c9c886ebb815d22cdc

pulp-runtime:
rm -rf $@
git clone $(PULP_RUNTIME_REMOTE) $@
cd $@ && git checkout $(PULP_RUNTIME_COMMIT)

lock-runtime:
@git -C $(PULP_RUNTIME_DIR) rev-parse HEAD > $(PULP_RUNTIME_LOCK_FILE) && \
echo "Locked pulp-runtime to $$(cat $(PULP_RUNTIME_LOCK_FILE))"

unlock-runtime:
@rm -f $(PULP_RUNTIME_LOCK_FILE) && echo "Unlocked pulp-runtime (will track $(PULP_RUNTIME_REF))"

## Clone fault injection scripts
FAULT_SIM_REMOTE ?= https://github.com/pulp-platform/InjectaFault.git
FAULT_SIM_COMMIT ?= 84ddcff # branch: rt/rename-var

fault_injection_sim:
rm -rf $@
git clone $(FAULT_SIM_REMOTE) $@
cd $@ && git checkout $(FAULT_SIM_COMMIT)

lock-fault-sim:
@git -C $(FAULT_SIM_DIR) rev-parse HEAD > $(FAULT_SIM_LOCK_FILE) && \
echo "Locked fault_injection_sim to $$(cat $(FAULT_SIM_LOCK_FILE))"

unlock-fault-sim:
@rm -f $(FAULT_SIM_LOCK_FILE) && echo "Unlocked fault_injection_sim (will track $(FAULT_SIM_BRANCH))"

## Clone regression tests
REGRESSION_TESTS_REMOTE ?= https://github.com/pulp-platform/regression_tests.git
REGRESSION_TESTS_COMMIT ?= f173611e3e8f15e7f526d40712135e7ff976f805 # branch: lg/upstream

regression_tests:
rm -rf $@
git clone $(REGRESSION_TESTS_REMOTE) $@
cd $@ && git checkout $(REGRESSION_TESTS_COMMIT)
cd $@ && git submodule update --init --recursive

lock-regression-tests:
@git -C $(REGRESSION_TESTS_DIR) rev-parse HEAD > $(REGRESSION_TESTS_LOCK_FILE) && \
echo "Locked regression_tests to $$(cat $(REGRESSION_TESTS_LOCK_FILE))"

unlock-regression-tests:
@rm -f $(REGRESSION_TESTS_LOCK_FILE) && echo "Unlocked regression_tests (will track $(REGRESSION_TESTS_BRANCH))"

#########################
# Hardware dependencies #
#########################

# Set dependency paths only if dependencies have already been cloned
# This avoids running `bender checkout` at every make command
ifeq ($(shell test -d $(ROOT_DIR)/.bender || echo 1),)
IDMA_ROOT := $(shell $(BENDER) path idma)
endif

# Fall back to safe defaults if dependencies are not cloned yet
IDMA_ROOT ?= .

# Python requirements (version and packages) coming from iDMA repository
gen_idma_hw: $(IDMA_ROOT)/.idma_generated
$(IDMA_ROOT)/.idma_generated:
@$(PYTHON) --version >/dev/null 2>&1 || { echo "ERROR: Python not found. Python 3.8 or higher is required."; exit 1; } && \
$(PYTHON) -c "import sys; assert sys.version_info >= (3, 8)" || { echo "ERROR: Python version must be 3.8 or higher"; exit 1; } && \
rm -rf venv && $(PYTHON) -m venv venv && \
. venv/bin/activate && \
pip install --upgrade pip && \
pip install -r $(IDMA_ROOT)/requirements.txt && \
make -C $(IDMA_ROOT) idma_hw_all && \
touch $@

clean_idma_hw:
make -C $(IDMA_ROOT) idma_clean_all

########################
# Build and simulation #
########################

.PHONY: sim-clean compile build run

sim-clean:
sim-clean: clean_idma_hw
rm -rf scripts/compile.tcl
rm -rf work

Expand Down Expand Up @@ -184,6 +246,13 @@ run:
$(VSIM) +permissive -suppress 3053 -suppress 8885 -lib $(library) +MAX_CYCLES=$(max_cycles) +UVM_TESTNAME=$(test_case) +APP=$(elf-bin) +notimingchecks +nospecify -t 1ps \
${top_level}_tb_optimized +permissive-off ++$(elf-bin) ++$(target-options) ++$(cl-bin) | tee sim.log

.PHONY: clean

clean:
rm -rf scripts/synth-compile.tcl
rm -rf scripts/compile.tcl
rm -rf transcript
rm -rf *.log
####################
# Regression tests #
####################
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PULP Cluster

![pulp_cluster schematic](doc/PULP_CLUSTER.png)
![pulp_cluster schematic](doc/PULP_CLUSTER_updateOct2024.png)

The `pulp_cluster` repository contains the structure of the cluster subsystem
used in PULP chips. For more details on the internal architecture, see the
Expand Down
10 changes: 10 additions & 0 deletions bender-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ common_defs += -D CLUSTER_ALIAS
common_defs += -D USE_PULP_PARAMETERS

common_targs += -t rtl
# DMA configuration
DMA_TYPE ?= idma

ifeq ($(DMA_TYPE),mchan)
common_targs += -t mchan
common_defs += -D TARGET_MCHAN
else
# Default to iDMA
endif

common_targs += -t cluster_standalone
common_targs += -t scm_use_fpga_scm
common_targs += -t cv32e40p_use_ff_regfile
Loading
Loading