Documentation

ltePDSCHPRBS

PDSCH pseudorandom scrambling sequence

Syntax

  • seq = ltePDSCHPRBS(enb,rnti,ncw,n)
    example
  • seq = ltePDSCHPRBS(enb,rnti,ncw,n,mapping)

Description

example

seq = ltePDSCHPRBS(enb,rnti,ncw,n) returns a column vector containing the first n outputs of the Physical Downlink Shared Channel (PDSCH) scrambling sequence when initialized according to cell-wide settings, enb, 16-bit rnti, and ncw, which is either 0 or 1, indicating which codeword this sequence would scramble.

seq = ltePDSCHPRBS(enb,rnti,ncw,n,mapping) allows control over the format of the returned sequence seq through the string mapping. Valid formats are 'binary', the default, and 'signed'. The 'binary' format maps true to 1 and false to 0. The 'signed' format maps true to –1 and false to 1.

Examples

collapse all

Generate PDSCH Pseudorandom Binary Scrambling Sequence

Generate a physical downlink shared channel (PDSCH) pseudorandom scrambling sequence for two different codeword numbers.

When transmitting multiple codewords via spatial multiplexing, each codeword uses a different scrambling sequence. Generate the first 10 values of the PRBS sequence for the first codeword. Set ncw to 0, and set rnti to 11.

enb = lteRMCDL('R.0');
pdschPrbsSeq1 = ltePDSCHPRBS(enb,11,0,10)
     0
     1
     1
     1
     0
     1
     0
     1
     0
     1

Next, generate the first 10 values of the PRBS sequence for the second codeword. To do so, set ncw to 1.

pdschPrbsSeq2 = ltePDSCHPRBS(enb,11,1,10)
     0
     0
     1
     1
     0
     0
     0
     1
     0
     1

Input Arguments

collapse all

enb — Cell-wide settingsstructure

Cell-wide settings, specified as a structure. enb contains the following fields.

NCellID — Physical layer cell identitynonnegative integer

Physical layer cell identity, specified as a nonnegative integer.

Data Types: double

NSubframe — Subframe numbernonnegative integer

Subframe number, specified as a nonnegative integer.

Data Types: double

Data Types: struct

rnti — Radio network temporary identifiernonnegative integer

Radio network temporary identifier, specified as nonnegative integer.

Data Types: double

ncw — Number of codewords0 | 1

Number of codewords, specified as a 0 or 1. This input indicates which codeword this sequence scrambles.

Data Types: double

n — Length of scrambling sequencepositive integer

Length of scrambling sequence, specified as a positive integer.

Data Types: double

mapping — Format of returned sequence'binary' (default) | 'signed'

Format of returned sequence, specified as a string. This input controls the format of the returned sequence, seq. The string 'binary' maps true to 1 and false to 0. The string 'signed' maps true to –1 and false to 1.

Data Types: char

Output Arguments

collapse all

seq — PDSCH scrambling sequencelogical column vector | numeric column vector

PDSCH scrambling sequence, returned as a numeric column vector. This output argument contains the first n outputs of the PDSCH pseudorandom scrambling sequence.

Data Types: logical | double

Introduced in R2014a

Was this topic helpful?