Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

SOPC own component: design library "work" does not contain primary unit

hello again,

I built my own component and added a Altera Megafunction - the FIFO.

When running SOPC builder there is the following error:

design library "work" does not contain primary unit "my_fifo"

in the "my_component.vhdl" i added this line:

use work.my_fifo;

Why is there the mentioned error in SOPC builder?

Thanks for every hint!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    update:

    When adding "add_file my_fifo.vhd {SYNTHESIS SIMULATION}" to the _hw.tcl file, then in ModelSim the following error occurs:

    # ** Error: C:/Test/IP/my_component.vhd(157): (vcom-1141) Identifier "my_fifo" does not identify a component declaration.

    Where is the problem?

    When compiling the my_component.vhd outside the SOPC builder everything works...

    Does anyone has a hint for me?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Is my_fifo a package? If it is just a component you shouldn't try to include it with a 'use' line. Just declare the component in the architecture and instantiate it.

    What you you have on line 157 of my_component.vhd?