Skip to content

Commit

Permalink
[rocketv] fix burst size in dcache.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 18, 2024
1 parent fadce42 commit 711e640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rocketv/src/HellaCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ class HellaCache(val parameter: HellaCacheParameter)
0.U,
(parameter.cacheBlockBytes * 8 / parameter.loadStoreParameter.dataWidth - 1).U
)
arQueue.enq.bits.size := Mux(s2_uncached, a_size, parameter.lgCacheBlockBytes.U)
arQueue.enq.bits.size := Mux(s2_uncached, a_size, log2Ceil(parameter.loadStoreParameter.dataWidth / 8).U)
arQueue.enq.bits.id := Mux(s2_uncached, a_source, 0.U)
io.loadStoreAXI.ar <> arQueue.deq

Expand Down Expand Up @@ -1335,7 +1335,7 @@ class HellaCache(val parameter: HellaCacheParameter)
awQueue.enq.valid := true.B
awQueue.enq.bits.addr := releaseAddress >> parameter.lgCacheBlockBytes << parameter.lgCacheBlockBytes
awQueue.enq.bits.len := (parameter.cacheBlockBytes * 8 / parameter.loadStoreParameter.dataWidth - 1).U
awQueue.enq.bits.size := parameter.lgCacheBlockBytes.U
awQueue.enq.bits.size := log2Ceil(parameter.loadStoreParameter.dataWidth / 8).U
awQueue.enq.bits.id := (mmioOffset - 1).U
}

Expand Down

0 comments on commit 711e640

Please sign in to comment.