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)
|
|
|
|
|
2017-09-15 21:30:39 +02:00
|
|
|
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
|
2017-09-15 21:30:39 +02:00
|
|
|
val psd = p(IncludePSDTest).option(new PSDTestMode().asInput)
|
2017-09-14 22:17:37 +02:00
|
|
|
}
|