Skip to content

Commit 5c564e6

Browse files
author
Raphael
committed
(fix) synth
1 parent 93cb306 commit 5c564e6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

hw/snitch_cluster/src/snitch_cluster.sv

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,12 @@ module snitch_cluster
710710
if (EnableDMAMulticast) begin : gen_mcast_dma_xbar
711711

712712
// Define the collective connectivity matrix!
713+
typedef bit [DmaMcastXbarCfg.NoMstPorts-1:0] DMALine_t;
714+
typedef bit [DmaMcastXbarCfg.NoSlvPorts-1:0][DmaMcastXbarCfg.NoMstPorts-1:0] DMAMatrix_t;
713715
// If we want to reroute collectiv operation the only available collectiv operation port is the SoC port
714-
localparam bit [DmaMcastXbarCfg.NoSlvPorts-1:0][DmaMcastXbarCfg.NoMstPorts-1:0] DMACollectivConnectivity = (ReRouteCollectivOp) ?
715-
'{default: '{SoCDMAOut: 1'b1, default: 1'b0}} : '{default: '{default: 1'b1}};
716+
localparam DMALine_t DMAlocalArray = (ReRouteCollectivOp) ?
717+
DMALine_t'{SoCDMAOut: 1'b1, default: 1'b0} : DMALine_t'{default: 1'b1};
718+
localparam DMAMatrix_t DMACollectivConnectivity = DMAMatrix_t'{default: DMAlocalArray};
716719

717720
// Set default master port for all multicast's crossbar input's
718721
localparam bit [DmaMcastXbarCfg.NoSlvPorts-1:0] DMAEnableDefaultMstPort = '1;
@@ -1365,9 +1368,13 @@ module snitch_cluster
13651368
if(EnableMulticast) begin : gen_narrow_mcast_axi_crossbar
13661369

13671370
// Define the collective connectivity matrix!
1371+
typedef bit [ClusterMcastXbarCfg.NoMstPorts-1:0] ClusterLine_t;
1372+
typedef bit [ClusterMcastXbarCfg.NoSlvPorts-1:0][ClusterMcastXbarCfg.NoMstPorts-1:0] ClusterMatrix_t;
13681373
// If we want to reroute collectiv operation the only available collectiv operation port is the SoC port
1369-
localparam bit [ClusterMcastXbarCfg.NoSlvPorts-1:0][ClusterMcastXbarCfg.NoMstPorts-1:0] ClusterCollectivConnectivity = (ReRouteCollectivOp) ?
1370-
'{default: '{SoC: 1'b1, default: 1'b0}} : '{default: '{default: 1'b1}};
1374+
localparam ClusterLine_t ClusterlocalArray = (ReRouteCollectivOp) ?
1375+
ClusterLine_t'{SoC: 1'b1, default: 1'b0} : ClusterLine_t'{default: 1'b1};
1376+
localparam ClusterMatrix_t ClusterCollectivConnectivity =
1377+
ClusterMatrix_t'{default: ClusterlocalArray};
13711378

13721379
// Set default master port for all multicast's crossbar input's
13731380
localparam bit [ClusterMcastXbarCfg.NoSlvPorts-1:0] ClusterEnableDefaultMstPort = '1;

0 commit comments

Comments
 (0)