From: Staf Verhaegen Date: Thu, 3 Oct 2019 14:47:47 +0000 (+0200) Subject: cocotb/c4m_jtag: support trst_n to be None. X-Git-Tag: 24jan2021ls180~54 X-Git-Url: https://git.libre-soc.org/?p=c4m-jtag.git;a=commitdiff_plain;h=39348d09c3b71570d10251ed1124bc00539782a8;hp=d0c115f5320d122f1256fcf4a56147e8a020f0b8 cocotb/c4m_jtag: support trst_n to be None. --- 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