| Link for ModelSim | ![]() |
This section explains how to start and monitor the Manchester Receiver simulation:
Start MATLAB, if it is not already running.
At the MATLAB command prompt, enter the following command:
manchester_tb
This command starts the Manchester Receiver test script that you created in Creating a Manchester Receiver Test Bench Script. The following informational messages appear in the MATLAB Command Window:
MATLAB testing Manchester Receiver component decoder.vhd... Creates two plots of the entity's transfer function providing a visualization of the decoder behavior. HDLDaemon socket server is running on port 4449 with 0 connections Waiting for testing of 'decoder.vhd' to complete (flag from manchester_decoder.m indicates completion)
Note If the server was already running, the HDLDaemon message informs you that the existing connection is disconnected and that a new connection has been established. |
The following figure window appears.

The decoder test then displays the following message in the MATLAB Command Window:
MATLAB test of decoder.vhd is complete. Check the generated plot for results. Press any key to continue to the next test.
With the input focus in the MATLAB Command Window, press any key on the keyboard. The test script starts the I/Q convolver test and displays the following:
MATLAB testing Manchester Receiver component iqconv.vhd... Checks isum and qsum output for a randomly generated stream of data samples. MATLAB test of iqconv.vhd is complete. If the test fails, an error message is displayed.'); Press any key to continue to the next test.
With the input focus in the MATLAB Command Window, press any key on the keyboard. The test script starts the state counter test and displays the following:
MATLAB testing Manchester Receiver component statecnt.vhd... Creates and checks isum and qsum outputs for a randomly generated stream of data samples.
The following figure window appears.

The state counter test then displays the following message in the MATLAB Command Window:
MATLAB test of statecnt.vhd is complete. Check the generated plot for results. Press any key to exit the test script.
With the input focus in the MATLAB Command Window, press any key on the keyboard. The MATLAB prompt reappears.
| Writing Script Code for the State Counter Test | Coding a Link for ModelSim MATLAB Application | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |