1
0

Jtagresettobool - add explicit toBool cast now required on reset. (#984)

Add explicit toBool cast on reset, for chisel3 compatability
This commit is contained in:
Jim Lawson 2017-09-06 09:49:47 -07:00 committed by Megan Wachs
parent 55a0df4186
commit f1b7666d21

View File

@ -100,7 +100,7 @@ class JtagTapController(irLength: Int, initialInstruction: BigInt) extends Modul
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
when (reset) {
when (reset.toBool) {
nextActiveInstruction := initialInstruction.U(irLength.W)
updateInstruction := true.B
} .elsewhen (currState === JtagState.UpdateIR.U) {