• 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. How to run a regression for multiple testcases with only...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 66
  • Views 17146
  • 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

How to run a regression for multiple testcases with only a single compile using NCsim?

ReubenMijares
ReubenMijares over 9 years ago

Hi,


I would like to do a regression and it requires multiple testcases.

I did this by writing a Bash script which loops until all the testcases are simulated.

However, this loop will repeatedly compile. Is there a way to do only a single compile and then run multiple testcases without recompiling?

Thanks.

Regards,

Reuben

  • Cancel
  • StephenH
    StephenH over 9 years ago

    Hi Reuben.

    Once you have compiled the first time (before entering the loop in your script), a "simulation snapshot" is written into INCA_libs.

    For subsequent runs this snapshot should be automatically reused if you don't change the file list or any irun options that would trigger a recompile (for example changing a -define option). However you can explicitly ask irun to use the previously elaborated simulation snapshot, by passing the -R option to irun. You would normally do this instead of passing any source file names, but if you do pass source files to irun -R, it'll ignore the files and issue a warning.

    So your simple regression flow would look like:

    irun -elaborate *.sv -uvm

    for testname in $(cat testlist); do

    irun -R +UVM_TESTNAME=$testname

    done

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ReubenMijares
    ReubenMijares over 9 years ago
    Thanks! It's working! =)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • cmarqu
    cmarqu over 9 years ago

    Hi Reuben,

    instead of using (and probably continually extending and improving) your bash script, you may want to take a look at VUnit (http://vunit.github.io/) for running your regressions. There is an "incisive" branch on GitHub that supports irun. If you have any feedback, please use one of the ways provided on the VUnit website.

    • 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