メインコンテンツ

nrPUCCHPRBS

R2026b

Generate PUCCH scrambling sequence

Description

[seq,cinit] = nrPUCCHPRBS(nid,rnti,n) returns the first n elements of the physical uplink control channel (PUCCH) scrambling sequence. The function also returns initialization value cinit of the pseudorandom binary sequence (PRBS) generator. The initialization value depends on scrambling identity nid and radio network temporary identifier (RNTI) of the user equipment (UE) rnti. The function implements TS 38.211 Section 6.3.2.5.1/6.3.2.6.1 [1].

example

[seq,cinit] = nrPUCCHPRBS(nid,rnti,n,Name=Value) specifies additional output formatting options by using one or more name-value arguments. Unspecified name-value arguments take their default values. For example, MappingType="signed" specifies nondefault sequence formatting.

Examples

collapse all

Generate the first 300 elements of the PUCCH scrambling sequence when initialized with the specified physical layer cell identity number and RNTI.

ncellid = 17;
rnti = 120;
n = 300;
seq = nrPUCCHPRBS(ncellid,rnti,n)
seq = 300×1 logical array

   0
   1
   1
   0
   1
   1
   0
   1
   0
   0
   0
   0
   1
   1
   1
      ⋮

Input Arguments

collapse all

Scrambling identity, specified as an integer from 0 to 1023. nid is higher layer parameter dataScramblingIdentityPUSCH, ranging from 0 to 1023, if the higher layer parameter is configured. Otherwise, nid is the physical layer cell identity number NCellID, ranging from 0 to 1007.

For more information, see TS 38.211 Sections 6.3.2.5.1 and 6.3.2.6.1.

Data Types: double

RNTI of the UE, specified as an integer from 0 to 65,535.

Data Types: double

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

Data Types: double

Name-Value Arguments

collapse all

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.

Example: MappingType="signed" specifies nondefault sequence formatting.

Output sequence formatting, specified as 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 argument.

Data Types: char | string

Data type of output sequence, specified as 'double' or 'single'. This name-value argument applies only when MappingType is set to 'signed'.

Data Types: char | string

Output Arguments

collapse all

PUCCH scrambling sequence, returned as a logical or numeric column vector. seq contains the first n elements of the PUCCH 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 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

expand all

Version History

Introduced in R2019a

See Also

Functions