Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #1281

Trig functions

Added by Patrick Stewart about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Unsupported
% Done:

0%


Description

I've added the missing system trig functions ($sin() etc) here: http://github.com/patstew/verilator/commit/ae1139d73ebdea52d76d60066ed74f8752507fe5

History

#2 Updated by Wilson Snyder about 1 year ago

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 ?:.

#3 Updated by Patrick Stewart about 1 year ago

Do you mean the C++ math functions? None of the <cmath> 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

Their behavior shall match the equivalent C language standard math library function indicated

so I assume that's ok.

#4 Updated by Wilson Snyder about 1 year ago

  • Category set to Unsupported
  • Status changed from New to Resolved
  • Assignee set to Patrick Stewart

Pushed patch to git (with minor space changes) towards 3.922.

Thanks again for your effort.

#5 Updated by Wilson Snyder about 1 year ago

  • Status changed from Resolved to Closed

In 3.922.

Also available in: Atom