8) An old vending machine provides a cup of coffee for $0.15. The vending machin
ID: 1716955 • Letter: 8
Question
8) An old vending machine provides a cup of coffee for $0.15. The vending machine does not take pennies or quarters, nor does it provide change. The FSM diagram and the state table for the vending machine are given below. How many D-flip flops are needed?
1
2
3
4
9) From problem 8 with the current state equal to 0 cents, what happens after you insert two dimes? Choose all answers that apply
The next state will be 20 cents.
The next state will be 15 cents.
The output will be 1.
The output will be 0.
10) For the FSM diagram of problems 8, does it describe a Moore or a Mealy machine? Type "Moore" or "Mealy" Answer : [A]
A.1
B.2
C.3
D.4
Explanation / Answer
8) option D 4
note:
The D ip-op is widely used. It is also known as a "data" or "delay" flip-flop.
The D flip-flop captures the value of the D-input at a definite portion of the clock cycle (such as the rising edge of the clock). That captured value becomes the Q output. At other times, the output Q does not change.The D flip-flop can be viewed as a memory cell, a zero-order hold, or a delay line
Truth table:
('X' denotes a Don't care condition, meaning the signal is irrelevant)
Most D-type flip-flops in ICs have the capability to be forced to the set or reset state (which ignores the D and clock inputs), much like an SR flip-flop. Usually, the illegal S = R = 1 condition is resolved in D-type flip-flops. By setting S = R = 0, the flip-flop can be used as described above. Here is the truth table for the others S and R possible configurations:
9)output1 option c
10)mealey
The difference between Moore machines and Mealy machines is that in the latter, the output of a transition is determined by the combination of current state and current input ( as the input to ), as opposed to just the current state ( as the input to
Clock D Qnext Rising edge 0 0 Rising edge 1 1 Non-Rising X QRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.