Skip to content

Is it possible to determine the exit code of a simulation from VHPI ? #1060

Answered by nickg
lemmuh asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry I forgot about this. The vhpi_control idea above won't work because there's no way with VHPI to tell how many arguments were passed. Instead I modified vhpi_assert so it sets the exit code in the same way as VHDL assert. So vhpi_assert(vhpiError, "...") should set the exit code to 1.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lemmuh
Comment options

Comment options

You must be logged in to vote
1 reply
@nickg
Comment options

Answer selected by lemmuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants