Skip to content

Commit

Permalink
hw,sw: Fix Chimera memory map for PULP Cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
sermazz committed Jan 30, 2025
1 parent 00f5263 commit d3e57b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
12 changes: 4 additions & 8 deletions hw/chimera_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,11 @@ package chimera_pkg;

// Cluster domain
localparam byte_bt [iomsb(ExtClusters):0] ClusterIdx = {8'h4, 8'h3, 8'h2, 8'h1, 8'h0};
localparam doub_bt [iomsb(
ExtClusters
):0] ClusterRegionStart = {
64'h4080_0000, 64'h4060_0000, 64'h4040_0000, 64'h4020_0000, 64'h4000_0000
localparam doub_bt [iomsb(ExtClusters):0] ClusterRegionStart = {
64'h4100_0000, 64'h40C0_0000, 64'h4080_0000, 64'h4040_0000, 64'h4000_0000
};
localparam doub_bt [iomsb(
ExtClusters
):0] ClusterRegionEnd = {
64'h40A0_0000, 64'h4080_0000, 64'h4060_0000, 64'h4040_0000, 64'h4020_0000
localparam doub_bt [iomsb(ExtClusters):0] ClusterRegionEnd = {
64'h4140_0000, 64'h4100_0000, 64'h40C0_0000, 64'h4080_0000, 64'h4040_0000
};

localparam int ClusterDataWidth = 64;
Expand Down
20 changes: 10 additions & 10 deletions sw/include/soc_addr_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
#define SOC_CTRL_BASE 0x30001000

#define CLUSTER_0_BASE 0x40000000
#define CLUSTER_1_BASE 0x40200000
#define CLUSTER_2_BASE 0x40400000
#define CLUSTER_3_BASE 0x40600000
#define CLUSTER_4_BASE 0x40800000

#define CLUSTER_0_NUMCORES 9
#define CLUSTER_1_NUMCORES 9
#define CLUSTER_2_NUMCORES 9
#define CLUSTER_3_NUMCORES 9
#define CLUSTER_4_NUMCORES 9
#define CLUSTER_1_BASE 0x40400000
#define CLUSTER_2_BASE 0x40800000
#define CLUSTER_3_BASE 0x40C00000
#define CLUSTER_4_BASE 0x41000000

#define CLUSTER_0_NUMCORES 8
#define CLUSTER_1_NUMCORES 8
#define CLUSTER_2_NUMCORES 8
#define CLUSTER_3_NUMCORES 8
#define CLUSTER_4_NUMCORES 8

static uint8_t _chimera_numCores[] = {CLUSTER_0_NUMCORES, CLUSTER_1_NUMCORES, CLUSTER_2_NUMCORES,
CLUSTER_3_NUMCORES, CLUSTER_4_NUMCORES};
Expand Down

0 comments on commit d3e57b4

Please sign in to comment.