Forum Discussion
Altera_Forum
Honored Contributor
15 years agoComponents are very simply, it is simply the entity declaration copied and entity replaced with component.
But theres no need for components, you can just use direct instantiation. Its much safer as you dont have to keep two copies of the same thing. like this
----------------------------------
--My_lib is the library - this will usually be work
--(arch) is optional, it allows you to select which architecture you want to use
--If there is only one architecture, it uses that one
------------------------------------
my_inst : entity my_lib.my_entity(arch)
generic map (
...
)
port map (
);