Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Functional Verification xrun slow snapshot loading

Stats

  • Replies 4
  • Subscribers 70
  • Views 1271
  • Members are here 0

xrun slow snapshot loading

alexek
alexek 4 months ago

Hello!

I'm using xrun for simulating a design. The full simulation takes pretty long (~2.5 hours) and I thought about saving a snapshot at the right point so next time I run the simulation with different tcl script I'll save some time. When I tried this approach, I saw that loading a saved snapshot takes about an hour (and this kind of defeats the purpose of having a snapshot for more fast validation)! I wanted to ask for your help in understanding what phase takes so long. The design is not re-elaborated as I tried with -noelab flag and the effect was the same. Also, I load the snapshot with xrun with the same arguments as were supplied to xrun when starting the simulation.

Would appreciate any help.

Thanks,

Alexei

  • Reply
  • Cancel
  • Cancel
  • StephenH
    StephenH 4 months ago

    Normally once you've saved a snapshot of the simulation state, you would restart the simulation with a command like "xrun -r snapshot_name" so switches like -noelab would be totally unnecessary. What you've described makes it sound like you're going through a full recompilation, which is definitely not what you want in a save-and-restart flow.

    It might be useful tell us how big the snapshot is, as that can have an impact on loading time (though an hour sounds excessive no matter how big the design is). You can infer the snapshot size from the final memory usage of the elaboration step when you elaborate with "-status -status3".

    I would recommend to read the support article How to use Process-Based Save/Restart (PBSR) in a single-step and three-step flow to understand how to use save and restart correctly.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • alexek
    alexek 3 months ago in reply to StephenH

    Thanks a lot, StephenH! PBSR was the key. Elaborating and simulating with -process_save flag did the job. Snapshot loading takes less than a minute now. I wonder why there is no a hint/warning when using the "old-style" save/restart. Something like "You use save/restart without PBSR. Loading might take longer than usual" will definitely be of much help.

    Alexei

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • StephenH
    StephenH 3 months ago in reply to alexek

    Without the actual command-line arguments that you were using before, it's impossible to say why it was so slow, but I suspect it's because you were passing all the original compile arguments and thus forcing the design to be recompiled. As I mentioned before, the -noelab tells xrun to compile then skip the elaboration process, which is almost never what you want anyway, and certainly won't have helped your flow.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • alexek
    alexek 3 months ago in reply to StephenH

    My cmd was pretty simple: xrun -r snap_name -gui -64BIT -sv_lib path_to_lib -input script.tcl.

    • Cancel
    • Up 0 Down
    • Reply
    • 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.

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

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