Skip to content

Commit

Permalink
make JtagNative signal visible in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
goekce committed Nov 13, 2024
1 parent e0f4bac commit 110b2a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/scala/vexriscv/demo/Murax.scala
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ case class Murax(config : MuraxConfig) extends Component{
val xip = ifGen(genXip)(master(SpiXdrMaster(xipConfig.ctrl.spi)))
}

val jtagNative = withNativeJtag generate new ClockingArea(debugClockDomain){
val jtagCtrl = JtagTapInstructionCtrl()
val tap = jtagCtrl.fromXilinxBscane2(userId = 2)
}

val resetCtrlClockDomain = ClockDomain(
clock = io.mainClk,
Expand Down Expand Up @@ -256,9 +260,7 @@ case class Murax(config : MuraxConfig) extends Component{
case plugin : DebugPlugin => plugin.debugClockDomain{
resetCtrl.systemReset setWhen(RegNext(plugin.io.resetOut))
if (withNativeJtag) {
val jtagCtrl = JtagTapInstructionCtrl()
val tap = jtagCtrl.fromXilinxBscane2(userId = 2)
jtagCtrl <> plugin.io.bus.fromJtagInstructionCtrl(ClockDomain(tap.TCK),0)
jtagNative.jtagCtrl <> plugin.io.bus.fromJtagInstructionCtrl(ClockDomain(jtagNative.tap.TCK),0)
} else {
io.jtag <> plugin.io.bus.fromJtag()
}
Expand Down

0 comments on commit 110b2a1

Please sign in to comment.