HDL Coder: how to divide (eg, 1/3) using simulink when the divisor is not 2^x
이전 댓글 표시
hello guys/girls,
how to perform the division of 1/3 in simulink for HDL code generation. I keep having the synthesis problem saying that the divisor need to be a value of 2^x .
채택된 답변
추가 답변 (1개)
Walter Roberson
2013년 9월 2일
0 개 추천
1/3 = 1/4 + 1/16 + 1/64 + 1/256 (etc.)
So do all those divisions by 2^x and sum the result.
카테고리
도움말 센터 및 File Exchange에서 HDL Code Generation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!