1
0

chisel3 fix for split metadata

This commit is contained in:
Howard Mao 2016-03-30 22:11:19 -07:00
parent 3d990bdbef
commit d78066db5c

View File

@ -158,7 +158,7 @@ class MetadataArray[T <: Metadata](onReset: () => T)(implicit p: Parameters) ext
if (hasSplitMetadata) { if (hasSplitMetadata) {
val tag_arrs = List.fill(nWays){ SeqMem(nSets, UInt(width = metabits)) } val tag_arrs = List.fill(nWays){ SeqMem(nSets, UInt(width = metabits)) }
val tag_readout = Wire(Vec(nWays,rstVal.cloneType)) val tag_readout = Wire(Vec(nWays,rstVal.cloneType))
val tags_vec = Wire(Vec.fill(nWays)(UInt(width = metabits))) val tags_vec = Wire(Vec(nWays, UInt(width = metabits)))
(0 until nWays).foreach { (i) => (0 until nWays).foreach { (i) =>
when (rst || (io.write.valid && wmask(i))) { when (rst || (io.write.valid && wmask(i))) {
tag_arrs(i).write(waddr, wdata) tag_arrs(i).write(waddr, wdata)