Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

PLI Sine Function

Hi,

I would like to create a PLI sine function in C where the verilog testbench will call the sine function and return value in hex/decimal. My questions are:

1) when writing the C code, can i just use sin()?

2) is the sin() function part of the math library or i need to write it using the taylor series?

thanks.
No RepliesBe the first to reply