1
0

add assertion to make sure SimpleHellaCacheIF doesn't get exception

This commit is contained in:
Howard Mao 2016-05-20 16:30:27 -07:00
parent 4aef567a80
commit f228309bd1

View File

@ -1171,4 +1171,9 @@ class SimpleHellaCacheIF(implicit p: Parameters) extends Module
} }
io.requestor.resp := io.cache.resp io.requestor.resp := io.cache.resp
assert(!Reg(next = io.cache.req.fire()) ||
!(io.cache.xcpt.ma.ld || io.cache.xcpt.ma.st ||
io.cache.xcpt.pf.ld || io.cache.xcpt.pf.st),
"SimpleHellaCacheIF exception")
} }