From: Staf Verhaegen Date: Tue, 6 Apr 2021 18:37:34 +0000 (+0200) Subject: Function is a generator. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76742d4325fe43f146a5d32b274ccf02c84cfa6a;p=soc-cocotb-sim.git Function is a generator. --- diff --git a/ls180/pre_pnr/test.py b/ls180/pre_pnr/test.py index 9abada1..77a9958 100644 --- a/ls180/pre_pnr/test.py +++ b/ls180/pre_pnr/test.py @@ -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,