UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
961 Views
Registered: ‎03-20-2018

Simulation Fails: axi_vip package is not declared

I'm working on a project which uses the AXI Stream VIP IP using the Vivado 2017.2 simulator. I created an example test bench by doing the following:

 

import axi4stream_vip_v1_0_1_pkg::*;

import design_1_axi4stream_vip_0_1_pkg::*;

 

I run the simulation and it fails. Here are the logs:

 

ERROR: [VRFC 10-91] axi4stream_v1_0_1_pkg is not declared

ERROR: [VRFC 10-91] design_1_axi4stream_vip_0_1_pkg is not declared

 

I get the same error with the axi_vip_pkg. I tried using the example project for the axi4stream VIP core, but this fails with the same error.

 

I found a similar issue with the live syntax checker: https://forums.xilinx.com/t5/Simulation-and-Verification/axi-vip-package-not-declared-issue/m-p/839789#U839789

 

But according to the answer, the simulator should work fine, which it isn't in my case...

2 Replies
Moderator
Moderator
906 Views
Registered: ‎04-24-2013

Re: Simulation Fails: axi_vip package is not declared

Hi @farhadyusufali,

 

I created a small test block design using the AXI4 Stream VIP and ran the simulation without seeing the issue.

Can you provide a test case that replicates the issue?

 

Capture.PNG
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
------------------------------------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
481 Views
Registered: ‎10-12-2018

Re: Simulation Fails: axi_vip package is not declared

I had similar issue. The problem was (for me) that the naming of the imported and the declared package does not matched. (In some cases Vivado renames it Because reasons.)

  1. Run the simulation (get the error) to let Vivado generate all files.
  2. grep in the run directory: grep -Er --include="*sv" package.+pkg
  3. Find the required package and replace in the file.