Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( IF YOU AREN'T ALLOWED TO ANSWER ALL PARTS IN THIS ONE POST PLEASE COMMENT AND ASK ME TO POST ANOTHER) Objective Design a gumball
(IF YOU AREN'T ALLOWED TO ANSWER ALL PARTS IN THIS ONE POST PLEASE COMMENT AND ASK ME TO POST ANOTHER)
Objective Design a gumball machine control logic, including the finite state machine and circuit design. Problem Statement The gumball machine delivers a piece of gum after receiving 15c in coins. The machine has a single coin slot that accepts nickels and dimes, one coin at a time. A mechanical sensor indicates to the control whether a dime or a nickel has been inserted into the coin slot. The input Nis asserted when a nickel is inserted into the coin slot. D is asserted when a dime is deposited. The machine asserts OPEN for one clock period when 15c or more has been deposited since the last reset. Then the controller's output causes a single piece of gum to be released down a chute to the customer The machine does not give change. A customer who pays with two dimes get a piece of gum, but overpays 5 Coin Gum dispenser FSM Gum release mechanism sensor Reset CLK N is asserted for 1 clock period when a nickel is inserted into the coin slot. D is asserted for 1 clock period when a dime is inserted into the coin slot Machine asserts Open for one clock period when 15c (or more) has been deposited since the last reset. " " This does not completely define the behavior of the FSM. For example, what happens if a penny is inserted into the coin slot, or what happens after the gum is delivered to the customer? Let's assume that * Coin sensor returns coins it does not recognize " External logic resets the machine after the gum is delivered Assignment Design a system by determining your states, the transitions and the inputs/outputs Draw a FSM state diagram. How many inputs do you have? How many outputs? Hint: Start with an initial state of 00. What happens if D is asserted? What if another D is asserted? Go through all the available scenarios for your inputs. a. the problem and coming up with a feasible design is the most challenging Understanding part of a problem. Do not give up! Think with a pen and paper or on a blackboard. b. Create the output (Z) and next state (S1', So') truth tables as shown in the lecture slides. c. Create K-maps to minimize your next state (Si', So') and output truth tables. d. The K-maps yield a mathematical representation (e.g., the sum-of-products). You now have a circuit design! (Bonus) If you simulate your circuit: You can implement these equations using Logisim. For the sequential logic, you can use the D flip-flop (Memory) and Clock (Wiring). As output, use the LED display to indicate that the door is open, and the gum is dispensed. e. Objective Design a gumball machine control logic, including the finite state machine and circuit design. Problem Statement The gumball machine delivers a piece of gum after receiving 15c in coins. The machine has a single coin slot that accepts nickels and dimes, one coin at a time. A mechanical sensor indicates to the control whether a dime or a nickel has been inserted into the coin slot. The input Nis asserted when a nickel is inserted into the coin slot. D is asserted when a dime is deposited. The machine asserts OPEN for one clock period when 15c or more has been deposited since the last reset. Then the controller's output causes a single piece of gum to be released down a chute to the customer The machine does not give change. A customer who pays with two dimes get a piece of gum, but overpays 5 Coin Gum dispenser FSM Gum release mechanism sensor Reset CLK N is asserted for 1 clock period when a nickel is inserted into the coin slot. D is asserted for 1 clock period when a dime is inserted into the coin slot Machine asserts Open for one clock period when 15c (or more) has been deposited since the last reset. " " This does not completely define the behavior of the FSM. For example, what happens if a penny is inserted into the coin slot, or what happens after the gum is delivered to the customer? Let's assume that * Coin sensor returns coins it does not recognize " External logic resets the machine after the gum is delivered Assignment Design a system by determining your states, the transitions and the inputs/outputs Draw a FSM state diagram. How many inputs do you have? How many outputs? Hint: Start with an initial state of 00. What happens if D is asserted? What if another D is asserted? Go through all the available scenarios for your inputs. a. the problem and coming up with a feasible design is the most challenging Understanding part of a problem. Do not give up! Think with a pen and paper or on a blackboard. b. Create the output (Z) and next state (S1', So') truth tables as shown in the lecture slides. c. Create K-maps to minimize your next state (Si', So') and output truth tables. d. The K-maps yield a mathematical representation (e.g., the sum-of-products). You now have a circuit design! (Bonus) If you simulate your circuit: You can implement these equations using Logisim. For the sequential logic, you can use the D flip-flop (Memory) and Clock (Wiring). As output, use the LED display to indicate that the door is open, and the gum is dispensed. eStep 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