Lab 5 Report
Lab 5 Report
Group 38
Deval Chovatia 300312824
Leon Mathews 300307926
Experiment Date: Mar 15, 2023
Submission Date: Mar 22, 2023
Lab 5: Latches and Flip-Flops
Objectives
● Provide insight into the characteristics of several important latches and flip-flops.
● Build latches and flip-flops from basic gates.
● Explain concepts of latching and edge-triggering.
● Test latches and flip-flops to understand their operation
Circuit Diagrams
Part I – SR Latch
Part II – D Latch
Figure 2.1: Screen-shot of the D Latch circuit diagram.
Part IV – T Flip-Flop
Part I – SR Latch
S R Action
0 1 SET
Part II – D Latch
1 0 0 1 RESET
1 1 1 0 SET
↑ 0 0 1 RESET
↑ 1 1 0 SET
0 X Qt (Q t)’ Inhibited
1 X Qt (Q t)’ Inhibited
Part IV – T Flip-Flop
- 0 0 0 1
- 0 1 1 0
- 1 1 0 0
1 1 0 1 1
0 0 1 1 1
Part 1 – SR Latch
S R
1 1 Output does not change from the Output does not change from the
previous state. previous state.
1 0 RESET RESET
0 1 SET SET
Table 1.4: Comparison of the theoretical and experimental results for the SR Latch circuit.
The results observed experimentally from the SR Latch circuit matched the theoretical actions.
Part II – D Latch
EN D Qt+1 (Q t + 1)’
0 x Qt (Qt)’ Output does not change Output does not change
from the previous state. from the previous state.
1 0 0 1 RESET RESET
1 1 1 0 SET SET
Table 2.4: Comparison of the theoretical and experimental results for the D Latch circuit.
The results observed experimentally from the D Latch circuit matched the theoretical actions.
CLK D Qt + 1 (Q t + 1)’
↑ 0 0 1 RESET RESET
↑ 1 1 0 SET SET
Table 3.4: Comparison of the theoretical and experimental results of the D Flip-Flop circuit.
The results observed experimentally for the D Flip-Flop were identical to the theoretical
functions.
Part IV – T Flip-Flop
Expected Outputs Actual Outputs
- 0 0 0 1 0 1
- 0 1 1 0 1 0
- 1 1 0 0 0 0
1 1 0 1 1 1 1
0 0 1 1 1 1 1
Table 4.4: Comparison of the theoretical and experimental results of the T Flip-Flop circuit.
The results observed experimentally for the T Flip-Flop were identical to the theoretical
functions.
The objective of this experiment was to create, simulate and program an SR Latch, D
latch, D Flip-Flop and T Flip-Flop circuit. We first predict the outcome theoretically by
determining the output for every possible input combination. Then experimentally determine if
our theoretical predictions are correct. The SR Latch is the simplest sequential circuit element.
The D Latch has two operating modes that are controlled by the enable input – when the EN is
active, the latch output follows the data input and when EN is inactive, the latch stores the data
that was present when EN was last active. The D Flip-Flop circuit is a gated latch with a clock
input. The Flip-Flop output changes when its clock input detects an edge (edge sensitive). A T
Flip-Flop is a Flip-Flop whose output is between high and low on each clock pulse when input T
is active. We did not have deviations from the expected results.