From f228309bd106b6f84c13c9d8e3ccd8f1717f9579 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Fri, 20 May 2016 16:30:27 -0700 Subject: [PATCH] add assertion to make sure SimpleHellaCacheIF doesn't get exception --- rocket/src/main/scala/nbdcache.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rocket/src/main/scala/nbdcache.scala b/rocket/src/main/scala/nbdcache.scala index 2181b96e..14a91f5d 100644 --- a/rocket/src/main/scala/nbdcache.scala +++ b/rocket/src/main/scala/nbdcache.scala @@ -1171,4 +1171,9 @@ class SimpleHellaCacheIF(implicit p: Parameters) extends Module } 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") }