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
Trig functions #1281
Comments
Original Redmine Comment Sorry, that should be: "patstew@f3fa47a6791815619b7bf749be2be92d9cc985ac":https://github.com/patstew/verilator/commit/f3fa47a6791815619b7bf749be2be92d9cc985ac |
Original Redmine Comment Nicely done. Do any if these return exceptions with e.g. 0 inputs? If so can you please have the test check that, and they will need guarding at execution with a conditional ?:. |
Original Redmine Comment Do you mean the C++ math functions? None of the @@ functions raise exceptions, they just return @nan@ or @+-inf@ if you put in an out of range argument. The systemverilog standard (20.8.2) says bq. Their behavior shall match the equivalent C language standard math library function indicated so I assume that's ok. |
Original Redmine Comment Pushed patch to git (with minor space changes) towards 3.922. Thanks again for your effort. |
Original Redmine Comment In 3.922. |
Author Name: Patrick Stewart
Original Redmine Issue: 1281 from https://www.veripool.org
Original Assignee: Patrick Stewart
I've added the missing system trig functions ($sin() etc) here: http://github.com/patstew/verilator/commit/ae1139d73ebdea52d76d60066ed74f8752507fe5
The text was updated successfully, but these errors were encountered: