Do you have choice of where you get parts and what type ? Are you at the
point of working with FPGA and its tools, or any logic simulator ? Are you
give a board to work with....?
Start at the beginning.
- Start: Press the Start button to begin. When this button is pressed, the M LED displays 0, and the A and B LEDs remain off. If the "Start" button is pressed during operation, it returns to this state.
- Increment M LED Number: Each time the "Input" button is pressed, the M LED number increases. (After 9, it returns to 0). At this point, the A and B LEDs remain off.
So you need a "input" button, and a counter that counts 0 - 9 whenever you press the input button.
And you need to interface counter to a decoder to drive 7 segment LED display digit.
And you need a "start" button, when pressed, resets counter.
You have to press buttons and they bounce. So debounce them first and then apply to F-F's, counters.
Google "debounce buttons" for methods and why you need to do this.
Break this down into basic pieces, like above, and get each to work.
Steps 3 on you need to choose what is displayed on LED, so something has to hold
LED value, and a method of choosing where it gets its input for display what are those
2 logic elements called ? You mentioned latch earlier, whats the 2'ond one ? In simplest
terms if you had two bits, each one considered a different bit, how would you select one
to pass on to other logic versus the other....? Thern expand design to manage how many
bits have to be handled.
Regards, Dana.