Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou are getting lathces because you havent clocked your process inside Ledsv2.
To remove latches, either 1. Use the clock in the processes 2. Make sure every if has an "else" branch and every case has a "when others => " branch. You are creating latches because for some combination of inputs the output holds its state, hence a latch. Here is an example:
process
begin
if input1 = '1' then
output <= not input2;
end if;
end process;
Here, when input1 is '0', then output does not change, but holds the old value is was assigned the last time input1 was '1'. This is a latch. Your ledsv2 entity is full of code like this, hence you get latches.