Main Content

ltePHICHPRBS

PHICH pseudorandom scrambling sequence

Description

example

[seq,cinit] = ltePHICHPRBS(enb,n) returns the first n outputs of the Physical Hybrid ARQ Indicator Channel (PHICH) scrambling sequence when initialized according to cell-wide settings structure, enb. It also returns an initialization value cinit for the pseudorandom binary sequence (PRBS) generator.

[seq,cinit] = ltePHICHPRBS(enb,n,mapping) allows control over the format of the returned sequence, seq, with the input mapping.

[subseq,cinit] = ltePHICHPRBS(enb,pn) returns a subsequence of a full PRBS sequence, specified by pn.

[subseq,cinit] = ltePHICHPRBS(enb,pn,mapping) allows additional control over the format of the returned subsequence, subseq, with the input mapping.

Examples

collapse all

Create a cell-wide configuration structure initialing for RMC R.0. Generate the pseudorandom scrambling sequence for the PHICH.

enb = lteRMCDL('R.0');
phichInfo = ltePHICHInfo(enb);
phichPrbsSeq = ltePHICHPRBS(enb,phichInfo.NRE);
numRE = phichInfo.NRE
numRE = uint64
    12
size(phichPrbsSeq)
ans = 1×2

    12     1

Using RMC R.0 results in 12 BPSK modulated symbols, where one bit per symbol is mapped onto a single resource element (RE).

Input Arguments

collapse all

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

Physical layer cell identity, specified as a nonnegative integer.

Data Types: double

Subframe number, specified as a nonnegative integer.

Data Types: double

Data Types: struct

Length of PHICH scrambling sequence, specified as a positive integer.

Data Types: double

Range of PHICH scrambling subsequence, subseq, specified as a row vector of [p n]. The subsequence returns n values of the PRBS generator, starting at position p (0-based).

Data Types: double

Output sequence formatting, specified as 'binary' or 'signed'. mapping controls the format of the returned sequence.

  • 'binary' maps true to 1 and false to 0.

  • 'signed' maps true to –1 and false to 1.

Data Types: char | string

Output Arguments

collapse all

PHICH pseudorandom scrambling sequence, returned as a logical column vector or a numeric column vector. This argument contains the first n outputs of the PHICH scrambling sequence. If mapping is set to 'signed', seq is a vector of data type double. Otherwise, it is a vector of data type logical.

Data Types: logical | double

PHICH pseudorandom scrambling subsequence, returned as a logical column vector or a numeric column vector. subseq contains the values of the PRBS generator specified by pn. If you set mapping to 'signed', the output data type is double. Otherwise, the output data type is logical.

Data Types: logical | double

Initialization value for PRBS generator, returned as a numeric scalar.

Data Types: uint32

Version History

Introduced in R2014a