Forum Discussion
Altera_Forum
Honored Contributor
14 years agoin your code, you have the package above the library includes.
you need to do this:
--libraries for the package
library ieee;
use ieee.std_logic_1164.all;
library IEEE_Porposed;
use IEEE_Proposed.fixed_pkg.all;
package my_package is
....
end package;
--Now the libraries for the entity
library ieee;
use ieee.std_logic_1164.all;
library IEEE_Porposed;
use IEEE_Proposed.fixed_pkg.all;
use work.my_package.all;
Usually, you would put the package and entity in a separate file.