Implementation of a FSM for a vending machine with the following specifications:
• The machine takes nickels and dimes.
• There is a single coin slot, and a sensor detects the type of coin then asserts one of two signals, N for nickel, and D for dime.
• The machine dispenses candy once it receives 25 cents.
• The machine will not return change.
Includes the following I/Os:
a. Two inputs N and D to the circuit
b. A reset input connected to the asynchronous clear
c. A seven segment display which shows the current number of coins (button presses)
d. A single LED as output to indicate when the “vend” condition is true.