UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 59667

Vivado/ModelSim - ModelSim fails on PLI (AXI BFM) with "Error: (vsim-3193)" and "Error: (vsim-PLI-3002)"

Description

When launching ModelSim from the Vivado IDE to perform AXI BFM behavioral simulation, the following error is seen:

# ** Error: (vsim-3193) Load of "C:/ProgramsMore/Xilinx/Vivado/2013.4/ids_lite/ISE/lib/nt/libxil_vsim.dll" failed: Bad DLL format.
#
# ** Error: (vsim-PLI-3002) Failed to load PLI object file "C:/ProgramsMore/Xilinx/Vivado/2013.4/ids_lite/ISE/lib/nt/libxil_vsim.dll".


Solution

This error occurs when the .do file generated by Vivado points to the 64-bit version of libxil_vsim.dll as shown below:

vsim -voptargs="+acc" -t 1ps -pli "C:/Xilinx/Vivado/2013.4/ids_lite/ISE/lib/nt64/libxil_vsim.dll" -L unisims_ver -L unimacro_ver -L secureip -lib work cdn_axi_bfm_0 glbl.

If you use the 32-bit version of ModelSim, the .do file has to point to 32-bit version of the DLL file.
Starting from Vivado 2013.3, you can use the below Tcl command to tell the tool that the ModelSim version being used is 32-bit.

set_property MODELSIM.64BIT 0 [current_fileset -simset]


If this does not work, an alternative work-around to try is to replace the above line in the .do file with the following:

vsim -voptargs="+acc" -t 1ps -pli "C:/Xilinx/Vivado/2013.4/ids_lite/ISE/lib/nt/libxil_vsim.dll" -L unisims_ver -L unimacro_ver -L secureip -lib work cdn_axi_bfm_0 glbl.

After editing the .do file, follow the below process:

1. Open a cmd prompt.

2. Run the following command:
Set PATH=%PATH%;C:\Xilinx\Vivado\2013.4\ids_lite\ISE\lib\nt
3. Launch 32-bit ModelSim from the command prompt.
 
4. Run the modified .do file in the console of ModelSim using the following command:
do file_name.do

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
63841 Xilinx Simulation Solution Center - Design Assistant - Third Party Simulators - Modelsim/Questasim N/A N/A

Associated Answer Records

AR# 59667
Date Created 03/06/2014
Last Updated 04/15/2015
Status Active
Type General Article
Devices
  • SoC
  • FPGA Device Families
Tools
  • Vivado Design Suite - 2013.4