-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC][WIP] Fix failing ghdl test #950
Conversation
Now Travis with GHDL starts but still fails some test units. Please check the log and let me know. |
Can't you access https://travis-ci.org/potentialventures/cocotb/jobs/545147125? Essentially, it's /home/travis/build/potentialventures/cocotb/tests/test_cases/test_iteration_vhdl/../../../tests/designs/viterbi_decoder_axi4s/src/generic_sp_ram.vhd:16:10:error: unit "std_logic_unsigned" not found in library "ieee" |
So adding |
This is an initial attempt to fix ghdl errors with dec_viterbi.
With this commit the test starts, but fails with
Already done. Anyways, this was only the first step; thanks to b36337b the design it is now consistent and can be elaborated and run by GHDL. In short now the test fails when it tries to access any element in |
Any idea this is an issue of cocotb or ghdl? |
For me it is related to GHDL because with Questa Modelsim all the tests pass without error. Moreover, i have checked the |
Without looking deeper into this, this could be both a cocotb bug or a GHDL bug. GHDL is special in that it uses VPI, while any other VHDL simulator uses VHPI. I wouldn't therefore rule out bugs in this area as well. However, VPI support is pretty stable in cocotb and very well tested, so a GHDL bug seems more likely. How to debug further:
(Looks like there are other GHDL bugs open on VPI, e.g. this one ghdl/ghdl#762. Maybe you can look through their bug reports as well?) |
Needs close / reopening to rerun travis |
As you can see from travis this little PR only uncovers more errors. Unfortunately i can not go deeper in ghdl and cocotb by myself at the moment. Please let me know if you find something else |
Yes, you can close. |
@garzetti You ware first but I have missed this due to [WIP] sorry and thank you! |
While trying to fix the ghdl issues with dec_viterbi, another error popped up, this time apparently with VPI. Somehow, here cocotb fails to get the element 0. Tracking down the issue, it seems that the problem comes from here, as the returned
new_handle
is0
.Unfortunately, I'm not yet able to track it down by myself, any suggestion? This seems to be quite important, as it is currently impossible to reference any instance generated with the "
for ... generate
" construct.Thanks.