Hi,

In vhdl I create many times entity is like below:

entity HALFADDER is
port(
A, B      : in  bit;
SUM, CARRY: out bit);
end entity HALFADDER;

When I want to use this port into another bigger file
(for example a full-adder ) I need in VHDL to
create a component from it.

This then looks like

component HALFADDER
port(
A, B      : in  bit;
SUM, CARRY: out bit);
end component;

Notice that only the first line and the last line changes:

entity HALFADDER is
becomes
component HALFADDER

and

end HALFADDER;
becomes
end entity HALFADDER;

This entity to component changing happens rahter often.
Say that you copy the 5 lines of the entity and then
paste them where you want to use it as component.
Is it then easy to replace the first and last line of these 5 lines of entity code to 5 lines of component code by pressing i.e. F5?
If so how to do this?

Rgds,
Eric

_________________________________________________________________
ItÂ’s tax season, make sure to follow these few simple tips http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline

Reply via email to