Default to 8 PMPs; support 0 PMPs

This commit is contained in:
Andrew Waterman committed 2017-03-24 16:39:52 -07:00
1 parent 97006ab396
commit 17b1ee3037
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ class PMPChecker(lgMaxSize: Int)(implicit p: Parameters) extends CoreModule()(p)
val x = Bool(OUTPUT)
}
val default = io.prv > PRV.S
val default = if (io.pmp.isEmpty) true.B else io.prv > PRV.S
val pmp0 = Wire(init = 0.U.asTypeOf(new PMP))
pmp0.cfg.r := default
pmp0.cfg.w := default