• 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. Hardware/Software Co-Development, Verification…
  3. using command ncverilog cause hang issue

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 50
  • Views 14610
  • 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

using command ncverilog cause hang issue

Jack Lee
Jack Lee over 16 years ago
Hi, I am Jack.

I have something to verify about the ncverilog command.

I write the ncverilog command to compile and simulate my design:ncverilog   abc_tb.v -f abc_tb.f -l abc_tb.log  +ncelabargs+"-timescale 1ps/1ps" +access+rw(abc_tb.f is the filelist which contains all files required for this design) I face hanging issue while running simulation, when I remove the option +access+rw, the hang issue can be avoided.Why this can be happened?I have tried out with other tools like VCS, I have not experienced this type of issue, thanks for giving me some advices.
  • Cancel
  • Mickey
    Mickey over 16 years ago

     Hi Jack,

     I suspect you are encountering a zero-delay loop race condition in the code.  When the -access option is used, under the hood the result is the turning off of optimizations designed to have the simulator perform as efficiently as possible. When optimizations are enabled/disabled the result can be a reordering of events within the various time slices.  In a race-free design this reordering will have no effect on the result of the simulation.  If there are races in the design, however this reordering can and often does highlight situations in the code that are dependent on a certain evaluation order to produce the desired simulation effects.  Because different simulators use different algorithms to process events, changing from one simulator to another can also highlight code that is dependent on a given evaluation order.

    How to find the race?  That's really the million dollar question.  Unfortunately it's not always easy.  One method would be to add "+nclinedebug +gui" to your command line to bring up the simulation in an interactive gui.  Bring up the source browser and hit the play button and take note of the increasing time and delta cycles.  When you note that time has stopped and only delta cycles are increasing you know that you have encountered the zero-delay loop.  Thereafter hit the pause/play button until you can determine the section that code that is getting updated and reupdated during the loop.

    Hope that helps.

    Mickey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Inan ERDEM
    Inan ERDEM over 16 years ago

    Hello Jack and Mike,

     I am facing the same problem as yours and I am using Synopsys's STIL Direct Pattern Validation flow, which means I am taking the patterns generated by Tetramax and simulating using NCSIM and having that same hanging issue. My problem is that I can not disable access since it is used by PLI routins to force values during simulations. Is there any other way of getting rid of that haning issue other than disabling access?

    • 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