ارجو المساعدة
Implementing State Machines Using VHDL – Vending Machine
1. A state machine will be used in a vending machine that will accept nickels, dimes, and quarters. The users of the vending machine will always use the correct change.
2. There will be four inputs and two outputs. The input N will go high if there is a nickel inserted into the vending machine. The input D will go high if a dime is inserted. The input Q will go high if a quarter is inserted. The output AMT will output the amount of change inserted in binary. When the asynchronous RESET input momentarily goes high, the vending machine will display 0 cents and be ready for change to be inserted. The output DISP will go high when 25 cents has been inserted into the vending machine which will indicate when the product is to be dispensed. After DISP has gone high, the vending machine will display 0 cents and be ready for more change to be inserted.
3. Draw the state diagram for the state machine.
4. Write the VHDL code using a case statement for the state machine. Configure and run the state machine on the NanoBoard. Verify it is operating correctly and show the working state machine to the instructo
|