Lecture 13
Lecture 13
Lecture 13
Lecture 13
State Meaning
A None of the desired pattern (1001) has been input yet.
B We’ve already seen the first bit (1) of the desired pattern.
C We’ve already seen the first two bits (10) of the desired pattern.
D We’ve already seen the first three bits (100) of the desired pattern.
The Hashemite University 8
Step 1: Making a state table III
Now we will detect overlapping occurrences of the pattern.
What happens if we’re in state D (the last three inputs were
100), and the current input is 1?
The output should be a 1, because we’ve found the desired
pattern.
But this last 1 could also be the start of another occurrence of the
pattern! For example, 1001001 contains two occurrences of 1001.
To detect overlapping occurrences of the pattern, the next state
should be B.
1/1
0/0
1/0
J K Q(t+1) Operation
0 0 Q(t) No change
0 1 0 Reset
1 0 1 Set
1 1 Q’(t) Complement
J1 = X’ Q0
K1 = X + Q0
J0 = X + Q1
K0 = X’
Z = Q1Q0X
The Hashemite University 18
Step 5: Build the circuit
Lastly, we use these simplified
equations to build the completed circuit.
J1 = X’ Q0
K1 = X + Q 0
J0 = X + Q 1
K0 = X’
Z = Q1Q0X
D1 = Q1 Q0’ X’ + Q1’ Q0 X’
D 0 = X + Q 1 Q 0’
Z = Q1 Q0 X
T flip flop.