Skip to content

Commit

Permalink
Debug: Option[PSIO] in tieoffDebug
Browse files Browse the repository at this point in the history
  • Loading branch information
rmac-sifive committed Nov 5, 2019
1 parent f31e21b commit e9a359e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/devices/debug/Periphery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ object Debug {
}
}

def tieoffDebug(debugOpt: Option[DebugIO], psdio: PSDIO): Bool = {
def tieoffDebug(debugOpt: Option[DebugIO], psdio: Option[PSDIO] = None): Bool = {

psdio.psd.foreach { _ <> new PSDTestMode().fromBits(0.U)}
psdio.foreach(_.psd.foreach { _ <> new PSDTestMode().fromBits(0.U)})
debugOpt.map { debug =>
debug.systemjtag.foreach { sj =>
sj.jtag.TCK := Bool(true).asClock
Expand Down

0 comments on commit e9a359e

Please sign in to comment.