Skip to content

Commit

Permalink
Merge pull request chipsalliance#2181 from chipsalliance/tieoffdebug-…
Browse files Browse the repository at this point in the history
…psd-option

Debug: Option[PSDIO] in tieoffDebug
  • Loading branch information
rmac-sifive authored Nov 6, 2019
2 parents b64853a + e9a359e commit 5c78478
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 5c78478

Please sign in to comment.