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
Implemented PLUSARGS for FLI #1424
Conversation
Can you use |
Don't merge just yet, need to update newsfragment to right PR and add some deallocation. @eric-wieser That seems like it would work, I'll try it. |
88f927f
to
e224169
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks OK now on my side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, thanks - one possible bug, and some other small comments.
The FLI does not offer any utility to easily grab the argc/argv from the simulator. I use Questa's included TCL interpreter C API to access the TCL 'argv' variable. The 'argv' variable references the outer vsim call's arguments due to how the current makefiles are setup, so the PLUSARGS variable was added back to the outer call. PLUSARGS must also remain on the inner call for the VPI implementation to work.
e224169
to
2d654ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
Fixed version of b283b48. Uses
Tcl_GetStringResult
instead of accessing the internalresult
field, this works on TCL 8.5 and 8.6. Fixes #1404.Finally got 2019.1 setup and tested this PR against it as well as 10.5c and 10.7c.
I tried using
Tcl_GetVar2Ex
to grab a reference toargv
, then do processing on it, but there is something weird about how Questa maintains its TCL interpreter because it returns a message that the variable isn't defined.mti_Cmd
seems to work.