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.
- Create a directory called “mti” in
the appropriate directory:
“$ALSDIR\lib\vlog”
- Invoke the simulator (Windows only).
- Change to the “$ALSDIR\lib\vlog\mti”
directory. Type the following command at the prompt:
cd $ALSDIR\lib\vlog\mti - Create an <act_fam> family
library directory for the simulator. Type the following command:
vlib <act_fam> - Compile the Microchip library. Type
the command at the prompt:
vlog -work <act_fam> $ALSDIR\lib\vlog\<act_fam>.v - (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
