cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hwtodt
Visitor
Visitor
889 Views
Registered: ‎12-04-2018

Library "unisim" storage location

 

I want to run the logic simulation of Xilinx IP (MMCM). The simulation uses the batch mode of the modelsim.

Currently, the following command has been executed.

   vcom  ./clk_wiz_0_2/clk_wiz_0_sim_netlist.vhdl


As a result, the following error is output:

  ** Error: ./clk_wiz_0_2/clk_wiz_0_sim_netlist.vhdl(15): (vcom-1598) Library "unisim" not found.
  ** Error: ./clk_wiz_0_2/clk_wiz_0_sim_netlist.vhdl(16): (vcom-1136) Unknown identifier "UNISIM".

I do not know the location of Library "unisim". Please tell me the storage place of "unisim".


For reference, I attached the following.
 Error log (log.txt)
 Simulation environment (sim.zip)
 Project file (project_2.xpr.zip)

0 Kudos
4 Replies
drjohnsmith
Teacher
Teacher
869 Views
Registered: ‎07-09-2009

I think you need to compile and add the unism lib

its some where in the docs, but this might help

https://electronics.stackexchange.com/questions/60319/how-to-add-the-xilinx-library-to-modelsim
<== If this was helpful, please feel free to give Kudos, and close if it answers your question ==>
0 Kudos
hwtodt
Visitor
Visitor
862 Views
Registered: ‎12-04-2018

Thank you for your answer.

The attached docs are written for ISE. I want to know where Vivado unisim is.

Please tell me the unisim location in vivado.

0 Kudos
graces
Moderator
Moderator
845 Views
Registered: ‎07-16-2008

Did you run compile_simlib to pre-compile Vivado simulation libraries successfully? If yes, make sure you copy the generated modelsim.ini to the current simulation directory so that library are correctly mapped.

The source files for library "unisim" is located at Vivado install area:

<Vivado_Install_Dir>/data/vhdl/src/unisims

-----------------------------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs.
-----------------------------------------------------------------------------------------------------------------------
0 Kudos
drjohnsmith
Teacher
Teacher
833 Views
Registered: ‎07-09-2009


You need to compile the unisim libs in vivado just as you do in ISE.
<== If this was helpful, please feel free to give Kudos, and close if it answers your question ==>
0 Kudos