Question: Design the sequential circuit for the state-machine diagram from Problem 37. You may either solve Problem 37 or find its solution on the textbook website.
Design the sequential circuit for the state-machine diagram from Problem 37. You may either solve Problem 37 or find its solution on the textbook website. Use a 1-hot state assignment, \(D\) flip-flops and AND gates, OR gates, and inverters.
Data From Problem 37

37. = *You are to find the state-machine diagram for the following electronic vending-machine specification. The vending machine sells jawbreaker candy, one jawbreaker for 25. The machine accepts N (nickels = 5), D (dimes = 10), and Q (quarters 25). When the sum of the coins inserted in sequence is 25 or more, the machine dispenses one jawbreaker by making DJ equal to 1 and returns to its initial state. No change is returned DJ equals 0 for all other states. If anything less than 25 is inserted and the CR (Coin Return) pushbutton is pushed, then the coins deposited are returned through the coin return slot by making RC equal to 1, after which the machine returns to its initial state. RC equals 0 in all other states. Use Moore outputs for your design.
Step by Step Solution
3.32 Rating (146 Votes )
There are 3 Steps involved in it
Solutions Step 1 Step 1 Onehot state encoding We need to assign a unique onehot code to each state From the state diagram we can see that there are four states A B C and D Therefore we will use a 4bit ... View full answer
Get step-by-step solutions from verified subject matter experts
