I tried to merge functional coverage for 2 test. its not getting merged. it always show same figure.
can anybody comment on it. further when I collect coverage for individual test, for both test, it shows 30%. but for second test when I see internal covergroup figures, those are different. strange behaviour. I am using IRUN to dump coverage data.
I am using following commands to merge it.
Your help will be highly appreciated. thanks in advance.
when I prepared an example to check this issue. tool works perfectly fine. I dont know why it is not able to merge with our setup. this is a strange behaviour of this tool.
In reply to sautech:
This is solved.
Basically I had a filelist for testbench and I was giving this filelist for compilation to this tool. in that case all classes probably will be in compilation unit scope. and we were setting set_dut_modules to our DUT. so I took all Testbench files inside TOP module. the moment i did so, it started merging correctly.
If anybody is facing this issue check your coverage classes not to be in compilation unit scope. if it is, take it inside top module and while coverage options , give -covdut "top_module". and you are done. for me it worked fine.
sorry guys. ignore previous solution, that i gave. it doesn't work fully.
the real issue was "set_dut_modules <top_module>".
if you have set your dut module while merging, it will try to merge only this module across all tests. in my case i had testbench classes in compilation unit scope and hence was not merging it. by not setting set_dut_modules, it worked fine for me without any more issues.