Skip to content

Commit

Permalink
Compatibility with scratchpad blocking DCache
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Feb 13, 2019
1 parent 5b355b0 commit 18e26b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/lsu/dcache-shim.scala
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ class DCacheShim(implicit p: Parameters) extends BoomModule()(p)
io.dmem.s1_data.mask := 0.U // Only used for partial puts from scratchpads.
io.dmem.s2_kill := false.B
io.dmem.s1_kill := io.core.req.bits.kill || iflb_kill // kills request sent out last cycle
io.dmem.req.bits.phys := true.B // we always use physical addresses (TLB is in LSU).
io.dmem.req.bits.phys := !(usingDataScratchpad.B) // we always use physical addresses (TLB is in LSU).
// the data scratchpad repurposes this bit


//------------------------------------------------------------
// handle responses and nacks
Expand Down

0 comments on commit 18e26b8

Please sign in to comment.