Skip to content

Commit

Permalink
[spatz] Fix synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
suehtamacv committed Apr 9, 2023
1 parent aec5522 commit d987811
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ mems
*.o
install
.projectBender.lock
Bender.lock
2 changes: 1 addition & 1 deletion cfg/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ axi_uw ?= 1
n_fpu ?= 0

# Number of words in each TCDM bank
tcdm_bank_depth ?= 2048
tcdm_bank_depth ?= 1024

# Boot address (in dec)
boot_addr ?= 4096
Expand Down
12 changes: 8 additions & 4 deletions hw/system/spatz_cluster/src/spatz_cluster.sv
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ module spatz_cluster import spatz_pkg::*; import fpnew_pkg::fpu_implementation_t
UniqueIds : 1'b0,
AxiAddrWidth : AxiAddrWidth,
AxiDataWidth : NarrowDataWidth,
NoAddrRules : NrNarrowRules
NoAddrRules : NrNarrowRules,
default : '0
};

// DMA configuration struct
Expand All @@ -215,7 +216,8 @@ module spatz_cluster import spatz_pkg::*; import fpnew_pkg::fpu_implementation_t
UniqueIds : 1'b0,
AxiAddrWidth : AxiAddrWidth,
AxiDataWidth : AxiDataWidth,
NoAddrRules : 3
NoAddrRules : 3,
default : '0
};

// --------
Expand Down Expand Up @@ -942,7 +944,9 @@ module spatz_cluster import spatz_pkg::*; import fpnew_pkg::fpu_implementation_t
}
};

localparam bit [ClusterXbarCfg.NoSlvPorts-1:0] ClusterEnableDefaultMstPort = '1;
localparam bit [ClusterXbarCfg.NoSlvPorts-1:0] ClusterEnableDefaultMstPort = '1;
localparam logic [ClusterXbarCfg.NoSlvPorts-1:0][cf_math_pkg::idx_width(ClusterXbarCfg.NoMstPorts)-1:0] ClusterXbarDefaultPort = '{default: SoC};

axi_xbar #(
.Cfg (ClusterXbarCfg ),
.slv_aw_chan_t (axi_mst_aw_chan_t),
Expand All @@ -969,7 +973,7 @@ module spatz_cluster import spatz_pkg::*; import fpnew_pkg::fpu_implementation_t
.mst_ports_resp_i (narrow_axi_slv_rsp ),
.addr_map_i (cluster_xbar_rules ),
.en_default_mst_port_i (ClusterEnableDefaultMstPort),
.default_mst_port_i ('{default: SoC} )
.default_mst_port_i (ClusterXbarDefaultPort )
);

// ---------
Expand Down
6 changes: 3 additions & 3 deletions hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ module spatz_cluster_wrapper import spatz_pkg::*; import spatz_cluster_pkg::*; #
.NrCores (NumCores ),
.TCDMDepth (TCDMDepth ),
.NrBanks (NumBanks ),
.ICacheLineWidth (AxiDataWidth ),
.ICacheSets (8 ),
.ICacheLineCount (8 ),
.ICacheLineWidth (256 ),
.ICacheSets (2 ),
.ICacheLineCount (64 ),
.FPUImplementation (FPUImplementation ),
.NumIntOutstandingLoads (8 ),
.NumIntOutstandingMem (8 ),
Expand Down

0 comments on commit d987811

Please sign in to comment.