From f633a557222b1e9ff3c7f2da79b5b4e40fa1fc64 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Mon, 16 Jul 2012 22:19:03 -0700 Subject: [PATCH] fix dcache tag array size --- rocket/src/main/scala/nbdcache.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocket/src/main/scala/nbdcache.scala b/rocket/src/main/scala/nbdcache.scala index c99cc0e0..c9a172a2 100644 --- a/rocket/src/main/scala/nbdcache.scala +++ b/rocket/src/main/scala/nbdcache.scala @@ -605,7 +605,7 @@ class MetaDataArrayArray(lines: Int) extends Component { val permBits = io.req.bits.data.state.width val perms = Mem(lines) { UFix(width = permBits*NWAYS) } - val tags = Mem(lines*NWAYS, seqRead = true) { Bits(width = TAG_BITS*NWAYS) } + val tags = Mem(lines, seqRead = true) { Bits(width = TAG_BITS*NWAYS) } val tag = Reg() { Bits() } val raddr = Reg() { Bits() } val way_en_ = Reg { Bits(width=NWAYS) }