• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Xcelium: dump coverage information in the middle of a s...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 65
  • Views 7242
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Xcelium: dump coverage information in the middle of a simulation

HS20240724985
HS20240724985 over 1 year ago

Hi, I'm using the xcelium simulator to simulate a testbench, in which I first stimulate my design to do something (part "A") and then do a direct follow-up test on the design (part "B").

I need two things from this testbench: the results of the test (part "B", passed/failed) and coverage information, but the coverage information should only include part A and explicitly not part B.

I could do the following: run the testbench with part A and B, get the "passed/failed" result of the test and then follow up another simulator run with another testbench, that only includes part A and get the coverage information from that simulation run.

Is there a way to force xcelium to give me the coverage information of only a part of the simulation? Ideally, I would like to write the verilog code of my testbench to look something like this:

  • do A
  • dump coverage information
  • do B

But maybe there is another way to tell xcelium to consider only part of the testbench for the coverage information. I did have a look at the manual, but was not able to find something useful for this problem. Any ideas?

  • Cancel
Parents
  • StephenH
    StephenH over 1 year ago

    You should have a look at the coverage Tcl command - this allows you to dump coverage at any point in the simulation, as well as resetting coverage hit counts.
    https://support.cadence.com/apex/techpubDocViewerPage?xmlName=tclcmdref.xml&title=Xcelium%20Simulator%20Tcl%20Command%20Reference%20--%20Table%20of%20Contents&hash=&c_version=24.03&path=tclcmdref/tclcmdref24.03/tclcmdrefTOC.html

    For example:

    # xrun.tcl
    # run till part A has completed:
    run 1us
    # dump A coverage:
    coverage -dump test_A
    # reset counters and run test B:
    coverage -code -reset
    run
    coverage -dump test_B
    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 1 year ago

    You should have a look at the coverage Tcl command - this allows you to dump coverage at any point in the simulation, as well as resetting coverage hit counts.
    https://support.cadence.com/apex/techpubDocViewerPage?xmlName=tclcmdref.xml&title=Xcelium%20Simulator%20Tcl%20Command%20Reference%20--%20Table%20of%20Contents&hash=&c_version=24.03&path=tclcmdref/tclcmdref24.03/tclcmdrefTOC.html

    For example:

    # xrun.tcl
    # run till part A has completed:
    run 1us
    # dump A coverage:
    coverage -dump test_A
    # reset counters and run test B:
    coverage -code -reset
    run
    coverage -dump test_B
    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • HS20240724985
    HS20240724985 over 1 year ago in reply to StephenH

    Thx, I had the feeling that something like this existed, but i might have looked in the wrong manual. I'm sure this will do the trick.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information