Skip to content

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

@penguali

Description

@penguali

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions