1
0
Fork 0
rocket-chip/src/main/scala/util/PSDTestMode.scala

20 lines
434 B
Scala
Raw Normal View History

2017-09-14 22:17:37 +02:00
// See LICENSE.SiFive for license details.
package freechips.rocketchip.util
import Chisel._
import freechips.rocketchip.config._
case object IncludePSDTest extends Field[Boolean](false)
class PSDTestMode extends Bundle {
val test_mode = Bool()
val test_mode_reset = Bool()
2017-09-14 22:17:37 +02:00
// TODO: Clocks?
}
trait CanHavePSDTestModeIO {
implicit val p: Parameters
val psd = p(IncludePSDTest).option(new PSDTestMode().asInput)
2017-09-14 22:17:37 +02:00
}