Skip to content

Commit

Permalink
Fix datacache without coherency
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jan 30, 2024
1 parent 87642e6 commit 93356b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/naxriscv/lsu/DataCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ case class DataMemBusParameter( addressWidth: Int,
M2sAgent(
name = name,
M2sSource(
id = SizeMapping(log2Up(readIdCount max writeIdCount), readIdCount),
id = SizeMapping(1 << log2Up(readIdCount max writeIdCount), readIdCount),
emits = tilelink.M2sTransfers(
get = SizeRange(lineSize)
)
Expand Down Expand Up @@ -517,6 +517,7 @@ case class DataMemBus(p : DataMemBusParameter) extends Bundle with IMasterSlave

val beat = bus.a.beatCounter()
bus.a.address(log2Up(p.dataWidth/8), widthOf(beat) bits) := beat
bus.a.source.allowOverride()
bus.a.source.msb := sel

write.cmd.ready := !sel && bus.a.ready
Expand Down

0 comments on commit 93356b4

Please sign in to comment.