Digital Logic Design: Subject - Sem
Digital Logic Design: Subject - Sem
Digital Logic Design: Subject - Sem
■ As we know the combinational circuit does not use any memory. Hence the previous state of input
does not have any effect on the present state of the circuit. But in case of sequential circuit has
memory so output can vary based on input. This type of circuits uses previous input, output, clock and
a memory element.
■ The internal inputs and outputs are referred to as "secondaries". Secondary inputs are state variables
produced by the storage elements, where as secondary outputs are excitations for the storage elements.
SEQUENCIAL CIRCUIT
Key difference between sequential and
combinational circuit
1. Synchronous
■ In synchronous sequential circuits, the state of device changes at discrete times in response to a
clock signal.
■ In synchronous circuits, the inputs are pulses with certain restrictions on pulse width and
propagation delay. Thus synchronous circuits can be divided into clocked and un-clocked or
pulsed sequential circuits.
2. Asynchronous
■ In asynchronous circuits, the state of the device changes in response to changing inputs.
■ An asynchronous circuit does not have a clock signal to synchronize its internal changes of the
state. Hence the state change occurs in direct response to changes that occur in primary input
lines. An asynchronous circuit does not require the precise timing control from flip-flops
Synchronous
Clocked Sequential Circuit
The clocked sequential circuits have flip-flops or gated latches for its memory
elements. There is a periodic clock connected to the clock inputs of all the
memory elements of the circuit to synchronize all the internal changes of state.
Hence the operation of the circuit is controlled and synchronized by the periodic
pulse of the clock.
■ Types of flipflop:
SR Flip-flop
JK Flip-flop
R Flip-flop
T Flip-flop
SR Flip-flop
■ There are majorly 4 types of flip flops, with the most common one being SR flip flop.
■ This simple flip flop circuit has a set input (S) and a reset input (R).
■ In this circuit diagram, the output is changed (i.e. the stored data is changed) only when you give an
active clock signal. Otherwise, even if the S or R is active the data will not change.
■ So by putting the clock in inactive state or zero state we can generate high impedance state in which the
input does not effect the output state Characteristic Table
Present Inputs Present State Next State
0
Q(t+1)=0 S R Qt Qt+1
(0+1)’ =0
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
(0+0)’ =1
1 0 1 1
0
1 1 0 x
1 1 1 x
The maximum possible groupings
of adjacent ones are shown in the
figure. Therefore, the simplified
expression for next state Q t+1 is
State Table Excitation table
S R Qt+1 States Inputs
Presen
Next S R
t
0 0 Qt
0 0 0 X
0 1 0
0 1 1 0
1 0 1
1 0 0 1
1 1 - 1 1 X 0
=> Q(t+1)=S+R′Q(t)
An excitation table shows the minimum inputs that are
necessary to generate a particular next state (in other
words, to "excite" it to the next state) when the current
state is known.
JK Flip-flop
■ JK flip-flop is the modified version of SR flip-flop. It operates with only positive clock transitions or
negative clock transitions
■ This circuit has two inputs J & K and two outputs Q t & Q t’. The operation of JK flip-flop is similar to
SR flip-flop. Here, we considered the inputs of SR flip-flop as S = J Qt’ and R = K Qt in order to
utilize the modified SR flip-flop for 4 combinations of inputs.
■ Here, Qt & Q t+1 are present state & next state respectively. So, JK flip-flop can be used for one of
these four functions such as Hold, Reset, Set & Complement of present state based on the input
conditions, when positive transition of clock signal is applied.
■ As JK flipflop is advance form of SR flip flop which mainly design to overcome the limitation of S R
circuit that is in case of SR flipflop when S and R both input become one then the output become invalid
that is both Qt and Qt’ output getting the same value.
■ So in this case the output produce by the nor gate is fed as input in nand gate.
The following table shows the characteristic
table of JK flip-flop.
The circuit diagram of JK flip-flop is shown
in the following figure. Present Inputs Present Next State
State
0 J K Qt Qt+1
0
0 0.0 0 0 0 0 0
(1+0’)
0 0 1 1
0 1 0 0
1 0 1 1 0
0 (0+0)’
0 0.1 1 0 0 1
1 1 0 1 1
1 1 0 1
1 1 1 0
By using three variable K-Map, we can get the State table
simplified expression for next state, Qt+1. Three
variable K-Map for next state, Qt+1 is shown in J K Qt+1
the following figure. 0 0 Qt
0 1 0
1 0 1
1 1 Qt'
Excitation table
States Inputs
The maximum possible groupings of adjacent ones
are already shown in the figure. Therefore, Present Next J K
the simplified expression for next state Qt+1 is 0 0 0 X
0 1 1 X
Q(t+1)=JQ(t)′+K′Q(t)
1 0 X 1
1 1 X 0
T Flip flop
■ If we do some modification in input values of JK flipflop then we can obtain this flipflop.
■ T flip-flop is the simplified version of JK flip-flop. It is obtained by connecting the same input ‘T’ to both
inputs of JK flip-flop.
■ Or we can say if we use JK flipflop in limited pattern then it work like T flipflop.
■ It operates with only positive clock transitions or negative clock transitions.
■ This circuit has single input T and two outputs Qt & Qt’.
■ The operation of T flip-flop is same as that of JK flip-flop. Here, we considered the inputs of JK flip-flop
as J = T and K = T in order to utilize the modified JK flip-flop for 2 combinations of inputs. So, we
eliminated the other two combinations of J & K, for which those two values are complement to each other
in T flip-flop.
■ Here, Qt & Qt+1 are present state & next state respectively. So, T flip-flop can be used for one of these
two functions such as Hold, & Complement of present state based on the input conditions, when positive
transition of clock signal is applied.
The circuit diagram of T flip-flop is shown in the
following figure. The following table shows
the characteristic table of T flip-flop.
T Qtt Qt+1
0 0 0
0 1 1
1 0 1
1 1 0
State table
T Qt+1
K-Map for T flip
flop 0 Qt
T’ T
1 Qt’
Qt’ 1
Qt 1
Excitation tables
Q(t+1)=T′Q(t)+TQ(t)′Q(t+1)
States Input
=T′Q(t)+TQ(t)′
Present Next T
⇒Q(t+1)=T⊕Q(t) 0 0 0
0 1 1
1 0 1
Or from the above characteristic
table, we can directly write the next 1 1 0
state equation
The output of T flip-flop always toggles for every
positive transition of the clock signal, when input
T remains at logic High 11. Hence, T flip-flop can
be used in counters.
D flipflop
■ D flip-flop operates with only positive clock transitions or negative clock transitions.
■ Whereas, D latch operates with enable signal. That means, the output of D flip-flop is insensitive to the
changes in the input, D except for active transition of the clock signal.
■ This circuit has single input D and two outputs Qt & Qt’.
■ D flipflop is just like a T flipflop but the only difference is that while inserting the inputs one input in
‘and’ gate is complimented by using not gate in D flip-flop.
Excitation table
States Input
Qt+1 = D
Present Next D
0 0 0
0 1 1
Next state of D flip-flop is always equal to data input, D
for every positive transition of the clock signal. Hence, D 1 0 0
flip-flops can be used in registers, shift registers and 1 1 1
some of the counters.
Register
Registers are logic units used for storing strings of bits in a sequential logic circuit. Registers are generally
constructed using D flip-flops
The simplest register is a 1-bit register. A 1-bit register is simply a single D flip-flop. It holds a logical value of
exactly one bit in length. Larger registers can hold longer strings of bits. For example, an 8-bit register holds an
8-bit logical value (i.e. 10110110), and it is formed by a collection of eight D flip-flops. In order to form a
register form a collection of flip-flops, the flip-flops must all run on the same clock signal.
In general, there are two major types of registers: Parallel-Load Registers and Shift Registers.
Parallel-Load Registers
Parallel-load registers are a type of register where the individual bit values in the register are loaded
simultaneously. More specifically, every flip-flop within the register takes an external data input, and these
inputs are loaded into the flip-flops on the same edge in a clock cycle.
Pictured above is a simple 4-bit parallel-load register where D0, D1, D2, and D3 are the individual data
bits; Q0, Q1, Q2, and Q3 form the output value (as a 4-bit word Q3Q2Q1Q0); and Clk is the single clock
signal.
Shift Registers
The Shift Register is another type of sequential logic circuit that can be used for the storage or the transfer
of binary data
This sequential device loads the data present on its inputs and then moves or “shifts” it to its output once
every clock cycle, hence the name Shift Register.
Shift registers are formed by flip-flops that have been linked to each other in various ways - allowing one
flip-flop to assume the current value of another flip-flop within the register (also known as shifting).
Shift register IC’s are generally provided with a clear or reset connection so that they can be “SET” or
“RESET” as required. Generally, shift registers operate in one of four different modes with the basic
movement of data through a shift register being:
• Serial-in to Parallel-out (SIPO) - the register is loaded with serial data, one bit at a time, with the
stored data being available at the output in parallel form.
• Serial-in to Serial-out (SISO) - the data is shifted serially “IN” and “OUT” of the register, one bit at a
time in either a left or right direction under clock control.
• Parallel-in to Serial-out (PISO) - the parallel data is loaded into the register simultaneously and is
shifted out of the register serially one bit at a time under clock control.
• Parallel-in to Parallel-out (PIPO) - the parallel data is loaded simultaneously into the register, and
transferred together to their respective outputs by the same clock pulse.
Counter
A Counter is a device which stores (and sometimes displays) the number of times a particular event or process
has occurred, often in relationship to a clock signal.
Counters are used in digital electronics for counting purpose, they can count specific event happening in the
circuit. For example, in UP counter a counter increases count for every rising edge of clock. Not only
counting, a counter can follow the certain sequence based on our design like any random sequence
0,1,3,2… .They can also be designed with the help of flip flops.
Counter Classification
Counters are broadly divided into two categories
1. Asynchronous counter
2. Synchronous counter
Asynchronous Counter
In asynchronous counter we don’t use universal clock, only first flip flop is driven by main clock and the
clock input of rest of the following flip flop is driven by output of previous flip flops. We can understand it
by following diagram-
https://en.wikipedia.org/wiki/Excitation_table#:~:text=In%20order%20to%20obtain%20the,t%20%2B%
201)%20as%20desired
.
https://practice.geeksforgeeks.org/courses/dsa-self-paced?gclid=CjwKCAjww5r8BRB6EiwArcckCxXqXbK
-bJFQ_tDSKLiCi-xR12FlKlsvQ-lnFy7S8lIrvIj_b3ToRxoCW8gQAvD_BwE
https://www.tutorialspoint.com/computer_logical_organization/sequential_circuits.htm
THANK
YOU