La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Opérations mathématiques en virgule fixe dans MATLAB et Simulink
La bibliothèque de blocs Fixed-Point Designer™ permet une implémentation hardware efficace des opérations mathématiques et matricielles courantes avec des algorithmes comme CORDIC. Générez du code HDL pour les designs qui intègrent ces blocs en utilisant HDL Coder™. La bibliothèque de fonctions Fixed-Point Designer comprend des implémentations hardware efficaces, basées sur CORDIC ou autre, d’opérations mathématiques telles que des divisions, des opérations exponentielles et des fonctions trigonométriques. Utilisez un codeur pour générer du code C/C++ pour les designs qui intègrent ces fonctions.
Les algorithmes qui s’appuient sur CORDIC (COordinate Rotation DIgital Computer) comptent parmi les algorithmes les plus efficaces au niveau hardware, car ils nécessitent uniquement des opérations itératives de décalage et d'ajout. Avec l'algorithme CORDIC, il n’est plus nécessaire d'utiliser des multiplicateurs explicites. Il permet en outre de calculer un grand nombre de fonctions.
Pour les implémentations d’opérations matricielles basées sur CORDIC, y compris les solveurs de systèmes linéaires et les décompositions de matrices dans MATLAB® et Simulink®, consultez Opérations matricielles en virgule fixe dans MATLAB et Opérations matricielles en virgule fixe dans Simulink.
Fonctions
Blocs
Rubriques
- 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®.