Forum Discussion
Altera_Forum
Honored Contributor
8 years agoYou can do it with a single modified comparator entity: you simply need to add another compare input (b2) and another status output (c2).
Here is a very naive example; modify it according to the desired LED behavior.
process (q, b1, b2, c1, c2)
begin
if (q<= b1) then
c1<='1'
c2<='0';
elsif (q<=b2) then
c1<='0'
c2<='1';
else
c1<='0'
c2<='0';
end if;
end process;