Datentyp-Optimierung in Simulink
R2026bDie Datentypoptimierung ist ein automatisierter Workflow zur Datentypkonvertierung, der verschiedene Festkomma-Konfigurationen durchläuft, um die optimalen heterogenen Datentypen auszuwählen und gleichzeitig die Toleranzbeschränkungen für das numerische Verhalten Ihres Systems einzuhalten. Die Optimierung zielt darauf ab, mithilfe von Festkomma-Datentypen für einen effizienten Entwurf eine Zielfunktion zu minimieren, wie beispielsweise die Gesamt-Bitbreite oder die Operatoren-Gesamtanzahl.
Sie können Datentypen mithilfe der fxpopt-Funktion in der Befehlszeile oder den Workflow Optimized Fixed-Point Conversion im Fixed-Point Tool optimieren.
Tools
| Fixed-Point Tool | Convert a floating-point model to a fixed-point model |
Funktionen
fxpopt | Optimize data types of a system |
Klassen
fxpOptimizationOptions | Specify options for data type optimization |
OptimizationSolution | Optimized fixed-point implementation of system |
OptimizationResult | Result after optimizing fixed-point system |
Themen
Überblick über den Workflow bei der Festkomma-Konvertierung
- Data Type Conversion Overview
Choose between different Fixed-Point Tool workflows for converting your model to fixed point. - Best Practices for Fixed-Point Conversion Workflow
Use best practices when converting a model to fixed point. - Command-Line Interface for the Fixed-Point Tool
Compare capabilities of the Fixed-Point Tool to the command-line interfaces for the iterative and optimized fixed-point conversion workflows. - Specify Behavioral Constraints
Use signal tolerances and behavioral constraints for better data type proposals and to verify behavior of fixed-point implementation.
Befehlszeilenschnittstelle
- Optimize Fixed-Point Data Types for a System
Optimize data types in a system based on specified tolerances. - Optimize Data Types Using Multiple Simulation Scenarios
Define multiple simulation scenarios for range collection and verification. - Perform Data Type Optimization with Custom Behavioral Constraints
Use Model Verification blocks to specify custom behavioral constraints for data type optimization withfxpopt.
Optimierte Festkomma-Konvertierung im Fixed-Point Tool
- Optimize the Fixed-Point Data Types of a System Using the Fixed-Point Tool
Use the Fixed-Point Tool to optimize the data types of a system using multiple simulation scenarios. - Use Custom Cost Functions for Optimized Fixed-Point Conversion
Customize objective function for optimized fixed-point conversion.
Fehlersuche
Follow best practices and avoid unsupported MATLAB Function block features.
Blocks That Do Not Support Fixed-Point Data Types
Troubleshoot blocks that are not supported for fixed-point conversion.
Model Configuration Changes Made During Data Type Optimization
Changes made to model configuration parameters during data type optimization with
fxpopt.
Data Type Optimization Not Successful
Troubleshoot errors thrown during data type optimization using the
fxpopt function.


