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
Issues with SV structs in both Questa & Xcelium (some is probably a tool bug, but others are cocotb bug) #2982
Comments
This shows the |
If you run cocotb with environment variable |
For the test_quest_vpi_cocotb.zip, with
and as I said, I think it is because of the missing line in the case statement that I showed above. |
Regarding VPI, I'm sure that it has incomplete support. We would welcome a PR to add |
Update VpiImpl.cpp for git issue cocotb#2982 to correctly identify vpiPackedArrayNet as a valid type. A runnable example is shown in the git issue
To clarify this, syntaxes in verilog like
is not yet supported? |
Update VpiImpl.cpp for git issue cocotb#2982 to correctly identify vpiPackedArrayNet as a valid type. A runnable example is shown in the git issue
I was having issues running Questa 2020.2 and 2022.2 to read or write from system verilog structs declared as wires that have arrays under them.
To that end I made a 'test_quest_vpi' test case with a simple vpi.c and test_quest_vpi.sv.
Its also possible to see these kinds of error by running a cocotb bench and modifying the nets that I named. I beleive that the simplified VPI code runs similarly to what the cocotb code is doing because I get essentially the same seg crash
# calling vpi_get_value(0xec2302c0, &{vpiBinStrVal, {0}}) ... ** Fatal: (SIGSEGV) Bad handle or reference.
I already opened a ticket with Siemens about this but I wanted to let the broader community know.
I also noticed that in
VpiImpl.cpp
that there is nocase vpiPackedArrayNet:
under eitherstatic gpi_objtype_t to_gpi_objtype
or*VpiImpl::create_gpi_obj_from_handle
and that might be an additional issue in the cocotb code base itself, but my minimal example shows that there are atleast some issues with Questa in general.test_questa_vpi.zip
The text was updated successfully, but these errors were encountered: