Write a VHDL description for the state-machine diagram for the jawbreaker vending machine described in Problem. You may obtain the state machine diagram by either solving Problem or ?nding its solution on the textbook website.
Problem
You are to ?nd the state-machine diagram for the following electronic vending-machine speci?cation. 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 RCequal to 1, after which the machine returns to its initial state. RC equals 0 in all other states. Use Moore outputs for your design.