Closed qarlosalberto closed 4 years ago
It works for me with GHDL 1.0-dev (v0.37.0-959-ga18e1503). The waveform is located at the sim_build
folder.
Is there a way to see the GHDL command? A debug output?
I'm using the master branch of cocotb-test
I'm not aware of any debug output.
In your case it might be a naming issue. The Simulator
class expects an parameter with the name simulation_args
instead of sim_args
. See https://github.com/themperek/cocotb-test/blob/master/cocotb_test/simulator.py#L43.
Ohhh yes, the problem was in simulation_args
Thank you! :)
Should we change simulation_args
to sim_args
?
I think yes, it's a little confused. And it doesn't show any error, you don't know what is happen :/
Other idea is to show an error/warning if you pass an invalid argument:
run(
verilog_sources=[os.path.join(example_dir, "ping_tun_tap", "hdl", "icmp_reply.sv")],
toplevel="icmp_reply",
python_search=[os.path.join(example_dir, "ping_tun_tap", "tests")],
module="test_icmp_reply",
bad_argument="other"
)
Other idea is to show an error/warning if you pass an invalid argument:
This would make customization more painful. But maybe makes sense to change this. Remove this line: https://github.com/themperek/cocotb-test/blob/f67762202aa0c48b4db8488a07b8010836c96694/cocotb_test/simulator.py#L53
Hi,
I'm having problems to generate the waveform with cocotb-test and GHDL:
I can generate the .vcd waveform with a simple Makefile:
But no with cocotb-test:
SIM=ghdl pytest -v -s --junitxml=test-results.xml --cocotbxml=test-cocotb.xml