Main Content

lteULScramble

PUSCH scrambling

Description

out = lteULScramble(in,nsubframe,cellid,rnti) performs PUSCH scrambling of bit vector, in, for subframe number, nsubframe, cell identity, cellid, and specified RNTI, rnti. It performs PUSCH scrambling according to TS 36.211, Section 5.3.1 [1]. Placeholder bits, denoted by x, are represented by –1 in the input vector or cell array of vectors. Repetition placeholder bits, y, are represented by –2. This function substitutes these placeholders as part of its scrambling operation.

in is a vector or a cell array containing one or two vectors corresponding to the number of codewords to be scrambled.

example

out = lteULScramble(ue,in) performs PUSCH scrambling of the in according to UE-specific settings in structure, ue.

Examples

collapse all

Perform PUSCH scrambling for NCellID=100 and RNTI=61.

in = ones(10,1);
bits = lteULScramble(struct('NCellID',100,'NSubframe',0,'RNTI',61),in)
bits = 10x1 int8 column vector

   0
   1
   0
   0
   0
   1
   0
   0
   1
   1

Input Arguments

collapse all

Bit input data, specified as a numeric column vector or cell array of numeric column vectors. This argument contains one or two vectors corresponding to the number of codewords to be scrambled.

Data Types: double | cell
Complex Number Support: Yes

Subframe number, specified as a numeric scalar.

Data Types: double

Physical layer cell identity, specified as a numeric scalar.

Data Types: double

Radio Network Temporary Identifier (16-bit). Specified as a numeric scalar.

Data Types: double

UE-specific settings, specified as a structure with the following fields.

Physical layer cell identity, specified as a numeric scalar.

Data Types: double

Subframe number, specified as a numeric scalar.

Data Types: double

Radio Network Temporary Identifier (16-bit). Specified as a numeric scalar.

Data Types: double

Data Types: struct

Output Arguments

collapse all

PUSCH scrambled output bits, returned as a numeric column vector or a cell array of numeric column vectors.

References

[1] 3GPP TS 36.211. “Evolved Universal Terrestrial Radio Access (E-UTRA); Physical Channels and Modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network. URL: https://www.3gpp.org.

Version History

Introduced in R2014a