Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 C1 C0 to represent the coin inserted (in addition to Clock and Reset). C1 C0 = 00 represents no coin, 01 represents a nickel, 10 represents a dime, and 11 represents a quarter. Besides, the FSM generates a 1-bit output P which is set to 1 if the product should be dispensed and 0 otherwise. 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.image text in transcribed

3. (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 Ci CO to represent the coin inserted (in addition to Clock and Reset). C1 C0 00 represents no coin, 01 represents a nickel, 10 represents a dime, and 11 represents a quarter. Besides, the FSM generates a 1-bit output P which is set to 1 if the product should be dispensed and 0 otherwise 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions