• 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. Is there a way to view what line of HDL code is being executed...

Stats

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

Is there a way to view what line of HDL code is being executed at the moment in XMSim?

yavuzselim
yavuzselim over 4 years ago

I'm trying to run a behavioral simulation of my Verilog design, but somehow the Xmsim simulator seems to go into an infinite loop and the simulation stops advancing. It literally gets stuck. I was wondering if there is a way to view what line of Verilog code is being evaluated/executed at the time. Is this possible with Xmsim HDL simulator?

Thanks in advance. 

  • Cancel
Parents
  • StephenH
    StephenH over 4 years ago

    Yes, but you need to compile the design with -linedebug, then once the sim is stuck you can do Ctrl-C and it'll interrupt the simulation and tell you what line it's on.

    Often the hang is caused by a clock toggling with zero delay due to rounding errors with time precision, however there are many other possible causes.

    We have a good application note describing how to debug stuck simulations: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nTGDEA2&pageName=ArticleContent 

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 4 years ago

    Yes, but you need to compile the design with -linedebug, then once the sim is stuck you can do Ctrl-C and it'll interrupt the simulation and tell you what line it's on.

    Often the hang is caused by a clock toggling with zero delay due to rounding errors with time precision, however there are many other possible causes.

    We have a good application note describing how to debug stuck simulations: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nTGDEA2&pageName=ArticleContent 

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • yavuzselim
    yavuzselim over 4 years ago in reply to StephenH

    That worked. Thanks a lot Stephen.

    • 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