From 39348d09c3b71570d10251ed1124bc00539782a8 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Thu, 3 Oct 2019 16:47:47 +0200 Subject: [PATCH] cocotb/c4m_jtag: support trst_n to be None. --- sim/cocotb/c4m_jtag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim/cocotb/c4m_jtag.py b/sim/cocotb/c4m_jtag.py index fe014f3..1dd13b1 100644 --- a/sim/cocotb/c4m_jtag.py +++ b/sim/cocotb/c4m_jtag.py @@ -44,7 +44,8 @@ class JTAG_Master(object): tdi <= 0 self.tdo = tdo self.trst_n = trst_n - trst_n <= 1 + if trst_n is not None: + trst_n <= 1 self.period = Timer(clk_period) # Standard commands -- 2.30.2