Jump to content

Purpose of include_coverage() API in uvm_reg.

Recommended Posts

I was wondering about the need for the API call include_coverage(...) in uvm_reg.  It appears that build_coverage (...) would be sufficient to build whatever coverage is required in the current scope.

Is there a recommended  use model that clearly distinguishes the use of these 2 calls?


As the include_coverage() call contains a scope parameter,  I realize we can specify coverage models for any register object from some other scope... But where would one call this routine ?   For build_coverage it is clear that it applies to the current scope.


Thanks for your help




Link to comment
Share on other sites

It is not an API that is to be used by users. it is for the model itself to query the configuration information to determine if the coverage model that was generated is to be included or not during construction. It thus allows a model generated with a coverage model to be built without it.

Link to comment
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.

  • Create New...