이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Simulink에서 고정소수점 코드 생성
고정소수점 모델을 위한 코드 생성 최적화
Simulink® Coder™ 또는 Embedded Coder® 제품을 사용하여 Fixed-Point Designer™에서 C 코드를 생성할 수 있습니다. 고정소수점 모델에서 생성된 코드는 정수형만 사용하며, 시프트같이 고정소수점 위치의 차이를 처리하는 데 필요한 모든 연산을 자동으로 포함합니다. 생성된 코드를 임베디드 고정소수점 프로세서나 고속 프로토타이핑 시스템에서 사용할 수 있습니다. 이는 해당 프로세서나 시스템에 부동소수점 프로세서가 포함되어 있는 경우에도 적용됩니다.
Fixed-Point Designer를 HDL Coder™와 함께 사용할 경우 Simulink 모델, Stateflow® 차트 및 MATLAB Function 블록에서 합성 가능한 비트트루(bit-true) Verilog® 코드와 VHDL® 코드를 생성할 수 있습니다.
도움말 항목
고성능 코드를 위한 모델
- Lookup Table Optimization
Optimize lookup tables in your model to improve efficiency. - Selecting Data Types for Basic Operations
How to select efficient data types for basic fixed-point operations. - Fixed-Point Code Generation Support
Simulink features supported for fixed-point code generation.
모델 어드바이저 사용
- Optimize Generated Code with the Model Advisor
Use the Model Advisor to identify model settings that might lead to non-optimal results in code generation. - Net Slope Computation
Control how the software handles net slope computations in generated code.
생성된 코드 사용자 지정
- Control the Generation of Fixed-Point Utility Functions
Control the generation of fixed-point utility functions using specified minimum and maximum values.
표준 준수 유지
- Use of Shifts by C Code Generation Products
Understand the use of shifts by MathWorks® coder products including how to control the shifts using optimization settings in the configuration parameters as well as modeling techniques.
문제 해결
Data types supported for simulation and code generation.