Skip to content

Commit 9777579

Browse files
author
bowwang
committed
[hw] remove unused DASMemSize localparam from mempool_pkg
1 parent 47a0425 commit 9777579

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

hardware/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ vlog_defs += -DL1_BANK_SIZE=$(l1_bank_size)
120120
vlog_defs += -DBOOT_ADDR=32\'d$(boot_addr)
121121
vlog_defs += -DDAS=$(das)
122122
vlog_defs += -DNUM_DAS_PARTITIONS=$(num_das_partitions)
123-
vlog_defs += -DDAS_MEM_SIZE=$(das_mem_size)
124123
# Snitch ISA
125124
vlog_defs += -DXPULPIMG=$(xpulpimg)
126125
vlog_defs += -DZFINX=$(zfinx)

hardware/src/mempool_pkg.sv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ package mempool_pkg;
4646
localparam integer unsigned TCDMAddrWidth = TCDMAddrMemWidth + idx_width(NumBanksPerGroup);
4747
// DAS parameters
4848
localparam integer unsigned NumDASPartitions = `ifdef NUM_DAS_PARTITIONS `NUM_DAS_PARTITIONS `else 0 `endif;
49-
localparam integer unsigned DASMemSize = `ifdef DAS_MEM_SIZE `DAS_MEM_SIZE `else 0 `endif;
50-
localparam integer unsigned DASStartAddr = (NumBanks * TCDMSizePerBank) - NumCores * DASMemSize;
49+
localparam integer unsigned DASStartAddr = (NumBanks * TCDMSizePerBank) - NumCores * (`ifdef DAS_MEM_SIZE `DAS_MEM_SIZE `else 0 `endif);
5150
localparam integer unsigned TileInterleavingWidth = idx_width(NumTiles) + 1; // only support {128, 64, 32, 16, 8, 4, 2, 1};
5251
localparam integer unsigned RowsInterleavingWidth = idx_width(TCDMSizePerBank) - ByteOffset;
5352

0 commit comments

Comments
 (0)