Main Content

Simulink 中的数据类型优化

高效设计的定点数据类型优化

数据类型优化自动循环访问各种定点配置,以选择最佳异构数据类型,同时满足对系统数值行为的容差约束。优化力图最小化目标函数,如总位宽或总运算符计数,以期通过定点数据类型来实现高效设计。

您可以在命令行中使用 fxpopt 函数或在定点工具中使用优化的定点转换工作流来优化数据类型。

工具

定点工具Convert a floating-point model to a fixed-point model

函数

fxpoptOptimize data types of a system

fxpOptimizationOptionsSpecify options for data type optimization
OptimizationSolutionOptimized fixed-point implementation of system
OptimizationResult Result after optimizing fixed-point system

主题

疑难解答

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.

Best Practices for Working with the MATLAB Function Block in Automated Fixed-Point Conversion Workflows

Follow best practices and avoid unsupported MATLAB® Function block features.

精选示例