








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































3.^
Develop the state table from the state diagram
4.^
Decide on the number of state variables needed torepresent all states1.^
5.^
Choose the type of flip-flops that will be used in theimplementation1.^
6.^
Implement the design
3.^
Develop the state table from the state diagram
4.^
Decide on the number of state variables needed torepresent all states1.^
5.^
Choose the type of flip-flops that will be used in theimplementation1.^
6.^
Implement the design
Reset
z = 0
In this state, the output must equal 0, because there have beenno pulses detected on w
Reset
z = 0 B^
w = 1 D w = 0 z = 0
w could be a 0 or a 1. Depending on which it is, the FSMshould go to the next state (B or D). Let B be the “start counting 0s state” and D be the “startcounting 1s state. There have not been 2 0s or 2 1s, so z = 0. z = 0
Reset
z = 0 B^
w = 1 D w = 0
From this point on, if w=0, we should stay in state C and zshould be high
z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1
Reset
z = 0 B^
w = 1 D w = 0
From this point on, if w=0, we should stay in state C and zshould be high If w should go high, we need to start counting 1s (state D)
z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1
Reset
z = 0 B^
w = 1 D w = 0
If at any point w=1, we want to start counting 1s (go to state D).If the next w is also 1, we go to state E and z should go high. But, if the next w = 0, then we need to start counting 0s (go tostate B).
z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1^
w = 1^ z = 1 E w = 0
Reset
z = 0 B^
w = 1 D w = 0
If w continues to be 1, we ne
ed to stay in state E and z ne
eds
to remain high.
z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1^
w = 1^ z = 1 E w = 0
w = 1
3.^
Develop the state table from the state diagram
4.^
Decide on the number of state variables needed torepresent all states1.^
5.^
Choose the type of flip-flops that will be used in theimplementation1.^
6.^
Implement the design
^
Reset
z = 0 B^
w = 1 D w = 0 z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1^
w = 1z = 1 E w = 0
w = 1 w = 0
PresentState
Inputw
Next^ OutputState
z
A^
Reset
z = 0 B^
w = 1 D w = 0 z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1^
w = 1z = 1 E w = 0
w = 1 w = 0
PresentState
Inputw
Next^ OutputState
z
A^
Reset
z = 0 B^
w = 1 D w = 0 z = 0^ w = 0 C
z = 0
z = 1^ w = 0
w = 1 w = 1^
w = 1z = 1 E w = 0
w = 1 w = 0
PresentState
Inputw
Next^ OutputState
z
A^