From a453ac05107f2e60f5540e5ae2d378731430a7b7 Mon Sep 17 00:00:00 2001 From: gabbo993 Date: Thu, 8 Jan 2026 14:40:52 +0100 Subject: [PATCH 01/16] Update some dependencies from Bender.local of Security Island (#7) --- Bender.local | 21 +++++++++++++++++++++ Bender.lock | 47 ++++++++++++++++++++++++----------------------- Bender.yml | 28 ++++++++++++++-------------- 3 files changed, 59 insertions(+), 37 deletions(-) create mode 100644 Bender.local diff --git a/Bender.local b/Bender.local new file mode 100644 index 00000000..f46dbcf8 --- /dev/null +++ b/Bender.local @@ -0,0 +1,21 @@ +overrides: + axi2mem: { git: "https://github.com/pulp-platform/axi2mem.git", version: =1.0.2 } + axi2per: { git: "https://github.com/pulp-platform/axi2per.git", version: =1.0.2 } + per2axi: { git: "https://github.com/pulp-platform/per2axi.git", version: =1.0.5 } + cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } + mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } + obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } + cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", version: =2.2.0 } + 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 } + tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: =0.2.13 } + scm: { git: "https://github.com/pulp-platform/scm.git", version: =1.2.0 } + register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: =0.4.7 } + redmule: { git: "https://github.com/pulp-platform/redmule.git", version: =2.0.4 } + common_cells: { git: "https://github.com/FondazioneChipsIT/common_cells.git", rev: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 } # gl/fix_define + hci: { git: "https://github.com/FondazioneChipsIT/hci.git", rev: 3e63936991569d0b1e315d6914478937b37bb338 } + cv32e40p: { git: "https://github.com/pulp-platform/cv32e40p.git", rev: astral-v1.0 } + redundancy_cells: { git: "https://github.com/pulp-platform/redundancy_cells.git", rev: 6ba6f41 } # yt/redmule-v2 + fpnew: { git: "https://github.com/pulp-platform/cvfpu.git", rev: pulp-v0.1.3 } + hwpe-stream: { git: "https://github.com/pulp-platform/hwpe-stream.git", version: =1.9.0 } + hwpe-ctrl: { git: "https://github.com/pulp-platform/hwpe-ctrl.git", rev: 3690a3c } \ No newline at end of file diff --git a/Bender.lock b/Bender.lock index 34ed4ae2..9428d753 100644 --- a/Bender.lock +++ b/Bender.lock @@ -45,13 +45,14 @@ packages: dependencies: - common_cells cluster_icache: - revision: 64e21ae455bbdde850c4df13bef86ea55ac42537 - version: 0.2.0 + revision: 57ffb22066171d89974bdec240bad13f5efac9de + version: null source: - Git: https://github.com/pulp-platform/cluster_icache.git + Git: https://github.com/FondazioneChipsIT/cluster_icache.git dependencies: - axi - common_cells + - register_interface - scm - tech_cells_generic cluster_interconnect: @@ -69,10 +70,10 @@ packages: dependencies: - hci common_cells: - revision: 9afda9abb565971649c2aa0985639c096f351171 - version: 1.38.0 + revision: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 + version: null source: - Git: https://github.com/pulp-platform/common_cells.git + Git: https://github.com/FondazioneChipsIT/common_cells.git dependencies: - common_verification - tech_cells_generic @@ -105,15 +106,15 @@ packages: dependencies: - common_cells flex-v: - revision: e9355c2f6ec4c105abdff39489e5d1be93bc4374 + revision: f22937733fd058550ef847ddbf1381e821f0f9d2 version: null source: - Git: https://github.com/pulp-platform/flex-v.git + Git: https://github.com/FondazioneChipsIT/flex-v.git dependencies: - fpnew - tech_cells_generic fpnew: - revision: e5aa6a01b5bbe1675c3aa8872e1203413ded83d1 + revision: a8e0cba6dd50f357ece73c2c955d96efc3c6c315 version: null source: Git: https://github.com/pulp-platform/cvfpu.git @@ -128,10 +129,10 @@ packages: dependencies: - common_cells hci: - revision: 2a5a5081a2b32f1a04e7e28c00d3762d92602b84 + revision: 3e63936991569d0b1e315d6914478937b37bb338 version: null source: - Git: https://github.com/pulp-platform/hci.git + Git: https://github.com/FondazioneChipsIT/hci.git dependencies: - cluster_interconnect - common_cells @@ -140,10 +141,10 @@ packages: - redundancy_cells - register_interface hier-icache: - revision: 7243834d2407ca23cff583d57641c84b982bd9bc - version: 1.3.0 + revision: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc + version: null source: - Git: https://github.com/pulp-platform/hier-icache.git + Git: https://github.com/FondazioneChipsIT/hier-icache.git dependencies: - axi - axi_slice @@ -204,7 +205,7 @@ packages: dependencies: - common_cells neureka: - revision: 2e076f7d25cdfba38821ee95595bb27aec53c764 + revision: f4e131c86205d37882cf02ea4dd3bd141ef32d86 version: null source: Git: https://github.com/pulp-platform/neureka.git @@ -230,8 +231,8 @@ packages: dependencies: - axi_slice redmule: - revision: dbcba6b1efda24dc909ebdd4ace132f798c8c12b - version: null + revision: 78696fb0d6d429bdad2e38740792648d44095605 + version: 2.0.4 source: Git: https://github.com/pulp-platform/redmule.git dependencies: @@ -257,8 +258,8 @@ packages: - register_interface - tech_cells_generic register_interface: - revision: 5daa85d164cf6b54ad061ea1e4c6f3624556e467 - version: 0.4.5 + revision: d6e1d4cdaab7870f4faf3f88a1c788eaf5ac129d + version: 0.4.7 source: Git: https://github.com/pulp-platform/register_interface.git dependencies: @@ -274,10 +275,10 @@ packages: dependencies: - tech_cells_generic softex: - revision: 11dd29e85d40e29fea0481b471f1c0cc967df1a4 + revision: a622550d91dd55bf30bc359e10b2c70cae3042d6 version: null source: - Git: https://github.com/belanoa/softex.git + Git: https://github.com/FondazioneChipsIT/softex.git dependencies: - common_cells - fpnew @@ -293,8 +294,8 @@ packages: dependencies: - common_verification timer_unit: - revision: 4c69615c89db9397a9747d6f6d6a36727854f0bc - version: 1.0.3 + revision: 3f4ee3e5b3875a473242de5d0c3ebb5a0fe4b8db + version: 1.0.2 source: Git: https://github.com/pulp-platform/timer_unit.git dependencies: [] diff --git a/Bender.yml b/Bender.yml index 393903e4..14f20567 100644 --- a/Bender.yml +++ b/Bender.yml @@ -12,31 +12,31 @@ package: - "Michael Rogenmoser " dependencies: - axi2mem: { git: "https://github.com/pulp-platform/axi2mem.git", rev: v1.0.2 } - axi2per: { git: "https://github.com/pulp-platform/axi2per.git", rev: v1.0.2 } - per2axi: { git: "https://github.com/pulp-platform/per2axi.git", rev: v1.0.5 } - cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", rev: v1.3.0 } + axi2mem: { git: "https://github.com/pulp-platform/axi2mem.git", version: =1.0.2 } + axi2per: { git: "https://github.com/pulp-platform/axi2per.git", version: =1.0.2 } + per2axi: { git: "https://github.com/pulp-platform/per2axi.git", version: =1.0.5 } + cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } event_unit_flex: { git: "https://github.com/pulp-platform/event_unit_flex.git", rev: astral-v1.0 } mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - idma: { git: "https://github.com/pulp-platform/iDMA.git", rev: 6be43a77c81e86c53e821dfbc618522c375ff28c } #devel + idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: 4e2aad04a328f04ef494bd435f02b13605c9145f } 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" } + hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define + cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define + cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", version: =2.2.0 } 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 } + common_cells: { git: "https://github.com/FondazioneChipsIT/common_cells.git", rev: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 } # gl/fix_define tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: =0.2.3 } - flex-v: { git: "https://github.com/pulp-platform/flex-v.git", rev: e9355c2f6ec4c105abdff39489e5d1be93bc4374 } + flex-v: { git: "https://github.com/FondazioneChipsIT/flex-v.git", rev: f22937733fd058550ef847ddbf1381e821f0f9d2 } # gl/fix_pkg_import 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 - register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.4 } + scm: { git: "https://github.com/pulp-platform/scm.git", version: =1.2.0 } + hci: { git: "https://github.com/FondazioneChipsIT/hci.git", rev: 3e63936991569d0b1e315d6914478937b37bb338 } + register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: =0.4.7 } 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 } + softex: { git: "https://github.com/FondazioneChipsIT/softex.git", rev: a622550d91dd55bf30bc359e10b2c70cae3042d6 } # gl/fix_pkg_import export_include_dirs: - include From 65515e226a53b07de44b0c53af60d8f320c71540 Mon Sep 17 00:00:00 2001 From: RiccardoGandolfi Date: Thu, 8 Jan 2026 15:28:41 +0100 Subject: [PATCH 02/16] Updates on iDMA and cluster for Burst Splitting parametrization (#9) * Fixes for QuestaOne simulation without gui * Updateed README.md with QuestaOne flow * Assiging undriven signals to 0 * Minor udpate on iDMA version --> cleaning some Xs * Added axi_burst_splitter module * Updated iDMA commit --> removed useless registers + remapped registers in pulp-runtime * Revert "Added axi_burst_splitter module" This reverts commit 670057e85ac738741a7e51351cd54e645b1877d1. * Added Burst_len parameter to iDMA + update Bender entry for iDMA * Updated cluster tb with new value for DMAs burst length parameter * Updated hci commit + updated runtime commit (fix on pi_l2_malloc) + aligned memory sizes to cluster instance in pulp-open * Updated iDMA reference --------- Co-authored-by: RiccardoGandolfi --- Bender.lock | 2 +- Bender.yml | 2 +- Makefile | 4 ++-- rtl/idma_wrap.sv | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Bender.lock b/Bender.lock index 9428d753..534f8a06 100644 --- a/Bender.lock +++ b/Bender.lock @@ -180,7 +180,7 @@ packages: Git: https://github.com/pulp-platform/icache-intc.git dependencies: [] idma: - revision: 6be43a77c81e86c53e821dfbc618522c375ff28c + revision: d6249da5ea3ce4fa3cdc184fda2571d532731aa8 version: null source: Git: https://github.com/pulp-platform/iDMA.git diff --git a/Bender.yml b/Bender.yml index 14f20567..441879dc 100644 --- a/Bender.yml +++ b/Bender.yml @@ -18,7 +18,7 @@ dependencies: cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } event_unit_flex: { git: "https://github.com/pulp-platform/event_unit_flex.git", rev: astral-v1.0 } mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: 4e2aad04a328f04ef494bd435f02b13605c9145f } + idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: d6249da5ea3ce4fa3cdc184fda2571d532731aa8 } obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define diff --git a/Makefile b/Makefile index 215d5f0b..8de210d4 100644 --- a/Makefile +++ b/Makefile @@ -84,8 +84,8 @@ sw-clean: @rm -rf pulp-runtime fault_injection_sim regression_tests ## Clone pulp-runtime as SW stack -PULP_RUNTIME_REMOTE ?= https://github.com/pulp-platform/pulp-runtime.git -PULP_RUNTIME_COMMIT ?= 3b48b0c6872cc01ba169a2c9c886ebb815d22cdc +PULP_RUNTIME_REMOTE ?= https://github.com/FondazioneChipsIT/pulp-runtime.git +PULP_RUNTIME_COMMIT ?= 83919f7c7b8c2dbab5533f5114b4f8bd633349fb # branch: remap_iDMA_registers pulp-runtime: git clone $(PULP_RUNTIME_REMOTE) $@ diff --git a/rtl/idma_wrap.sv b/rtl/idma_wrap.sv index 26c787d9..c4b4b13e 100644 --- a/rtl/idma_wrap.sv +++ b/rtl/idma_wrap.sv @@ -507,7 +507,7 @@ module dmac_wrap #( .HardwareLegalizer ( 1'b1 ), .RejectZeroTransfers ( 1'b1 ), .ErrorHandling ( 1'b0 ), - .BurstLen ( IDMA_BURST_LENGTH ) + .Burst_len ( IDMA_BURST_LENGTH ) ) i_idma_backend_r_obi_rw_init_w_axi ( .clk_i ( datapath_clk_gated ), .rst_ni ( rst_ni ), From 7b126cd66d93e8dd98c3426c115746183e66f44c Mon Sep 17 00:00:00 2001 From: RiccardoGandolfi Date: Fri, 9 Jan 2026 12:20:28 +0100 Subject: [PATCH 03/16] Updated iDMA commit: re-added user signal to iDMA req structure (#12) --- Bender.lock | 2 +- Bender.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bender.lock b/Bender.lock index 534f8a06..940fc9ff 100644 --- a/Bender.lock +++ b/Bender.lock @@ -180,7 +180,7 @@ packages: Git: https://github.com/pulp-platform/icache-intc.git dependencies: [] idma: - revision: d6249da5ea3ce4fa3cdc184fda2571d532731aa8 + revision: 2e637216e0455d77706a50d0639b86891e2a83aa version: null source: Git: https://github.com/pulp-platform/iDMA.git diff --git a/Bender.yml b/Bender.yml index 441879dc..d204e620 100644 --- a/Bender.yml +++ b/Bender.yml @@ -18,7 +18,7 @@ dependencies: cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } event_unit_flex: { git: "https://github.com/pulp-platform/event_unit_flex.git", rev: astral-v1.0 } mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: d6249da5ea3ce4fa3cdc184fda2571d532731aa8 } + idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: 2e637216e0455d77706a50d0639b86891e2a83aa } obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define From ed0f8eca3631ec575ee078fe58fb1ea53f53be06 Mon Sep 17 00:00:00 2001 From: Yvan Tortorella <48508508+yvantor@users.noreply.github.com> Date: Sat, 10 Jan 2026 10:28:42 +0100 Subject: [PATCH 04/16] Update iDMA version and CHANGELOG (#13) --- Bender.yml | 2 +- CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bender.yml b/Bender.yml index d204e620..ad9f01a4 100644 --- a/Bender.yml +++ b/Bender.yml @@ -18,7 +18,7 @@ dependencies: cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } event_unit_flex: { git: "https://github.com/pulp-platform/event_unit_flex.git", rev: astral-v1.0 } mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: 2e637216e0455d77706a50d0639b86891e2a83aa } + idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: ChipsIt-v0.0.0 } obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define diff --git a/CHANGELOG.md b/CHANGELOG.md index 4543a057..63586ac0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## v0.0.0 +## ChipsIt-v0.0.0 ### Added * iDMA: integrated iDMA wrap supporting up to 3D transfers with 2 physical channels and parametric burst length From ae2129d502be91bd875b7b55da178be20b598042 Mon Sep 17 00:00:00 2001 From: RiccardoGandolfi Date: Wed, 25 Feb 2026 16:13:12 +0100 Subject: [PATCH 05/16] [IDMA CLOCK GATING] Added clock gating features in iDMA + updated pulp-runtime + updated regression tests * [IDMA_CLOCK_GATING] First version of explicit clock gating in idma_wrap.sv * [IDMA_CLOCK_GATING] Fixed clock gating (works also for enqueued mode) * [IDMA_CLOCK_GATING] Updated rtl + updated entry for cluster_peripherals Chips-It fork * [IDMA_CLOCK_GATING] Clean-up on signal names + removed datapath clock gating + updated cluster_peripherals entry * [IDMA CLOCK GATING] Updated dmac_wrap.sv with split clock gating: datapath & frontend * [IDMA CLOCK GATING] Fix for hw-controlled datapath clock gating * [IDMA CLOCK GATING] Moved sw-controlled iDMA clock gating cell from wrap to cluster + clean-up on clock gating logic * [MAKEFILE] Updated commits for regression tests and pulp runtime --> updates for iDMA clock gating * [MAKEFILE][IDMA CLOCK GATING] Updated commits for regression tests and pulp runtime after updating iDMA with clock gating features --- Bender.lock | 4 ++-- Bender.yml | 2 +- Makefile | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Bender.lock b/Bender.lock index 940fc9ff..9a84c1ce 100644 --- a/Bender.lock +++ b/Bender.lock @@ -63,10 +63,10 @@ packages: dependencies: - common_cells cluster_peripherals: - revision: 072ddd876c88324ef28856d4b2697424aaa231ce + revision: 6e55d0a74ff33ce9aac9fcd44ad702f323ace644 version: null source: - Git: https://github.com/pulp-platform/cluster_peripherals.git + Git: https://github.com/FondazioneChipsIT/cluster_peripherals.git dependencies: - hci common_cells: diff --git a/Bender.yml b/Bender.yml index ad9f01a4..2742427f 100644 --- a/Bender.yml +++ b/Bender.yml @@ -22,7 +22,7 @@ dependencies: obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define - cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", version: =2.2.0 } + cluster_peripherals: { git: "https://github.com/FondazioneChipsIT/cluster_peripherals.git", rev: "6e55d0a74ff33ce9aac9fcd44ad702f323ace644" } # rg/idma_clock_gating 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/FondazioneChipsIT/common_cells.git", rev: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 } # gl/fix_define diff --git a/Makefile b/Makefile index 8de210d4..74e0318f 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,7 @@ sw-clean: ## Clone pulp-runtime as SW stack PULP_RUNTIME_REMOTE ?= https://github.com/FondazioneChipsIT/pulp-runtime.git -PULP_RUNTIME_COMMIT ?= 83919f7c7b8c2dbab5533f5114b4f8bd633349fb # branch: remap_iDMA_registers +PULP_RUNTIME_COMMIT ?= 9bd23d2b2b6b6c74fc26a3ab3402fbebc589dace # branch: chips-it pulp-runtime: git clone $(PULP_RUNTIME_REMOTE) $@ @@ -100,8 +100,8 @@ fault_injection_sim: cd $@ && git checkout $(FAULT_SIM_COMMIT) ## Clone regression tests -REGRESSION_TESTS_REMOTE ?= https://github.com/pulp-platform/regression_tests.git -REGRESSION_TESTS_COMMIT ?= f173611e3e8f15e7f526d40712135e7ff976f805 # branch: lg/upstream +REGRESSION_TESTS_REMOTE ?= https://github.com/FondazioneChipsIT/regression_tests.git +REGRESSION_TESTS_COMMIT ?= dd41d893ee371df7407ce2c0128d2d3a45c4ec71 # branch: chips-it regression_tests: git clone $(REGRESSION_TESTS_REMOTE) $@ From 4a35465319d62c304eb776ea6c3660080887567d Mon Sep 17 00:00:00 2001 From: Luigi Ghionda Date: Wed, 4 Mar 2026 00:00:01 +0100 Subject: [PATCH 06/16] [CI] Add CI --- .github/workflows/gitlab-ci.yml | 19 +++++++------------ .gitlab-ci.yml | 6 ++++-- Makefile | 4 ++-- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/gitlab-ci.yml b/.github/workflows/gitlab-ci.yml index 45b3e4a1..8b7298d8 100644 --- a/.github/workflows/gitlab-ci.yml +++ b/.github/workflows/gitlab-ci.yml @@ -9,19 +9,14 @@ name: gitlab-ci on: [ push, pull_request, workflow_dispatch ] jobs: - - check: + gitlab-ci: runs-on: ubuntu-latest steps: - - - name: Mirror and check - uses: pulp-platform/pulp-actions/gitlab-ci@v2 + - name: Check Gitlab CI + uses: pulp-platform/pulp-actions/gitlab-ci@v2.4.1 # update version as needed, not autoupdated # Skip on forks or pull requests from forks due to missing secrets. - if: > - github.repository == 'pulp-platform/pulp_cluster' && - (github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name == github.repository) + if: github.repository == 'FondazioneChipsIT/pulp_cluster' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) with: - domain: iis-git.ee.ethz.ch - repo: github-mirror/pulp_cluster - token: ${{ secrets.GITLAB_TOKEN }} + domain: gitlab.chips.it + repo: digitalresearchline/githubmirrors/pulp_cluster + token: ${{ secrets.GITLAB_TOKEN }} \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32c1cb3c..90dc4724 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,13 +13,15 @@ init: stage: nonfree script: make nonfree-init artifacts: - paths: [ nonfree/ci.yml ] + paths: [ nonfree/.gitlab-ci.yml ] subpipe: stage: nonfree needs: [ init ] + variables: + PARENT_PIPELINE_SOURCE: $CI_PIPELINE_SOURCE trigger: include: - - artifact: nonfree/ci.yml + - artifact: nonfree/.gitlab-ci.yml job: init strategy: depend diff --git a/Makefile b/Makefile index 74e0318f..069aef35 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,8 @@ endef # Nonfree components # ###################### -NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:pulp-restricted/pulp-cluster-nonfree.git -NONFREE_COMMIT ?= aad59d36bfef6b74f03ffed28903a44cb86b9497 +NONFREE_REMOTE ?= git@gitlab.chips.it:digitalresearchline/chips-restricted/pulp-cluster-nonfree.git +NONFREE_COMMIT ?= 40971cff1fb9c0c2c8064bf3d3ca79dce1ce4cdc nonfree-init: git clone $(NONFREE_REMOTE) nonfree From 6cdfbf6e3fec3025d90acb969ea1db55ddb9475f Mon Sep 17 00:00:00 2001 From: Luigi Ghionda Date: Tue, 31 Mar 2026 00:41:07 +0200 Subject: [PATCH 07/16] [MAKEFILE] Bump regression_tests to fix idma_{3d,2d} and add idma tests to CI --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 069aef35..ee051f2d 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ endef ###################### NONFREE_REMOTE ?= git@gitlab.chips.it:digitalresearchline/chips-restricted/pulp-cluster-nonfree.git -NONFREE_COMMIT ?= 40971cff1fb9c0c2c8064bf3d3ca79dce1ce4cdc +NONFREE_COMMIT ?= 05c9c686130a51302091df5676cbf7a13c298f5e nonfree-init: git clone $(NONFREE_REMOTE) nonfree @@ -101,7 +101,7 @@ fault_injection_sim: ## Clone regression tests REGRESSION_TESTS_REMOTE ?= https://github.com/FondazioneChipsIT/regression_tests.git -REGRESSION_TESTS_COMMIT ?= dd41d893ee371df7407ce2c0128d2d3a45c4ec71 # branch: chips-it +REGRESSION_TESTS_COMMIT ?= a795d6a318c5aa5842e61e2e2daf2d2c6cb89454 # branch: chips-it regression_tests: git clone $(REGRESSION_TESTS_REMOTE) $@ From 758b697b1dbbbd1beee5342c0080b255d0c38e5f Mon Sep 17 00:00:00 2001 From: rgandolfi Date: Thu, 21 May 2026 12:45:45 +0200 Subject: [PATCH 08/16] [BENDER] Nuke the Bender.local and restore .lock and .yml entries --- Bender.local | 21 --------------------- Bender.lock | 40 ++++++++++++++++++++-------------------- Bender.yml | 18 +++++++++--------- 3 files changed, 29 insertions(+), 50 deletions(-) delete mode 100644 Bender.local diff --git a/Bender.local b/Bender.local deleted file mode 100644 index f46dbcf8..00000000 --- a/Bender.local +++ /dev/null @@ -1,21 +0,0 @@ -overrides: - axi2mem: { git: "https://github.com/pulp-platform/axi2mem.git", version: =1.0.2 } - axi2per: { git: "https://github.com/pulp-platform/axi2per.git", version: =1.0.2 } - per2axi: { git: "https://github.com/pulp-platform/per2axi.git", version: =1.0.5 } - cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } - mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } - cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", version: =2.2.0 } - 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 } - tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: =0.2.13 } - scm: { git: "https://github.com/pulp-platform/scm.git", version: =1.2.0 } - register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: =0.4.7 } - redmule: { git: "https://github.com/pulp-platform/redmule.git", version: =2.0.4 } - common_cells: { git: "https://github.com/FondazioneChipsIT/common_cells.git", rev: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 } # gl/fix_define - hci: { git: "https://github.com/FondazioneChipsIT/hci.git", rev: 3e63936991569d0b1e315d6914478937b37bb338 } - cv32e40p: { git: "https://github.com/pulp-platform/cv32e40p.git", rev: astral-v1.0 } - redundancy_cells: { git: "https://github.com/pulp-platform/redundancy_cells.git", rev: 6ba6f41 } # yt/redmule-v2 - fpnew: { git: "https://github.com/pulp-platform/cvfpu.git", rev: pulp-v0.1.3 } - hwpe-stream: { git: "https://github.com/pulp-platform/hwpe-stream.git", version: =1.9.0 } - hwpe-ctrl: { git: "https://github.com/pulp-platform/hwpe-ctrl.git", rev: 3690a3c } \ No newline at end of file diff --git a/Bender.lock b/Bender.lock index 9a84c1ce..9ac1dff7 100644 --- a/Bender.lock +++ b/Bender.lock @@ -45,10 +45,10 @@ packages: dependencies: - common_cells cluster_icache: - revision: 57ffb22066171d89974bdec240bad13f5efac9de - version: null + revision: 64e21ae455bbdde850c4df13bef86ea55ac42537 + version: 0.2.0 source: - Git: https://github.com/FondazioneChipsIT/cluster_icache.git + Git: https://github.com/pulp-platform/cluster_icache.git dependencies: - axi - common_cells @@ -70,10 +70,10 @@ packages: dependencies: - hci common_cells: - revision: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 - version: null + revision: 9afda9abb565971649c2aa0985639c096f351171 + version: 1.38.0 source: - Git: https://github.com/FondazioneChipsIT/common_cells.git + Git: https://github.com/pulp-platform/common_cells.git dependencies: - common_verification - tech_cells_generic @@ -106,15 +106,15 @@ packages: dependencies: - common_cells flex-v: - revision: f22937733fd058550ef847ddbf1381e821f0f9d2 + revision: e9355c2f6ec4c105abdff39489e5d1be93bc4374 version: null source: - Git: https://github.com/FondazioneChipsIT/flex-v.git + Git: https://github.com/pulp-platform/flex-v.git dependencies: - fpnew - tech_cells_generic fpnew: - revision: a8e0cba6dd50f357ece73c2c955d96efc3c6c315 + revision: e5aa6a01b5bbe1675c3aa8872e1203413ded83d1 version: null source: Git: https://github.com/pulp-platform/cvfpu.git @@ -132,7 +132,7 @@ packages: revision: 3e63936991569d0b1e315d6914478937b37bb338 version: null source: - Git: https://github.com/FondazioneChipsIT/hci.git + Git: https://github.com/pulp-platform/hci.git dependencies: - cluster_interconnect - common_cells @@ -141,10 +141,10 @@ packages: - redundancy_cells - register_interface hier-icache: - revision: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc - version: null + revision: 7243834d2407ca23cff583d57641c84b982bd9bc + version: 1.3.0 source: - Git: https://github.com/FondazioneChipsIT/hier-icache.git + Git: https://github.com/pulp-platform/hier-icache.git dependencies: - axi - axi_slice @@ -205,7 +205,7 @@ packages: dependencies: - common_cells neureka: - revision: f4e131c86205d37882cf02ea4dd3bd141ef32d86 + revision: 2e076f7d25cdfba38821ee95595bb27aec53c764 version: null source: Git: https://github.com/pulp-platform/neureka.git @@ -231,8 +231,8 @@ packages: dependencies: - axi_slice redmule: - revision: 78696fb0d6d429bdad2e38740792648d44095605 - version: 2.0.4 + revision: dbcba6b1efda24dc909ebdd4ace132f798c8c12b + version: null source: Git: https://github.com/pulp-platform/redmule.git dependencies: @@ -275,10 +275,10 @@ packages: dependencies: - tech_cells_generic softex: - revision: a622550d91dd55bf30bc359e10b2c70cae3042d6 + revision: 11dd29e85d40e29fea0481b471f1c0cc967df1a4 version: null source: - Git: https://github.com/FondazioneChipsIT/softex.git + Git: https://github.com/belanoa/softex.git dependencies: - common_cells - fpnew @@ -294,8 +294,8 @@ packages: dependencies: - common_verification timer_unit: - revision: 3f4ee3e5b3875a473242de5d0c3ebb5a0fe4b8db - version: 1.0.2 + revision: 4c69615c89db9397a9747d6f6d6a36727854f0bc + version: 1.0.3 source: Git: https://github.com/pulp-platform/timer_unit.git dependencies: [] diff --git a/Bender.yml b/Bender.yml index 2742427f..10528f29 100644 --- a/Bender.yml +++ b/Bender.yml @@ -20,23 +20,23 @@ dependencies: mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: ChipsIt-v0.0.0 } obi: { git: "https://github.com/pulp-platform/obi.git", version: =0.1.7 } - hier-icache: { git: "https://github.com/FondazioneChipsIT/hier-icache.git", rev: 416c5cbc7b9b8724a40da6ac6d0b19a9c6b864bc } # gl/fix_define - cluster_icache: { git: "https://github.com/FondazioneChipsIT/cluster_icache.git", rev: 57ffb22066171d89974bdec240bad13f5efac9de } # gl/fix_define + 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/FondazioneChipsIT/cluster_peripherals.git", rev: "6e55d0a74ff33ce9aac9fcd44ad702f323ace644" } # rg/idma_clock_gating 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/FondazioneChipsIT/common_cells.git", rev: 286ffd49d9ed3409ceaef7c7fe98516e2611a1a9 } # gl/fix_define + timer_unit: { git: "https://github.com/pulp-platform/timer_unit.git", version: =1.0.3 } + common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: =1.38.0 } tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: =0.2.3 } - flex-v: { git: "https://github.com/FondazioneChipsIT/flex-v.git", rev: f22937733fd058550ef847ddbf1381e821f0f9d2 } # gl/fix_pkg_import + flex-v: { git: "https://github.com/pulp-platform/flex-v.git", rev: astral-v1.1 } 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", version: =1.2.0 } - hci: { git: "https://github.com/FondazioneChipsIT/hci.git", rev: 3e63936991569d0b1e315d6914478937b37bb338 } + hci: { git: "https://github.com/pulp-platform/hci.git", rev: 3e63936991569d0b1e315d6914478937b37bb338 } register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: =0.4.7 } 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/FondazioneChipsIT/softex.git", rev: a622550d91dd55bf30bc359e10b2c70cae3042d6 } # gl/fix_pkg_import + redmule: { git: "https://github.com/pulp-platform/redmule.git", rev: dbcba6b1efda24dc909ebdd4ace132f798c8c12b } + neureka: { git: "https://github.com/pulp-platform/neureka.git", rev: 2e076f7d25cdfba38821ee95595bb27aec53c764 } + softex: { git: "https://github.com/belanoa/softex.git", rev: 11dd29e85d40e29fea0481b471f1c0cc967df1a4 } export_include_dirs: - include From e1a84a99703ec796b3195eb5e94c3839085f84d1 Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Fri, 12 Jun 2026 12:08:52 +0200 Subject: [PATCH 09/16] [MAKEFILE] Add flag for write access in questaOne rtl build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee051f2d..e36dfe1c 100644 --- a/Makefile +++ b/Makefile @@ -155,7 +155,7 @@ compile: $(library) $(VSIM) -c -do 'quit -code [source scripts/compile.tcl]' build_qone: compile - $(QOPT) $(compile_flag) -debug +designfile -suppress 3053 -suppress 8885 -work $(library) $(top_level)_tb -o $(top_level)_tb_optimized + $(QOPT) $(compile_flag) -debug +designfile -access=rw+/$(top_level)_tb. -suppress 3053 -suppress 8885 -work $(library) $(top_level)_tb -o $(top_level)_tb_optimized build: compile From 2d955c03d041601cde7bdb84f8358aed8b06f58e Mon Sep 17 00:00:00 2001 From: petreiuss Date: Mon, 27 Jul 2026 15:49:41 +0200 Subject: [PATCH 10/16] [ELFLOADER] Align preloaded sections to the TB bus width --- tb/dpi/elfloader.cpp | 96 +++++++++++++++++++++++++++++++------------- 1 file changed, 67 insertions(+), 29 deletions(-) diff --git a/tb/dpi/elfloader.cpp b/tb/dpi/elfloader.cpp index 4bb0fd62..befe0390 100644 --- a/tb/dpi/elfloader.cpp +++ b/tb/dpi/elfloader.cpp @@ -137,6 +137,10 @@ typedef struct { uint64_t st_size; } Elf64_Sym; +// Write granularity of the testbench preload (AxiWideBeWidth). Sections handed +// to the TB are aligned and non-overlapping at this granularity. +#define BUS_BYTES 8 + // address and size std::vector> sections; @@ -154,13 +158,19 @@ extern "C" { char read_elf(const char *filename); } -static void write (uint64_t address, uint64_t len, uint8_t *buf) +// Publish [start, end) as one section, filling gaps with zeros +static void emit_run (uint64_t start, uint64_t end, const std::map &img) { - std::vector mem; - for (int i = 0; i < len; i++) { - mem.push_back(buf[i]); + std::vector mem(end - start, 0); + + for (uint64_t addr = start; addr < end; addr++) { + std::map::const_iterator byte = img.find(addr); + if (byte != img.end()) + mem[addr - start] = byte->second; } - mems.insert(std::make_pair(address, mem)); + + sections.push_back(std::make_pair(start, end - start)); + mems[start] = mem; } // Return the entry point reported by the ELF file @@ -191,24 +201,22 @@ extern "C" char read_section(long long address, const svOpenArrayHandle buffer, { // get actual pointer char *buf = (char *) svGetArrayPtr(buffer); - + // check that the address points to a section - if (!mems.count(address)) { + std::map>::const_iterator sec = mems.find(address); + if (sec == mems.end()) { printf("[ELF] ERROR: No section found for address %p\n", address); return -1; } - - // copy array - long long int len_tmp = len; - for (auto &datum : mems.find(address)->second) { - if(len_tmp-- == 0){ - printf("[ELF] ERROR: Copied 0x%lx bytes. Buffer is full but there is still data available.\n", len); - return -1; - } - *buf++ = datum; + if ((long long)sec->second.size() > len) { + printf("[ELF] ERROR: Buffer holds 0x%llx bytes but the section is 0x%lx bytes.\n", + len, sec->second.size()); + return -1; } + memcpy(buf, sec->second.data(), sec->second.size()); + return 0; } @@ -229,24 +237,54 @@ static void load_elf(char *buf, size_t size) entry = eh->e_entry; printf("[ELF] INFO: Entrypoint at %p\n", entry); - // Iterate over all program header entries + // Flatten every loadable segment into a byte-accurate image. Segment addresses + // are only 4-byte aligned in practice (e.g. .data_tiny_l1 @ 0x1c01c19c), so they + // cannot be handed to the TB as-is: its preload writes whole BUS_BYTES words and + // would round the base down, shifting the payload and clobbering the neighbour. + std::map img; + for (unsigned int i = 0; i < eh->e_phnum; i++) { - // Check whether the current program header entry contains a loadable section of nonzero size if(ph[i].p_type == PT_LOAD && ph[i].p_memsz) { - // Is this section something else than zeros? - if (ph[i].p_filesz) { - assert(size >= ph[i].p_offset + ph[i].p_filesz); - sections.push_back(std::make_pair(ph[i].p_paddr, ph[i].p_memsz)); - write(ph[i].p_paddr, ph[i].p_filesz, (uint8_t*)buf + ph[i].p_offset); - } - - if(ph[i].p_memsz > ph[i].p_filesz){ - printf("[ELF] WARNING: The section starting @ %p contains 0x%lx zero bytes which will NOT be preloaded!\n", - ph[i].p_paddr, (ph[i].p_memsz - ph[i].p_filesz)); - } + assert(size >= ph[i].p_offset + ph[i].p_filesz); + const uint8_t *src = (const uint8_t *)buf + ph[i].p_offset; + + for (uint64_t k = 0; k < ph[i].p_filesz; k++) + img[ph[i].p_paddr + k] = src[k]; + + // .bss-style tail: preloaded as zeros + for (uint64_t k = ph[i].p_filesz; k < ph[i].p_memsz; k++) + img[ph[i].p_paddr + k] = 0; } } + // Coalesce into BUS_BYTES-aligned, non-overlapping runs. Rounding a run outwards + // can make it touch its neighbour (two segments sharing one bus word); merging + // them here is what keeps the shared word from being written twice. + uint64_t run_start = 0, run_end = 0; + bool in_run = false; + + for (std::map::const_iterator it = img.begin(); it != img.end(); ) { + uint64_t start = it->first, end = start; + while (it != img.end() && it->first == end) { end++; it++; } + + uint64_t aligned_start = start & ~(uint64_t)(BUS_BYTES - 1); + uint64_t aligned_end = (end + BUS_BYTES - 1) & ~(uint64_t)(BUS_BYTES - 1); + + if (in_run && aligned_start <= run_end) { + if (aligned_end > run_end) + run_end = aligned_end; + } else { + if (in_run) + emit_run(run_start, run_end, img); + run_start = aligned_start; + run_end = aligned_end; + in_run = true; + } + } + + if (in_run) + emit_run(run_start, run_end, img); + if(size < eh->e_shoff + (eh->e_shnum * sizeof(Sh))){ printf("[ELF] ERROR: Filesize is smaller than advertised section headers (0x%lx vs 0x%lx)\n", size, eh->e_shoff + (eh->e_shnum * sizeof(Sh))); From 8995289d850d82006bef0a22dcb4697c9b5dbeba Mon Sep 17 00:00:00 2001 From: Carlotta Chiarini Date: Mon, 16 Mar 2026 17:33:32 +0100 Subject: [PATCH 11/16] [FPGA] Added include guard to avoid conflict with pulp_soc_define file in pulp repository. --- include/pulp_soc_defines.sv | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/include/pulp_soc_defines.sv b/include/pulp_soc_defines.sv index 965fef4a..4df4aca6 100644 --- a/include/pulp_soc_defines.sv +++ b/include/pulp_soc_defines.sv @@ -19,6 +19,10 @@ * */ +`ifndef PULP_SOC_DEFINES_SV +`define PULP_SOC_DEFINES_SV + + `define CLUSTER_ALIAS `define PRIVATE_ICACHE `define HIERARCHY_ICACHE_32BIT @@ -51,3 +55,33 @@ `define NB_DMAS 4 `define NB_MPERIPHS 1 `define NB_SPERIPHS 12 + +// Width of byte enable for a given data width +`define EVAL_BE_WIDTH(DATAWIDTH) (DATAWIDTH/8) + +`define NB_L2_CHANNELS 4 + +// Default JTAG ID code type +typedef struct packed { + bit [ 3:0] version; + bit [15:0] part_num; + bit [10:0] manufacturer; + bit _one; +} jtag_idcode_t; + +// PULP Platform manufacturer and default PulpOpen part number +localparam bit [10:0] JtagPulpManufacturer = 11'h6d9; +localparam bit [15:0] JtagPulpOpenPartNum = 16'hc5e5; +localparam bit [ 3:0] JtagPulpOpenVersion = 4'h1; +localparam jtag_idcode_t PulpOpenIdCode = '{ + _one : 1, + manufacturer : JtagPulpManufacturer, + part_num : JtagPulpOpenPartNum, + version : JtagPulpOpenVersion +}; + +// JTAG +`define DMI_JTAG_IDCODE PulpOpenIdCode +// `define DMI_JTAG_IDCODE 32'h249511C3 + +`endif From 1281ff220446c3e7f0c4c7b8f449ca083d7400bd Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Thu, 12 Nov 2026 11:30:04 +0100 Subject: [PATCH 12/16] [PULP_CLUSTER] Update cluster_peripherals commit + remove signals tied to 0 from idma wrap + update Makefile rule to generate iDMA rtl --- Bender.lock | 4 ++-- Bender.yml | 4 ++-- Makefile | 15 ++++++++------- rtl/idma_wrap.sv | 4 ---- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/Bender.lock b/Bender.lock index 9ac1dff7..c2782ab6 100644 --- a/Bender.lock +++ b/Bender.lock @@ -63,10 +63,10 @@ packages: dependencies: - common_cells cluster_peripherals: - revision: 6e55d0a74ff33ce9aac9fcd44ad702f323ace644 + revision: 072ddd876c88324ef28856d4b2697424aaa231ce version: null source: - Git: https://github.com/FondazioneChipsIT/cluster_peripherals.git + Git: https://github.com/pulp-platform/cluster_peripherals.git dependencies: - hci common_cells: diff --git a/Bender.yml b/Bender.yml index 10528f29..5727ca86 100644 --- a/Bender.yml +++ b/Bender.yml @@ -18,11 +18,11 @@ dependencies: cluster_interconnect: { git: "https://github.com/pulp-platform/cluster_interconnect.git", version: =1.3.0 } event_unit_flex: { git: "https://github.com/pulp-platform/event_unit_flex.git", rev: astral-v1.0 } mchan: { git: "https://github.com/pulp-platform/mchan.git", version: =1.2.4 } - idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: ChipsIt-v0.0.0 } + idma: { git: "https://github.com/FondazioneChipsIT/iDMA.git", rev: 7073edd83950232c12f900d2b6d65016b886a50a } 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/FondazioneChipsIT/cluster_peripherals.git", rev: "6e55d0a74ff33ce9aac9fcd44ad702f323ace644" } # rg/idma_clock_gating + cluster_peripherals: { git: "https://github.com/pulp-platform/cluster_peripherals.git", rev: 072ddd876c88324ef28856d4b2697424aaa231ce } 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.3 } common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: =1.38.0 } diff --git a/Makefile b/Makefile index e36dfe1c..00241733 100644 --- a/Makefile +++ b/Makefile @@ -141,13 +141,14 @@ $(library): $(QUESTA) vlib $(library) -uv: - cd $(shell bender path idma) && \ - curl -LsSf https://astral.sh/uv/install.sh | sh && \ - uv sync --locked - -generate_idma_rtl: uv - . "$(shell bender path idma)/.venv/bin/activate" && $(MAKE) -C $(shell bender path idma) idma_hw_all +idma_venv: + python3 -m venv $(VENV) && \ + $(VENV)/bin/python -m pip install -U pip && \ + $(VENV)/bin/python -m pip install -r $(shell $(BENDER) path idma)/requirements.txt && \ + $(VENV)/bin/python -m pip install "setuptools<81" + +generate_idma_rtl: idma_venv + . "$(VENV)/bin/activate" && $(MAKE) -C $(shell $(BENDER) path idma) idma_hw_all compile: $(library) @test -f Bender.lock || { echo "ERROR: Bender.lock file does not exist. Did you run make checkout in bender mode?"; exit 1; } diff --git a/rtl/idma_wrap.sv b/rtl/idma_wrap.sv index c4b4b13e..f933c0c1 100644 --- a/rtl/idma_wrap.sv +++ b/rtl/idma_wrap.sv @@ -519,8 +519,6 @@ module dmac_wrap #( .req_dst_addr_i ( idma_req[s].dst_addr ), .req_src_protocol_i ( idma_req[s].opt.src_protocol ), .req_dst_protocol_i ( idma_req[s].opt.dst_protocol ), - .req_src_head_i ( '0 ), - .req_dst_head_i ( '0 ), .req_axi_id_i ( idma_req[s].opt.axi_id ), .req_src_burst_i ( idma_req[s].opt.src.burst ), .req_src_cache_i ( idma_req[s].opt.src.cache ), @@ -749,8 +747,6 @@ module dmac_wrap #( .req_dst_addr_i ( idma_req[s].dst_addr ), .req_src_protocol_i ( idma_req[s].opt.src_protocol ), .req_dst_protocol_i ( idma_req[s].opt.dst_protocol ), - .req_src_head_i ( '0 ), - .req_dst_head_i ( '0 ), .req_axi_id_i ( idma_req[s].opt.axi_id ), .req_src_burst_i ( idma_req[s].opt.src.burst ), .req_src_cache_i ( idma_req[s].opt.src.cache ), From c8e8721b778361183077b11bc91a60e04c48532c Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Thu, 12 Nov 2026 12:05:55 +0100 Subject: [PATCH 13/16] [CI] Add rule to clone pulp-sdk + update nonfree commit: new CI script --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 00241733..1d10bc99 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ endef ###################### NONFREE_REMOTE ?= git@gitlab.chips.it:digitalresearchline/chips-restricted/pulp-cluster-nonfree.git -NONFREE_COMMIT ?= 05c9c686130a51302091df5676cbf7a13c298f5e +NONFREE_COMMIT ?= e0e713be4a9215484e07d6f1244c21352e71a4bd nonfree-init: git clone $(NONFREE_REMOTE) nonfree @@ -91,6 +91,14 @@ pulp-runtime: git clone $(PULP_RUNTIME_REMOTE) $@ cd $@ && git checkout $(PULP_RUNTIME_COMMIT) +### Clone pulp-sdk as SW stack +PULP_SDK_REMOTE ?= https://github.com/FondazioneChipsIT/pulp-sdk.git +PULP_SDK_COMMIT ?= 894a13eb62eaa8d00c9f7c39d1d8ff98d9c03211 + +pulp-sdk: + git clone ${PULP_SDK_REMOTE} $@ + cd $@ && git checkout ${PULP_SDK_COMMIT} && git submodule update --init --recursive + ## Clone fault injection scripts FAULT_SIM_REMOTE ?= https://github.com/pulp-platform/InjectaFault.git FAULT_SIM_COMMIT ?= 84ddcff # branch: rt/rename-var From 2d74d7f2bc0fac279e6e1db647147fba82c47afd Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Thu, 12 Nov 2026 15:35:14 +0100 Subject: [PATCH 14/16] [MAKEFILE] Update pulp-sdk commit: fix for tcdm tests --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d10bc99..5bb59660 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ pulp-runtime: ### Clone pulp-sdk as SW stack PULP_SDK_REMOTE ?= https://github.com/FondazioneChipsIT/pulp-sdk.git -PULP_SDK_COMMIT ?= 894a13eb62eaa8d00c9f7c39d1d8ff98d9c03211 +PULP_SDK_COMMIT ?= 2173725964cad8f6d0e802e8328b6de6752e9495 pulp-sdk: git clone ${PULP_SDK_REMOTE} $@ From e77a0a13bbddd9bda67c33fc00b6afd05b51b5a4 Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Fri, 13 Nov 2026 10:30:19 +0100 Subject: [PATCH 15/16] [iDMA] Fix for clock gating race condition --- rtl/idma_wrap.sv | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/rtl/idma_wrap.sv b/rtl/idma_wrap.sv index f933c0c1..92eb1b79 100644 --- a/rtl/idma_wrap.sv +++ b/rtl/idma_wrap.sv @@ -271,25 +271,34 @@ module dmac_wrap #( // Here, another clock gating level is applied: // - completely hw-controlled, this clock gating cell controls the datapath clock, disabling it when not needed. - logic keep_datapath_clocked, datapath_clk_en; - - // Register to keep the clock active until event completion - // Once the transfer has started its execution (busy_o == 1'b1) - // the datapath needs to be clocked until the completion event - // has been received (|trans_complete). Then the datapath - // can be gated again. + // The maximum inflight number of transfers is computed as: (FIFO DEPTH + number of outstanding bursts held by the backend + + // the transfer currently handled by the midend) * number of streams + localparam int unsigned MaxInflight = NumStreams * (GLOBAL_QUEUE_DEPTH + NB_OUTSND_BURSTS + 2); + localparam int unsigned InflightWidth = $clog2(MaxInflight + 1); + + logic datapath_clk_en; + logic [InflightWidth-1:0] inflight_d, inflight_q; + + // This counter keeps track of any ongoing transfers on the streams. + always_comb begin : proc_inflight + inflight_d = inflight_q; + for (int unsigned s = 0; s < NumStreams; s++) begin + if (fe_valid[s] & fe_ready[s]) inflight_d = inflight_d + 1'b1; + if (trans_complete[s]) inflight_d = inflight_d - 1'b1; + end + end always_ff @(posedge clk_i, negedge rst_ni) begin if (rst_ni == 1'b0) begin - keep_datapath_clocked <= 1'b0; - end else if (busy_o == 1'b1) begin - keep_datapath_clocked <= 1'b1; - end else if (|trans_complete) begin - keep_datapath_clocked <= 1'b0; + inflight_q <= '0; + end else begin + inflight_q <= inflight_d; end end - assign datapath_clk_en = (one_fe_valid | (|trans_complete) | keep_datapath_clocked); + // Check if the datapath needs to be clocked. + + assign datapath_clk_en = one_fe_valid | (|trans_complete) | (inflight_q != '0); // // ---------------------------------------------------------------------------------------------------------- // // DATAPATH CLOCK GATING CELL --> This gates everything except for the frontend and the periph_to_reg modules From 2121e4f5a5f2ab06549a23603caa205e0c8e894c Mon Sep 17 00:00:00 2001 From: Riccardo Gandolfi Date: Fri, 13 Nov 2026 12:00:48 +0100 Subject: [PATCH 16/16] [SDK] Update pulp-sdk commit: fix for tcdm tests --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5bb59660..c6c24d97 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ pulp-runtime: ### Clone pulp-sdk as SW stack PULP_SDK_REMOTE ?= https://github.com/FondazioneChipsIT/pulp-sdk.git -PULP_SDK_COMMIT ?= 2173725964cad8f6d0e802e8328b6de6752e9495 +PULP_SDK_COMMIT ?= 55fedf856aafa0a305c6bcd02b7e62b69bc74246 pulp-sdk: git clone ${PULP_SDK_REMOTE} $@