gaurav7589 Posted February 8, 2012 Report Share Posted February 8, 2012 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 Quote Link to comment Share on other sites More sharing options...
janick Posted February 8, 2012 Report Share Posted February 8, 2012 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(). Quote Link to comment Share on other sites More sharing options...
gaurav7589 Posted February 8, 2012 Author Report Share Posted February 8, 2012 Ok ...thanks a lot... Quote Link to comment Share on other sites More sharing options...
paragsathe Posted September 28, 2012 Report Share Posted September 28, 2012 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.