Forum Discussion
Altera_Forum
Honored Contributor
15 years agoProblem with a 5-bit counter programme
Design a 5-bit up/down counter with synchronous counting, asynchronous preset and asynchronous master reset. Write a VHDL design description of the counter based on the following criteria: a) ...
Altera_Forum
Honored Contributor
15 years agoIs it possible that u can't place a rising_edge in a if - elsif structure.
Re-write it as:if risin_edge ... then
if reset then
count_value <= 0;
elsif load then
count_value <= load_value
elsif count_up then
count_value <= count_value + 1;
elsif count_dwn then
count_value <= count_value -1;
end if;
end if;
i didn't read the whole text to forfill ur teachers question :)