Jtagresettobool - add explicit toBool cast now required on reset. (#984)
Add explicit toBool cast on reset, for chisel3 compatability
This commit is contained in:
parent
55a0df4186
commit
f1b7666d21
@ -100,7 +100,7 @@ class JtagTapController(irLength: Int, initialInstruction: BigInt) extends Modul
|
|||||||
val nextActiveInstruction = Wire(UInt(irLength.W))
|
val nextActiveInstruction = Wire(UInt(irLength.W))
|
||||||
val activeInstruction = NegativeEdgeLatch(clock, nextActiveInstruction, updateInstruction, name = Some("irReg")) // 7.2.1d active instruction output latches on TCK falling edge
|
val activeInstruction = NegativeEdgeLatch(clock, nextActiveInstruction, updateInstruction, name = Some("irReg")) // 7.2.1d active instruction output latches on TCK falling edge
|
||||||
|
|
||||||
when (reset) {
|
when (reset.toBool) {
|
||||||
nextActiveInstruction := initialInstruction.U(irLength.W)
|
nextActiveInstruction := initialInstruction.U(irLength.W)
|
||||||
updateInstruction := true.B
|
updateInstruction := true.B
|
||||||
} .elsewhen (currState === JtagState.UpdateIR.U) {
|
} .elsewhen (currState === JtagState.UpdateIR.U) {
|
||||||
|
Loading…
Reference in New Issue
Block a user