Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPosition-Counter VHDL in Quartus II question
Hi there, I'm new to this site and also new to using vhdl. I was wondering if I could have some help/suggestions for this question. Please and thank you!!:( the question of my assignment: 1a...
Altera_Forum
Honored Contributor
14 years agoI guess your counter is supposed to work this way:
PROCESS(Clock, Reset)
BEGIN
IF(rising_edge(Clock)) THEN
IF(Reset='1') THEN
Count_Temp<="000000";
ELSIF (Up='1')
Count_Temp<=Count_Temp+1;
ELSE
Count_Temp<=Count_Temp-1;
END IF;
END IF;
END PROCESS;