glk47 / resim-simulating-partial-reconfiguration

Automatically exported from code.google.com/p/resim-simulating-partial-reconfiguration
Other
2 stars 2 forks source link

ReSim-3: Need to compile Xilinx libraries before running ReSim examples #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ModelSim reports missing libraries when running FPCIe example. 

# ** Error: (vsim-19) Failed to access library 'secureip' at "secureip".
# 
# No such file or directory. (errno = ENOENT)
# ** Error: (vsim-19) Failed to access library 'unisims_ver' at "unisims_ver".
# 
# No such file or directory. (errno = ENOENT)
# ** Error: (vsim-19) Failed to access library 'XilinxCoreLib_ver' at 
"XilinxCoreLib_ver".
# 

ReSim version: 2.3b
ModelSim version: unknown
OS version: unknown

Original issue reported on code.google.com by george.g...@gmail.com on 31 May 2014 at 5:23

GoogleCodeExporter commented 9 years ago
These errors are because you haven't compiled Xilinx's simulation library. You 
need Xilinx libraries to simulate the PCIe core and other Xilinx related files. 

  * Step 1. 

To compile Xilinx simulation library, you need to use the library compilation 
wizard. If you are using Windows, you can find the GUI of the compilation 
wizard from Start->Xilinx....->Library compilation wizard

If you are using Linux, you have to locate the executable of the wizard. For 
example, for ISE 14.4 Linux version, it is located at

<Xilinx>/14.4/ISE_DS/ISE/bin/lin/compxlibgui

The wizard will guide you to compile the Xilinx libraries. You need to note 
down the pathes to which your libraries are compiled.

  * Step 2.

After compilation, you have to manually edit ModelSim configuration file so 
that ModelSim knows where to locate these compiled libraries.

In your ModelSim installation directory, you can find a modelsim.ini file. Open 
that file and add pathes to Xilinx compiled libraries.

[Library]
.........
.........

; Xilinx libraries -- Verilog

unisims_ver = c:/.../unisims_ver
xilinxcorelib_ver = c:/.../xilinxcorelib_ver
simprims_ver = c:/.../simprims_ver
unimacro_ver = c:/.../unimacro_ver

; Xilinx libraries -- VHDL

unisim = c:/.../unisim
xilinxcorelib = /xilinxcorelib
simprim = c:/.../simprim
unimacro = c:/.../unimacro
secureip = c:/.../secureip

  * Step 3.
To verify whether you have successfully complied the libraries, start ModelSim 
and click "Library" tab from the GUI. You should be able to see these libraries 
(i.e. name, path ... ) and you can expand to see what components are inside 
these libraries. 

Original comment by george.g...@gmail.com on 31 May 2014 at 5:43

GoogleCodeExporter commented 9 years ago
Why can't everyone explain how to do something like George.g did?

Thank you so much.

Followed your instructions and everything worked out. Sure enough when I 
clicked on the Modelsim Library tab they were all there!

I am using Modelsim_PE to simulate the Xilinx Ethernet MAC. Xilinx's own 
simulator has no support for it. Once I compiled the libraries I found that I 
had to edit the Modelsim.ini in the Xilinx project directory. Putting the new 
paths in Modelsim.ini in the Modeltech directory did not work. There was a 
Modelsim.ini also in the Xilinx project directory:   
../simulation/functional/modelsim.ini. How that got there I don't know.

Your instructions worked very well. 

Original comment by sand11...@gmail.com on 16 Mar 2015 at 4:15