Decode integer input into floating-point output
The Uniform Decoder block performs the inverse operation of the Uniform Encoder block, and reconstructs quantized floating-point values from encoded integer input. The block adheres to the definition for uniform decoding specified in ITU
Decode integer input into floating-point output
The Uniform Decoder block performs the inverse operation of the Uniform Encoder block, and reconstructs quantized floating-point values from encoded integer input. The block adheres to the definition for uniform decoding specified in ITU-T Recommendation G.701.
Inputs can be real or complex values of the following six integer
The block first casts the integer input values to floating-point values, and then uniquely maps (decodes) them to one of 2B uniformly spaced floating-point values in the range [-V, (1-21-B)V], where you specify B in the Bits parameter (as an integer between 2 and 32) and V is a floating-point value specified by the Peak parameter. The smallest input value representable by B bits (0 for an unsigned input data type; -2B-1 for a signed input data type) is mapped to the value -V. The largest input value representable by B bits (2B-1 for an unsigned input data type; 2B-1-1 for a signed input data type) is mapped to the value (1-21-B)V. Intermediate input values are linearly mapped to the intermediate values in the range [-V, (1-21-B)V].
To correctly decode values encoded by the Uniform Encoder block, the Bits and Peak parameters of the Uniform Decoder block should be set to the same values as the Bits and Peak parameters of the Uniform Encoder block. The Overflow mode parameter specifies the Uniform Decoder block's behavior when the integer input is outside the range representable by B bits. When you select Saturate, unsigned input values greater than 2B-1 saturate at 2B-1; signed input values greater than 2