Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(40 points) In this question, you are asked to design a FSM to control a vending machine. The vending machine accepts zero or one coin
(40 points) In this question, you are asked to design a FSM to control a vending machine. The vending machine accepts zero or one coin in each clock cycle. It sells a single product of 40 cents. Whenever the balance is more than or equal to 40 cents, the product will be dispensed and the balance will be reduced by 40 cents. The vending machine will not return any change. Any balance will be used towards the purchase of the next product. The FSM accepts a 2-bit input C CO to represent the coin inserted (in addition to Clock and Reset). CI CO-00 represents no coin, 01 represents a nickel, 10 represents a dime, and 11 represents a quarter. Besides, the FSM generates a -bit output P which is Please write a state table for your FSM design. (State table is the only thing that you are asked to do. You do not need to do state assignment, state-assigned table, logic expressions, etc.) Hint: You may design either a Moore machine or a Mealy machine. But a Mealy machine has fewer states set to I if the product should be dispensed and 0 otherwise
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started