X-Git-Url: https://git.libre-soc.org/?p=c4m-jtag.git;a=blobdiff_plain;f=sim%2Fcocotb%2Fc4m_jtag.py;h=1dd13b1ee0d1a0c3e47859421735bc27db5dd0a5;hp=fe014f381182feacf050b22dbd55cb6785ce305d;hb=39348d09c3b71570d10251ed1124bc00539782a8;hpb=eb7100a9a5c02c468dcffc91b98918757084fc59 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