Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

(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

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_2

Step: 3

blur-text-image_3

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 Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

Students also viewed these Databases questions

Question

Did the team members feel that their work mattered

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago