I need help on how to design a counter that can count from 0 to 9 and back to 0. and this counter must be modified to reset, start and stop.
also, codes for 7 segment decoder to display the numbers on fpga board. Thanks Altera peeps.链接已复制
3 回复数
well you have a reset
then when reset is at 1 (or 0) you are going to intiialize all your registers. when the reset changes you are going to start the counter, if the counter hits your max value you start to decrease it, if it hits 0 it increases again. then you are going to do a BCD : http://en.wikipedia.org/wiki/binary-coded_decimal to display your values in your 7-seg decoder.. (also see the datasheet to see how your 7-seg decoder works)