cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
308 Views
Registered: ‎04-29-2019

Partial simulation of a block design

I would like to partially simulate a block design. The problem I have is that vivado cannot find the IP-core (see picture below).

How can I write a testbench and simulate for example only one IP-core? Why are the IP-Cores not visible in my IMU_testbench.vhd?

design.PNG

 

0 Kudos
3 Replies
Highlighted
Observer
Observer
297 Views
Registered: ‎05-10-2018

You have to include the IP component declaration in the testbench, or import a package that includes it.

0 Kudos
Highlighted
Visitor
Visitor
198 Views
Registered: ‎04-29-2019

@amuniox thank you for your reply. I declared the component as it should be:

 

    component zsys_blk_mem_gen_0_0 is
        port (
        clka : in STD_LOGIC;
        rsta : in STD_LOGIC;
        ena : in STD_LOGIC;
        wea : in STD_LOGIC_VECTOR ( 3 downto 0 );
        addra : in STD_LOGIC_VECTOR ( 31 downto 0 );
        dina : in STD_LOGIC_VECTOR ( 31 downto 0 );
        douta : out STD_LOGIC_VECTOR ( 31 downto 0 );
        clkb : in STD_LOGIC;
        rstb : in STD_LOGIC;
        enb : in STD_LOGIC;
        web : in STD_LOGIC_VECTOR ( 3 downto 0 );
        addrb : in STD_LOGIC_VECTOR ( 31 downto 0 );
        dinb : in STD_LOGIC_VECTOR ( 31 downto 0 );
        doutb : out STD_LOGIC_VECTOR ( 31 downto 0 );
        rsta_busy : out STD_LOGIC;
        rstb_busy : out STD_LOGIC
        );
    end component zsys_blk_mem_gen_0_0;

This IP core is from my block design and I would like to simulate it in my testbench seperatly (OPU_tb) but the core cannot be found:

 

NOK.PNG

I can include the core seperately to my design by making a copy and changing the name from from zsys_blk_mem_gen_0_0 to zsys_blk_mem_gen_0_1 (this core is now not part of my block design):

OK.PNG

Now I can simulate it in my testbench but this is not the solution I can work with.

What library has to be included to make all the cores from my block design visible in test benches that are not including the whole block design?

 

 

0 Kudos
Highlighted
Visitor
Visitor
194 Views
Registered: ‎04-29-2019

When I include my block design as a component the core can be found within the wrapper for for the block design but not outside of it. Do I have to include my block design as a library and if yes how can I do it?

NOK2.PNG

0 Kudos