Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

고정소수점

고정소수점 숫자로 신호 및 파라미터 값을 표현하여 생성된 코드의 성능 개선

디지털 하드웨어에서 숫자는 고정소수점 데이터형 또는 부동소수점 데이터형으로 표현됩니다. 이 두 가지 데이터형 모두에서 워드 크기는 정해진 비트 수로 고정됩니다. 하지만, 고정소수점 값의 동적 범위는 이에 상응하는 워드 크기를 갖는 부동소수점 값보다 훨씬 더 작습니다. 부동소수점 프로세서가 시스템의 실시간 구현을 크게 단순화하고 실제 숫자를 효과적으로 근사할 수 있지만, 고정소수점 프로세서는 이와 다른 수많은 이점을 제공합니다. 고정소수점 프로세서는 일반적으로 더 작으므로 전력을 덜 소비합니다. 또한 작업을 수행하는 데 필요한 메모리 및 프로세서 시간도 더 적습니다.

고정소수점 숫자를 사용하는 모델을 시뮬레이션하려면 Fixed-Point Designer™ 제품을 설치해야 합니다. 고정소수점 블록을 포함하는 모델을 편집하거나 고정소수점 데이터형을 지정하는 데는 Fixed-Point Designer 제품이 필요하지 않습니다.

함수

fixdt고정소수점 또는 부동소수점 데이터형을 나타내는 Simulink.NumericType 객체 생성
fixpt_look1_func_approxOptimize fixed-point approximation of nonlinear function by interpolating lookup table data points
fixpt_evenspace_cleanupModify breakpoints of lookup table to have even spacing
fixpt_look1_func_plotPlot fixed-point approximation function for lookup table
fixpt_set_allSet property for each fixed-point block in subsystem
fixptbestexpExponent that gives best precision for fixed-point representation of value
fixptbestprecDetermine maximum precision available for fixed-point representation of value

도움말 항목

  • Specify Fixed-Point Data Types

    If you do not have Fixed-Point Designer, you can still inspect and use fixed-point models that others share with you.

  • Specify Data Types Using Data Type Assistant

    Interactively apply data types, such as integer, fixed-point, and enumerated types, to data items in a model.

  • Share Fixed-Point Models

    Inspect and use an existing fixed-point model when you do not have Fixed-Point Designer.

  • Control Fixed-Point Instrumentation and Data Type Override

    If you do not have Fixed-Point Designer, you can work with a model containing Simulink® blocks with fixed-point settings by turning off fixed-point instrumentation and setting data type override to scaled doubles.

  • Fixed-Point Numbers

    In computer memory, an item of fixed-point data is stored as an integer. To interpret the data as a real-world number, the computer applies a mathematical scaling to the integer. The scaling is fixed, which means it cannot change during execution.

  • Benefits of Using Fixed-Point Hardware

    Fixed-point designs can perform faster and consume fewer computing resources than floating-point designs.

  • Scaling, Precision, and Range

    Examine the interaction between the scaling that you apply to fixed-point data, the precision with which the data can represent real-world values, and the range of real-world values that the data can represent.

  • Fixed-Point Data in MATLAB and Simulink

    Apply fixed-point data types to data in Simulink models and to data in MATLAB® code.

관련 정보