From f1b7666d21e1a6df17cd3093c15492deacde9a3d Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Wed, 6 Sep 2017 09:49:47 -0700 Subject: [PATCH] Jtagresettobool - add explicit toBool cast now required on reset. (#984) Add explicit toBool cast on reset, for chisel3 compatability --- src/main/scala/jtag/JtagTap.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/jtag/JtagTap.scala b/src/main/scala/jtag/JtagTap.scala index 8470e9d9..78468582 100644 --- a/src/main/scala/jtag/JtagTap.scala +++ b/src/main/scala/jtag/JtagTap.scala @@ -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) {