Products & Services Industries Academia Support User Community Company

Learn more about Communications Blockset   

AWGN Channel - Add white Gaussian noise to input signal

Library

Channels

Description

The AWGN Channel block adds white Gaussian noise to a real or complex input signal. When the input signal is real, this block adds real Gaussian noise and produces a real output signal. When the input signal is complex, this block adds complex Gaussian noise and produces a complex output signal. This block inherits its sample time from the input signal.

This block uses the Signal Processing Blockset™ Random Source block to generate the noise. Random numbers are generated using the Ziggurat method, which is the same method used by the MATLAB randn function. The Initial seed parameter in this block initializes the noise generator. Initial seed can be either a scalar or a vector whose length matches the number of channels in the input signal. For details on Initial seed, see the Random Source block reference page in the Signal Processing Blockset documentation set.

The signal inputs can only be of type single or double. The port data types are inherited from the signals that drive the block.

Frame-Based Processing and Input Dimensions

This block can process multichannel signals that are frame-based or sample-based. The guidelines below indicate how the block interprets your data, depending on the data's shape and frame status:

The input cannot be a sample-based m-by-n matrix if both m and n are greater than 1.

Specifying the Variance Directly or Indirectly

You can specify the variance of the noise generated by the AWGN Channel block using one of these modes:

Changing the symbol period in the AWGN Channel block affects the variance of the noise added per sample, which also causes a change in the final error rate.

A good rule of thumb for selecting the Symbol period value is to set it to be what you model as the symbol period in the model. The value would depend upon what constitutes a symbol and what the oversampling applied to it is (e.g., a symbol could have 3 bits and be oversampled by 4).

In both Variance from mask mode and Variance from port mode, these rules describe how the block interprets the variance:

Relationship Among Eb/No, Es/No, and SNR Modes

For complex input signals, the AWGN Channel block relates Eb/N0, Es/N0, and SNR according to the following equations:

Es/N0 = (Tsym/Tsamp) · SNR

Es/N0 = Eb/N0 + 10log10(k)  in dB

where

For real signal inputs, the AWGN Channel block relates Es/N0 and SNR according to the following equation:

Es/N0 = 0.5 (Tsym/Tsamp) · SNR

Note that the equation for the real case differs from the corresponding equation for the complex case by a factor of 2. This is so because the block uses a noise power spectral density of N0/2 Watts/Hz for real input signals, versus N0 Watts/Hz for complex signals.

For more information about these quantities, see Describing the Noise Level of an AWGN Channel in the Communications Toolbox documentation.

Tunable Block Parameters

The following table indicates which parameters are tunable, for different block modes.

ModeTunable Parameters
Eb/NoEb/No, Input signal power
Es/NoEs/No, Input signal power
SNRSNR, Input signal power
Variance from maskVariance

You can tune parameters in normal mode, Accelerator mode and the Rapid Accelerator mode.

If you use the Real-Time Workshop® rapid simulation (RSIM) target to build an RSIM executable, then you can tune the parameters listed in the previous table without recompiling the model. This is useful for Monte Carlo simulations in which you run the simulation multiple times (perhaps on multiple computers) with different amounts of noise.

Dialog Box

Initial seed

The seed for the Gaussian noise generator.

Mode

The mode by which you specify the noise variance: Signal to noise ratio (Eb/No), Signal to noise ratio (Es/No), Signal to noise ratio (SNR), Variance from mask, or Variance from port.

Eb/No (dB)

The ratio of bit energy per symbol to noise power spectral density, in decibels. This field appears only if Mode is set to Eb/No.

Es/No (dB)

The ratio of signal energy per symbol to noise power spectral density, in decibels. This field appears only if Mode is set to Es/No.

SNR (dB)

The ratio of signal power to noise power, in decibels. This field appears only if Mode is set to SNR.

Number of bits per symbol

The number of bits in each input symbol. This field appears only if Mode is set to Eb/No.

Input signal power, referenced to 1 ohm (watts)

The mean square power of the input symbols (if Mode is Eb/No or Es/No) or input samples (if Mode is SNR), in watts. This field appears only if Mode is set to Eb/No, Es/No, or SNR.

Symbol period (s)

The duration of a channel symbol, in seconds. This field appears only if Mode is set to Eb/No or Es/No.

Variance

The variance of the white Gaussian noise. This field appears only if Mode is set to Variance from mask.

Examples

Many demonstration models and documentation examples use this block, including:

See Also

Random Source (Signal Processing Blockset documentation)

Reference

[1] Proakis, John G., Digital Communications, 4th Ed., McGraw-Hill, 2001.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS