Bit to Integer Converter
Map vector of bits to corresponding vector of integers
Libraries:
Simulink /
Logic and Bit Operations
Communications Toolbox /
Utility Blocks
Description
The Bit to Integer Converter block maps groups of bits in the input vector to integers in the output vector.
If M is specified by the Number of bits per integer(M) parameter:
For unsigned integers, the block maps each group of M bits to an integer in the range [0, (2M – 1)]. As a result, the output vector length is 1/M times the input vector length.
For signed integers, the block maps each group of M bits to an integer in the range [(–2M-1), (2M – 1 – 1)].
Ports
Input
Output
Parameters
Block Characteristics
Data Types | |
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
a Fixed-point inputs must be ufix(1). b ufix(N) or sfix(N) when ASIC/FPGA is selected in the Hardware Implementation Pane and output data-type is set to either (a) Smallest integer or, (b) Inherit via internal rule and at the same time input is non floating-point. |