24.1.3.1 ModelSim

Use the following procedure to compile Verilog libraries for the ModelSim simulator. Type UNIX commands at the UNIX prompt. The commands below are for Windows. To compile the Verilog libraries:

Since the installation path varies for each user and each installation, this document uses "$ALSDIR" to indicate the location where the Microchip Designer software is installed. If you are a Unix user, simply create an environment variable called ALSDIR and set its value to the installation path. If you are a Windows user, replace "$ALSDIR" with the installation path in the commands.

  1. Create a directory called “mti” in the appropriate directory:

    “$ALSDIR\lib\vlog”

  2. Invoke the simulator (Windows only).
  3. Change to the “$ALSDIR\lib\vlog\mti” directory. Type the following command at the prompt:cd $ALSDIR\lib\vlog\mti
  4. Create an <act_fam> family library directory for the simulator. Type the following command:

    vlib <act_fam>

  5. Compile the Microchip library. Type the command at the prompt:

    vlog -work <act_fam> $ALSDIR\lib\vlog\<act_fam>.v

  6. (Optional) Compile the Migration library. Only perform this step if you are using the migration library. Type the following command:

    vlog -work <act_fam> $ALSDIR\lib\vlog\<act_fam>_mig.v

Note: There are no verilog migration libraries available for IGLOO/e, ProASIC3/E, ProASICPLUS and ProASIC.