Function is a generator.
authorStaf Verhaegen <staf@stafverhaegen.be>
Tue, 6 Apr 2021 18:37:34 +0000 (20:37 +0200)
committerStaf Verhaegen <staf@stafverhaegen.be>
Tue, 6 Apr 2021 18:37:34 +0000 (20:37 +0200)
ls180/pre_pnr/test.py

index 9abada1afa8c8d0c60bacc2a5c4152f26fd77c32..77a9958dba305d2b094a18b40025bd1460d06d59 100644 (file)
@@ -145,8 +145,8 @@ def setup_sim(dut, *, info, clk_period, run):
 
 
 def setup_jtag(wrap, *, tck_period):
-    # TODO: Make this a generator
     if False:
+        # Yield is never executed but it makes this function a generator
         yield Timer(0)
     return JTAG_Master(wrap.tck, wrap.tms, wrap.tdi, wrap.tdo,
                        clk_period=tck_period,