Skip to content

Commit

Permalink
Integrate HMR unit for CVA6 redundancy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella authored and chaoqun-liang committed Jun 1, 2024
1 parent 53284eb commit 45ef688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions hw/cheshire_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ package cheshire_pkg;
localparam doub_bt AmLlc = 'h0300_1000;
localparam doub_bt AmSlink = 'h0300_6000;
localparam doub_bt AmBusErr = 'h0300_8000;
localparam doub_bt AmTagger = 'h0300_A000;
// Address 0x0300_A000 is occupied by the tagger in Carfield.
// Removed for the moment to isolate the contribution of this PR.
// Leaving this comment and the free scope to keep track.
localparam doub_bt AmHmrUnit = 'h0300_B000;
localparam doub_bt AmSpm = 'h1000_0000; // Cached region at bottom, uncached on top
localparam doub_bt AmClic = 'h0800_0000;
Expand Down Expand Up @@ -407,7 +409,6 @@ package cheshire_pkg;
aw_bt irq_router;
aw_bt [2**MaxCoresWidth-1:0] bus_err;
aw_bt [2**MaxCoresWidth-1:0] clic;
aw_bt [2**MaxCoresWidth-1:0] tagger;
aw_bt hmr_unit;
aw_bt ext_base;
aw_bt num_out;
Expand Down Expand Up @@ -437,9 +438,6 @@ package cheshire_pkg;
if (cfg.BusErr) for (int j = 0; j < 2 + cfg.NumCores; j++) begin
i++; ret.bus_err[j] = i; r++; ret.map[r] = '{i, AmBusErr + j*'h40, AmBusErr + (j+1)*'h40};
end
if (cfg.LlcCachePartition) for (int j = 0; j < cfg.NumCores; j++) begin
i++; ret.tagger[j] = i; r++; ret.map[r] = '{i, AmTagger + j*'h100, AmTagger + (j+1)*'h100};
end
if (cfg.HmrUnit) begin
i++; ret.hmr_unit = i; r++; ret.map[r] = '{i, AmHmrUnit, AmHmrUnit+'h400};
end
Expand Down
4 changes: 2 additions & 2 deletions hw/cheshire_soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ module cheshire_soc import cheshire_pkg::*; #(
.rst_ni,
.slv_req_i ( core_ur_req[i] ),
.slv_resp_o ( core_ur_rsp[i] ),
.mst_req_o ( tagger_req[i] ),
.mst_resp_i ( tagger_rsp[i] )
.mst_req_o ( axi_in_req[AxiIn.cores[i]] ),
.mst_resp_i ( axi_in_rsp[AxiIn.cores[i]] )
);

if (Cfg.LlcCachePartition) begin : gen_tagger
Expand Down

0 comments on commit 45ef688

Please sign in to comment.