Marcus
Marcus

Reputation: 41

Problem with cocotb example code getting to work

I got a few of the cocotb examples running, but not the most referenced to (endian_swapper).

Any advice is appreciated. Thanks in advance!

make SIM=ghdl TOPLEVEL_LANG=vhdl

...

0.00ns CRITICAL cocotb.regression                         regression.py:137  in initialise                      Failed to import module test_endian_swapper_hal: 'return' with argument inside generator (test_endian_swapper_hal.py, line 67)
....


SyntaxError: 'return' with argument inside generator
     0.00ns ERROR    cocotb.gpi                                  gpi_embed.c:425  in embed_sim_init                  cocotb initialization failed - exiting
     0.00ns ERROR    cocotb.scheduler                            __init__.py:198  in _sim_event                      Failing test at simulator request before test run completion: Simulator shutdown prematurely

Upvotes: 0

Views: 1767

Answers (1)

cmarqu
cmarqu

Reputation: 503

Does this suggestion help you?: https://github.com/cocotb/cocotb/issues/1539#issuecomment-605706516

If you feel a bit more adventurous, install cocotb master where this is fixed (one minute ago :).

Upvotes: 1

Related Questions