[Libre-soc-bugs] [Bug 50] nmigen pinmux

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Nov 29 14:59:47 GMT 2021


--- Comment #52 from andrey at technepisteme.xyz ---
Removed code I took from the JTAG server test, replaced it with a simple sanity
test case.


I'm getting a TypeError because simulator does not consider this function:
def test_case0():
    print("Starting sanity test case!")
    yield top.gpio_0__gpio_0__i__io.eq(0)

Even though I have 'yield' statements in the function itself.

Traceback (most recent call last):
  File "testing_stage1.py", line 361, in <module>
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 85, in
    process = self._check_process(process)
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 73, in _check_process
TypeError: Cannot add a process <generator object test_case0 at 0x7f459ca149a8>
because it is not a generator function

What am I missing from the function to make it a generator?

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list