Add cover points for BusErrorUnit (#1193)
This commit is contained in:
parent
6c6afc5bc9
commit
80ca018e3a
@ -12,6 +12,7 @@ import freechips.rocketchip.diplomacy._
|
|||||||
import freechips.rocketchip.regmapper._
|
import freechips.rocketchip.regmapper._
|
||||||
import freechips.rocketchip.tilelink._
|
import freechips.rocketchip.tilelink._
|
||||||
import freechips.rocketchip.interrupts._
|
import freechips.rocketchip.interrupts._
|
||||||
|
import freechips.rocketchip.util.property._
|
||||||
|
|
||||||
trait BusErrors extends Bundle {
|
trait BusErrors extends Bundle {
|
||||||
def toErrorList: List[Option[Valid[UInt]]]
|
def toErrorList: List[Option[Valid[UInt]]]
|
||||||
@ -59,6 +60,7 @@ class BusErrorUnit[T <: BusErrors](t: => T, params: BusErrorUnitParams)(implicit
|
|||||||
cause := i
|
cause := i
|
||||||
value := s.get.bits
|
value := s.get.bits
|
||||||
}
|
}
|
||||||
|
cover(en, s"BusErrorCause_$i", s"Core;;BusErrorCause $i covered")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user