15.3.6. Choose Bits (ChooseBits)
You specify the bits that occur in the output signal by providing a vector of non-negative integers. Each integer specifies an input bit appears in the output. The block numbers the input bits from 0 (least significant bit) and lists the output bits starting from the least significant bit (little-endian ordering).
The block has no restriction on how many times each input bit may appear in the output. You can omit, reorder, or duplicate bits.
For example, the vector [0,1,4,4,6,5] keeps bits 0 and 1 unchanged, omits bit 3, duplicates bit 4 and swaps the positions of bits 5 and 6.
|Selected bits||A vector of non-negative integers.|
|d||Input||Any scalar.||Data input.|
|q||Output||Unsigned integer.||Data output.|