1
0

correct use of function value to initialize MetaDataArray

This commit is contained in:
Henry Cook 2014-05-06 13:00:00 -07:00
parent 7f690dd9c8
commit 7d6a642c0c

View File

@ -771,7 +771,8 @@ class HellaCache(implicit conf: DCacheConfig) extends Module {
io.cpu.xcpt.pf.st := s1_write && dtlb.io.resp.xcpt_st io.cpu.xcpt.pf.st := s1_write && dtlb.io.resp.xcpt_st
// tags // tags
val meta = Module(new MetaDataArray(L1MetaData(tl.co.newStateOnFlush,UInt(0)))) def onReset = L1MetaData(tl.co.newStateOnFlush, UInt(0))
val meta = Module(new MetaDataArray(onReset _))
val metaReadArb = Module(new Arbiter(new MetaReadReq, 5)) val metaReadArb = Module(new Arbiter(new MetaReadReq, 5))
val metaWriteArb = Module(new Arbiter(new MetaWriteReq(new L1MetaData), 2)) val metaWriteArb = Module(new Arbiter(new MetaWriteReq(new L1MetaData), 2))
metaReadArb.io.out <> meta.io.read metaReadArb.io.out <> meta.io.read