rocket-chip icon indicating copy to clipboard operation
rocket-chip copied to clipboard

Difference b/w D$ and DTIM

Open hadirkhan10 opened this issue 3 years ago • 1 comments

I have disabled the d$ and created a scratchpad memory or so called a DTIM by providing the following parameters:

 dcache = Some(DCacheParams(
 rowBits = site(SystemBusKey).beatBits,
 nSets = 256, // 16Kb scratchpad
 nWays = 1,
 nTLBSets = 1,
 nTLBWays = 4,
 nMSHRs = 0,
 blockBytes = site(CacheBlockBytes),
 scratch = Some(0x80000000L))),

However, after emitting the verilog, I can still see the DCache module and all it's logic. Though I did not compare its internal logic with the configuration whose d$ cache is enabled. Does having a DTIM simply means: "a small on-chip sram close to the cpu without any caching mechanism"? If yes, then does the emitted verilog do not contain caching mechanism? By the look of D$ module in verilog it seems that there is some caching mechanism being done.

hadirkhan10 avatar Apr 29 '21 12:04 hadirkhan10

Hi, Did you figure out this question? I also have the same question about the configuration of dcache and scratchpad. If you have any new insights, could you please share them with me? Thank you.

QL1115 avatar Jun 28 '23 04:06 QL1115