Given the D-FF example from cocotb/examples/dff/. What is the proper way to pass an argument from the Makefile
to the cocotb testbench dff_cocotb.py
without modifying the native cocotb makefiles?
I tried to modify line 30 of cocotb/examples/dff/tests/Makefile:
sim:
$(MODULE).py testarg
respectively
sim: $(MODULE).py
$(MODULE).py:
$(MODULE).py testarg
which doesn't work and shows the error message:
usage: cocotb [-h] test
cocotb: error: too few arguments