From 6f77371c44aa609d2e091186e47d6320fffdaad7 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Sat, 14 Apr 2018 11:18:56 +0200 Subject: [PATCH] JTAG_master class: fix bug that wrongly changed state to Scan when TMS is 0 --- sim/cocotb/c4m_jtag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/cocotb/c4m_jtag.py b/sim/cocotb/c4m_jtag.py index 48d2677..529e66b 100644 --- a/sim/cocotb/c4m_jtag.py +++ b/sim/cocotb/c4m_jtag.py @@ -62,7 +62,7 @@ class JTAG_Master(object): @cocotb.coroutine def cycle_clock(self, cycles=1): - if self.state == "Run" and self.tms: + if self.state == "Run" and self.tms == 1: self.state = "Scan" yield self.clkgen.Cycle(cycles) -- 2.30.2