mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 08:25:32 +02:00
This patch adds the constant system functions for Verilog-2005 and Verilog-AMS. These are evaluated at compile time. $abs(), $min() and $max() support their polymorphic behavior in the compiler where it really matters. They are always evaluated as reals in the run time and the result/argument(s) will be converted as needed. The Verilog-2005 functions are available if using the 2005 generation (default) and if either the icarus-misc (also on by default) or verilog-ams flags are set. The Verilog-AMS functions are available if either the icarus-misc or verilog-ams flags are set.
29 lines
632 B
Plaintext
29 lines
632 B
Plaintext
#
|
|
# This is the system function descriptor table for the
|
|
# Verilog-2005 math functions.
|
|
#
|
|
|
|
# Single argument functions.
|
|
$sqrt vpiSysFuncReal
|
|
$ln vpiSysFuncReal
|
|
$log10 vpiSysFuncReal
|
|
$exp vpiSysFuncReal
|
|
$ceil vpiSysFuncReal
|
|
$floor vpiSysFuncReal
|
|
$sin vpiSysFuncReal
|
|
$cos vpiSysFuncReal
|
|
$tan vpiSysFuncReal
|
|
$asin vpiSysFuncReal
|
|
$acos vpiSysFuncReal
|
|
$atan vpiSysFuncReal
|
|
$sinh vpiSysFuncReal
|
|
$cosh vpiSysFuncReal
|
|
$tanh vpiSysFuncReal
|
|
$asinh vpiSysFuncReal
|
|
$acosh vpiSysFuncReal
|
|
$atanh vpiSysFuncReal
|
|
# Double argument functions.
|
|
$pow vpiSysFuncReal
|
|
$atan2 vpiSysFuncReal
|
|
$hypot vpiSysFuncReal
|