Main Content

nrWavegenBWPConfig

BWP configuration parameters for 5G waveform generation

Since R2020b

Description

The nrWavegenBWPConfig object sets bandwidth part (BWP) configuration parameters in a specific subcarrier spacing (SCS) carrier. Use this object to set the BandwidthParts property of the nrDLCarrierConfig object or the BandwidthParts property of the nrULCarrierConfig object when configuring 5G waveform generation. Specify the SCS carrier with the same numerology by using the SCSCarriers property of the same nrDLCarrierConfig or nrULCarrierConfig object.

This object defines the SCS of the carrier containing the BWP, the size of the BWP, the offset from the common resource block 0 (CRB 0), and the cyclic prefix. For a SCS of 60 kHz, you can specify either normal or extended cyclic prefix.

Creation

Description

bwp = nrWavegenBWPConfig creates a default BWP configuration object for 5G waveform generation.

bwp = nrWavegenBWPConfig(Name,Value) specifies properties using one or more name-value arguments. Enclose each property name in quotes. For example, 'SubcarrierSpacing',30 specifies a SCS of 30 kHz for the carrier containing the BWP.

example

Properties

expand all

ID of the BWP configuration, specified as a nonnegative integer.

Data Types: double

Name of the BWP configuration, specified as a character array or string scalar. Use this property to set a description to the BWP configuration.

Data Types: char | string

Subcarrier spacing in kHz, for all channels and reference signals of the carrier, specified as 15, 30, 60, 120, 480, or 960.

Data Types: double

Cyclic prefix length, specified as one of these options.

  • 'normal' — Use this value to specify normal cyclic prefix. This option corresponds to 14 OFDM symbols in a slot.

  • 'extended' — Use this value to specify extended cyclic prefix. This option corresponds to 12 OFDM symbols in a slot. For the numerologies specified in TS 38.211 Section 4.2, extended cyclic prefix length applies for only 60 kHz subcarrier spacing.

Data Types: char | string

Number of resource blocks (RBs) in the BWP resource grid, specified as an integer from 1 to 275. This property must be less than or equal to the size of the SCS carrier with the same SCS, specified by the SCSCarriers property of the nrDLCarrierConfig or nrULCarrierConfig objects.

Data Types: double

Start of the BWP resource grid relative to CRB 0, specified as a nonnegative integer. Set this property relative to the SCS carrier such that the property value is in this range: NStartGridNStartBWP ≤ (NStartGrid + NSizeGridNSizeBWP). NStartGrid and NSizeGrid are properties of the SCS carrier with the same SCS, specified by the SCSCarriers property of the nrDLCarrierConfig or nrULCarrierConfig objects. This figure shows where in the carrier the BWP is located in terms of this property and the NSizeBWP property.

The BWP is located inside the carrier, between NStartBWP and NStartBWP+NSizeBWP.

Data Types: double

Examples

collapse all

Create a BWP configuration object for the default SCS carrier of 15 kHz. Specify the number of RBs in the BWP resource grid and the start of the BWP resource grid relative to the CRB 0.

bwp = nrWavegenBWPConfig;
bwp.NSizeBWP = 50;
bwp.NStartBWP = 12;

Create a downlink carrier configuration object, specifying the previously defined BWP configuration.

cfgDL = nrDLCarrierConfig('BandwidthParts',{bwp});

Create a default SCS carrier configuration object, which configures a 10 MHz carrier with 15 kHz SCS.

scs1 = nrSCSCarrierConfig; 

Create an SCS carrier configuration object, which configures a 100 MHz carrier with 30 kHz SCS.

scs2 = nrSCSCarrierConfig('SubcarrierSpacing',30,'NSizeGrid',273);

Create two BWP configurations, one for each of the SCS carriers.

bwp1 = nrWavegenBWPConfig;
bwp2 = nrWavegenBWPConfig('SubcarrierSpacing',scs2.SubcarrierSpacing, ...
    'NSizeBWP',12,'NStartBWP',30);

Create a downlink carrier configuration object, specifying the previously defined BWP and corresponding SCS carrier configurations.

cfgDL = nrDLCarrierConfig( ...
    'SCSCarriers',{scs1,scs2}, ...
    'BandwidthParts',{bwp1,bwp2});

References

[1] 3GPP TS 38.211. “NR; Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020b

expand all