info
Description
The info
function returns downlink shared channel
(DL-SCH) or uplink shared channel (UL-SCH) decoding status information associated with the
last call of the nrDLSCHDecoder
or nrULSCHDecoder
System object™, respectively.
returns decoding status information associated with the last call of the
decoderInfo
= info(decoder
)decoder
input.
Examples
Generate a random sequence of binary values corresponding to one transport block of length 5120.
trBlkLen = 5120;
trBlk = randi([0 1],trBlkLen,1,'int8');
Create and configure a DL-SCH encoder System object with the specified target code rate.
targetCodeRate = 567/1024; encDL = nrDLSCH; encDL.TargetCodeRate = targetCodeRate;
Load the transport block into the DL-SCH encoder.
setTransportBlock(encDL,trBlk);
Call the encoder with 64-QAM modulation scheme, 1 transmission layer, an output length of 10,240 bits, and redundancy version 0. The encoder applies the DL-SCH processing chain to the transport block loaded into the object.
mod = '64QAM';
nLayers = 1;
outlen = 10240;
rv = 0;
codedTrBlock = encDL(mod,nLayers,outlen,rv);
Create and configure a DL-SCH decoder System object.
decDL = nrDLSCHDecoder; decDL.TargetCodeRate = targetCodeRate; decDL.TransportBlockLength = trBlkLen;
Call the DL-SCH decoder on the soft bits representing the encoded transport block. Use the configuration parameters specified for the encoder. The error flag in the output indicates that the block decoding does not have errors.
rxSoftBits = 1.0 - 2.0*double(codedTrBlock); [decbits,blkerr] = decDL(rxSoftBits,mod,nLayers,rv)
decbits = 5120×1 int8 column vector
1
1
0
1
1
0
0
1
1
1
0
1
1
0
1
⋮
blkerr = logical
0
Obtain decoding status information.
decoderInfo = info(decDL)
decoderInfo = struct with fields:
HARQID: 0
TransportBlockError: 0
CodeBlockError: {[0]}
SoftBufferFlushed: 1
Verify that the transmitted and received message bits are identical.
isequal(decbits,trBlk)
ans = logical
1
Input Arguments
DL-SCH or UL-SCH decoder, specified as an nrDLSCHDecoder
or nrULSCHDecoder
System object, respectively.
Output Arguments
Decoder status information, associated with the last call of the DL-SCH or
UL-SCH decoder input, decoder
, returned as a structure with
the fields listed in this table. If you call info(decoder)
before calling the decoder
object, the structure is returned
with empty fields ([]
).
Field Name | Value | Description |
---|---|---|
HARQID
| Integer from 0 to 31 or [] | HARQ process number in the last call. |
TransportBlockError | Logical scalar, 1-by-2 logical array, or
| CRC error flag per transport block. Array values
|
CodeBlockGroupError | Cell array of 1 or 2 row vectors or
| CRC error flag per code block group (CBG). The number of
row vectors returned in the cell array depends on the number of
codewords processed in the last call. Array values
Dependency: This field is returned only when
|
CodeBlockError | Cell array of 1 or 2 row vectors or
| CRC error flag per code block (CB). The number of row
vectors returned in the cell array depends on the number of
codewords processed in the last call. Array values
|
SoftBufferFlushed | Logical scalar, 1-by-2 logical array, or
| Logical flag indicating whether the soft buffer in the last call has been flushed. The number of returned values depends on the number of codewords processed in the last call. |
Data Types: struct
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2025a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)