迭代的定点转换万博1manbetx
定点工具是一个用户界面,该界面可自动执行Simulink中指定定点数据类型的任务万博1manbetx®模型。该工具根据模拟,派生或设计范围收集模型对象的范围数据。在里面Iterative Fixed-Point Conversion
workflow, the tool then proposes fixed-point data types that maximize precision and cover the range. You can then review the data type proposals and apply them selectively to objects in your model. If design requirements are not met, you can adjust data type proposal settings, visualize their effects, and iterate until the system meets your requirements.
要将您的模型转换为固定点,请按照以下步骤操作使用定点工具的迭代定点转换。有关完整转换过程的示例,请参见Convert Floating-Point Model to Fixed Point。
TheDataTypeWorkflow.Converter
对象及其关联对象函数是命令行的替代方案Iterative Fixed-Point Conversion
在定点工具中。
工具
Fixed-Point Tool | 将浮点模型转换为定点模型 |
Functions
fxptdlg |
打开定点工具 |
Classes
DataTypeWorkflow.Converter |
Create fixed-point converter object |
datatypeworkflow.finddecoupledsubsystems |
Get a list of subsystems to replace with an approximation |
DataTypeWorkflow.ProposalSettings |
提案设置对象的数据类型建议 |
DataTypeWorkflow.Result |
Object containing run result information |
DataTypeWorkflow.VerificationResult |
将系统转换为固定点后的验证结果 |
话题
迭代定点转换工作流程概述
- 定点转换工作流的最佳实践
Use best practices when converting a model to fixed point. - 使用定点工具的迭代定点转换
使用固定的PINT工具将系统从浮点转换为固定点。
- STEP 1:准备转换系统
- STEP 2:收集范围
- 步骤3:Convert Data Types
- 第4步:Verify New Settings
- 步骤5:Explore Additional Data Types
- Convert Floating-Point Model to Fixed Point
使用固定点工具将浮点模型转换为固定点。 - Rescale a Fixed-Point Model
Use the Fixed-Point Tool to autoscale fixed-point data types in a feedback model. - 定点工具的命令行接口
了解命令行接口工作流程和定点工具工作流之间的差异。
准备转换系统
- Use the Fixed-Point Tool to Prepare a System for Conversion
Use the Fixed-Point Tool to check the system under design for compatibility with the conversion process. - 指定行为约束
使用信号公差和模型验证块来验证定点实现的行为。
收集范围
- 定点仪器和数据类型覆盖
定点仪器和数据类型覆盖设置,以收集模型上的范围信息。 - 选择范围收集方法
从三种方法中选择收集基础数据类型建议的范围。 - 范围分析的工作方式
Learn how the static analysis derives range information.
- 防止定点工具覆盖整数数据类型
Maintain integer data types in your model when using data type override.
Propose Data Types
- How the Fixed-Point Tool Proposes Data Types
Learn how the Fixed-Point Tool proposes data types based on collected ranges and proposal settings. - 提出合并模拟范围的数据类型
Use the Fixed-Point Tool to merge results from multiple simulations, and propose data types based on the merged results. - How Hardware Implementation Settings Affect Data Type Proposals
使用定点工具为实现简单移动平均算法的模型提出单词长度。
Convert Data Types
- Convert a Referenced Model to Fixed Point
使用定点工具记录模拟最小and maximum values for referenced models and proposes data types based on a union of the collected ranges. - 定点工作流程中的总线对象
了解数据类型如何使用总线对象进行覆盖,以及如何确定数据类型为总线对象确定。 - 使用定点工具自动化数据对象
Use the Fixed-Point Tool to convert a model that uses data objects for data type specification to fixed point. - 将MATLAB功能块转换为固定点
使用定点工具转换MATLAB®功能块到定点。
Verify Results
- 定点工具中的控制视图
Information filtering, sorting, and analysis in the Fixed-Point Tool. - View Simulation Results
Use the Simulation Data Inspector to view simulation results and compare runs to verify your fixed-point design. - 探索定点转换的多个浮点
迭代地探索不同的建议设置,以找到定点转换的最佳浮点。 - 使用数据字典对多个数据类型行为进行建模
Example showing how to use referenced data dictionaries to store multiple sets of data types for a model.
Troubleshooting
对定点转换不支持的块进行故障排除。万博1manbetx
并使用MATLAB函数的最佳实践n Block in Automated Fixed-Point Conversion Workflows
Follow best practices and avoid unsupported MATLAB Function block features.
Know which modeling practices could cause data type propagation errors after autoscaling.
Troubleshoot range analysis issues.
Avoid specifying conflicting design minimum and maximum values in your model.
Insufficient Design Range Information
Troubleshoot errors caused by insufficient design range information by providing additional input design minimum and maximum values.
故障排除不足的设计范围信息,以防止成功的派生范围分析。
Troubleshoot Range Analysis of System Objects
Reconfigure a System Object, if necessary, so that ranges can be derived for the model.
The Fixed-Point Tool did not Propose Data Types
当定点工具不建议数据类型时进行故障排除。
Data Type Mismatch and Structure Initial Conditions
示例显示了如何用A替换结构初始条件万博1manbetxsimulink.parameter
目的。
Data Type Propagation Errors After Applying Proposed Data Types
Troubleshoot when the Fixed-Point Tool proposes data types that are not compatible with the model.