Adjust JTAG for rocket-chip changes
This commit is contained in:
parent
25356957fe
commit
77246eaada
@ -26,14 +26,15 @@ class JTAGPinsIO extends Bundle {
|
|||||||
class JTAGGPIOPort()(implicit p: Parameters) extends Module {
|
class JTAGGPIOPort()(implicit p: Parameters) extends Module {
|
||||||
|
|
||||||
val io = new Bundle {
|
val io = new Bundle {
|
||||||
val jtag = new JTAGIO()
|
// TODO: make this not hard-coded true.
|
||||||
|
val jtag = new JTAGIO(hasTRSTn = true)
|
||||||
val pins = new JTAGPinsIO()
|
val pins = new JTAGPinsIO()
|
||||||
}
|
}
|
||||||
|
|
||||||
io.jtag.TCK := GPIOInputPinCtrl(io.pins.TCK, pue = Bool(true)).asClock
|
io.jtag.TCK := GPIOInputPinCtrl(io.pins.TCK, pue = Bool(true)).asClock
|
||||||
io.jtag.TMS := GPIOInputPinCtrl(io.pins.TMS, pue = Bool(true))
|
io.jtag.TMS := GPIOInputPinCtrl(io.pins.TMS, pue = Bool(true))
|
||||||
io.jtag.TDI := GPIOInputPinCtrl(io.pins.TDI, pue = Bool(true))
|
io.jtag.TDI := GPIOInputPinCtrl(io.pins.TDI, pue = Bool(true))
|
||||||
io.jtag.TRSTn := GPIOInputPinCtrl(io.pins.TRSTn, pue = Bool(true))
|
io.jtag.TRSTn.get := GPIOInputPinCtrl(io.pins.TRSTn, pue = Bool(true))
|
||||||
|
|
||||||
GPIOOutputPinCtrl(io.pins.TDO, io.jtag.TDO.data)
|
GPIOOutputPinCtrl(io.pins.TDO, io.jtag.TDO.data)
|
||||||
io.pins.TDO.o.oe := io.jtag.TDO.driven
|
io.pins.TDO.o.oe := io.jtag.TDO.driven
|
||||||
|
Loading…
Reference in New Issue
Block a user