| Link for ModelSim | ![]() |
After you create or edit your VHDL source files, you compile them. As part of this tutorial, set up a design library and compile iqconv.vhd, decoder.vhd, and statecnt.vhd:
Start ModelSim, if it is not already running, from MATLAB by issuing a call to the MATLAB vsim function.
Check that your current directory is set to the /vhdl/manchester subdirectory you created in Setting Up Tutorial Files. If you set up the files elsewhere, adjust the path accordingly.
ModelSim> cd C:/MyPlayArea/vhdl/manchester
Verify that the files are in the current directory by entering the ls command.
Create a design library to hold your compilation results. To create the library and required _info file, enter the vlib and vmap commands as follows:
ModelSim> vlib work ModelSim> vmap work work
Note You must use the ModelSim File menu or vlib command to create the library directory to ensure that the required _info file is created. Do not create the library with operating system commands. |
Compile the three VHDL files. One way of compiling a file is to click the filename in the project workspace and select Compile>Compile All. Another alternative is to specify the name of the VHDL file with the vcom command, as follows:
ModelSim> vcom iqconv.vhd ModelSim> vcom decoder.vhd ModelSim> vcom statecnt.vhd
If the compilations succeed, informational messages appear in the command window and the compiler populates the work library with the compilation results.

| VHDL Code for the State Counter | Developing the Manchester Receiver MATLAB Functions | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |