Festkomma-Rechenoperationen in MATLAB und Simulink
Die Fixed-Point Designer™-Blockbibliothek bietet hardwaresparsame Implementierungen gängiger mathematischer und Matrixoperationen unter Verwendung von Algorithmen wie CORDIC. Mithilfe von HDL Coder™ können Sie HDL-Code für Entwürfe generieren, die diese Blöcke umfassen. Die Fixed-Point Designer-Funktionsbibliotheken umfassen CORDIC-basierte und andere Hardware-effiziente Implementierungen mathematischer Operationen wie Division, Exponentialoperationen und trigonometrische Funktionen. Verwenden Sie den Coder, um C/C++ Code für Designs zu generieren, die diese Funktionen enthalten.
Algorithmen auf Basis von CORDIC (COordinate Rotation DIgital Computer) gehören zu den Hardware-effizientesten Algorithmen, da nur iterative Shift-Add-Operationen erforderlich sind. Mit dem CORDIC-Algorithmus entfällt der Bedarf nach expliziten Multiplikatoren und er eignet sich für eine Reihe von Funktionen.
Für CORDIC-basierte Implementierungen von Matrixoperationen, einschließlich linearer Systemlöser und Matrixzerlegungen in MATLAB® und Simulink®, siehe Festkomma-Matrix-Operationen in MATLAB und Festkomma-Matrix-Operationen in Simulink.
Funktionen
Blöcke
Themen
- 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®.