Main Content

nrPDCCHPRBS

Generate PDCCH scrambling sequence

Description

[seq,cinit] = nrPDCCHPRBS(nid,nrnti,n) returns the first n elements of the physical downlink control channel (PDCCH) scrambling sequence. The function also returns the initialization value cinit of the pseudorandom binary sequence (PRBS) generator. The initialization value depends on the scrambling identity number nid and the user equipment (UE) identifier nrnti. The function implements TS 38.211 Section 7.3.2.3 [1].

example

[seq,cinit] = nrPDCCHPRBS(nid,nrnti,n,Name,Value) specifies additional output formatting options by using one or more name-value pair arguments. Unspecified options take their default values.

Examples

collapse all

Generate the first 100 elements of the PDCCH scrambling sequence. The PDCCH demodulation reference signal (DMRS) scrambling identity and the cell radio network temporary identifier determine the initialization value.

n = 100;
nid = 10;                 % pdcch-DMRS-ScramblingID
nrnti = 20;               % C-RNTI
seq = nrPDCCHPRBS(nid,nrnti,n);

Generate the first 120 elements of the PDCCH scrambling sequence initialized with the physical layer cell identity number (NcellID).

n = 120;
nid = 123;                    % NcellID (0 to 1007)
nrnti = 0;                    
seq = nrPDCCHPRBS(nid,nrnti,n);

Input Arguments

collapse all

Scrambling identity, specified as an integer from 0 to 65,535. Specify with nid the physical layer cell identity number, ranging from 0 to 1007, or higher layer parameter pdcch-DMRS-ScramblingID, ranging from 0 to 65,535. For more information on these values, see TS 38.211 Section 7.3.2.3 and 7.4.1.3.

Data Types: double

UE identifier, specified as an integer from 0 to 65,519.

  • If nid is the PDCCH DMRS scrambling identity, nrnti is the cell radio network temporary identifier (C-RNTI) in a UE-specific search space.

  • If nid is the physical layer cell identity, nrnti is 0.

For more information, TS 38.211 Section 7.3.2.3 and 7.4.1.3.

Data Types: double

Number of elements in output sequence, specified as a nonnegative integer.

Data Types: double

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'MappingType','signed' specifies nondefault output sequence formatting.

Output sequence formatting, specified as the comma-separated pair consisting of 'MappingType' and one of these values:

  • 'binary' — This value maps true to 1 and false to 0. The data type of the output sequence is logical.

  • 'signed' — This value maps true to –1 and false to 1. The data type of the output sequence is double. To specify single data type, use the 'OutputDataType' name-value pair.

Data Types: char | string

Data type of output sequence, specified as the comma-separated pair consisting of 'OutputDataType' and 'double' or 'single'. This name-value pair applies only when 'MappingType' is set to 'signed'.

Data Types: char | string

Output Arguments

collapse all

PDCCH scrambling sequence, returned as a logical or numeric column vector. seq contains the first n elements of the PDCCH scrambling sequence. If you set 'MappingType' to 'signed', the output data type is either double or single. If you set 'MappingType' to 'binary', the output data type is logical.

Data Types: double | single | logical

Initialization value for the PRBS generator, returned as a nonnegative integer.

Data Types: double

References

[1] 3GPP TS 38.211. “NR; Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

Extended Capabilities

Version History

Introduced in R2018b

expand all

See Also

Functions