Main Content

CPM Demodulator Baseband

Demodulate signal using CPM method and Viterbi algorithm

  • CPM Demodulator Baseband block

Libraries:
Communications Toolbox / Modulation / Digital Baseband Modulation / CPM

Description

The CPM Demodulator Baseband block demodulates an input signal that was modulated using the continuous phase modulation (CPM) method. The input to this block is a baseband representation of the modulated signal. For more information about this demodulation and the filtering applied, see Algorithms.

Examples

expand all

Compute the bit error rate for a continuous phase modulated signal passed through an AWGN channel.

The cm_cpm_demod model passes a CPM-modulated signal through AWGN, demodulates the signal, and then computes the error rate of the received bits.

Run the model to compute the bit rate error.

BER = 0.002033
Number of errors = 2
Number of samples = 984

Ports

Input

expand all

CPM-modulated baseband signal, specified as a scalar or column vector. The length of the input signal must be an integer multiple of the number of samples per symbol specified in the Samples per symbol parameter. For information on the processing rates, see Single-Rate Processing and Multirate Processing.

This port is unnamed on the block.

Data Types: double | single

Output

expand all

Demodulated output signal, returned as a scalar or column vector. For more information, see Integer-Valued and Binary-Valued Output Signals and Traceback Depth and Output Delays.

This port is unnamed on the block.

Data Types: double | Boolean | int8 | int16 | int32

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.

Modulation order, specified as a power-of-two scalar. The modulation order M = 2k specifies the number of points in the symbol alphabet. k is a positive integer indicating the number of bits per symbol.

Integer or group of bits output indicator, specified as Integer or Bit.

  • Set this parameter to Integer to output data as integers.

  • Set this parameter to Bit to output data as bits.

For more information, see Integer-Valued and Binary-Valued Output Signals.

Symbol mapping of bit outputs, specified as Binary or Gray. This parameter determines how each integer maps to a group of output bits.

  • Set this parameter to Binary to map symbols using binary-coded ordering.

  • Set this parameter to Gray to map symbols using Gray-coded ordering.

For more information, see Integer-Valued and Binary-Valued Output Signals.

Dependencies

To enable this parameter, set Output type to Bit.

Modulation index {hi}, specified as a nonnegative scalar or column vector. The modulator operates in multi-h. For more information, see CPM Demodulation.

Type of pulse shaping used to smooth the phase transitions of the modulated signal, specified as Rectangular, Raised Cosine, Spectral Raised Cosine, Gaussian, or Tamed FM. For more information on the filtering options, see Pulse Shape Filtering.

Main lobe duration of the largest lobe in the spectral raised cosine pulse, specified as a positive integer representing the number of symbol intervals used to pulse-shape the modulated signal.

Dependencies

To enable this parameter, set Frequency pulse shape to Spectral Raised Cosine.

Rolloff factor of the spectral raised cosine pulse, specified as a scalar in the range [0, 1].

Dependencies

To enable this parameter, set Frequency pulse shape to Spectral Raised Cosine.

Product of the bandwidth and symbol time of the Gaussian pulse shape, specified as a positive scalar. Use BT product to reduce the bandwidth, at the expense of increased intersymbol interference.

Dependencies

To enable this parameter, set Frequency pulse shape to Gaussian.

Frequency pulse shape length, specified as a positive scalar. For more information on the frequency pulse length, refer to LT in Pulse Shape Filtering.

Data symbols used before the start of simulation, specified as scalar or vector with odd integer elements in the range [– (M – 1), (M – 1)]. M represents the modulation order, which is specified by the M-ary number parameter. The Symbol prehistory parameter defines the data symbols used by the modulator prior to the first call of the block, in reverse chronological order.

  • A scalar value expands to a vector of length LP – 1. LP represents the pulse length, which is specified by the Pulse length (symbol intervals) parameter.

  • For a vector, the length must be LP – 1.

Initial phase offset in radians, specified as a scalar. This property value is the initial phase offset of the modulated waveform.

Symbol sampling rate, specified as a positive integer. This parameter specifies the output symbol upsampling factor for each input sample.

For more information, see Signal Upsampling and Rate Changes.

Tip

To accurately model nonbinary pulse shapes, specifically pulse shapes other than rectangular, you should set the symbol sampling rate to values greater than 4.

Block processing rate, specified as one of these options:

  • Enforce single-rate processing — The input and output signals have the same port sample time. The block implements the rate change by making a size change at the output when compared to the input. The output width is the number of symbols (which is given by dividing the input length by the Samples per symbol parameter value when the Output type parameter is set to Integer).

  • Allow multirate processing — The input and output signals have different port sample times. The output period is the same as the symbol period and equals the product of the input period and the Samples per symbol parameter value.

Traceback depth for the Viterbi algorithm, specified as a positive integer. The traceback depth specifies the number of trellis branches that the Viterbi algorithm uses to construct each traceback path. The value of this parameter is also the output delay and the number of zero symbols that precede the first meaningful demodulated symbol in the output. For more information, see Traceback Depth and Output Delays.

Output data type, specified as double, boolean, int8, int16, or int32.

  • When you set the Output type parameter to false, you can set the output to double-precision or signed-integer data types.

  • When you set the Output type parameter to true, you can set the output to double-precision, signed-integer, or logical data types.

Block Characteristics

Data Types

Boolean | double | integer | single

Multidimensional Signals

no

Variable-Size Signals

no

More About

expand all

Algorithms

expand all

References

[1] Anderson, John B., Tor Aulin, and Carl-Erik Sundberg. Digital Phase Modulation. New York: Plenum Press, 1986.

[2] Proakis, John G. Digital Communications. 5th ed. New York: McGraw Hill, 2007.

Extended Capabilities

expand all

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

Version History

Introduced before R2006a