From 43dea38ee961eb676a934e0696762ffb09f4d0b0 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Wed, 8 Mar 2017 00:19:09 -0800 Subject: [PATCH] dcache: we need the bits within the beat so select the right word (#575) We now have confirmation that it fixed the problem. --- src/main/scala/rocket/DCache.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/rocket/DCache.scala b/src/main/scala/rocket/DCache.scala index 94d8b4a9..b62a927a 100644 --- a/src/main/scala/rocket/DCache.scala +++ b/src/main/scala/rocket/DCache.scala @@ -307,7 +307,7 @@ class DCacheModule(outer: DCache) extends HellaCacheModule(outer) { s2_req.cmd := req.cmd s2_req.typ := req.typ s2_req.tag := req.tag - s2_req.addr := Cat(s1_paddr >> wordOffBits /* don't-care */, req.addr(wordOffBits-1, 0)) + s2_req.addr := Cat(s1_paddr >> beatOffBits /* don't-care */, req.addr(beatOffBits-1, 0)) } .elsewhen (grantIsVoluntary) { assert(release_ack_wait, "A ReleaseAck was unexpected by the dcache.") // TODO should handle Ack coming back on same cycle! release_ack_wait := false