Skip to content

Commit

Permalink
[Env] Update some configurations, include the fifo size and DRAM conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
yichao-zh committed Dec 11, 2023
1 parent 344f6ae commit 1cf1107
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions config/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ ifeq ($(config), terapool)
l2_size ?= 16777216 # 1000000
l2_banks ?= 16
dmas_per_group ?= 4 # Brust Length = 16
dram_axi_width_interleaved ?= 256
dram_axi_width_interleaved ?= 16
else
l2_size ?= 4194304 # 400000
l2_banks ?= 4
dmas_per_group ?= 1 # Brust Length = 16
dram_axi_width_interleaved ?= 256
dram_axi_width_interleaved ?= 16
endif

# Size of sequential memory per core (in bytes)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"mcconfig": {
"PagePolicy": "Open",
"PagePolicy": "Open",
"Scheduler": "FrFcfsGrp",
"SchedulerBuffer": "Bankwise",
"RequestBufferSize": 128,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"DatabaseRecording": true,
"Debug": false,
"ECCControllerMode": "Disabled",
"EnableWindowing": false,
"EnableWindowing": true,
"ErrorCSVFile": "",
"ErrorChipSeed": 42,
"PowerAnalysis": false,
Expand All @@ -14,6 +14,6 @@
"StoreMode": "Store",
"ThermalSimulation": false,
"UseMalloc": false,
"WindowSize": 1000
"WindowSize": 300
}
}
4 changes: 2 additions & 2 deletions hardware/dram_rtl_sim/src/axi_dram_sim.sv
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ module axi_dram_sim #(
.AxiDataWidth (DramDataWidth ),
.AxiIdWidth (AxiIdWidth ),
.AxiUserWidth (AxiUserWidth ),
.AxiMaxWriteTxns(32 ),
.AxiMaxReadTxns (32 ),
.AxiMaxWriteTxns(64 ),
.AxiMaxReadTxns (64 ),
.FallThrough (0 ),
.full_req_t (dram_axi_req_t ),
.full_resp_t (dram_axi_resp_t ),
Expand Down
8 changes: 4 additions & 4 deletions hardware/src/mempool_group.sv
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ module mempool_group
.DmaRegionWidth (NumBanksPerGroup*4/NumDmasPerGroup ),
.DmaRegionStart (TCDMBaseAddr ),
.DmaRegionEnd (TCDMBaseAddr+TCDMSize ),
.TransFifoDepth (8 ),
.TransFifoDepth (16 ),
.burst_req_t (dma_req_t ),
.meta_t (dma_meta_t )
) i_idma_distributed_midend (
Expand Down Expand Up @@ -975,7 +975,7 @@ module mempool_group
.DmaRegionWidth (NumBanksPerGroup*4/NumDmasPerGroup),
.DmaRegionStart (TCDMBaseAddr ),
.DmaRegionEnd (TCDMBaseAddr+TCDMSize ),
.TransFifoDepth (8 ),
.TransFifoDepth (16 ),
.burst_req_t (dma_req_t ),
.meta_t (dma_meta_t )
) i_idma_distributed_midend (
Expand Down Expand Up @@ -1025,8 +1025,8 @@ module mempool_group
.DataWidth (AxiDataWidth ),
.AddrWidth (AddrWidth ),
.IdWidth (AxiTileIdWidth ),
.AxReqFifoDepth (2 ),
.TransFifoDepth (1 ),
.AxReqFifoDepth (8 ),
.TransFifoDepth (4 ),
.BufferDepth (4 ),
.axi_req_t (axi_tile_req_t ),
.axi_res_t (axi_tile_resp_t),
Expand Down
2 changes: 1 addition & 1 deletion hardware/src/mempool_sub_group.sv
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ module mempool_sub_group
.AddrWidth (AddrWidth ),
.IdWidth (AxiTileIdWidth ),
.AxReqFifoDepth (8 ),
.TransFifoDepth (1 ),
.TransFifoDepth (4 ),
.BufferDepth (4 ),
.axi_req_t (axi_tile_req_t ),
.axi_res_t (axi_tile_resp_t),
Expand Down
4 changes: 2 additions & 2 deletions hardware/tb/mempool_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module mempool_tb;
localparam BootAddr = 0;
`endif

localparam ClockPeriod = 2ns;
localparam ClockPeriod = 1ns;
localparam TA = 0.2ns;
localparam TT = 0.8ns;

Expand Down Expand Up @@ -58,7 +58,7 @@ module mempool_tb;
end

`ifdef DRAM
dram_sim_engine #(.ClkPeriodNs(2)) i_dram_sim_engine (.clk_i(clk), .rst_ni(rst_n));
dram_sim_engine #(.ClkPeriodNs(ClockPeriod)) i_dram_sim_engine (.clk_i(clk), .rst_ni(rst_n));
`endif

/*********
Expand Down

0 comments on commit 1cf1107

Please sign in to comment.