Home > Community > Forums > Functional Verification > Functional Coverage with irun command

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Functional Coverage with irun command 

Last post Wed, Jan 2 2013 10:12 AM by MVERMA. 8 replies.
Started by MVERMA 02 Jan 2013 01:55 AM. Topic has 8 replies and 2630 views
Page 1 of 1 (9 items)
Sort Posts:
  • Wed, Jan 2 2013 1:55 AM

    • MVERMA
    • Not Ranked
    • Joined on Wed, Mar 14 2012
    • Posts 8
    • Points 130
    Functional Coverage with irun command Reply

    Hi,

     I trying to generate functional coverage using irun command.

    I have given "-coverage functional" in the elab phase.  I am not getting any of the data orirnted coverage. Can anybody knows what I am missing.

     

    Thanks! 

    • Post Points: 20
  • Wed, Jan 2 2013 5:34 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: Functional Coverage with irun command Reply

    What sort of coverage are you expecting? SVA or PSL Assertions? SV, Specman or SystemC functional coverage groups?

     

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    • Post Points: 20
  • Wed, Jan 2 2013 6:36 AM

    • MVERMA
    • Not Ranked
    • Joined on Wed, Mar 14 2012
    • Posts 8
    • Points 130
    Re: Functional Coverage with irun command Reply
    Hi Steve, I am expecting SV functional coverage groups. Thanks!
    • Post Points: 35
  • Wed, Jan 2 2013 7:09 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: Functional Coverage with irun command Reply

    OK, in that case, a few things to check: did you call the constructor for your covergroups? Did you destroy the class instances before the end of the simulation (this would remove the coverage)?

    When the simulation runs and exits, does it print a banner showing the details of the coverage files that are being dumped?

    When elaborating the design, if you add the -messages switch do you see the summary table at the end of the log, showing how many SV covergroups there are? 

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    • Post Points: 20
  • Wed, Jan 2 2013 9:08 AM

    • MVERMA
    • Not Ranked
    • Joined on Wed, Mar 14 2012
    • Posts 8
    • Points 130
    Re: Functional Coverage with irun command Reply
    I am calling the constructor. How I can see whether it's destroying or not all the class instances and how we can avoid this? I am seeing the banner showing the coverage files that are dumped but not seeing any SV covergroups in that. Also I observed all the coverage files is design files not the verification classes.
    • Post Points: 5
  • Wed, Jan 2 2013 9:38 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: Functional Coverage with irun command Reply

    Do you mean that the covergroups are instantiated only in modules / program blocks or interfaces, and not in classes? If so then my comment about classes being destroyed (garbage collected) is not relevant.

    Are you sure that your covergroups are ever sampled? 

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    • Post Points: 20
  • Wed, Jan 2 2013 9:46 AM

    • MVERMA
    • Not Ranked
    • Joined on Wed, Mar 14 2012
    • Posts 8
    • Points 130
    Re: Functional Coverage with irun command Reply
    Covergroups are instantiated in class not in modules / program blocks or interfaces. I tried this with VCS and it is working correctly means sampling all my covergroups.
    • Post Points: 20
  • Wed, Jan 2 2013 9:51 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: Functional Coverage with irun command Reply

    One other thing: do you use "iccr" or "imc" to view the coverage results?

    I would strongly recommend to use "imc" as it's much newer and has better analysis capabilities. The old iccr tool isn't being developed any more.

    What's more, in iccr it doesn't show type-based funstional coverage, it can only show instance-based coverage, so if you didn't declare your coverage using the option.per_instance=1 then coverage will be collected but only for type-based, and iccr cannot show it. However if you use "imc" then it can show type-based and instance-based coverage. See http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11794766 for more info. 

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    • Post Points: 20
  • Wed, Jan 2 2013 10:12 AM

    • MVERMA
    • Not Ranked
    • Joined on Wed, Mar 14 2012
    • Posts 8
    • Points 130
    Re: Functional Coverage with irun command Reply
    Yes, It's working with IMC. Thanks!
    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by MVERMA at 02 Jan 2013 01:55 AM. Topic has 8 replies.