Hi,
I'm trying to use DPI-C to import sin function, but it doesn't work, as a workround i had used a sin approximative function which finally give a static value of 2.5 (the offset value) i think that the instanciation of the sin in the code does not work, and i did not know why, any help would be appreciable:
package math_pkg;
//import dpi task C Name = SV function name
//import "DPI-C" pure function real sin (input real rTheta);
`define PI 3.14159265
function real sin;
input x;
real x;
real x1,y,y2,y3,y5,y7,sum,sign;
begin
sign =