From 76742d4325fe43f146a5d32b274ccf02c84cfa6a Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Tue, 6 Apr 2021 20:37:34 +0200 Subject: [PATCH] Function is a generator. --- ls180/pre_pnr/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2