Hauptinhalt

Festkomma-Rechenoperationen in MATLAB und Simulink

CORDIC-basierte und andere für eingebettete Systeme optimierte mathematische Operationen für effizienten C/C++- und HDL-Code

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

alle erweitern

cordicsigmoidCORDIC-based approximation of sigmoid activation (Seit R2023b)
ceilDivRound the result of division toward positive infinity (Seit R2021a)
fixDivRound the result of division toward zero (Seit R2021a)
floorDivRound the result of division toward negative infinity (Seit R2021a)
nearestDivRound the result of division toward the nearest integer (Seit R2021a)
modByConstantModulus after division by a constant denominator (Seit R2021a)
fixed.cordicDivideCORDIC-based fixed-point divide
fixed.cordicReciprocalCORDIC-based fixed-point reciprocal (Seit R2021b)
cordicsqrtCORDIC-based approximation of square root
cordicabsCORDIC-based absolute value
cordicangleCORDIC-based phase angle
cordiccexpCORDIC-based approximation of complex exponential
cordicacosCORDIC-based approximation of inverse cosine
cordicasinCORDIC-based approximation of inverse sine
cordicatan2CORDIC-based four quadrant inverse tangent
cordiccosCORDIC-based approximation of cosine
cordicsinCORDIC-based approximation of sine
cordicsincosCORDIC-based approximation of sine and cosine
cordicsinhcoshCORDIC-based approximation of hyperbolic sine and cosine (Seit R2023b)
cordictanhCORDIC-based hyperbolic tangent
cordiccart2polCORDIC-based transformation of Cartesian coordinates to polar
cordicpol2cartCORDIC-based approximation of polar-to-Cartesian conversion
cordicrotateCORDIC-based approximation of rotation of input

Blöcke

alle erweitern

CORDIC Sigmoid HDL OptimizedCompute CORDIC-based sigmoid activation and generate optimized HDL code (Seit R2024a)
Complex Divide HDL OptimizedDivide one input by another using CORDIC algorithm and generate optimized HDL code (Seit R2021a)
Real Divide HDL OptimizedDivide one real input by another using CORDIC algorithm and generate optimized HDL code (Seit R2021a)
Divide by Constant HDL OptimizedDivide input by a constant and round to integer and generate optimized HDL code (Seit R2021a)
Divide by Constant and RoundDivide input by a constant and round to integer (Seit R2021a)
Modulo by Constant HDL OptimizedPerform mod operation with a constant denominator and generate optimized HDL code (Seit R2021a)
Modulo by ConstantPerform modulo operation with a constant denominator (Seit R2021a)
Normalized Reciprocal HDL OptimizedComputes normalized reciprocal using CORDIC algorithm and generates optimized HDL code
Real Reciprocal HDL OptimizedCompute reciprocal using CORDIC algorithm and generate optimized HDL code (Seit R2021a)
CORDIC Square Root HDL OptimizedCORDIC-based approximation of square root (Seit R2024a)
Complex to Magnitude-AngleCompute magnitude and phase angle of complex signal using CORDIC algorithm
Magnitude-Angle to ComplexConvert magnitude and/or a phase angle signal to complex signal
Hyperbolic Tangent HDL OptimizedComputes CORDIC-based hyperbolic tangent and generates optimized HDL code
Trigonometric FunctionSpecified trigonometric function on input
Euler to NED Transformation HDL OptimizedComputes Euler to North-East-Down transformation using pipelined or burst architecture and generates optimized HDL code (Seit R2022b)

Themen

Enthaltene Beispiele