Skip to content

Instantly share code, notes, and snippets.

@dvtalk
Last active June 24, 2024 13:22
Show Gist options
  • Select an option

  • Save dvtalk/09e757fe24c34cb8dc34cdf28b32e131 to your computer and use it in GitHub Desktop.

Select an option

Save dvtalk/09e757fe24c34cb8dc34cdf28b32e131 to your computer and use it in GitHub Desktop.
inifite loop debug in design

For testbench loop:

  • Not found any solution,
  • check forever and while(1) in all the code

For the design: using vcs with this

  • compile: vcs +vcs+loopreport+20000
  • run sim: simv +vcs+loopreport+1000000 (the simuation option will override the compile option)
  • later VCS version will support start_time: simv +vcs+loopreport+1000000+start_time=1
  • Use start_time to avoid loop at 0 simulation time (could have many loop caused by X value)
  • If +start_time is not supported, incrase the number of loop value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment