Department of Electrical Engineering ELEC5005-IC Design: TERM PROJECT: D Flip-Flop Design
Department of Electrical Engineering ELEC5005-IC Design: TERM PROJECT: D Flip-Flop Design
ELEC5005- IC Design
Name:
Contents
Table of Figures...........................................................................................................................................4
Introduction.................................................................................................................................................5
Research Topic:...........................................................................................................................................5
Research Method:.......................................................................................................................................5
Background:................................................................................................................................................5
1. Combinational Circuits:....................................................................................................................5
2. Sequential Circuits:..........................................................................................................................5
Types of Sequential Circuits:....................................................................................................................6
Bistable Behavior:....................................................................................................................................7
CMOS Bistable Element:..........................................................................................................................9
SR-Latch: Basic Memory Element..........................................................................................................10
SR Latch: Clocked Mode........................................................................................................................11
D Flip-Flop:................................................................................................................................................12
D Latch: CMOS Implementation............................................................................................................13
D Flip-Flop: Master Slave Design...........................................................................................................14
D Flip Flop Output:................................................................................................................................15
D Flip Flop CMOS Design:......................................................................................................................16
D Flip Flop: Applications........................................................................................................................17
Conclusion:................................................................................................................................................17
References:................................................................................................................................................18
Table of Figures
Research Topic:
This project covers the introduction to sequential circuits, their CMOS design and the design of
D Flip Flops. It starts by explaining the basic circuit types and moves on to the sequential
circuits and their stability conditions. After that Evolution of D flip flop from basic CMOS
memory cell is discussed. The design of D flip flop and its operation is explored in detail.
Research Method:
The research was started using the text book and the relevant chapters form the basis and structure of
this report. Help was taken form specific journals as required.
Background:
There are 2 basic types of logic circuits.
1. Combinational Circuits:
The outputs in these circuits at any given time point are directly determined as Boolean
functions of the input variables applied at that time. Thus, the combinational circuits
lack the capability of storing any previous events, or displaying an output behavior
which is dependent upon the previously applied inputs. Circuits of this type are also
classified as non-regenerative circuits, since there is no feedback relationship between
the output and the input.
2. Sequential Circuits:
The other major class of logic circuits is called sequential circuits, in which the output is
determined by the current inputs as well as the previously applied input variables. They
introduce the concept of memory in circuits. Sequential circuits consist of a
combinational circuit and a memory block in the feedback loop.
In most cases, the regenerative behavior of sequential circuits is due to either a direct or
indirect feedback connection between the output and the input.
1. Bistable circuits
2. Monostable circuits
3. Astable circuits.
In astable circuits, there is no stable operating point or state which the circuit can preserve for a
certain time period. Consequently, the output of an astable circuit must oscillate without
settling into a stable operating mode.
The bistable circuits are by far the most widely used and the most important class. All basic
latch and flip-flop circuits, registers, and memory elements used in digital systems fall into this
category.
Bistable Behavior:
The basic bistable element consists of two identical cross coupled inverter circuits as shown in
following figure.
v o 1=v i 2
and the output voltage of inverter 2 is equal to the input voltage of inverter 1 i.e.
v o 2=v i 1
It can be seen that the two voltage transfer characteristics intersect at three points. Simple
reasoning can help us to conclude that two of these operating points are stable, as indicated in
the above figure. If the circuit is initially operating at one of these two stable points, it will
preserve this state unless it is forced externally to change its operating point.
To allow such a change of state, we must add simple switches to the bistable element, which
can be used to force or trigger the circuit from one operating point to the other. Below figure
shows the circuit structure of the simple CMOS SR latch, which has two such triggering inputs, S
(set) and R (reset). the SR latch is also called an SR flip-flop, since two stable states can be
switched back and forth. The circuit consists of two CMOS NOR2 gates.
The SR latch circuit has two complementary outputs, Q and Q. By definition, the latch is said to
be in its set state when Q is equal to logic " 1 " and Q is equal to logic "0." Conversely, the latch
is in its reset state when the output Q is equal to logic "0" and Q is equal to "1."
Similarly, if S is equal to "0" and R is equal to "1" then the output node Q will be forced to "0"
while Q is forced to "1." Thus, with this input combination, the latch is reset, regardless of its
previously held state. Finally, consider the case in which both of the inputs S and R are equal to
logic “1” In this case, both output nodes will be forced to logic "0" which conflicts with the
complementarity of Q and Q. Therefore, this input combination is not permitted during normal
operation and is considered to be a not allowed condition.
D Flip-Flop:
With the widespread use of CMOS circuit techniques in digital integrated circuit design, a large
selection of CMOS-based sequential circuits has also gained popularity and prominence,
especially in VLSI design. Direct CMOS implementations of conventional circuits such as the
clocked JK latch or the JK master slave flip-flop tend to require a large number of transistors.
Sequential circuits built primarily with CMOS transmission gates are generally simpler and
require fewer transistors than the circuits designed with conventional structuring. The D-latch
finds many applications in digital circuit design, primarily for temporary storage of data or as a
delay element.
The gate-level representation of the D-latch is simply obtained by modifying the clocked NOR-
based SR latch circuit. Here, the circuit has a single input D, which is directly connected to the S
input of the latch. The input variable D is also inverted and connected to the R input of the
latch. It can be seen from the gate-level schematic that the output Q assumes the value of the
input D when the clock is active, i.e., for CK = "1." When the clock signal goes to zero, the
output will simply preserve its state. Thus, the CK input acts as an enable signal which allows
data to be accepted into the D-latch.
When the clock is, high, the master stage follows the D input while the slave stage holds the
previous value. When the clock changes from logic "1" to logic "," the master latch ceases to
sample the input and stores the D value at the time of the clock transition. At the same time,
the slave latch becomes transparent, passing the stored master value Qm to the output of the
slave stage, Q. The input cannot affect the output because the master stage is disconnected
from the D input. When the clock changes again from logic 0" to 1," the slave latch locks in the
master latch output and the master stage starts sampling the input again. Thus, this circuit is a
negative edge-triggered D flip-flop by virtue of the fact that it samples the input at the falling
edge of the clock pulse.
D Flip flops are the building blocks of the sequential circuits and are used in,
Conclusion:
In this project we learned to learn independently. We chose a new topic and explored it in
detail using multiple sources. We used the book as starting point and expanded upon it using
external sources as required. The project was started from learning about the sequential
circuits, their types and implementations. After exploring that in sufficient detail we moved on
to the core topic of D flip flops-The basic building block of sequential circuits. We saw how a
basic feedback loop is converted to a controllable SR Latch and how can it be modified to work
as D Latch. Then we explored the use of clock in circuits and modified the D latch to work as
edge triggered D Flip Flop.
References:
CMOS Digital Integrated Circuits: Analysis and Design By Sung-Mo Kang and Yusuf
Leblebici
Saxena, Abhishek & Kaur, Manjit & Pahuja, Hitesh & Chhabra, Varun. (2018). Design and
Performance analysis of CMOS based D Flip-Flop using Low power Techniques.
International Journal of Research in Electronics AND Computer Engineering. 5. 216.
LOW POWER DUAL EDGE - TRIGGERED STATIC D FLIP-FLOP Anurag, Gurmohan Singh, V.
Sulochana
Mano, M. Morris; Kime, Charles R. (2004). Logic and Computer Design Fundamentals,
3rd Edition. Upper Saddle River, NJ, USA: Pearson Education International
Shiva, Sajjan G. (2000). Computer design and architecture (3rd ed.). CRC Press. p. 81.
ISBN 978-0-8247-0368-4.
Roth, Charles H. Jr. "Latches and Flip-Flops." Fundamentals of Logic Design. Boston:
PWS, 1995. Print.