Main Content

Manchester Receiver (Absolute Time Mode)

This example shows verification of a Manchester encoder using HDL Verifier with Simulink. Manchester encoding is a simple modulation scheme that converts baseband digital data to an encoded waveform with no DC component. The most widely known application of this technique is Ethernet.

This model simulates a digital receiver of Manchester encoded data. The receiver is implemented in VHDL. The receiver uses a simple DLL (delay lock loop) clock recovery mechanism, which requires multiple cycles to lock with the incoming data stream. The performance of the receiver is explored by applying phase and frequency errors to a randomly generated stream of bits that is encoded using a simple MATLAB® function: manchesterencoder().

The VHDL code runs in ModelSim® as a ModelSim VHDL Cosimulation block labeled VHDL Manchester Receiver.

cmd = get_param('abs_manchestermodel/VHDL Manchester Receiver','TclPostSimCommand');
set_param('abs_manchestermodel/VHDL Manchester Receiver','TclPostSimCommand',[cmd '; quit -f;']);