Skip to content
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

Unable to write coverage via UCIS API (Cadence) #229

Open
penguali opened this issue Dec 3, 2024 · 2 comments
Open

Unable to write coverage via UCIS API (Cadence) #229

penguali opened this issue Dec 3, 2024 · 2 comments

Comments

@penguali
Copy link

penguali commented Dec 3, 2024

I am trying to write out the coverage from a testbench written in cocotb using this line:

vsc.write_coverage_db('cov.db', fmt='libucis', libucis='libucis.so')

However, I am getting an AttributeError from ucis:

vsc.write_coverage_db('cov.db', fmt='libucis', libucis='libucis.so')
File "/path/to/venv/lib/python3.12/site-packages/vsc/__init__.py", line 113, in write_coverage_db
                                                            LibFactory.load_ucis_library(libucis)
File "/path/to/venv/lib/python3.12/site-packages/ucis/lib/LibFactory.py", line 42, in load_ucis_library
                                                            libucis.load_ucis_library(lib)
File "/path/to/venv/lib/python3.12/site-packages/ucis/lib/libucis.py", line 146, in load_ucis_library
                                                            func = proto((f, _lib), attr)
                                                                   ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: /path/to/libucis.so: undefined symbol: ucis_CreateHistoryNode

Any idea what could be going wrong here? Is there anything that I must configure prior to writing the coverage data?
I am able to write the coverage in the XML format though.

Thanks in advance.

@mballance
Copy link
Member

I recommend checking in with your Cadence Application Engineer. Different vendors have different preferred approaches to bringing in coverage data -- and these may even change over time. I seem to recall that there was a utility for importing coverage data. But, again, this may have changed.

@penguali
Copy link
Author

penguali commented Dec 3, 2024

Ok thanks for the reply. I will keep this issue open for a while until I find a way to import the coverage with Cadence.
If I find any solution, I will post it here. If not then I will just close it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants