Before you begin working with a simulator other than the Vivado simulator, you must compile the Xilinx simulation libraries for the target simulator.
This article describes how to achieve this.
Xilinx HDL based simulation libraries come pre-compiled for use with the Vivado simulator.
The compile_simlib Tcl command compiles the simulation libraries for use by other simulators.
This command compiles Xilinx simulation libraries for use in the current project, or from a specified directory for use in all projects.
compile_simlib [-directory <arg>] [-family <arg>] [-force] [-language <arg>]
[-library <arg>] [-print_library_info <arg>] -simulator <arg>
[-simulator_exec_path <arg>] [-source_library_path <arg>]
[-32bit] [-quiet] [-verbose]
For more information on each option, please refer to its help manual by running "compile_simlib -help" in Tcl mode.
From the Tcl Console, run
compile_simlib -simulator modelsim
From a command prompt, run
vivado -mode tcl
compile_simlib -simulator -directory <path of compiled library results>
Starting in 2014.3, the simulation library compilation can be done by GUI mode.
The dialog box options correspond to the equivalent Tcl command options.
At the bottom of the Compile Simulation Libraries dialog box, there is a field labeled Command.
The value of the Command field changes based on the options you select.