Skip to content

Commit

Permalink
[SRC][CFG] Add configuration of N_FPU and N_IPU from cfg files to sou…
Browse files Browse the repository at this point in the history
…rce.
  • Loading branch information
DiyouS committed Nov 25, 2024
1 parent c2f1992 commit a2db318
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hw/system/spatz_cluster/src/spatz_cluster.sv
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ module spatz_cluster
/// # Core-global parameters
/// FPU configuration.
parameter fpu_implementation_t FPUImplementation [NrCores] = '{default: fpu_implementation_t'(0)},
/// Spatz FPU/IPU Configuration
parameter int unsigned NumSpatzFPUs = 4,
parameter int unsigned NumSpatzIPUs = 1,
/// Per-core enabling of the custom `Xdma` ISA extensions.
parameter bit [NrCores-1:0] Xdma = '{default: '0},
/// # Per-core parameters
Expand Down Expand Up @@ -1031,6 +1034,8 @@ module spatz_cluster
.RegisterOffloadRsp (RegisterOffloadRsp ),
.RegisterCoreReq (RegisterCoreReq ),
.RegisterCoreRsp (RegisterCoreRsp ),
.NumSpatzFPUs (NumSpatzFPUs ),
.NumSpatzIPUs (NumSpatzIPUs ),
.TCDMAddrWidth (SPMAddrWidth )
) i_spatz_cc (
.clk_i (clk_i ),
Expand Down
2 changes: 2 additions & 0 deletions hw/system/spatz_cluster/src/spatz_cluster_wrapper.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ module ${cfg['name']}_wrapper
.ICacheLineCount (${cfg['pkg_name']}::ICacheLineCount),
.ICacheSets (${cfg['pkg_name']}::ICacheSets),
.FPUImplementation (${cfg['pkg_name']}::FPUImplementation),
.NumSpatzFPUs (${cfg['n_fpu']}),
.NumSpatzIPUs (${cfg['n_ipu']}),
.SnitchPMACfg (${cfg['pkg_name']}::SnitchPMACfg),
.NumIntOutstandingLoads (NumIntOutstandingLoads),
.NumIntOutstandingMem (NumIntOutstandingMem),
Expand Down

0 comments on commit a2db318

Please sign in to comment.