• 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. Regression Testing in UVM

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 16459
  • 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

Regression Testing in UVM

Eliz
Eliz over 9 years ago

I would like to know if it is possible to run different test cases in regression mode in a single simulation in NCSIM. My test bench consists of Xilinx MIG which needs to be calibrated (takes time) before simulation. Right know this initialization needs to be repeated for each and every test case(while running regression) which is time consuming.
I would like to know if test case 2 can start after test 1 ends (from that instant) rather than beginning from time 0 so that the calibration needs to be done only once at the start of regression test ?

  • Cancel
  • StephenH
    StephenH over 9 years ago

    Hi Elizabeth.

    NCSim has a save & restore feature that you might find helpful here. You could use it to run the calibration phase, then stop the simulation via a breakpoint if you have a handy signal to trigger off, or just run for a certain period of time. Once you've reached the end of calibration, you'd issue the Tcl "save" command to save the simulation state, e.g. "save calibrated". Now you can carry on the simulation for your first test. When you want to run the 2nd test you would start NCSim again but instead of loading the original compiled design snapshot, you'd tell it to load the saved snapshot: "ncsim calibrated". The simulation would then resume from the saved state, saving you the calibration time. This even works so that you can run multiple simulations from the saved state, in parallel, you're not constrained to run your tests sequentially.

    What you do to select your testcase will depend on your test methodology. For example if you use compiled asm or C code in a hex file, you'd need to load the new hex file for the test you're going to run. This could be done from Tcl.

    If you use UVM, then we have an App Note on how to manage the UVM tests to select different tests when you restore a saved state (it also allows you to restore and re-seed). See the link below for that App Note.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Eliz
    Eliz over 9 years ago
    Thank you Steve. Its in UVM. Let me try out.
    • 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