Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHi,
I had the same problem and finally today I solved the problem, at least mine hoping it would help you to solve yours since you seem to have the same problem I've had. I realized that if I had a Package definition, then this package had to be included in the Top Level VHD File using a USE clause. It seem that Package is not read, neither compiled if you just include it in the user file area (Assignment\Setting\File name). Let's say we have 3 VHD files named main.vhd, parts_lib.vhd and comp_PKG.vhd, where : parts_lib.vhd and comp_PKG.vhd are to be included in a library folder, then in you top level file you should have this : library ieee; use ieee.std_logic_1164.all; library comp_PKG; use comp_PKG.comp_PKG.all; --> Providing the package name carries the same name as the folder it's compiled in. As you can see, I did not include a parts_lib use clause here. Instead, I've included it in the user file folder (Assignment\Setting\File name). It did compile correctly that way. However, it seems that including library Files in the Project User Library (Assignment\Settings\Library name) does nothing; all .VHD files had to be included in the Project User File (Assignment\Settings\File name). Hope it will help...