From 9f89c812b7d2b1c7761bf68fe3f19d28ad74850c Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 29 Jan 2013 23:08:25 -0800 Subject: [PATCH] fix HTIF memory size reporting --- rocket/src/main/scala/htif.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocket/src/main/scala/htif.scala b/rocket/src/main/scala/htif.scala index 6ec29fd4..96618f06 100644 --- a/rocket/src/main/scala/htif.scala +++ b/rocket/src/main/scala/htif.scala @@ -258,7 +258,7 @@ class rocketHTIF(w: Int)(implicit conf: CoherenceHubConfiguration) extends Compo for (i <- 0 until scr_rdata.size) scr_rdata(i) := io.scr.rdata(i) scr_rdata(0) := conf.ln.nTiles - scr_rdata(1) := UFix(REFILL_CYCLES*MEM_DATA_BITS/8) << x_init.io.enq.bits.addr.getWidth + scr_rdata(1) := (UFix(REFILL_CYCLES*MEM_DATA_BITS/8) << x_init.io.enq.bits.addr.getWidth) >> 20 io.scr.wen := false io.scr.wdata := pcr_wdata