1
0

Default to 8 PMPs; support 0 PMPs

This commit is contained in:
Andrew Waterman
2017-03-24 15:55:51 -07:00
parent 97006ab396
commit 17b1ee3037
4 changed files with 4 additions and 4 deletions

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