--- Quote Start ---
Those numbers dont mean alot, how about poosting the code? This would also show the pipeline. You also didnt say what the differences were.
Using megafunctions doesnt really teach you VHDL.
--- Quote End ---
I did an example. In matlab command window i wrote
>> num2hex( single(0.123456712))
ans =
3dfcd6df
>> num2hex( single(0.123456712)* single(0.123456712) )
ans =
3c79b7bb
Afterwards in modelsim altera i implemented this multiplication by using aaltfp_mul with 32-bit precision and latency of 5. dataa and datab of altfp_mul is x"3dfcd6df". after 5 clock sequences result of altfp_mul is x"3c79b7bb" which is the same with matlab result. i think that some constant values in my algorithm may be defined different in matlab than vhdl. i'm going to detect the wrong definition. thank you for your help.
could you please answer my last question: while implementing such an arithmetic operation (sqrt(4))+5 how can i carry the output of altsqrt (remainder and q) to lpm_add_sub?
regards.
Bedri