이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB 및 Simulink에서의 고정소수점 수학 연산
Fixed-Point Designer™ 블록 라이브러리는 CORDIC와 같은 알고리즘을 사용하여 일반적인 수학 연산과 행렬 연산에 대한 하드웨어 효율적인 구현을 제공합니다. 이러한 블록을 통합하는 설계를 위한 HDL 코드를 HDL Coder™를 사용하여 생성할 수 있습니다. Fixed-Point Designer 함수 라이브러리에는 나눗셈, 지수 연산, 삼각 함수와 같은 수학 연산에 대한 CORDIC 기반 구현과 기타 하드웨어 효율적인 구현이 포함되어 있습니다. 코더를 사용하여 이러한 함수를 포함하는 설계를 위해 C/C++ 코드를 생성합니다.
CORDIC(COordinate Rotation DIgital Computer) 기반 알고리즘은 시프트-덧셈 반복 연산만 필요로 하기 때문에 가장 하드웨어 효율적인 알고리즘에 속합니다. CORDIC 알고리즘에서는 명시적 곱셈기가 필요하지 않기 때문에 다양한 함수 계산에 적합합니다.
MATLAB® 및 Simulink®에서 선형 시스템 솔버 및 행렬 분해를 포함한 행렬 연산에 대한 CORDIC 기반 구현은 MATLAB의 고정소수점 행렬 연산 항목과 Simulink에서의 고정소수점 행렬 연산 항목을 참조하십시오.
함수
블록
도움말 항목
- How to Set CORDIC Input Word Length and Maximum Shift Value to Achieve Desired Precision
This example provides a starting point for the input data type and number of iterations or maximum shift value required for the CORDIC algorithm to achieve a desired accuracy.
- Implement Hardware-Efficient Complex Divide HDL Optimized
How to use the Complex Divide HDL Optimized block.
- Implement Hardware-Efficient Real Divide HDL Optimized
How to use the Real Divide HDL Optimized block.
- Customize Output Value of Real Divide HDL Optimized Block When Denominator Is Zero
Use the divideByZero port to customize the value of the block output when division by zero occurs.
- Implement HDL Optimized Modulo by Constant
How to use the Modulo by Constant HDL Optimized block.
- How to Use HDL Optimized Normalized Reciprocal
This example shows how and when to use the
normalizedReciprocal
function and the Normalized Reciprocal HDL Optimized block to compute the normalized reciprocal of an input. - Implement Hardware-Efficient Hyperbolic Tangent
Implement a hardware-efficient hyperbolic tangent.
- Hardware-Efficient Rotation About Arbitrary Axis Using CORDIC
This example shows how to implement rotation about an arbitrary axis using the CORDIC algorithm in Simulink®.
- Hardware-Efficient Euler Rotations Using CORDIC
This example shows how to implement Euler rotations using a CORDIC kernel.
- Hardware-Efficient Rotation About Arbitrary Axis Using CORDIC
This example shows how to implement rotation about an arbitrary axis using the CORDIC algorithm in Simulink®.