Developing the Manchester Receiver MATLAB Functions

Link for ModelSim verifies VHDL hardware in MATLAB as a function. You must develop a MATLAB function for each model component you need to verify. Given that the VHDL model for the Manchester receiver consists of three sections of VHDL code, we need three corresponding MATLAB functions:

I/Q convolver Verifies that the VHDL I/Q convolver code computes expected output for a randomly generated stream of samples. The MATLAB function verifies this by computing the convolution for the inphase and quadrature waveforms (i_wf and q_wf). The computation is implemented as an XOR and accumulation of the binary signals.
DecoderDisplays a plot of the I/Q mapping generated by the decoder for visual verification.
State counterGenerates the inphase and quadrature waveforms. The MATLAB test bench function has complete control of signals applied during the simulation, including clock generation, resets, and so on.

The following sections highlight areas of code in each of the three MATLAB function files that are of interest for a ModelSim and MATLAB test bench. The files are located in modelsimdemos.


Learn more about the latest releases of MathWorks products:

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