about hdl coder in simulink

조회 수: 3 (최근 30일)
Prashanth Nayak
Prashanth Nayak 2016년 4월 21일
편집: Prashanth Nayak 2016년 4월 23일
Hii,
Can you please tell me what are the settings to be done for 'sin', 'cos' blocks while using for HDL Conversion..? I am getting error as "HDL code generation does not support double or single data type for the block Trigonometric Function". I am not able to follow this. Please help me in fixing this problem.
and also while using square root its giving error as "Sqrt function with non-fixedpoint output datatype is not supported." and "Sqrt function with signed input is not supported."
please help me with this.
Thank you
Regards, Prashanth

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 21일
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 4월 21일
Yes, it requires so much code.
In some cases, there is information around that allows the sin or cos to be calculated more directly by geometric means such as "opposite divided by hypotenuse". cos in particular has in interpretation from dot products.
Prashanth Nayak
Prashanth Nayak 2016년 4월 23일
편집: Prashanth Nayak 2016년 4월 23일
hii,
Oh okay. Thank you.
sir what about square root..?? what settings to be done for that.?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by