From df383dcd43a3a4e1b4fe71f6caf0523a8bdf01d4 Mon Sep 17 00:00:00 2001 From: Kai Berszin Date: Fri, 5 Dec 2025 14:13:01 +0100 Subject: [PATCH] hw: Modify clustergen for dynamic cluster generation --- hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl | 1 + util/clustergen/cluster.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl b/hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl index 88a42eea..c0361499 100644 --- a/hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl +++ b/hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl @@ -249,6 +249,7 @@ module ${cfg['name']}_wrapper % if not cfg['tie_ports']: input logic [9:0] hart_base_id_i, input logic [AxiAddrWidth-1:0] cluster_base_addr_i, + input logic [AxiUserWidth-1:0] axi_core_default_user_i, % endif output logic cluster_probe_o, % if cfg['axi_isolate_enable']: diff --git a/util/clustergen/cluster.py b/util/clustergen/cluster.py index 0e1d2dcd..42ab3228 100644 --- a/util/clustergen/cluster.py +++ b/util/clustergen/cluster.py @@ -392,7 +392,8 @@ def __init__(self, cfg): self.cfg["dram"]["length"], self.cfg["cluster"]["addr_width"], ) - self.cfg["cluster"]["tie_ports"] = True + if "tie_ports" not in self.cfg["cluster"]: + self.cfg["cluster"]["tie_ports"] = True # Store Snitch cluster config in separate variable self.cluster = SnitchCluster(cfg["cluster"], pma_cfg)