problem simulating in modelsim - swiftpli_mti.dll

Hi There,

I am getting the following error in modelsim when I try to simulate some thing.

# Loading C:\Xilinx92i\smartmodel\nt\installed_nt/lib/pcnt.lib/ swiftpli_mti.dll # ** Error: (vsim-3193) Load of "C:\Xilinx92i\smartmodel\nt \installed_nt/lib/pcnt.lib/swiftpli_mti.dll" failed: DLL dependent library not found. # ** Error: (vsim-PLI-3002) Failed to load PLI object file "C: \Xilinx92i\smartmodel\nt\installed_nt/lib/pcnt.lib/swiftpli_mti.dll". # Region: /

I have no idea why this is coming up....any help please!

Thanks Kris

PS: I am using Modelsim PE and Xilinx ISE.

Reply to
RK
Loading thread data ...

Check out:

formatting link

Reply to
motty

Did you remember to run Xilinx's "Simulation Library Compilation Wizard"? It's in the Accessories subfolder (along with Core Generator, Floorplanner, etc.) The Compilation Wizard unpacks the smartmodel\nt directories. Also, if you're running Windows Vista, too bad -- the Smartmodel package doesn't install (and it gives you a tiny warning message -- very easy to miss!) (Workaround: Install ISE and Modelsim/PE on a Windows/XP machine. Run the Compilation Wizard on that machine. After it finishes, copy the contents of \xilinx92i\smartmodel\* over to the target machine.)

One problem I encountered is Modelsim-PE is very sneaky about the modelsim.ini file. When you initially create "New Project" in Modelsim's GUI, it copies the modelsim.ini file to the project-file. If the original modelsim.ini file changes in any way, you have to manually incorporate those changes into your project (in my case it was just easier to create another new project.)

Reply to
talkb

swiftpli_mti.dll

"C:\Xilinx92i\smartmodel\nt\installed_nt/lib/pcnt.lib/swiftpli_mti.dll" failed: DLL dependent library not found.

"C:\Xilinx92i\smartmodel\nt\installed_nt/lib/pcnt.lib/swiftpli_mti.dll".

Hello,

I also had this problem, and came across this post while trying to solve it. It took a while, but I finally found a solution that works with Xilinx ISE 9.2i. I haven't seen the solution anywhere else online so I thought I'd post it somewhere. Here's some info about by system:

Dell Precision 690 Windows XP Pro 64-bit Edition Intel Xeon 3.0 GHz (2 quad-core CPUs)

8 GB RAM Xilinx ISE 9.2 SP4 64-bit Modelsim SE Plus 6.3c

The error is thrown because Modelsim can't find the smartmodel libraries. You need to compile the libraries and tell Modelsim where to find them.

32-bit ISE library compilation: If you do a Google search, you'll find that there are 3 ways to do this with a Windows OS. This is fairly straightforward: 1) Go to Start > Programs > Xilinx 9.2i > Accessories > Simulator Library Compilation Wizard Follow the steps to compile the libraries, making sure the option for compiling smartmodels is selected 2) Create a Xilinx Project within ISE for your design. (Make sure you use the choose the correct target FPGA) Select Behavioral Simulation from the "Sources for:" drop-down near the upper-left corner of the window. Right-click the Compile HDL Simulation Libraries task under Design Utilities in the Processes pane. Make sure the smartmodels option is selected, and run this task. 3) Open up a command line (Start > Run > cmd). Run the following command: "compxlib -arch virtex5 -s mti_se -smartmodel_setup -w"

64-bit ISE library compilation: Problem: There seems to be a nasty but subtle bug in the 64-bit version where the smartmodel directory is never created during installation (unlike the 32-bit version). However, the LMC_HOME environment variable is set by the installer, and points to C: \Xilinx92i\smartmodel\nt64\installed_nt64. Apparently they had a plan regarding where the library should live, but just forgot to create it. If you follow any of the steps above for compiling the libraries, you may or may not notice the little WARNING (not error) in the log about a non-existent directory or null list. This is the compiler saying "$LMC_HOME doesn't exist so I won't save the library I just compiled, but I'll claim success with a warning". (Sorry if I sound a little bitter, its very frustrating!)

Solution: You have to manually create this directory, and then recompile the libraries (follow the instructions above for 32-bit ISE). An hour later when everything has compiled, you should see a bunch of folders in your new directory. If not, make sure the directory you created matches the value of $LMC_HOME (at a command prompt, type "cd %LMC_HOME%")

Updating Modelsim configuration: You need to manually open $MODEL_TECH\modelsim.ini (and any *.mpf project files you're using) with a text editor and make the following changes. Modelsim.ini is set to read-only by default, so you may need to disable that in order to save your changes. These changes are recommended by Xilinx Answer #24800

1) Change the line "Resolution = ns" to "Resolution = ps" (otherwise DCM models will complain) 2) Add a ";" in front of the line "PathSeparator = /" to comment it out. (This is apparently to fix the problem of mixed / and \ symbols in various paths. For example, $LMC_HOME and $XILINX use "\" in paths while everything else in modelsim-land uses "/") 3) After the line that starts with ";Veriuser=", add the following line (note that Xilinx Answer #24800 uses "/" here instead of "\". Modelsim complained about this so I changed it) "Veriuser=$LMC_HOME\lib\pcnt.lib\swiftpli_mti.dll" 4) Remove the semicolon from the beginning of the following lines to uncomment them: "libsm = $MODEL_TECH/libsm.dll" "libswift = $LMC_HOME/lib/pcnt.lib/libswift.dll"

Updating the environment: As recommended by by Xilinx Answer #24800, make sure that %LMC_HOME% \lib\pcnt.lib is in the Path under System variables.

Hope this helps, John

PS: Here are some related links that may be helpful

Xilinx AR #24800 - ModelSim (SE, PE) SmartModel/SWIFT Interface - How do I use the MGT and PPC SmartModels in ModelSim for ISE 9.1x and above?

formatting link
AR #24153 - 9.1i SmartModel, Simulation - Can I use 64-bit simulators and OS with Xilinx SmartModels?
formatting link
ISE9.2 Win 64-bit SmartModel Location
formatting link
AR #12793 - 9.2i Install - How do I run the 32-bit version of ISE on a

64-bit system? Can I install both 32-bit and 64-bit ISE to the same folder?
formatting link
Modelsim Error: component 'this-and-that' is unbound
formatting link
Forum where all this is posted: problem simulating in modelsim - swiftpli_mti.dll
formatting link
Reply to
jayblue_16

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.