0

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
cmarqu
  • 493
  • 3
  • 10
Marcus
  • 41
  • 1
  • 4

1 Answers1

1

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 :).

cmarqu
  • 493
  • 3
  • 10
  • Eric says you are using Python 2.7 somehow. Setting ``PYTHON_BIN``should help. We are currently working on making sure such a mixup is not possible anymore, – cmarqu Apr 05 '20 at 21:55
  • I believe https://github.com/cocotb/cocotb/pull/1574 will fix this – Eric Apr 06 '20 at 10:28