Extract Bits
Output selection of contiguous bits from input signal
- Library:
Simulink / Logic and Bit Operations
HDL编码器/逻辑和位操作
描述
TheExtract Bits块允许您从输入信号的存储整数值输出连续选择比特。使用提取物的比特parameter to define the method for selecting the output bits.
Select
Upper half
to output the half of the input bits that contain the most significant bit. If there is an odd number of bits in the input signal, the number of output bits is given by the equationnumber of output bits = ceil(number of input bits/2)
Select
Lower half
to output the half of the input bits that contain the least significant bit. If there is an odd number of bits in the input signal, the number of output bits is given by the equationnumber of output bits = ceil(number of input bits/2)
Select
范围从最重要的位开始
to output a certain number of the most significant bits of the input signal. Specify the number of most significant bits to output in theNumber of bits范围。Select
Range ending with least significant bit
输出输入信号的某个数量的最低有效位。指定输出的最低有效位数Number of bits范围。Select
Range of bits
指示输入输出的一系列连续位位指数范围。你表明了范围[start end]
format, and the indices of the input bits are labeled contiguously starting at 0 for the least significant bit.
在仿真期间,此块不会报告溢出警告的包裹。要报告这些警告,请参阅金宝appsimulink.restorediagnostic.
reference page. The block does report errors due to wrap on overflow.
港口
输入
Output
Parameters
Model Examples
块特征
Data Types |
|
直接喂养 |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|