Main Content

Simulink에서의 반복적인 고정소수점 변환

안내 워크플로에 따라 부동소수점 모델을 고정소수점으로 변환

고정소수점 툴은 Simulink® 모델에서 고정소수점 데이터형 지정 작업을 자동화하는 사용자 인터페이스입니다. 이 툴은 시뮬레이션 범위나 도출된 범위 또는 설계 범위를 기반으로 모델 객체에 대한 범위 데이터를 수집합니다. 반복적인 고정소수점 변환 워크플로에서 이 툴은 정밀도를 최대화하고 범위를 포괄하는 고정소수점 데이터형을 제안합니다. 그러면 데이터형 제안을 검토한 다음 모델의 객체에 선택적으로 적용할 수 있습니다. 설계 요구 사항이 충족되지 않으면 데이터형 제안 설정을 조정하고 그 영향을 시각화하고, 요구 사항이 충족될 때까지 이를 반복할 수 있습니다.

모델을 고정소수점으로 변환하려면 Iterative Fixed-Point Conversion Using the Fixed-Point Tool 항목에 나와 있는 단계를 따르십시오. 전체 변환 과정의 예제는 Convert Floating-Point Model to Fixed Point 항목을 참조하십시오.

DataTypeWorkflow.Converter 객체와 이와 연관된 객체 함수는 고정소수점 툴의 반복적인 고정소수점 변환 대신 명령줄에서 사용할 수 있는 방법입니다.

고정소수점 툴Convert a floating-point model to a fixed-point model

함수

fxptdlgOpen the Fixed-Point Tool

클래스

DataTypeWorkflow.ConverterCreate fixed-point converter object
DataTypeWorkflow.findDecoupledSubsystemsGet a list of subsystems to replace with an approximation
DataTypeWorkflow.ProposalSettingsProposal settings object for data type proposals
DataTypeWorkflow.ResultObject containing run result information
DataTypeWorkflow.VerificationResultVerification results after converting a system to fixed point

도움말 항목

반복적인 고정소수점 변환 워크플로 개요

시스템 변환 준비

범위 수집

데이터형 제안

데이터형 변환

결과 검증

문제 해결

Blocks That Do Not Support Fixed-Point Data Types

Troubleshoot blocks that are not supported for fixed-point conversion.

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.

Best Practices for Working with Stateflow Charts in Automated Fixed-Point Conversion Workflows

Follow best practices for Stateflow® charts to avoid unexpected results.

Models That Might Cause Data Type Propagation Errors

Know which modeling practices could cause data type propagation errors after autoscaling.

Resolve Range Analysis Issues

Troubleshoot range analysis issues.

Fix Design Range Conflicts

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.

Provide More Design Range Information

Troubleshoot insufficient design range information that prevents successful derived range analysis.

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

Troubleshoot when the Fixed-Point Tool does not propose data types.

Data Type Mismatch and Structure Initial Conditions

Example showing how to replace a structure initial condition with a Simulink.Parameter object.

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.