Operazioni matematiche in virgola fissa in MATLAB e Simulink
La libreria di blocchi Fixed-Point Designer™ fornisce implementazioni efficienti a livello di hardware di comuni operazioni matematiche e tra matrici, utilizzando algoritmi come CORDIC. Generare codice HDL per progetti che incorporano questi blocchi utilizzando HDL Coder™. La libreria di funzioni Fixed-Point Designer include implementazioni basate su CORDIC e altre implementazioni efficienti a livello di hardware di operazioni matematiche come la divisione, le operazioni esponenziali e le funzioni trigonometriche. Utilizzare coder per generare codice C/C++ per progetti che incorporano queste funzioni.
Gli algoritmi basati su CORDIC (COordinate Rotation DIgital Computer) sono tra gli algoritmi più efficienti dal punto di vista hardware perché richiedono solo operazioni iterative di scorrimento e somma. L'algoritmo CORDIC elimina la necessità di moltiplicatori espliciti ed è adatto al calcolo di una varietà di funzioni.
Per le implementazioni basate su CORDIC delle operazioni tra matrici, inclusi i risolutori di sistemi lineari e le scomposizioni di matrici in MATLAB® e Simulink®, vedere Operazioni tra matrici in virgola fissa in MATLAB e Operazioni tra matrici in virgola fissa in Simulink.
Funzioni
Blocchi
Argomenti
- 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®.