定点算术
软件中的定点算术运算,以及数据类型和定标的影响
定点算术指的是如何对有符号或无符号二进制字进行运算。诸如加法和减法等简单的定点算术函数支持经济高效的硬件实现。
主题
- 定点算术
加法、减法、乘法、转换、模和 2 的补码算术。
- Rules for Arithmetic Operations
Rules that the Simulink® software follows when arithmetic operations are performed on inputs and parameters.
- Shifts
Bit-shift operations for integers.
- Conversions and Arithmetic Operations
Example highlighting how the data types are converted and arithmetic operations are performed on inputs and parameters in the Simulink software.
- The Summation Process
Addition of n-bit numbers in the Simulink software.
- The Multiplication Process
Multiplication of n-bit binary numbers with m-bit binary numbers in the Simulink software.
- The Division Process
Integer division for fixed-point data types in the Simulink software.
- fimath Properties Usage for Fixed-Point Arithmetic
Fixed-point arithmetic using
fimath
objects to control the results.