-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RTL] 1.Add two flags in config.mk: spm_bank_id_remap and tile_id_rem…
…ap to control the spm bank id remapping inside of each tile, and tile id remapping inside of each group. Modulize related rtl code. 2.Debug: move the core request tile id remapping from after soc/local/remote tile demux to address_scrambler. Before, the core can access wrong local/remote port.
- Loading branch information
1 parent
9753dfe
commit e603df6
Showing
9 changed files
with
282 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module mempool_group_tile_id_remapper | ||
import mempool_pkg::*; | ||
import cf_math_pkg::idx_width; | ||
#( | ||
) ( | ||
input reqrsp_req_t dma_reqrsp_req_i, | ||
output logic [idx_width(NumTilesPerDma)-1:0] tile_id_remap_o | ||
); | ||
|
||
logic [idx_width(NumTilesPerDma)-1:0] tile_id_remap_before; | ||
logic [idx_width(NumTilesPerDma)-1:0] tile_id_remap; | ||
|
||
assign tile_id_remap_before = dma_reqrsp_req_i.q.addr[(ByteOffset + idx_width(NumBanksPerTile)) +: idx_width(NumTilesPerDma)]; | ||
assign tile_id_remap = tile_id_remap_before + | ||
dma_reqrsp_req_i.q.addr[(ByteOffset + idx_width(NumBanksPerTile) + idx_width(NumTilesPerGroup) + idx_width(NumGroups)) +: idx_width(NumTilesPerDma)]; | ||
|
||
`ifdef TILE_ID_REMAP | ||
assign tile_id_remap_o = tile_id_remap; | ||
`else | ||
assign tile_id_remap_o = tile_id_remap_before; | ||
`endif | ||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.