Skip to content

Commit

Permalink
Add EmbeddedRiscvJtag noTap with tunnel support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Jul 17, 2024
1 parent 11ff576 commit 49b3f9c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/scala/vexriscv/plugin/EmbeddedRiscvJtag.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import vexriscv._
class EmbeddedRiscvJtag(var p : DebugTransportModuleParameter,
var debugCd : ClockDomain = null,
var withTap : Boolean = true,
var withTunneling : Boolean = false
var withTunneling : Boolean = false,
var jtagCd : ClockDomain = null
) extends Plugin[VexRiscv] with VexRiscvRegressionArg{


Expand Down Expand Up @@ -69,6 +70,15 @@ class EmbeddedRiscvJtag(var p : DebugTransportModuleParameter,
dm.io.ctrl <> logic.io.bus
logic.io.jtag <> jtag
}
val dmiDirectInstr = if (!withTap && withTunneling) new Area {
val logic = DebugTransportModuleTunneled(
p.copy(addressWidth = 7),
debugCd = ClockDomain.current,
jtagCd = jtagCd
)
dm.io.ctrl <> logic.io.bus
logic.io.instruction <> jtagInstruction
}

val privBus = pipeline.service(classOf[CsrPlugin]).debugBus.setAsDirectionLess()
privBus <> dm.io.harts(0)
Expand Down

0 comments on commit 49b3f9c

Please sign in to comment.