debug: Clean up ValidReg assertion.
This commit is contained in:
parent
0c013a56c0
commit
5934779082
@ -196,7 +196,8 @@ class DebugTransportModuleJTAG(debugAddrBits: Int, c: JtagDTMConfig)
|
|||||||
//--------------------------------------------------------
|
//--------------------------------------------------------
|
||||||
// Drive Ready Valid Interface
|
// Drive Ready Valid Interface
|
||||||
|
|
||||||
assert(!(dmiAccessChain.io.update.valid && io.dmi.req.ready), "Conflicting updates for dmiReqValid, should not happen.");
|
val dmiReqValidCheck = Wire(init = Bool(false))
|
||||||
|
assert(!(dmiReqValidCheck && io.dmi.req.fire()), "Conflicting updates for dmiReqValidReg, should not happen.");
|
||||||
|
|
||||||
when (dmiAccessChain.io.update.valid) {
|
when (dmiAccessChain.io.update.valid) {
|
||||||
when (skipOpReg) {
|
when (skipOpReg) {
|
||||||
@ -206,15 +207,19 @@ class DebugTransportModuleJTAG(debugAddrBits: Int, c: JtagDTMConfig)
|
|||||||
dmiReqReg.addr := UInt(0)
|
dmiReqReg.addr := UInt(0)
|
||||||
dmiReqReg.data := UInt(0)
|
dmiReqReg.data := UInt(0)
|
||||||
dmiReqReg.op := UInt(0)
|
dmiReqReg.op := UInt(0)
|
||||||
|
|
||||||
}.otherwise {
|
}.otherwise {
|
||||||
dmiReqReg := dmiAccessChain.io.update.bits
|
dmiReqReg := dmiAccessChain.io.update.bits
|
||||||
dmiReqValidReg := Bool(true)
|
dmiReqValidReg := Bool(true)
|
||||||
|
dmiReqValidCheck := Bool(true)
|
||||||
}
|
}
|
||||||
}.otherwise {
|
}
|
||||||
when (io.dmi.req.ready) {
|
|
||||||
|
when (io.dmi.req.fire()) {
|
||||||
dmiReqValidReg := Bool(false)
|
dmiReqValidReg := Bool(false)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
io.dmi.resp.ready := dmiAccessChain.io.capture.capture
|
io.dmi.resp.ready := dmiAccessChain.io.capture.capture
|
||||||
io.dmi.req.valid := dmiReqValidReg
|
io.dmi.req.valid := dmiReqValidReg
|
||||||
|
Loading…
Reference in New Issue
Block a user