Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi, On the 2nd part your are *completely* wrong : you can't use the same entity in the description of THIS entity, It is equivalent to saying "A car is made with a car",
I recommand port mapping by names, not by position, some thing like this
my_counter : entity counter
generic map ( n => 8, k => 4)
port map (
clock => KEY(1),
reset_n => KEY(0),
Q => Q_int,
SW => ???,
KEY => ???,
LEDR => ???
);
LEDR <= Q_int;
I think that you only have to modify the "rtl" architecture, that what you have done.