HARQ-ACK channel decoding
out = lteACKDecode(chs,in)
the block decoding on soft input data,
out = lteACKDecode(
to be encoded using the procedure defined for HARQ-ACK in TS 36.212 , Section 188.8.131.52 for given PUSCH
channel transmission configuration
chs. The decoded
out, is a vector of length
the number of uncoded HARQ-ACK bits transmitted.
Multiple codewords can be parameterized by two different forms
chs structure. Each codeword can be defined
by separate elements of a 1-by-2 structure array, or the codeword
parameters can be combined together in the fields of a single scalar,
or 1-by-1, structure. Any scalar field values apply to both codewords
and a scalar
chs.NLayers is the total number. See UL-SCH Parameterization for
The block decoding is performed separately on each soft input
data codeword using a maximum likelihood (ML) approach, assuming that
been demodulated and equalized to best restore the originally transmitted
The HARQ-ACK decoder performs different type of block decoding
depending upon the number of uncoded HARQ-ACK bits to be recovered
OACK less than 3
bits, the decoder assumes the bits are encoded using the procedure
defined in TS 36.212 , Section
For decoding between 3 and 11 HARQ-ACK bits, the decoder assumes the bits are block encoded using the procedure defined in TS 36.212 , Section 184.108.40.206.4. For greater than 11 bits, the decoder performs the inverse procedure described in TS 36.212 , Section 220.127.116.11.5.
Show the block decoding of 3 coded HARQ-ACK information bits.
Create input and initialize channel structure. Encode bits and turn logical bits into soft data compatible with log-likelihood ratio check. Use
pskmod with an initial phase offset of
to align mapping with LTE codebook.
Perform HARQ-ACK bit encoding and modulation.
in = [1;0;1]; chs = struct('Modulation','QPSK','QdACK',2,'OACK',length(in)); encodedBits = lteACKEncode(chs,in); encodedBits = pskmod(double(encodedBits),2,pi());
Pass transmitted encoded bits through an AWGN channel with a 20 dB signal-to-noise ratio. Show a
scatterplot of the noisy received HARQ-ACK softbits.
rxBits = awgn(encodedBits,20); scatterplot(rxBits)
Decode the received softbits. Compare the decoded bits with the input bits to show the bits have been recovered with no error.
decodedBits = lteACKDecode(chs,rxBits) isequal(in,decodedBits)
decodedBits = 1 0 1 ans = logical 1
chs— PUSCH-specific channel transmission configuration
PUSCH-specific channel transmission configuration, specified as a structure or a structure array, which contains the following parameter fields.
|Parameter Field||Required or Optional||Values||Description|
Modulation type, specified as a character vector or cell array of character vectors. If blocks, each cell is associated with a transport block.
nonnegative scalar integer, 0 (default)
Number of uncoded HARQ-ACK bits.
HARQ-ACK decoder performs different type of block decoding depending
upon the number of uncoded HARQ-ACK bits to be recovered (
1 (default), 2, 3, 4
Number of transmission layers.
0 (default), 1, …, 9
TDD HARQ-ACK bundling scrambling sequence index. When set to 0, the function disables the TDD HARQ-ACK bundling scrambling. Therefore, it is off by default.
in— Soft input data
Soft input data, specified as a numeric vector. The input data is assumed to be encoded using the procedure defined for HARQ-ACK in TS 36.212 , Section 18.104.22.168.
out— Decoded HARQ-ACK channel
Decoded HARQ-ACK channel output, returned as an
 3GPP TS 36.212. "Multiplexing and channel coding." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: http://www.3gpp.org.