CSE231L Lab 8 Synchronous Sequential Circuits 1
CSE231L Lab 8 Synchronous Sequential Circuits 1
CSE231L Lab 8 Synchronous Sequential Circuits 1
B. Theory
Synchronous Sequential Circuits: A sequential circuit, as shown in Figure B1, consists of a combinational
circuit to which storage elements are connected to form a feedback path. The storage elements (usually Flip-
Flops) are devices capable of storing binary information. The binary information stored in these elements at
any given time defines the state of the sequential circuit at that time. The sequential circuit receives binary
information from external inputs that, together with the present state of the storage elements, determine
the binary value of the outputs. The next state of the storage elements is a function of external inputs and
the present state. Thus, a sequential circuit is specified by a time sequence of inputs, outputs, and internal
states. In contrast, the outputs of
combinational logic depend only on the
present values of the inputs.
A synchronous sequential circuit (outlined in Figure B2) employs signals that affect the storage elements at
only discrete instants of time. Synchronization is achieved by a timing device called a clock generator, which
provides a clock signal having the form of a periodic train of clock pulses. The clock signal is commonly
denoted by the identifiers clock and clk. The clock pulses are distributed throughout the system in such a
way that storage elements are affected only with the arrival of each pulse.
1
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
In order to analyze and design Synchronous Sequential Circuits, we need to use State Tables and State
Diagrams. The State Table (or Transition Table) shows how the state and output of the sequential circuit
changes with respect to the current state and input. State Diagrams are simply graphical forms of the State
Tables. In this type of diagram, a state is represented by a circle, and the (clock-triggered) transitions
between states are indicated by directed lines connecting the circles. The binary number inside each circle
identifies the state of the flip-flops. The directed lines are labeled with two binary numbers separated by a
slash. The input value during the present state is labeled first, and the number after the slash gives the output
during the present state with the given input.
Figure B3 shows the State Table and State Diagram for a Sequential Circuit.
Let’s take a look at the State ‘10’ (A = 1 and B = 0; top right circle in the state diagram) to understand how
the State Table and Diagram works. When ‘10’ is the Present State, an input value of 0 will cause the output
to become 1 (x = 0, y = 1 in the table; the arrow going left from circle ‘10’ toward circle ‘00’ in the diagram).
This will also cause the state to change to ‘00’.
Alternately, an input of 1 in this state (‘10’) will cause the output to become 0 (x = 1, y = 0 in the table; the
arrow looping from ‘10’ back to ‘10’ in the diagram). However, the state will remain unchanged.
2
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
New Apparatus:
7474
The 7474 is a 14 pin IC which requires a Ground connection at pin 7 and VCC at pin 14. Pins 2 and 12 serve as
the inputs for the two Flip-Flops and pins 5 and 9 act as the corresponding outputs. Pins 6 and 8 provide the
inverse of the outputs. Pin 3 is the clock input for the first Flip-Flop and pin 11 is the clock input for the
second Flip-Flop. The set and reset inputs for each Flip-Flop (pin 4, pin1 and pin10, pin 13) all have to be
supplied a logic 1 in order for the Flip-Flops to work.
3
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
• Trainer board
• 1 x IC 74107 JK Flip-Flop
• 1 x IC 7408 2-input AND gates
• 1 x IC 7404 Hex inverters (NOT gates)
D.1 Procedure
00
0/0 1/1
1/1 1/1
1/0
1/1
0/0 0/0
1/1
01 10 1/1
1/1
The given State Diagram represents a circuit that has two Flip-Flops (A and B), one input (X) and one output (Y). The
unused states should be treated as don’t-care conditions.
1. Complete the Next State and Output columns of the State Table (Table F.1.1).
2. Now, use the Excitation Table of the JK Flip-Flop (Table D.1.1) to determine the inputs for the two Flip-Flops (JA, JB
and KA, KB) for each state transition.
Q Qnext J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
3. Use Karnaugh Maps to minimize the functions of the combinational circuit for each Flip-Flop input (JA, KA, JB and
KB) as well as the combinational circuit for the output (Y).
4. Draw the diagram for the Synchronous Sequential Circuit using JK Flip-Flops and the minimized equations.
5. Construct the circuit using the given ICs.
6. Verify that the state transitions and outputs of your completed circuit match those in the State Table (Table F.1.1)
you prepared earlier.
E.1 Report
1. Simulate the sequential circuit you built (Figure F.1.1) using Logisim. Include a screenshot of the circuit with your
report.
4
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
C.2 Apparatus
• Trainer board
• 1 x IC 74107 JK Flip-Flop
• 1 x IC 7408 2-input AND gates
• 1 x IC 7432 2-input OR gates
• 1 x IC 7404 Hex Inverter (NOT gates)
D.2 Procedure
This time, you need to create the same sequential circuit using T Flip-Flops in place of JK Flip-Flops.
1. Complete the Next State and Output columns of the State Table (Table F.2.1).
2. Now, use the Excitation Table of the T Flip-Flop (Table D.2.1) to determine the inputs for the two Flip-Flops (TA and
TB) for each state transition.
Q Qnext T
0 0 0
0 1 1
1 0 1
1 1 0
Table D.2.1: T flip-flop: Excitation Table
3. Use Karnaugh Maps to minimize the functions of the combinational circuit for each Flip-Flop input (TA and TB) as
well as the combinational circuit for the output (Y).
4. Draw the diagram for the Synchronous Sequential Circuit using T Flip-
Flops and the minimized equations.
5. Construct the circuit using the given ICs. Use the diagram in Figure
D.2.1 to construct a T Flip-Flop using the given JK Flip-Flop IC 74107.
6. Verify that the state transitions and outputs of your completed circuit
match those in the State Table (Table F.2.1) you prepared earlier.
E.2 Report
1. Is the output equation (Y) of this circuit the same as the equation in the JK Flip-Flop circuit? Explain why.
5
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
• Trainer board
• 1 x IC 7474 Dual D Flip-Flops
• 1 x IC 7408 2-input AND gates
• 1 x IC 7432 2-input OR gates
• 1 x IC 7404 Hex Inverter (NOT gates)
D.3 Procedure
Now, you need to create the same sequential circuit using D Flip-Flops in place of T Flip-Flops.
1. Complete the Next State and Output columns of the State Table (Table F.3.1).
2. Now, use the Excitation Table of the D Flip-Flop (Table D.3.1) to determine the inputs for the two Flip-Flops (DA and
DB) for each state transition.
Q Qnext D
0 0 0
0 1 1
1 0 0
1 1 1
3. Use Karnaugh Maps to minimize the functions of the combinational circuit for each Flip-Flop input (DA and DB) as
well as the combinational circuit for the output (Y).
4. Draw the diagram for the Synchronous Sequential Circuit using D Flip-Flops and the minimized equations.
5. Construct the circuit using the given ICs. You will use the D Flip-Flops in IC 7474.
6. Verify that the state transitions and outputs of your completed circuit match those in the State Table (Table F.3.1)
you prepared earlier.
E.3 Report
6
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
JA = KA = JB =
KB = Y=
7
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab
TA = TB = Y=
8
Department of Electrical & Computer Engineering CSE231L Digital Logic Design Lab