Exclude functional coverage for particular test

Started by Ravisinha on 21 Jun 2011 2:44 AM. Topic has 5 replies and 3295 views.
Last post on 24 Jun 2011 2:49 AM by StephenH.

Hi All,
I am running regression for my SOC and that list contains the register write-read test also, and because of that my vr_ad functional coverage is 100%.
Is that any way/switch by which for register write-read testcase i can disable collecting the functional coverage in SPECMAN.
Thanks in advance.

5 Replies

An excellent question, as this highlights the danger of relying on automatic coverage.

In vr_ad you can constrain the has_coverage field of your vr_ad_map or vr_ad_reg_file. By default it's TRUE, but if you constrain it to FALSE then you won't get any coverage collected. So, in your test file you can do something like:

extend my_env { keep not my_map.has_coverage;};

The nice thing about this is that has_coverage simply disables the emission of the coverage event, so it doesn't change the coverage model itself. This means all your tests can be merged without conflict.

Hi Stephen,
Thanks for ur help, In my verification environment vr_ad is getting loaded at last so i was not able to do the above line of code because till that time my_env was no such feild("reg_mem.addr_maps") so what i did is, i extended vr_ad_group and did that.
extend vr_ad_group{
keep soft has_coverage == FALSE;
};