From: Icarus V. a. <ive...@li...> - 2008-02-04 22:34:04
|
The first public release candidate of the Verilog-A math library for Icarus Verilog is now available. It can be found in the Icarus SourceFogre download area located here (http://sourceforge.net/project/showfiles.php?group_id=149850). When appropriately configured this release should work with either version 0.8 or 0.9 of Icarus. Though it is known to crash my local MinGW iverilog-vpi program. Hopefully this can be fixed before the final release. We plan to eventually integrate this library into the 0.9 release. This standalone version will be kept to support older releases. The following functions and constants are added by this library: $ln(x) -- Natural logarithm $log(x) -- Decimal logarithm $exp(x) -- Exponential $sqrt(x) -- Square root $min(x,y) -- Minimum $max(x,y) -- Maximum $abs(x) -- Absolute value $floor(x) -- Floor $ceil(x) -- Ceiling $pow(x,y) -- Power (x**y) $sin(x) -- Sine $cos(x) -- Cosine $tan(x) -- Tangent $asin(x) -- Arc-sine $acos(x) -- Arc-cosine $atan(x) -- Arc-tangent $atan2(y,x) -- Arc-tangent of y/x $hypot(x,y) -- Hypotenuse (sqrt(x**2 + y**2)) $sinh(x) -- Hyperbolic sine $cosh(x) -- Hyperbolic cosine $tanh(x) -- Hyperbolic tangent $asinh(x) -- Arc-hyperbolic sine $acosh(x) -- Arc-hyperbolic cosine $atanh(x) -- Arc-hyperbolic tangent `M_PI -- Pi `M_TWO_PI -- 2*Pi `M_PI_2 -- Pi/2 `M_PI_4 -- Pi/4 `M_1_PI -- 1/Pi `M_2_PI -- 2/Pi `M_2_SQRTPI -- 2/sqrt(Pi) `M_E -- e `M_LOG2E -- log base 2 of e `M_LOG10E -- log base 10 of e `M_LN2 -- log base e of 2 `M_LN10 -- log base e of 10 `M_SQRT2 -- sqrt(2) `M_SQRT1_2 -- 1/sqrt(2) For now, please report any problems directly to the author. Enjoy! ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |