Mosfet As A Switch: G G V G
Mosfet As A Switch: G G V G
γ
gmb = gm = ηgm (4.7)
2 −2ϕ F + VSB
We have seen in Chapter 2 that MOS devices have associated capacitances between
its four terminals. Thus, the complete small signal model of MOSFET, including
the capacitances is shown in Fig. 4.2.
CGD
G D
CGS +
VGS rds
gmVGS gmbVBS
−
CDB
CGB
− S CSB
VBS
+
B
Figure 4.2 Complete small signal model of MOSFET
Gate Control
The controlled switch or resistor has two resistances, RON and ROFF , where RON
is the ON resistance and ROFF is the OFF resistance of the MOSFET. Ideally, in a
switch, RON should be zero and ROFF should be infinite. The MOS switch has very
small ON resistance and very high OFF resistance, and thus can be used as a switch.
Let us now find out the expression for ON resistance of the MOS switch. When the
switch is ON, the voltage across the switch must be small, i.e., VDS is small. For
small VDS, the MOS device operates in the linear region; hence, we must consider
the linear region of the MOSFET. The I–V equation in the linear region is given by
µnCoxW V2
ID = × (VGS − Vt )VDS − DS (4.8)
L 2
1 L
RON = = (4.9)
∂I D ∂VDS µnCoxW (VGS − Vt − VDS )
Example 4.1 Calculate the ON resistance of the MOSFET having the following
parameters:
µnCox = 40 µA / V 2 W / L = 10
Vt = 0.7 V VGS = 1.8 V
VDS = 1 V
Solution
L
RON =
µnCoxW (VGS − Vt − VDS )
1
= = 25 kΩ
40 × 10 −6 × 10 × (1.8 − 0.7 − 1.0)
60.00
Vt = 0.4 V
50.00
RON (MΩ)
VDS = 0 V
40.00
30.00
VDS = 1 V
20.00
10.00
0.00
0.45 0.5 0.6 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8
VGS (V)
IX VDD
+ +
VDS G + D
− − VGS rds
gmVGS gmbVBS
−
+ IX
+ V
VX +S
− − VX
−
VB B
I
diode is shown in Fig. 4.5(c). We can write, VGS = -VX, VBS = -VX, and VDS = -VX.
Applying Kirchhoff’s current law at node S, we can write
VDS
gmVGS + + gmbVBS + I X = 0
rds
1
or −VX ( gm + + gmb ) = − I X
rds
VX 1 1
or rout = = ≅ (4.10)
I X gm + gds + gmb gm
Equation (4.10) gives the expression for the small signal resistance of the MOS
diode.
Gate
n+ n+
Source Drain
xd xd
LS Ld
LD
(a)
oxide
Gate
W
tox
xj n+ n+
L
(b)
Figure 10.10 MOSFET: (a) top view; (b) cross-sectional view
where
ε ox
Cox = (10.39)
t ox
Cox = gate oxide capacitance per unit area; eox = dielectric constant of the gate
oxide material; tox = gate oxide thickness; W = channel width; and xd = gate-
source/drain overlap length.
The overlap capacitances are independent of the terminal voltages and are fixed
for transistor dimensions.
When the MOS transistor operates under cut-off region, there is no channel
region. Hence, the gate-to-source and gate-to-drain capacitances are zero, i.e.,
Cgs = Cgd = 0. Hence, the gate capacitance is entirely determined by the gate-to-
bulk capacitance as given by
In the linear region of operation, the channel is formed and it shields the bulk
from the gate. Hence the gate-to-bulk capacitance is zero, i.e., Cgb = 0. The gate-
to-channel capacitance is shared equally by the gate-to-source and gate-to-drain
capacitances. Therefore, we can write
1
Cgs = Cgd ≅ W × L × Cox (10.41)
2
When the MOS transistor operates under the saturation region, the channel is
pinched off at the drain end. Hence, the gate-to-drain capacitance is zero (Cgd =
0). The gate-to-bulk capacitance is also zero (Cgb = 0) under this condition. The
gate capacitance is entirely determined by the gate-to-source capacitance which
is given by
2
Cgs ≅ W × L × Cox (10.42)
3
Hence, the gate capacitance and its components can be summarized as shown in
Table 10.2.
1
Cgd 0 W × L × Cox 0
2
CG (overlap) Cox × W × xd Cox × W × xd Cox × W × xd
2
CG (total) Cox × W × L + 2 × Cox × W × xd Cox × W × L + 2 × Cox × W × xd Cox × W × L + 2 × Cox × W × x d
3
Bottom
n+ n+
p-sub
The vertical junctions form capacitances with the bottom plate of the source and
the drain regions which is given by
C jb = C j × W × LS = C j × W × LD (10.43)
C jsw = C js x j × (W + 2 × LS ) = C js x j × (W + 2 × LD ) (10.44)
Equation (10.45) gives expression for the junction capacitance at the source end. A
similar expression can be written for the junction capacitance at the drain end just
by replacing LS with LD. Note that the side wall at the gate side is not considered for
side-wall junction capacitance as this side is not a PN junction, but rather a conducting
channel.
The gate capacitances and the junction capacitances are combined to form the
lumped capacitances between the four terminals of the MOS transistors. These
capacitances are given by
CGS = Cgs + CGSO
CGD = Cgd + CGDO
CGB = Cgb
CSB = CS-diff
(10.46)
CDB = CD-diff
CGD CDB
G B
CSB
CGS
S
CGB
CGS CSB
CGD CDB
Vin Vout
CGB
CGD CDB
Cwire CG
CGS CSB
CGB
The effective load capacitance at the output terminal of the CMOS inverter is
given by
where Cwire and CG are interconnect capacitance and the gate capacitance of the
NMOS connected at the output of the CMOS inverter.
Equation (10.47) shows that the effective load capacitance at the output of a
CMOS logic gate depends on the gate-to-drain and the drain-to-bulk capacitances.
These capacitances in turn depend on the width of the transistors according to Eqns
(10.41) and (10.45). So, when we increase the width of the transistor to reduce the
propagation delay through the gate, it increases the effective load capacitance.
Hence, continuously increasing the width of the transistors does not necessarily
reduce the propagation delay through the gate.
VDD VDD
PUN
Out
In
CLK
CLK
PDN
Figure 5.46 CMOS logic using TSPC logic with latched output
When CLK = 1, TSPC logic simply works as static CMOS logic. But when CLK = 0,
only the PUN is activated and the PDN is deactivated. Hence, the circuit just holds its
output logic level.
Solution An AND latch using TSPC logic can be implemented as shown in Fig. 5.47.
The pull-up network (PUN) is implemented using two pMOS transistors in parallel,
whereas the pull-down network (PDN) is implemented using two nMOS transistors
in series.
VDD
VDD
Out
CLK
CLK
A
A B F = AB F
0 0 0 When A = 0,
B
0 1 0 F=0
A
1 0 0 When A = 1, F = AB
1 1 1 F=B 0
(a) (b)
Figure 5.48 (a) Truth table two-input AND gate; (b) realization of two-input AND gate using
pass transistor logic
As seen from the truth table, the function (F) is evaluated for two cases: (i) when
A = 0, F = 0; (ii) when A = 1, F = B. This logic can be realized using two nMOS
transistors connected in parallel as shown in Fig. 5.48(b). When A = 1, the upper
nMOS is ON, so the output is B (F = B). When A = 0, the lower nMOS is ON, so
the output is 0 (F = 0).
This logic is known as pass transistor logic (PTL). This logic uses lesser number
of transistors as compared to conventional CMOS
logic. The disadvantage of the logic is that the VDD
logic high output is degraded as nMOS cannot
pass logic high perfectly. VDD
2.0
Vout Vin
1.5
Vx
Voltage (Volt)
1.0
0.5
0.0
0 10 20 30 40 50 60 70 80 90 100
Time (ns)
Figure 5.50 Output waveform of a PTL gate
Due to the logic degradation, the PTL gates cannot be cascaded, as the logic
degradation gets carried over several stages, and the final output logic becomes
incorrect. To avoid the carry of degradation, a CMOS inverter is connected at the
output of the PTL gate as shown in Fig. 5.49.
0 0 0 When A = 0,
F=B B
0 1 1
A
1 0 1 F = A⊕B
When A = 1,
1 1 0 F=B B
(a) (b)
Figure 5.51 (a) Truth table of XOR gate; (b) XOR gate implemented using PTL
The input and output waveforms of the XOR gate implemented using PTL is shown
in Fig. 5.52. It shows that the output waveform is a function of the input transition.
For example, when A = 1 and B = 0 → 1, output waveform falls from high to low.
Again, when B = 1 and A = 0 → 1, output waveform falls from high to low. But in
these two cases, the output waveform is different in shape. Thus, the PTL gate has
another issue of having transition-dependent output waveform.
2.0
VB
VA
1.5
Vout
Voltage (Volt)
1.0
0.5
0.0
0 50 100 150 200
Time (ns)
Figure 5.52 Input–output waveform of XOR gate using PTL
B
A
A B F=A⊕B F F=A B F F=A⊕B
0 0 0 When A = 0, 1 When A = 0, B
0 1 1 F=B 0 F=B
A
1 0 1 When A = 1, 0 When A = 1,
1 1 0 F=B 1 F=B
B
A
F=A B
(a)
B
(b)
Figure 5.53 (a) Truth table for XOR/XNOR gate; (b) Realization of XOR/XNOR
function using CPL
A B F=A+B F F=A+B F A
A
0 0 0 When A = 0, 1 When A = 0, F=A+B
F=B F=B B
0 1 1 0
1 0 1 0 A
When A = 1, When A = 1,
1 1 1 F=A 0 F=A
A
A
(a) F=A+B
B
(b)
Figure 5.54 (a) Truth table for OR/NOR gate; (b) Realization of OR/NOR function using CPL
A B F=AB F F=AB F B
A
0 0 0 When A = 0, 1 When A = 0, F=AB
F=A F=A A
0 1 0 1
1 0 0 1 A
When A = 1, When A = 1,
1 1 1 F=B 0 F=B
B
A
(a) F=AB
A
(b)
Figure 5.55 (a) Truth table for AND/NAND gate; (b) realization of AND/NAND
function using CPL
Similarly, the Boolean expression for a AND gate can be written as
F = AB = A + B = A + B × (A + A )
= A + A × A + A × B = A × A + A × B
Vout Vout
Cload Cload
Inputs
Inputs
PDN1 PDN2
5.1 Introduction
In this chapter, we introduce the digital logic circuit design using CMOS transistors,
which are most popular because of low power dissipation and less area requirement
compared to any other logic circuits. It is worthwhile mentioning that almost 90% of
the total semiconductor devices are fabricated using silicon CMOS technology. Silicon
(Si) is the most suitable semiconductor material for VLSI circuit fabrication because
of its native oxide SiO2. CMOS logic is a combination of nMOS and pMOS logic.
The nMOS and pMOS transistors are both functionally and structurally complement.
Hence, the combination of nMOS and pMOS is known as complementary MOS or
CMOS.
In AND logic, if both the inputs are TRUE, the output is TRUE. Otherwise, the
output is FALSE. The AND logic can be realized using two switches S1 and S2
connected in series as shown in Fig. 5.1(c).
The mechanical switches shown in Fig. 5.1 can be replaced by MOS transistors
as the MOS transistor behaves as a switch when it is operated between the cut-off
and saturation regions.
S1
S1 S2
S1 Bulb
Bulb S2 Bulb
Similarly, a pMOS can also be modelled as a switch as shown in Figs 5.3(a), (b),
and (c).
In reality, an nMOS can pass logic low perfectly but cannot pass logic high perfectly.
On the other hand, a pMOS can pass logic high perfectly but cannot pass logic low
perfectly. This is illustrated in Figs 5.4 (a) and ( b).
VDD Gnd
VDD Gnd
Vt = Threshold voltage
The logic degradation mechanism is explained in the following text with the help
of a circuit shown in Fig. 5.5.
A 5V VY
Logic 1
5V 5V
Logic 1 Y 5 V − Vt
Vt = 0.5 V
Cload
Time
Let us consider the case of transfer of logic 1 through an nMOS transistor having
threshold voltage Vt = 0.5 V, as shown in Fig. 5.5. To make the nMOS transistor
ON, we apply logic 1 (= 5 V) to its gate. At the input, we apply logic 1 to transfer
it to the output. Assume that the load capacitor is initially at logic 0 (= 0 V).
Hence, gate-to-source (VGS) potential difference is 5 V and gate-to-drain (VGD)
potential difference is 0 V. Therefore, the ON condition for the nMOS transistor is
satisfied. Current flows through the nMOS transistor from the drain to the source
and the load capacitor slowly gets charged. As the load capacitor gets charged, the
potential at node Y (VY) increases. As VY increases, VGS decreases. When VY reaches
(5 V–Vt), VGS is just Vt. Under this condition, the nMOS transistor is still ON. But
any further increase in VY causes VGS to become less than Vt, and makes the nMOS
transistor OFF. So no further increase in VY is possible. Hence, the maximum
voltage at the output is 5 V−Vt, and, thus we get a degraded logic 1 at the output.
In the case of logic 0 transfer through an nMOS transistor, the gate and drain
terminals are at 5 V and the source terminal is at 0 V. Note that in this case input node
is source and the output node is drain that is initially charged to logic 1. Readers must
keep in mind that the source and drain are mutually interchangeable due to symmetrical
structure of the MOSFET. Now VGS is 5 V and VY discharges through the nMOS
transistor keeping VGS at 5 V all the time. So the load capacitor can be fully discharged
making VY to become 0 V. Hence, an nMOS transistor can pass logic 0 perfectly.
Similarly, we can explain that a pMOS transistor passes logic 1 perfectly but
passes degraded logic 0. Hence, the bottom line is that the pMOS should be used
for pulling a node to logic high, and nMOS should be used for pulling a node to
logic low.
VDD
VDD
Switches S1
S1 and S2 Inputs PUN
are F
controlled
by inputs Vout
S2
Cload
Inputs PDN
Depending on the applied input logic, the PUN connects the output node to VDD,
and the PDN connects the output node to the ground.
VDD
A Y pMOS
(a) A Y
A Y nMOS Cload
0 1
1 0
(b) (c)
Figure 5.8 (a) Symbol for inverter; (b) truth table of inverter; (c) CMOS realization of inverter
Operation When input is low, the nMOS is OFF and the pMOS is ON. Hence,
the output is connected to VDD through pMOS. When the input is high, the nMOS
is ON and the pMOS is OFF. Hence, the output is connected to the ground through
nMOS. We can connect a capacitor at the output node as shown in Fig. 5.8 to represent
the load seen by the inverter. The load capacitor is charged to VDD through pMOS
when the input is low. The load capacitor is discharged to the ground through nMOS
when the input is high.
Y = A • B (5.1)
Y = A• B = A• B (5.2)
Now join the PUN and PDN as shown in Fig. 5.11 (c). Note that we have realized
Y, rather than Y because the inversion is automatically provided by the nature of
the CMOS circuit operation.
A VDD
Y
B
A B
(a)
A B Y Y
A
0 0 1
0 1 1
1 0 1 B
1 1 0
(b) (c)
Figure 5.11 Two-input NAND gate: (a) Symbol; (b) Truth table; (c) CMOS realization
Operation When A = 0 and B = 0, both the nMOS transistors are OFF and both
pMOS transistors are ON. Hence, the output is connected to VDD and we get logic
high at the output.
When A = 1 and B = 0, the upper nMOS is ON and lower nMOS is OFF. So,
output cannot be connected to the ground. Under this condition, left pMOS is OFF
but right pMOS is ON. Hence, the output is connected to VDD, and we get logic
high at the output.
When A = 0 and B = 1, the upper nMOS is OFF and lower nMOS is ON. So,
output cannot be connected to ground. Under this condition, left pMOS is ON but
right pMOS is OFF. Hence, the output is connected to VDD, and we get logic high
at the output.
When A = 1 and B = 1, both nMOS transistors are ON and both pMOS transistors AQ Pls. verify
are OFF. Hence, the output is connected to the ground, and we get logic low at the citation for Fig.
5.11(a) and (c)
output. This is illustrated in Figs 5.11 (a) and (c).
This proves the truth table of NAND gate as shown in Fig. 5.11(b).
Y = A+ B (5.3)
Step 1: Take complement of Y
Y = A+ B= A+ B (5.4)
Step 2: Design the PDN
Here, there is only one OR term. Hence, there will be two nMOSFETs connected
in parallel, as shown in Fig. 5.12.
Step 3: Design the PUN
In the PUN, two pMOSFETs will be connected in series, as shown in Fig. 5.13.
Now, join the PUN and PDN as shown in Fig. 5.14 (c).
VDD
A
Y
B A
(a)
B
Y
A B Y
A B
0 0 1
0 1 0
1 0 0
1 1 0
(b) (c)
Figure 5.14 Two-input NOR gate: (a) Symbol; (b) Truth table; (c) CMOS realization
Operation When A = 0 and B = 0, both nMOS transistors are OFF and both
pMOS transistors are ON. Hence, the output is connected to VDD and we get logic
high at the output.
When A = 1 and B = 0, the upper pMOS is OFF and lower pMOS is ON. So,
output cannot be connected to the VDD. Under this condition, left nMOS is ON
and right nMOS is OFF. Hence, the output is connected to the ground and we get
logic low at the output.
When A = 0 and B = 1, the upper pMOS is ON and lower pMOS is OFF. So,
output cannot be connected to VDD. Under this condition, left nMOS is OFF and
right nMOS is ON. Hence, the output is connected to the ground and we get logic
low at the output.
When A = 1 and B = 1, both nMOS transistors are ON and both pMOS transistors
are OFF. Hence, the output is connected to VDD and we get logic low at the output.
This proves the truth table of NOR gate as shown in Fig. 5.14(b).
In the combinational logic circuit, the output is determined by the present logic
inputs. However, in the sequential logic circuit, the output is determined by the
present, inputs and past outputs. The examples of combinational logic circuits
are Inverter, NAND gate, NOR gate, multiplexer, demultiplexer, decode, encoder,
half-adder, full-adder, etc. The examples of sequential logic circuits are flip-flops,
latches, registers, counters, etc.
There are other CMOS design styles as given below:
n CMOS transmission logic
n Complementary pass-transistor logic
n Dynamic CMOS logic
n Domino CMOS logic
n NORA CMOS logic
n Zipper CMOS logic
Y = A( B + C ) + DE (5.5)
Y = A( B + C ) + DE = A( B + C ) + DE (5.6)
Y = AZ + DE (5.7)
Now, Z (=B + C) is realized by two nMOSFETs connected in parallel. Let us call this
as sub-logic realizing Z. In Eqn. (5.7), there are two AND terms which are ORed.
AZ is realized by one nMOSFET connected in series with sub-logic realizing Z. The
term DE is realized by two nMOSFETs connected in series. Finally, two sub-logics
realizing AZ and DE are connected in parallel.
Step 3: Design of PUN
We just do the reverse connection of nMOSFETs to realize the PUN using
pMOSFETs.
The complete CMOS logic is shown in Fig. 5.15.
The Boolean function given in Eqn (5.5) can also be realized, as shown in
Fig. 5.16. In this case, we expand Eqn (5.6) into:
Y = AB + AC + DE (5.8)
VDD VDD
B A B
A
C A C
D E D E
Y Y
A
D A A D
B C E B C E
Figure 5.15 CMOS logic realizing the Figure 5.16 CMOS logic realizing the
Boolean function given in Eqn. (5.5) Boolean function given in Eqn. (5.8)
Comparing the realizations shown in Fig. 5.15 and in Fig. 5.16, we can see that in
Fig. 5.16, we need more transistors than in Fig. 5.15. This means that the CMOS
logic realization with the minimum number of transistors requires judicious
function optimization.
X = AB + CD + EFG (5.9)
The AOI implementation of the function X is shown in Fig. 5.17. Each AND
term is implemented by a series combination of nMOS transistors. The OR
operation between the AND terms is realized by a parallel connection of each
series connected nMOS transistors subcircuit. The PUN is implemented as a
dual of an nMOS network.
VDD
G F E
D C
A B
X = AB + CD + EFG
A C E
B D F
Similarly, a function expressed in the POS form with a complement can be written as
Y = ( A + B)(C + D )( E + F + G ) (5.10)
VDD
A C E
B D F
Y = (A + B)(C + D)(E + F + G)
G F E
D C
A B
Y = AB + AB (5.11)
Step 1: Take complement of Y
Y = AB + AB = AB × AB = ( A + B) × ( A + B) = AB + AB (5.12)
the output (Q and Q ) is available. In case the complemented input is not available, an
inverter is to be used to generate the complemented input.
Sum = AB + AB (5.13)
Carry = AB (5.14)
CMOS realization of Sum is shown in Fig. 5.19 and the Carry is shown in Fig. 5.20.
VDD
VDD
A B
Carry
A
B
As shown in Table 5.3, taking Cout as input, we could simplify the expression for
Sum as:
Sum = AC out + BC out + C in C out + ABC in
(5.17)
VDD
A B Cin Cin
A B A Cout
B
Cin B A
Sum
Cout
A
Cin A
B
A B B A B Cin Cin
Example 5.1 Design 2 × 2 input AND-OR gate to realize the following Boolean function:
Y = AB + CD
Solution To realize the Boolean function, first we find out the complement of the AQ Pls. verify
citation for Fig.
function.
5.22.
Complement of the function, Y = AB + CD = AB ×CD = ( A + B) ×(C + D).
We can see Y has two OR terms and one AND term. Realize each OR term by
parallel connection of two nMOS. Connect them in series to realize the AND term
as shown in Fig 5.22.
C A Y VDD VDD
0 0 0
0 1 1 VDD VDD
C
1 0 Z
1 1 Z C
(a) Y Y
A A
C
A Y
C
C
(b) (c) (d) Not
recommended
Figure 5.23 Tri-state buffer: (a) truth table; (b) symbol; (c) and (d) CMOS realization
VDD
S A B Y
0 0 0 0
0 0 1 0
0 1 0 1 A S VDD
0 1 1 1
1 0 0 0
1 0 1 1 B S
1 1 0 0 Y
1 1 1 1
(a) A B
A 0
Y = AS + BS S S
B 1
S (c)
(b)
Figure 5.24 2:1 Multiplexer: (a) truth table; (b) symbol; (c) CMOS realization
VDD VDD
M1 M5
S
Q M2 M6
Q Q
S M3 M4 M7 M8 R
Q
R
Figure 5.25 Gate-level schematic Figure 5.26 CMOS realizations of NOR-
of SR latch realized using NOR gate based SR latch circuit
Operation When S = 0 and R = 0, the nMOS transistors M3 and M8 are OFF. The
pMOS transistors M1 and M5 are ON. This cannot determine the output logic. Let
us assume Q = 0, then M2 is ON and M4 is OFF. Thus, the node Q is connected to
VDD, i.e., Q = 1. As Q = 1, M7 is ON and M6 is OFF. Thus, node Q is connected
Figure 5.28 shows the CMOS realization of the NAND-based SR latch circuit.
VDD VDD
Q
Q
S R
S
Q
CLK
Q
R
Figure 5.30 shows the CMOS design of the NOR-based SR latch circuit.
VDD VDD
CLK
Q Q
R S
CLK CLK
The NAND-based SR latch can also be realized with clock input. This is left as an
exercise to the readers.
R
K
Q
CLK
S Q
J
Q Q
K J
CLK CLK
5.11 Pseudo-nMOS Logic
In the pseudo-nMOS logic, the PDN is realized by a single pMOS transistor. The gate
terminal of the pMOS transistor is connected to the ground. It remains permanently
in the ON state. Depending on the input combinations, output goes low through the
PDN. An inverter realized using pseudo-nMOS logic is shown in Figs 5.33 (a), (b)
and (c). The PDN is realized using the process described in Section 5.4.
VDD
A Y
0 1
1 0
(a) Y
A
A Y
(b) (c)
Figure 5.33 Inverter: (a) Truth table; (b) Symbol; (c) Pseudo-nMOS realization
Example 5.4 Design an XNOR gate using pseudo-nMOS logic.
Solution The pseudo-nMOS realization of two-input XNOR gate is shown in Fig. 5.34.
VDD
A B Y
0 0 1
0 1 0 Y
1 0 0
1 1 1 A A
(a)
B B
Y = AB + A B
(b) (c)
Figure 5.34 XNOR gate: (a) Truth table; (b) Boolean expression;
(c) Pseudo-nMOS realization
Y = AS + BS
A Y = AB + AB
A
Y = ABC + AC + BC
VDD
C
B
A
A C Y
C
B B
C
Figure 5.38 Design of 3-variable Boolean function using CMOS TGs
Figure 5.40 shows the design of the D-latch using CMOS TGs
Q
D Q
CLK
CLK
CLK
Figure 5.40 Design of the D-latch using CMOS TGs
The D-latch discussed above is a level triggered flip-flop. This means that the
output of the flip-flop changes as long as the clock signal remains at logic high.
This has a serious problem in digital logic circuits where output might change
during the ON-state of the clock pulse several times if data input changes. But
we would like to have output that changes only once in a clock cycle. One way
of solving this problem is to design the clock such that it remains at an enabling
level for a very short time. In many situations, it may be found that the narrow
clock pulses are too narrow to trigger the flip-flop reliably. A better solution is to
design the flip-flop such that the output changes only when the clock input makes
a transition, rather than at the enabling level of the clock input. One such flip-flop,
where output changes only on the clock transitions is a master–slave flip-flop.
Figure 5.41 shows a master–slave flip-flop, which is designed by cascading two
D-latches. The clock signal is applied to the first stage (master) and the inverted
clock signal is applied to the second stage (slave).
Qm Qm Qs
D Qs
CLK CLK
CLK CLK
CLK
CLK
CLK CLK