Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

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

Altera_Forum
Honored Contributor II
2,034 Views

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!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
767 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
767 Views

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?
0 Kudos
Reply