Xilinx libraries in Modelsim
I am trying to add external libraries(i.e. xilinxcorelib, unisim), which are needed for simulation of Xilinx CoreGen blocks. I've successfully added the external libraries(i.e. the source folder) and I can see them under the External Libraries in Project Explorer. However, when I attempt to compile with Modelsim, the libraries are not found.
I've attempted to add the compiled version of the libraries, but I can't seem to figure out where the appropriate place to define these is, such that the IDE can put them in the modelsim.ini file.
Appreciate any help!
Thanks,
Vitaliy
- Forums:
modelsim.ini
Hi Vitaliy,
did you try this approach?
Hendrik.
No, I have not, but that's
No, I have not, but that's good to know for future. What seems to work for now is "export external libraries" and "included only required files" options in the makefile project options. I am not sure what the repercussions of that for a larger project, but it seemingly solved my current problem.
It would be nice if there was support from the IDE to include external compiled libraries, which would then appropriately include those path in the generated Modelsim.ini file.
[EDIT: After some more investigation, even though modelsim didn't get an error, it actually generated a whole lot of warnings
which means it actually didn't find the required components. Any thoughts?
]
ModelSim warnings
It looks like there are missing architectures in the dependencies file.
When using component instantiations, we do include the corresponding architecture for the components you instantiate in your project files. But apparently we do not include architectures for component instantiations lower in the hierarchy. I have filed this as ticket:1441
As a workaround you will have to edit modelsim.ini manually to use a pre-compiled version of XilinxCoreLib.
Hendrik.
Do you mind including some
Do you mind including some instruction on how to setup the Sigasi environment to launch Modelsim using a custom modelsim.ini file? I tried to follow the instructions on the link in the previous reply but I didn't have much success.
Thanks!
It is indeed not so easy to
It is indeed not so easy to configure this. We are still trying to figure out how to make integration with ModelSim as easy as possible (Hence the labs icon).
Simulating a design that uses XilinxCoreLib should go like this.
modelsim.inifile tosigasi-modelsim.iniand add following line in the[Library]section:xilinxcorelib = /home/heeckhau/xilinx/lib/xilinxcorelibsigasi-modelsim.inito the Additional Arguments:-modelsiminiparameter to the Additional Arugments againI opened a new ticket (ticket:1443) that modelsim.ini should not be overwritten. This should make the whole process a bit easier.
Hendrik.
I followed the steps outlined
I followed the steps outlined above, and compiling the code from sigasi seems to not generate any errors; however, running modelsim from Sigasi is generating the following error:
[PATH] being the absolute path to the modelsim.ini file. I've verified the path is correct and running the command:
from the shell, opens up modelsim and the libraries are visible in the Library window of modelsim.
Any chance there will be an update soon to make this process less of a hassle.
Thanks,
Vitaliy
High priority
Hi Vitaliy, I'm giving a high priority to this ticket. We'll do our best to get you a fix by next month.
Post new comment