Main Content

OSTBC Encoder

Encode input message using orthogonal space-time block code

  • OSTBC Encoder block

Libraries:
Communications Toolbox / MIMO

Description

The OSTBC Encoder block encodes an input symbol sequence using an orthogonal space-time block code (OSTBC). The block maps the input symbols block-wise and concatenates the output codeword matrices in the time domain. For more information, see OSTBC Encoding Algorithm.

Examples

expand all

Simulate orthogonal space-time block codes (OSTBC) to achieve diversity gains in a multiple-input multiple-output (MIMO) communications system. The example shows the transmission of data over three transmit antennas and two receive antennas using independent Rayleigh fading per link.

Explore Model

The doc_ostc32 model creates a random binary signal, modulates it using a binary phase shift keying (BPSK) technique, and then encodes the waveform using a rate 3/4 orthogonal space-time block code for transmission over the fading channel. The fading channel has six independent links that result from the configuration of single-path Rayleigh fading processes. The simulation adds white Gaussian noise at the receiver, and then combines the signals from both receive antennas into a single stream for demodulation. For this combining process, the model assumes perfect knowledge of the channel gains at the receiver. The simulation compares the demodulated data with the original transmitted data and computes the bit error rate. The simulation runs until it processes 100 errors or 1e6 bits, whichever comes first.

Orthogonal Space-Time Block Code

This matrix shows the rate 3/4 code with three transmit antenna orthogonal space-time block code configured in the OSTBC Encoder block:

$$\pmatrix{s_{1} & s_{2} & s_{3} \cr -s_{2}^* & s_{1}^* & 0 \cr s_{3}^* &
0 & -s_{1}^* \cr 0 & s_{3}^* & -s_{2}^*}$$

where $s_{1}$, $s_{2}$, and $s_{3}$ correspond to the three symbol inputs for which the output is given by the matrix. The input to the OSTBC Encoder block is a 3-by-1 vector signal and the output is a 4-by-3 matrix. The number of columns in the output signal indicates the number of transmit antennas for this simulation, where the first dimension is for time. The OSTBC Combiner block outputs a 3-by-1 vector.

For the rate 3/4 OSTBC code modeled, the output signal power per time step is 3x(3/4) = 2.25W. A channel symbol carries 3 data bits, is 4 time steps long, and has a period of 3e-3 seconds. At the receiver, two antennas result in 3/2 bits per symbol per channel (antenna). In addition,

$$\frac{E_s}{N_o} = \frac{E_b}{N_o} + 10log_{10}(k)$$

where k is the number of bits per symbol. Since the AWGN Channel block requires per-channel values for input signal power and number of bits per symbol, set the Es/No value to EbNo+10*log10(3/2) to calibrate the white Gaussian noise added in the simulation.

Performance

Compare the performance of the model to theoretical results by using the Bit Error Rate Analysis app. This plot compares the simulated BER for a range of Eb/No values with the theoretical results for a diversity order of six.

The theoretical and simulated results align well. The variation between theoretical and simulated results is primarily due to the simulated fading channel model having a small Doppler fade. Since the simulated channel varies slightly over the block symbols, the simulated and theoretical results show some variation.

Ports

Input

expand all

Input data, specified as a column vector or matrix of values with power-of-two slope and zero bias. For more information, see Input-to-Output Dimensions.

This port is unnamed on the block icon.

Data Types: single | double | fixed point
Complex Number Support: Yes

Output

expand all

Output data, returned as a matrix or 3-D array. For more information, see Input-to-Output Dimensions.

The output signal inherits the data type from the input signal. For fixed-point signals, the Saturate on integer overflow parameter specifies how the block handles integer overflows due to complex conjugation.

This port is unnamed on the block icon.

Data Types: single | double | fixed point

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Main

Number of transmit antennas, specified as 2, 3, or 4.

Symbol rate of the code, specified as 3/4 or 1/2. When you set Number of transmit antennas to 2, the symbol rate is 1.

Dependencies

To enable this parameter, set Number of transmit antennas to 3 or 4.

Data Types

For fixed-point calculations, use this parameter to specify the method to be used if the magnitude of a fixed-point calculation result does not fit into the range of the data type and scaling that stores the result.

  • To saturate on integer overflow, select this parameter.

  • To wrap on integer overflow, do not select this parameter.

For more information, see Precision and Range.

Data Types: Boolean

Block Characteristics

Data Types

double | fixed pointa | single

Multidimensional Signals

yes

Variable-Size Signals

yes

a Signed only.

More About

expand all

Algorithms

expand all

Extended Capabilities

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

Version History

Introduced in R2009a