Compiling the Manchester Receiver VHDL Files

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:

  1. Start ModelSim, if it is not already running, from MATLAB by issuing a call to the MATLAB vsim function.

  2. 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
    
  3. Verify that the files are in the current directory by entering the ls command.

  4. 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
    

  5. 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.


Learn more about the latest releases of MathWorks products:

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