cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Participant
Participant
29,724 Views
Registered: ‎06-27-2008

ModelSim ERROR: unisim.vcomponents

 

 Hi,

 

I have these lines in my code:

library UNISIM;
use UNISIM.Vcomponents.ALL

 

and when I tried to vcom the vhd file that has that code in modelsim, I got this error:

 

# ** Error: (vcom-11) Could not find unisim.vcomponents.
# ** Error: ./../rtl/rtl_reorg/psa_d/psa_core/clock_gen/dll_div_s3e.vhd(27): (vcom-1195) Cannot find expanded name: 'unisim.vcomponents'.
# ** Error: ./../rtl/rtl_reorg/psa_d/psa_core/clock_gen/dll_div_s3e.vhd(27): Unknown record element "vcomponents".
# ** Error: ./../rtl/rtl_reorg/psa_d/psa_core/clock_gen/dll_div_s3e.vhd(30): VHDL Compiler exiting

 

any idea how to resolve this??

 

many thanks

0 Kudos
10 Replies
Highlighted
Participant
Participant
29,723 Views
Registered: ‎06-27-2008

nevermind this...

I found it out... just had to copy all unisim vhd files to unisim directory of modelsim, and compile them separately...

0 Kudos
Highlighted
Visitor
Visitor
27,214 Views
Registered: ‎11-19-2008

hi

 

I have found the same problem as you discover. I read your solution but i dont' understand it. can you describe useing more detail exactly what files, from where and what is destination files to copy this things.

 

best regards

 

0 Kudos
Highlighted
Participant
Participant
27,205 Views
Registered: ‎06-27-2008

you can find unisim files in your Xilinx installation directory, in my case:

C:\Xilinx\webpack10.1\ISE\vhdl\src\unisims

 

what I did was, I copied those necessary files to my simulation directory.  then, your modelsim .do file will have to compile them:

 

 

vcom -93 -explicit -reportprogress 300 -work unisim  {./XilinxCoreLib/unisim_vcomp.vhd}

  vcom -93 -explicit -reportprogress 300 -work unisim  {./XilinxCoreLib/unisim_VPKG.vhd}
   vcom -93 -explicit -reportprogress 300 -work unisim  {./XilinxCoreLib/bufg.vhd}
   vcom -93 -explicit -reportprogress 300 -work unisim  {./XilinxCoreLib/ibufg.vhd}
   vcom -93 -explicit -reportprogress 300 -work unisim  {./XilinxCoreLib/dcm_sp.vhd}

 

give that a try...

cheers

0 Kudos
Highlighted
Visitor
Visitor
26,686 Views
Registered: ‎01-02-2009

Hello all...

 

 I am having the same problem as below.can anyone tell me how to get rid of this?

0 Kudos
Highlighted
Visitor
Visitor
26,684 Views
Registered: ‎01-02-2009

hello all...

 

I am having te same problem as below.Can anyone tell me how to get rid of it?

 

 

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
26,679 Views
Registered: ‎01-03-2008

Copying the simulation library files to your working directory isn't the best way.  Instead you should run the compxlib program to compile the libraries correctly for your simulator.  More information can be found here:

http://www.xilinx.com/itp/xilinx10/isehelp/pp_p_process_compile_hdl_simulation_libraries.htm

------Have you tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
Highlighted
Visitor
Visitor
26,662 Views
Registered: ‎01-02-2009

Than you very much...that helped!
0 Kudos
Highlighted
Visitor
Visitor
25,533 Views
Registered: ‎03-09-2009

 Hi,

 

I have these lines in my code:

library UNISIM;
use UNISIM.Vcomponents.ALL

 

and when I tried to vcom the vhd file that has that code in modelsim, I got this error:

 

# ** Error: des.vhd(20): Library unisim not found.
# ** Error: des.vhd(21): (vcom-1136) Unknown identifier "unisim".
# ** Error: des.vhd(23): VHDL Compiler exiting
# ** Error: d:/win32xoem/vcom failed.

 

how to solve this errors?

please reply me

0 Kudos
Highlighted
Newbie
Newbie
19,271 Views
Registered: ‎05-20-2011

 

thank you so much

0 Kudos
Highlighted
Participant
Participant
957 Views
Registered: ‎11-10-2010

This is a simple problem...each time i forget where it come from ..and then i have to solve the problem again ..

Well the problem in Questasim or Modelsim. is in the file modelsim.ini ..You have to declare where the compiled libraries are .For example

unisim = c:/XILINX/libs2018/unisim 

and all the others you need 

libs2018 is the directory where you compiled the simulation libraries ant the libraries depend of th Vivado version and it has to be supported by the Modelsim version you have ...Not all work ...look for the compatibility  list from Xilinx site .. this is all there is ...

It has nothing to do with Vivado....it is a Questa-Modelsim problem .It can't find the libraries ,as your modelsim.ini is missing information .........or your file is not in the Modelsim path

0 Kudos