Documentation

ltePHICHIndices

PHICH resource element indices

Syntax

  • ind = ltePHICHIndices(enb)
  • ind = ltePHICHIndices(enb,opts)
    example

Description

ind = ltePHICHIndices(enb) returns the subframe resource element (RE) indices, ind, for the Physical Hybrid-ARQ Indicator Channels (PHICH), given the parameter fields of cell-wide settings structure, enb. By default, the number of rows of ind is the number of resource elements (NRE), and ind is an NRE-by-CellRefP matrix of indices in a one-based linear indexing style. These indices can directly index elements of an N-by-M-by-CellRefP array that represents the subframe resource grid across CellRefP antenna ports. Each column of ind identifies the same set of NRE resource elements, but with indices offset to select them in a different antenna "page" of the 3-D resource array.

The indices returned are for all PHICH groups in a subframe, where the number of groups depends on the bandwidth and PHICH Ng parameter. See ltePHICHInfo for details. The indices are ordered as the modulation symbols should be mapped for the set of consecutive PHICH groups. The PHICH resources are normally all assigned in the first OFDM symbol of a subframe, unless the PHICH duration is of the extended type.

example

ind = ltePHICHIndices(enb,opts) allows control of the format of the returned indices through a cell array of option strings, opts.

Examples

collapse all

Generate PHICH Indices

Generate PHICH resource element (RE) indices in linear form and resource element group (REG) indices in subscript form.

Get one-based PHICH resource element (RE) indices in linear form.

enb = lteRMCDL('R.14');
enb.NDLRB = 6;
indOneBased = ltePHICHIndices(enb,{'ind','re'})
indOneBased =

           8        1016        2024        3032
           9        1017        2025        3033
          11        1019        2027        3035
          12        1020        2028        3036
          26        1034        2042        3050
          27        1035        2043        3051
          29        1037        2045        3053
          30        1038        2046        3054
          50        1058        2066        3074
          51        1059        2067        3075
          53        1061        2069        3077
          54        1062        2070        3078

Get zero-based PHICH resource element group (REG) indices in subscript form, where each column of ind corresponds to a dimension of the 3-D resource grid array: subcarrier, OFDM symbol, and antenna port.

indZeroBased = ltePHICHIndices(enb,{'0based','sub','reg'})
indZeroBased =

           6           0           0
          24           0           0
          48           0           0
           6           0           1
          24           0           1
          48           0           1
           6           0           2
          24           0           2
          48           0           2
           6           0           3
          24           0           3
          48           0           3

Input Arguments

collapse all

enb — Cell-wide settingsscalar structure

Cell-wide settings, specified as a scalar structure. enb can contain the following fields. The TDDConfig and NSubframe parameter fields are only required if DuplexMode is set to 'TDD'.

NDLRB — Number of downlink resource blockspositive integer

Number of downlink resource blocks, specified as a positive integer.

Data Types: double

NCellID — Physical layer cell identitynonnegative integer

Physical layer cell identity, specified as a nonnegative integer.

Data Types: double

CyclicPrefix — Cyclic prefix length'Normal' (default) | optional | 'Extended'

Cyclic prefix length, specified as 'Normal' or 'Extended'.

Data Types: char

CellRefP — Number of cell-specific reference signal antenna ports1 | 2 | 4

Number of cell-specific reference signal antenna ports, specified as 1, 2, or 4.

Data Types: double

Ng — HICH group multiplier'Sixth' | 'Half' | 'One' | 'Two'

HICH group multiplier, specified as a string.

Data Types: char

PHICHDuration — PHICH duration'Normal' (default) | optional | 'Extended'

PHICH duration, specified as a string.

Data Types: char

DuplexMode — Duplex mode'FDD' (default) | optional | 'TDD'

Duplex mode, specified as a string.

Data Types: char

TDDConfig — Uplink or downlink configuration0 (default) | optional | 1 | 2 | 3 | 4 | 5 | 6

Uplink or downlink configuration, specified as a nonnegative scalar integer from 0 through 6. Only required if DuplexMode is set to 'TDD'.

Data Types: double

NSubframe — Subframe numbernonnegative integer

Subframe number, specified as a nonnegative integer. Only required if DuplexMode is set to 'TDD'.

Data Types: double

Data Types: struct

opts — Format options of returned indicesstring | cell array of strings

Format options of returned indices, specified as a string or a cell array of strings. opts can contain the following option strings.

Example: {'0based','ind'}

Example: '0based'

Indexing unit — Indexing unit of returned indices're' (default) | 'reg'

Indexing unit of returned indices, specified as 're' or 'reg'. If 're', the returned index values correspond to resource elements (REs). If 'reg', the returned index values correspond to resource element groups (REGs).

Data Types: char

Indexing style — Indexing style of returned indices'ind' (default) | 'sub'

Indexing style of returned indices, specified as 'ind' or 'sub'. If 'ind', the form of the returned indices is linear index form. If 'sub', the form of the returned indices is [subcarrier, symbol, antenna] subscript row form.

Data Types: char

Index base — Index base of returned indices'1based' (default) | '0based'

Index base of returned indices, specified as '1based' or '0based'. If '1based', the minimum index value is 1. If '0based', the minimum index value is 0.

Data Types: char

Data Types: char | cell

Output Arguments

collapse all

ind — PHICH resource element indicesnumeric matrix

PHICH resource element indices, returned as a numeric matrix. The size of the matrix is NRE-by-CellRefP. By default, it contains one-based linear indexing RE indices.

Data Types: uint32

Introduced in R2014a

Was this topic helpful?