Skip to content

Commit

Permalink
cfg: Remove nr_quadrants from config
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Feb 16, 2024
1 parent d6996df commit 59a6415
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions hw/snitch_cluster/test/bootdata.cc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const BootData BOOTDATA = {.boot_addr = ${hex(cfg['cluster']['boot_addr'])},
.tcdm_offset = ${hex(cfg['cluster']['cluster_base_offset'])},
.global_mem_start = ${hex(cfg['dram']['address'])},
.global_mem_end = ${hex(cfg['dram']['address'] + cfg['dram']['length'])},
.cluster_count = ${cfg['s1_quadrant']['nr_clusters']},
.s1_quadrant_count = ${cfg['nr_s1_quadrant']},
.cluster_count = ${cfg['cluster']['nr_clusters']},
.clint_base = ${hex(cfg['peripherals']['clint']['address'])}};

} // namespace sim
1 change: 0 additions & 1 deletion target/common/test/tb_lib.hh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ struct BootData {
uint64_t global_mem_start;
uint64_t global_mem_end;
uint32_t cluster_count;
uint32_t s1_quadrant_count;
uint32_t clint_base;
};
extern const BootData BOOTDATA;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Hardware parameters
#define SNRT_BASE_HARTID CFG_CLUSTER_BASE_HARTID
#define SNRT_CLUSTER_CORE_NUM CFG_CLUSTER_NR_CORES
#define SNRT_CLUSTER_NUM ${cfg['nr_s1_quadrant'] * cfg['s1_quadrant']['nr_clusters']}
#define SNRT_CLUSTER_NUM ${cfg['cluster']['nr_clusters']}
#define SNRT_CLUSTER_DM_CORE_NUM 1
#define SNRT_TCDM_START_ADDR CLUSTER_TCDM_BASE_ADDR
#define SNRT_TCDM_SIZE (CLUSTER_PERIPH_BASE_ADDR - CLUSTER_TCDM_BASE_ADDR)
Expand Down

0 comments on commit 59a6415

Please sign in to comment.