Optimisation des types de données dans Simulink
L’optimisation des types de données itère automatiquement sur différentes configurations en virgule fixe pour choisir les types de données hétérogènes optimaux tout en respectant les contraintes de tolérance sur le comportement numérique de votre système. L'optimisation a pour but de minimiser une fonction objective, telle que la largeur binaire totale ou le nombre total d’opérateurs, en utilisant des types de données à virgule fixe pour un design efficace.
Vous pouvez optimiser les types de données au moyen de la fonction fxpopt
sur la ligne de commande ou en utilisant le workflow Optimized Fixed-Point Conversion
dans le Fixed-Point Tool.
Outils
Fixed-Point Tool | Convert a floating-point model to a fixed-point model |
Fonctions
fxpopt | Optimize data types of a system |
Classes
fxpOptimizationOptions | Specify options for data type optimization |
OptimizationSolution | Optimized fixed-point implementation of system |
OptimizationResult | Result after optimizing fixed-point system |
Rubriques
- Data Type Conversion Overview
Convert data types in your model to fixed point in one of three ways.
- Best Practices for Fixed-Point Conversion Workflow
Use best practices when converting a model to fixed point.
- Specify Behavioral Constraints
Use signal tolerances and model verification blocks to verify behavior of fixed-point implementation.
- Optimize Fixed-Point Data Types for a System
Optimize data types in a system based on specified tolerances.
- 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.
- 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 with
fxpopt
. - Model Configuration Changes Made During Data Type Optimization
Changes made to model configuration parameters during data type optimization with
fxpopt
. - Use Design Evolution Manager with the Fixed-Point Tool
Example showing how to manage different design versions while converting a model from floating point to fixed point.
Résolution des problèmes
Blocks That Do Not Support Fixed-Point Data Types
Troubleshoot blocks that are not supported for fixed-point conversion.
Data Type Optimization Not Successful
Troubleshoot errors thrown during data type optimization using the
fxpopt
function.
Follow best practices and avoid unsupported MATLAB® Function block features.