cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
davekry
Visitor
Visitor
2,262 Views
Registered: ‎11-18-2013

Classic "Error: Cannot find xxx in library xil_defaultlib" error

I am trying to use a package in xil_defaultlib in a testbench file.

So I tried:

using the work directory

tried changing to manual compile order as well as manual update 

defining the package as IS_GLOBAL_INCLUDE

uncheck the xsim.elaborate.load_glbl* in the simulation settings

checked that it is listed in the .prj under ../project_1.sim/sim_1/behav/xsim

verified no errors in the .log files

the file is listed under the xil_defaultlib in the libraries tab, I have tried it listed in the design section and the simulation section

I am running vivado 2017.3

Any buddy have any ideas on what to try?  I attached the archive.

 

0 Kudos
1 Reply
amaccre
Moderator
Moderator
2,203 Views
Registered: ‎04-24-2013

Hi @davekry,

 

I ran the simulation from the project that you supplied and there is an error given over a file called DCSO.txt which it is trying to read and which has a hard path included.

 

ERROR: File c:/work/fpgas/cordic_test/project_1/project_1.srcs/sim_1/imports/rect2polar/Data/DCS0.txt is not open. Cannot call endfile on it

 

This can be seen in the tcl console when the simulation is run.

 

Let me know if this helps.

 

Best Regards
Aidan

 

 

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------
0 Kudos