Professional Documents
Culture Documents
SYNCHRONOUS
COUNTERS
[9.5 FLOYD ]
++
1/0 1/1
0/0
0/0 1/0
00 01 10 11
1/0 0/0
0/0
State Diagram (Example)
Each state has two arrows leaving
One for x = 0 and one for x = 1
Unlimited arrows can enter a state
Note use of state names in this example
Easier to identify
1/0 1/1
0/0
0/0 1/0
S0 S1 S2 S3
1/0 0/0
0/0
Analysis with D Flip-Flops
Identify flip flop input equations
Identify output equation
DQ0 = A (x y)
Q0(t+1) = D0(t) = A (x y)
State Table (Example)
DQ0 = A (x y)
Q0(t+1) = D0(t) = A (x y)
A Input Input x XOR y A XOR w
x y =w = DQ
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 0 1
State Diagram (Example)
01,10
00,11
0 1
00,11
01,10
Binary Counter (Example)
A 3-bit Forward/Incremental Binary Counter
No input (Just move to next state depending upon its
present/current state)
No output (only Change of state)
Resources:
We’ll use
D Flip Flop
(Transition Table)
D Q(t+1) Action
JK Flip Flop
0 0 Reset
(Transition Table)
1 1 Set
J K Q(t+1) Action
0 0 Q(t) No Change
T Flip Flop 0 1 0 Reset
(Transition Table) 1 0 1 Set
T Q(t+1) Action 1 1 Q(t)’ Complement
0 Q(t) No change
1 Q(t)’ Complement
Analysis of Sequential Circuits
The behavior of a sequential circuit is
determined from the inputs, outputs and
present state of the circuit.
The analysis of a sequential circuit consists of
obtaining a suitable description that
demonstrates the time sequence of inputs,
outputs and states.
Input Equations
The input equations
Imply the type of flip-flop from the letter symbols,
Fully specify the combinational circuit that drives
the flip-flops
Input Equations
Can describe inputs to FF with logic equations
J A = ( XB + Y C )
K A = (YB + C )
Another Example
DA = ( AX + BX )
DB = A X
Y = ( A + B) X
Time is Implied
An alternative
representation to
State Table
Input/Output
State Table vs. Diagram
Same information
Table is perhaps easier to fill in from
description
Diagram is easier for understanding and
writing code
Analysis for sequential circuits that employs
JB = x’
KB = A x = A’x + Ax’
JA = B
KA = Bx’
JK Analysis- State Table
JK Flip Flop (Transition Table)
JB = x’ J K Q(t+1) Action
0 0 Q(t) No Change
KB = A x = A’x + Ax’ 0 1 0 Reset
1 0 1 Set
1 1 Q(t)’ Complement
JA = B
Present Next
KA = Bx’
I/P FF “A” FF “B”
State State
A B x JA KA JB KB A B
0 0 0 0 0 1 0 0 1
0 0 1 0 0 0 1 0 0
0 1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 1 0
1 0 0 0 0 1 1 1 1
1 0 1 0 0 0 0 1 0
1 1 0 1 1 1 1 0 0
1 1 1 1 0 0 0 1 1
JK Analysis State Diagram
Present Next
1 I/P FF “A” FF “B”
1 State State
A B x JA KA JB KB A B
00 0 11 0 0 0 0 0 1 0 0 1
0 0 1 0 0 0 1 0 0
0 1 0 1 1 1 0 1 1
0 0 0 0 1 1 1 0 0 1 1 0
1 0 0 0 0 1 1 1 1
01 10 1 0 1 0 0 0 0 1 0
1 1 1 0 1 1 1 1 0 0
1 1 1 1 1 0 0 0 1 1