| AR# | 32993 |
| Part | SW-XST |
| Last Modified | 2009-06-23 00:00:00.0 |
| Status | Active |
| Keywords | Component, library, XST, same name, VHDL, Spartan-6, Virtex-6, S6, V6 |
Keywords: Component, library, XST, same name, VHDL, Spartan-6, Virtex-6, S6, V6
I have a design where I declared a component in a package the same name as one of my libraries. I get the following error with Virtex-6/Spartan-6 but do not have any issues with any of the older devices. Why?
"ERROR:HDLCompiler:40 - "<file>.vhd" Line xx: <name> is not a component"
Example code.
library ieee;
use ieee.std_logic_1164.all;
package my_pack_0002 is
component my_lib_0002
port(in_port : in std_logic;
out_port: out std_logic);
end component;
end package;
File: ex_0002.vhd
Compilation Library: work
library ieee;
use ieee.std_logic_1164.all;
library my_lib_0002;
use my_lib_0002.my_pack_0002.all;
entity ex_0002 is
port(in_port : in std_logic;
out_port: out std_logic);
end ex_0002;
architecture beh of ex_0002 is
begin
my_inst : my_lib_0002 port map(in_port =>in_port, -- Note: Error points here
out_port=>out_port);
end;