Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-interactive mode of vvp (-n, -N) seems to be broken #1138

Closed
msinger opened this issue Jun 15, 2024 · 3 comments
Closed

Non-interactive mode of vvp (-n, -N) seems to be broken #1138

msinger opened this issue Jun 15, 2024 · 3 comments
Assignees
Labels

Comments

@msinger
Copy link
Contributor

msinger commented Jun 15, 2024

Since commit 95810b2 vvp always enters interactive mode when the simulation gets interrupted by CTRL-C (SIGINT), even if it was given the -n or -N option on command line.

I usually call vvp with -N, so I can quickly stop it, make some changes to my Verilog code, and start it again. Now I have to enter $finish again and again, which is annoying.

Was this behavioral change intended? I don't understand which change in this commit causes that.

@martinwhitaker
Copy link
Collaborator

I always use -n, and that is still working for me. But -N is indeed broken.

@msinger
Copy link
Contributor Author

msinger commented Jun 15, 2024

Oh, yes, you're right. I was absolutely convinced that I had tested -n and it behaved the same as -N. I might have messed something up. So -n is working correctly for me too, it immediately exits when pressing CTRL-C. Only -N is misbehaving then.

@martinwhitaker martinwhitaker self-assigned this Jun 15, 2024
martinwhitaker added a commit that referenced this issue Jun 15, 2024
The -N option was broken by PR #1068. This fix modifies and simplifies
the libvvp API that was introduced in that PR.
@martinwhitaker
Copy link
Collaborator

Fixed in the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants