Module 3 - Module 5
Module 3 - Module 5
required to be generated in
Ihere are many applications in which digital outputs are
accordance with the sequence in which the input signals are received. This requirement
cannot be satisfied using a combinational logic system. These appications require
input conditions but
vputs to be generated that are not ony dependent on the present
history 1s provided by
sO depend upon the past history of these inputs. The past
feedback from the output back to the input.
Fig- 3.1.1 shows the
block diagram of sequential Combinational
circuit /Finite State Machine
Inputs circuit Outputs:
(FSM). As shown in the (Combinational
Fig. 3.1.1, memory elements component)
are Connected to the Memory
elements
combinational circuit as a (Sequential Next state
Present state
feedback path. componerit)
The information stored
in the memory elements at Sequential circuit
any given time defines the Fig. 3.1.1 Block diagram of sequential circuit / FSM
present state of the
sequential circuit. The present state and the external inputs determine the outputs and
the next state of the sequential circuit. Thus we can specify the sequential circuit by a
time sequence of external inputs, internal states (present states and next states), and
outputs. The counters and registers are the common examples of sequential circuits.
binay elernen
The memory element used in sequential circuits is a fAlip-flop which is capable of storing 1-bit
binary information.
shown in Fig. 3.1.2. Circuits using the clock signal for synchronization may becomne
in
active at either the rising edge, falling edge or in the case of double data rate, both
the rising and in the falling edges of the clock cycle.
cycle.
The time required to complete one cycle is called 'clock period' or 'clock
as shown
Ideally, the clock signal should have sharp transitions from one level to other
in Fig. 3.1.2.
Sequential
3.1.3 Comparison between Synchronous and Asynchronous
Circuits
These circuits are
We have already introduced to synchronous sequential circuits.
sequential
further classified depending on the timing of their signals: Synchronous
circuits, signals
circuits and asynchronous sequential circuits. In synchronous sequential
of time. In asynchronous
can affect the memory elements only at discrete instants of
memory element at any instant
sequential circuits change in input signals can affect
time.
B
B
(a) Using basic inverter (b) Using NAND gates (c) Using NOR gates
Fig. 3.2.1 Basic bistable element (1-bit memory cel!)
Thebasic bistable element circuit has two stable states logic 0 and logic 1, hernce ne
name bistable'. To illustrate this, assume A =0. When A = 0. the output of inverter 15
2, A = B B=1.
1 (A), ie., Q= 1. Since the output of inverter 1 is the input to the inverter 2,
Consequently, the output of nverter 2, 1e., Bis 0. Since the output of the inverter 2
connected to the input of the inverter 1, Q = B = A = 0. We have assumned Same value
similar
for A. Thus, the circuit is stable with Q= A = B = 0 and O=A = B = 1. Using
explanation it is easy to show that if it is assumed that A = 1, the basic bistable element
= B= 1and Q=A = B = 0. This is a condition of
is stable with Q = A second stable C
element.
the basic bistable
binary elements,
The two stable states of basic bistable elements are used to store two
and state Q= 01s
0 and 1. In positive logic system, state O = 1 is used to store logic 1,
used to store logic 0. It is important to note that the two outputs are complementary.
That is when Q = 0, Q = 1; and when Q = 1, Q= 0.
From the above discussion we can note following things about the
basic bistable
element.
-oQ=1
o
R R
1
Fig. 3.3.2
This shows that when S = R 0, the outputs do not change.
Case 2:S =1 and R= 0
o Q=1
In this case, S = 0and R = 1. Since 0
S = 0, the output of NAND gate 1,
Q = 1 (Recall that, for NAND any
one or more input is 0, the output is R
1) For NAND gate 2, both inputs Q 1
and Rare 1, thus output Q= 0. Fig. 3.3.3
The inpputs S = 1and R=0, makes = 1, ie., set state
Case 3 :S=0 and R=1 Q=0
In this case, S = 1 and R = 0. Since
R= 0, the output of NAND gate 2,
õ= 1. Por NAND gate 1, both
inputs Q and S are 1, thus output R
0
Q=0.
Fig. 3.3A
The inputs S = 0 and R= 1, makes Q=0, i.e., reset state.
Case 4: S = 1and R =1
When S = R= 1, both the outputs O and try to become 1which is not allowed
and therefore, this input condition is prohibited.
[Link] SR Latch using NOR Gates
Fig. 3.3.5 shows the SR latch using two NOR
gates. As shown in the Fig. 3.3.5, the two NOR R(Reset) Q
R State
0 0
No change(NC)
0 1
0 0
S Reset
1
1 0 0
R Set
0 1 1
1 0 X
Indeterminate
1 1 X
gate
(a) Basic circuit (b) Roplacing NOR gate by bubbled AND
Flg. 3.3.8
R(Reset) R
-Q
S (Set)
(c) Shifing bubble (d) Equivalent NAND gate SR latch
Fig. 3.3.8
State
X
Indeterminate
X
0 1
Set
R 0 0
Reset
0
1 1
No change(NC)
R
D (b) Logic symbol
gates
(a) SR latch with enable input using NAND
Fig. 3.3.12
As shown in the Fig. 3.3.14, D input goes directly to the S input, and its complement
is applied to the R input, through gate 5. Therefore, only two input conditions exists,
either S =0 and R=1or S = 1 and k = 0. The truth table for D latch is as shówn in the
Table 3.3.2.
Flilp-Flops
Dgital System Design 3- 13
EN D State
1 X 0 Resel
1 X 1 Set
0 X X No Change (NC)
Table 3.3.2 Truth table for D latch
As shown in the truth table, the Q output folows the
EN 01 11 10
D input. For this reason D latch is sometimes called
transparent latch. 0
A master-slave flip-flop is
constructed from two flip-flops. One Q S
circuit serves as a master and the Master Slave
other as a slave, and the overall R R
circuit is referred to as a
Master output
Slave output:
Triggered Master Slave Master Slave Master Slave
sets resets resets NC NC
flip-flop sets
Fia. 3.5.2 Input and output wavefoms for master-slave flip-flop
3.6 Master-Slave JK Flip-Flop Dec.-11,15, Jam.-1
Feb.-2000, 07, Aug.-2000,06,09,11, June-10, July-11,2,15,
Q
Fig. 3.6.1 shows one way to build
a JK master-slave flip-flop. It consists CLK Master Slave
of cdocked JK flip-flop as a master
K
and cdocked JK flip-flop as a slave. K
0 a, (No change) J
0 (Reset)
CLK
1 1 (Set)
K
1 1 O, (Toggle)
(a) Truth table CLK
(b) Symbol
Note : It is important to note that clock input of the master-slave flip-flop is not edge
triggered.
Fig. 3.6.3 shows the master slave JK flip-flop using only NAND gates. It consists of
clocked JK flip-flop as a master and clocked SR flip-flop as a slave. The output of the
master tlip-tlop is fed as an input to the slaye flip-flop. As shown in the Fig. 3.6.3, clock
signal is Connected directly to the master flip-flop, but it is connected through inverter to
the slave flip-flop. Therefore, the information present at the J and K inputs is transmitted
to the output of master flip-flop on the positive clock pulse and it is held there until the
negative cock pulse occurs, after which it is allowed to pass through to the output of
slave flip-flop. The output of the slave lip-flop is connected as a third input of the
master JK flip-flop.
Master
Slave
Ho Q
CP
K R
K
Master
output
(Slave S)
Master ():
output
(Slave R)
Output
Slave Q
Triggered Sve Master Slave Master Slave Master Sláve
lip-flop Master Slave Master Slave Master
resets resets NC
sets sets NC NC NC toggles sets toggles resets
(sets) (resets)
Fla. 3.6A Input and output wavefoms of master-slave JK Nip-flop
HNICAL PUBLICATIONS- An up thrust for knowledge
clock. "The high
the master sets on the positive output of
WhenJ=1 and K = 0,
slave, so at negative clock, slave sets, copying the
the master drives the Sinput of the
action of the master.
the positve CIÛCk. ie ngn Y output of
When J =0and K=1., the master resets on at the negative clock slave reset
input of the slave. Therefore,
ne master goes to the R
again copying the action of the master.
=1,master toggles on the positive clock and slave then copies t.
When J=1 and K the mastos
master on the negative clock. At this instant, feedback inputs to
Output of flip-flon t
complemented but as it is negative half of the clock pulse master
flip-flop are race-around condition. Fig. 3.6.4 shows input and outout
inactive. This prevents
page.)
waveforms of master-slave JK flip-flop. (See Fig. 3.6.4 on previous
Catching problem
flip-flop is a latch and it is enabled
Refer Fig. 3.6.3. The master of master-slave JK
the slave latch is in 1-state, then a
during the entire high level of the clock input. Thus if
1 causes the master latch to
logic-1 on the K input line while the clock input signal is
when the control signal
reset. This subsequently results in the slave becoming reset
returns to 0. This behaviour is known as 0's catching.
J input the while
In similar manner, if the slave is storing a 0, then a logic 1 on the
results in the
the clock signal is 1 causes the master latch to be set, which subsequently
clock signal. This
setting of the slave upon the occurrence of the falling edge of the
behaviour is known as 1's catching.
Hence it is
In many applications, the 0's and l's catching behaviour is undésirable.
normally recommended that the Jand K input values should be held fixed during the
entire interval that the master is enabled. To satisfy this constraint, any changes in the J
and Kinputs must occur while the clock signal is 0.
MODULE-4
MODULE-5