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: 
Highlighted
Participant sarit8
Participant
2,358 Views
Registered: ‎08-15-2016

Vivado doesn't find entity in compliled library

I have a file named container.vhd which has instance of entity named gc_dbg_fifo.

 

When I use this entity with decleration:

COMPONENT gc_dbg_fifo
PORT (
clk : IN STD_LOGIC ;
rst : IN STD_LOGIC ;
din : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
wr_en : IN STD_LOGIC ;
rd_en : IN STD_LOGIC ;
dout : OUT STD_LOGIC_VECTOR (7 DOWNTO 0);
full : OUT STD_LOGIC ;
almost_full : OUT STD_LOGIC ;
empty : OUT STD_LOGIC ;
data_count : OUT STD_LOGIC_VECTOR (10 DOWNTO 0)
);

FOR ALL : gc_dbg_fifo USE ENTITY work.gc_dbg_fifo;

gc_dbg_fifo_i : gc_dbg_fifo
PORT MAP (
clk => clk,
rst => rst,
din => uart_dout,
wr_en => uart_dout_valid,
rd_en => fifo_re,
dout => dbg_fifo_uart_dout,
full => OPEN,
almost_full => fifo_almost_full,
empty => OPEN,
data_count => fifo_cnt
);

The file is "ok" - no errors.

 

But when I use the entity with no decleration (I don't have to because the file which declare the gc_dbg_fifo is compiled in my progect) :

  gc_fifo_i : entity work.gc_dbg_fifo
    port map (
         clk         => clk,
         rst         => rst,
         din         => uart_dout,
         wr_en       => uart_dout_valid,
         rd_en       => fifo_re,
         dout        => dbg_fifo_uart_dout,
         full        => OPEN,
         almost_full => fifo_almost_full,
         empty       => OPEN,
         data_count  => fifo_cnt
      );

In this case the synthesis complete with success but for some reason when I open the container_d file in vivado there is an error - "cannot find <gc_dbg_fifo> in library <work> . Please ensure that the library was compiled, and that a library and a use clause are present in the VHDL file.

Tags (1)
0 Kudos
1 Reply
Moderator
Moderator
2,168 Views
Registered: ‎07-21-2014

Re: Vivado doesn't find entity in compliled library

@sarit8

 

I have seen many customer design with above usage. Which version of Vivado was used to synthesize the above code?

Check in latest 2017.1 and let us know if you get any issues.

 

Thanks,
Anusheel
-----------------------------------------------------------------------------------------------
Search for documents/answer records related to your device and tool before posting query on forums.
Search related forums and make sure your query is not repeated.

Please mark the post as an answer "Accept as solution" in case it helps to resolve your query.
Helpful answer -> Give Kudos
-----------------------------------------------------------------------------------------------

 

0 Kudos