Regarding the merge of coverage Databases, proper procedure to merge DBs for the same test

I’m new using coverage databases, but it is required for my current work.

My idea (according to what I understood from the coverage information I’ve read) was to create a DB with each test and the merge then merge the coverage data for the different tests into the same database, hence increasing the coverage data with each successive test.

Now the problem is that I cannot merge the coverage data from two tests with the same name, where name is literally the value of the parameter +UVM_TESTNAME I pass in the commmand line, which corresponds to the name of a class in in my UVM code.

The reason that I would like to merge the coverage data for different tests it is because I’m learning so I change some parameters and I would like to add the information (if any) created by the same test with the different parameters. How can I do this?

The code I use is:

coverage save -uvmtestname ./UCDB/temp.ucdb
vcover merge -testassociated -out ./UCDB/top.ucdb ./UCDB/temp.ucdb ./UCDB/top.ucdb

This gives the error:

** Error (suppressible): (vcover-6854) Multiple test data records with the same name encountered during the merge

of file ‘./UCDB/top.ucdb’.

What should I do?

*In reply to aarelovich:*This forum is not for tool specific issues. Please contact your vendor directly for support,

In reply to dave_59:

But I don’t understand. There is an answer to a similar problem in this very forum: teststatus 5 (error) when merging UCDBs of same test record name | Verification Academy

(That I can’t use as I can’t just change the name of the test each time I run it)

In reply to aarelovich:

The question you referred to gives you the solution you are looking for. You need to set the UCDB attribute TESTNAME to a unique value for each run. Perhaps UVM_TESTNAME_PARM1_PARM2…

Although be advised that if your parameters change anything DUT related, you will have merge issues.

In reply to cgales:

Ok. Thank you, I’ll be sure to try it out.