Connect debug clocks when debug is tied off

This commit is contained in:
Colin Schmidt
2020-05-07 11:24:17 -07:00
parent 3c18880064
commit 596925020f

View File

@@ -256,8 +256,9 @@ class WithTiedOffDebug extends OverrideIOBinder({
Debug.tieoffDebug(debugPortOpt, resetctrlOpt, Some(psdPort))(system.p)
// tieoffDebug doesn't actually tie everything off :/
debugPortOpt.foreach { d =>
d.clockeddmi.foreach({ cdmi => cdmi.dmi.req.bits := DontCare })
d.clockeddmi.foreach({ cdmi => cdmi.dmi.req.bits := DontCare; cdmi.dmiClock := th.clock })
d.dmactiveAck := DontCare
d.clock := th.clock
}
Nil
}