--- Quote Start ---
What megafunctions are you referring to?
--- Quote End ---
thank you for your reply.
i use matlab for computer simulation and model sim altera for vhdl simulation. to solve such equation (3*k*x3)/(m*x1^4) in 32-bit precision in matlab i use single((3*k*x3)/(m*x1^4)) and in vhdl i use altfp_mul, altfp_div megafunctions in 32-bit precision. matlab results may be different from modelsim results. before the real implementation to my de2-115 board i have to verify matlab results and modelsim results whether they are equal. differences are too small at the beginning but in iteration it getting bigger. what is wrong in my application: matlab usage or implementation?
thank you.
Bedri