Jump to content
Sign in to follow this  

Register model coverage

Recommended Posts

Hi all,

What is the proper method method to enable coverage using register model??

Presently I am using uvm_reg::include_coverage("*", UVM_CVR_FIELD_VALS) in my environment class.

But in my coverage report I am not able to see any hits??

What may be the problem??

Thanks and Regards,

Gaurav Gupta

Share this post

Link to post
Share on other sites

Three things must happen

1) A coverage model must be included in the generated model. See your generator options to ensure this is ON.

2) The register model must be built with the coverage model using uvm_reg::include_coverage(). You appear to have done so.

3) Coverage sampling must be turned on using uvm_reg_block::set_coverage().

Share this post

Link to post
Share on other sites

Even i am facing an issue with proper sampling of coverage. I have done all the three things above.

1) Covergroups for each register containing individual coverpoints for each field are present in the model generated by using iregGen

2) I am including uvm_reg::include_coverage("*", UVM_CVR_ALL) in the build_phase of my testcase.

3) I am including void'(<addr_block_instance).set_coverage(UVM_CVR_ALL)) in my body of virtual sequence.

Still i am not getting proper coverage. I am getting correct hits for some of the register read writes while rest are sampled wrongly.

I think the sampling is not happening properly.

I am wondering how to debug this?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...