SlideShare a Scribd company logo
Dr. Heman Pathak
Associate Professor
Dept. of Comp. Sc.
Kanya Gurukul Dehradun
Flip-flop / Latch
Flip-flop is a basic digital memory circuit, which stores one bit
of information. Flip flops are the fundamental blocks of most
sequential circuits. It is also known as a bistable multivibrator
or a binary or one-bit memory. Flip-flops are used as memory
elements in sequential circuit.
Flip-flop / Latch
Flip-flop
NOR: If one input is 1 output is 0
Output is 1 only when all inputs 0
Q S R Q(T+1) Q’(T+1)
0 0 0 0 1
0 0 1 0 1
0 1 0 1 0
0 1 1 0 0
1 0 0 1 0
1 0 1 0 1
1 1 0 1 0
1 1 1 0 0
S
R
Sequential Logic
Flip-flop
NAND: If one input is 0 output is 1
Output is 0 only when all inputs 1
S R Q(T) Q(T+1) Q’(T+1)
0 0 0 1 1
0 0 1 1 1
0 1 0 1 0
0 1 1 1 0
1 0 0 0 1
1 0 1 0 1
1 1 0 0 1
1 1 1 1 0
Flip-flop
Clocked R-S Flip-flop
Clocked R-S Flip-flop
Clocked R-S Flip-flop
S R Q(T+1)
0 0 Q(T)
0 1 0
1 0 1
1 1 Indeterminate
D Flip-flop
• The D (data) flip-flop is a slight modification of the SR flip-flop.
• An SR flip-flop is converted to a D flip-flop by inserting an
inverter between S and R and assigning the symbol D to the
single input.
• If D = 1, the output of the flip-flop goes to the 1 state,
but if D = 0, the output of the flip-flop goes to the 0 state .
D Flip-flop
S R Q(T+1)
0 0 Q(T)
0 1 0
1 0 1
1 1 Indeterminate
S R=S’ Q(T+1)
0 1 0
1 0 1
D Flip-flop
JK Flip-flop
JK Flip-flop
JK Flip-flop
 Because of feedback connection, for a given clock pulse, the
output will oscillate between '0' & '1' when both J & K are high.
 The condition is referred to as “race around”.
JK Flip-flop
Methods to eliminate race around
condition of JK Flip-flop
• The propagation delay (delta t) should be made greater than the duration of the
clock pulse (T). But it is not a good solution as increasing the delay will decrease
the speed of the system.
Increasing the delay of flip-flop
• If the clock is High for a time interval less than the propagation delay of the flip flop
then racing around condition can be eliminated. This is done by using the edge-
triggered flip flop rather than using the level-triggered flip-flop.
Use of edge-triggered flip-flop
• If the flip flop is made to toggle over one clock period then racing around condition
can be eliminated. This is done by using Master-Slave JK flip-flop.
Use of master-slave JK flip-flop
 T (toggle) flip-flop is obtained from a JK type when inputs J and
K are connected to provide a single input designated by T.
T Flip-Flop
T Flip-Flop
 In this type of flip-flop, output transitions occur at a specific
level of the clock pulse.
 When the pulse input level exceeds this threshold level, the
inputs are locked out so that the flip-flop is unresponsive to
further changes in inputs until the clock pulse returns to 0 and
another pulse occurs.
 Some edge-triggered flip-flops cause a transition on the rising
edge of the clock signal (positive-edge transition), and
 others cause a transition on the falling edge (negative-edge
transition).
Edge Triggered Flip Flops
Edge Triggered Flip Flops
Edge Triggered Flip Flops
This type of circuit consists of two flip-flops.
 The first is the master, which responds to the positive level of
the clock, and
 the second is the slave, which responds to the negative level
of the clock.
 The result is that the output changes during the 1-to-0
transition of the clock signal.
Master-Slave Flip Flop
Master-Slave RS-Flip Flop
Master-Slave RS-Flip Flop
Master-Slave JK-Flip Flop
Master-Slave JK-Flip Flop
Master-Slave JK-Flip Flop
 The characteristic tables of flip-flops specify the next state
when the inputs and the present state are known.
 During the design of sequential circuits we usually know the
required transition from present state to next state and wish
to find the flip-flop input conditions that will cause the required
transition.
 For this reason we need a table that lists the required input
combinations for a given change of state.
 Such a table is called a flip-flop excitation table.
Excitation Tables
Excitation Tables
 Excitation table consists of two columns, Q(t) and Q(t + 1), and a
column for each input to show how the required transition is
achieved.
 There are four possible transitions from present state Q(t) to next
state Q(t + 1).
 The required input conditions for each of these transitions are
derived from the information available in the characteristic tables.
 The symbol x in the tables represents a don't-care condition; that is,
it does not matter whether the input to the flip-flop is 0 or 1.
Excitation Tables-RS Flip Flop
Characteristic Table
Q S R Q(T+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Excitation Tables
Q(T) Q(T+1)
0 0
0 1
1 0
1 1
S R
0 X
1 0
0 1
X 0
Excitation Tables-JK Flip Flop
Characteristic Table
Q J K Q(T+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Excitation Tables
Q(T) Q(T+1)
0 0
0 1
1 0
1 1
J K
0 X
1 X
X 1
X 0
Excitation Tables-D Flip Flop
Characteristic Table
Q D Q(T+1)
0 0 0
0 1 1
1 0 0
1 1 1
Excitation Tables
Q(T) Q(T+1)
0 0
0 1
1 0
1 1
D
0
1
0
1
Excitation Tables-T Flip Flop
Characteristic Table
Q T Q(T+1)
0 0 0
0 1 1
1 0 1
1 1 0
Excitation Tables
Q(T) Q(T+1)
0 0
0 1
1 0
1 1
T
0
1
1
0
 A sequential circuit is an interconnection of flip-flops and
gates.
 The gates by themselves constitute a combinational circuit,
but when included with the flip-flops, the overall circuit is
classified as a sequential circuit.
Sequential Circuit
Analysis of Sequential Circuit
Analysis of Sequential Circuit
How many Inputs, Outputs & Flip-flops
Input - 1 - x
Output - 1 - y
Flip-flops - 2 - A & B
State Table
 The behavior of a sequential circuit is determined from the inputs, the
outputs, and the state of its flip-flops.
 Both the outputs and the next state are a function of the inputs and the
present state.
 A sequential circuit is specified by a state table that relates outputs and
next states as a function of inputs and present states.
State Diagram
State Diagram
 The information available in a state table can be represented
graphically in a state diagram.
 In this type of diagram, a state is represented by a circle, and the
transition between states is indicated by directed lines connecting
the circles.
 The binary number inside each circle identifies the state of the flip-
flops.
 The directed lines are labelled with two binary numbers separated
by a slash.
 The input value during the present state is labelled first and the
number after the slash gives the output during the present state.
State Equation
State Equation
A B X A B Y
0 0 0 0 0 0
0 0 1 1 1 0
0 1 0 1 0 0
0 1 1 1 0 0
1 0 0 0 1 0
1 0 1 0 1 0
1 1 0 0 0 1
1 1 1 1 1 0
State Equation
Analysis of Sequential Circuit
How many Inputs, Outputs & Flip-flops
Input - 1 - x
Output - 1 - y
Flip-flops - 2 - A & B
Analysis of Sequential Circuit
Analysis of Sequential Circuit
Designing Sequential Circuits
Designing Sequential Circuits
Designing Sequential Circuits
How many Inputs, Outputs & Flip-flops
Input - 1 - x
Output - 0
No. of States - 4 - 22
Flip-flops - 2 - A & B
Designing Sequential Circuits
Designing Sequential Circuits
Designing Sequential Circuits
Designing Sequential Circuits
Designing of Counters
 A sequential circuit that goes through a predetermined sequence of
states upon the application of input pulses is called a counter.
 The input pulses may be clock pulses or may originate from an
external source.
 They may occur at uniform intervals of time or at random.
 Of the various sequences a counter may follow, the straight binary
sequence is the simplest and most straightforward.
 A counter that follows the binary number sequence is called a binary
counter.
 An n-bit binary counter contains n flip-flops and associated gates
that follows a sequence of states according to the binary count of n
bits, from 0 to 2n - 1.
Designing of Counters
How many Inputs, Outputs & Flip-flops
Input - 0
Output - 0
No. of States - 8 - 23
Flip-flops - 3 - A0, A1 & A2
Type of Flip flop - T
Designing of Counters
Present State Next State
A2 A1 A0 A2 A1 A0
0 0 0 0 0 1
0 0 1 0 1 0
0 1 0 0 1 1
0 1 1 1 0 0
1 0 0 1 0 1
1 0 1 1 1 0
1 1 0 1 1 1
1 1 1 0 0 0
Designing of Counters
Present State Next State Flip flop Inputs
A2 A1 A0 A2 A1 A0 TA2 TA1 TA0
0 0 0 0 0 1 0 0 1
0 0 1 0 1 0 0 1 1
0 1 0 0 1 1 0 0 1
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 0 1 1
1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
Designing of Counters
Designing of Counters
Designing of Counters
000
001
010
100
101
110
Designing of Counters
Designing of Counters
JA
ABC 00 01 11 10
0 0 0 X 1
1 X X X X
KA
ABC 00 01 11 10
0 X X X X
1 0 0 X 1
JB
ABC 00 01 11 10
0 0 1 X X
1 0 1 X X
KB
ABC 00 01 11 10
0 X X X 1
1 X X X 1
JC
ABC 00 01 11 10
0 1 X X 0
1 1 X X 0
KC
ABC 00 01 11 10
0 X 1 X X
1 X 1 X X
Designing of Counters
Designing of Counters
Design with State Equation
Designing of Counters
Present State Next State Flip flop Inputs
A2 A1 A0 A2 A1 A0 TA2 TA1 TA0
0 0 0 0 0 1 0 0 1
0 0 1 0 1 0 0 1 1
0 1 0 0 1 1 0 0 1
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 0 1 1
1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
Designing of Counters
Present
State
Next
State
A B C A B C
0 0 0 0 0 1
0 0 1 0 1 0
0 1 0 0 1 1
0 1 1 1 0 0
1 0 0 1 0 1
1 0 1 1 1 0
1 1 0 1 1 1
1 1 1 0 0 0
A(T+1)
ABC 00 01 11 10
0 0 0 1 0
1 1 1 0 1
B(T+1)
ABC 00 01 11 10
0 0 1 0 1
1 0 1 0 1
C(T+1)
ABC 00 01 11 10
0 1 0 0 1
1 1 0 0 1
A(T+1) = A’BC + AB’ + ABC’
= A’BC + A(B’+BC’)
= A’BC + A[(B’+B)(B’+C’)]
= A’BC + A(BC)’
TA = BC
C(T+1) = C’
= 1.C’ + 0
= 1.C’ + 0.C
= 1.C’ + 1’.C
TC = 1
B(T+1) = B’C + BC’
TB = C
Designing of Counters
Design with State Equation
Present
State
Next
State
A B C A B C
0 0 0 0 0 1
0 0 1 0 1 0
0 1 0 1 0 0
0 1 1 1 0 0
1 0 0 1 0 1
1 0 1 1 1 0
1 1 0 0 0 0
1 1 1 0 0 0
A(T+1)
ABC 00 01 11 10
0 0 0 1 1
1 1 1 0 0
B(T+1)
ABC 00 01 11 10
0 0 1 0 0
1 0 1 0 0
C(T+1)
ABC 00 01 11 10
0 1 0 X 0
1 1 0 X 0
C(T+1) = B’C’
C(T+1) = C’B’ + 0
= C’B’ + 1’.B
JC = B’ KC =1
Q(T+1) = JQ’ + K’Q
A(T+1) = A’B + AB’
KA = B JA = B
B(T+1) = B’C
B(T+1) = B’C + 0
= B’C + 0.B
= B’C + 1’B
JB = C KB = 1
Sequential Circuit with D Flip flop
Sequential Circuit with D Flip flop
Sequential Circuit with JK Flip flop
Sequential Circuit with JK Flip flop
Sequential Circuit with JK Flip flop
Sequential Circuit with JK Flip flop
Sequential Circuit with JK Flip flop

More Related Content

What's hot

D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronics
Easy n Inspire L
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
Heman Pathak
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
Talha Mudassar
 
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
Gaditek
 
Registers and Counters.ppt
Registers and Counters.pptRegisters and Counters.ppt
Registers and Counters.ppt
Vijay Bhadouria
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
kumari36
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
Pradhan Rishi Sharma
 
Memory elements
Memory elementsMemory elements
Memory elements
chandkec
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
Shuaib Hotak
 
Flip flop
Flip flopFlip flop
Flip flop
Moni Adhikary
 
Flipflop
FlipflopFlipflop
Flipflop
sohamdodia27
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
Easy n Inspire L
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
Ashish KC
 
Ring counter
Ring counterRing counter
Ring counter
Ghufran Hasan
 
Counters
CountersCounters
Counters
Randaqra
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
Unsa Shakir
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Ramasubbu .P
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
Nahian Ahmed
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
Abhilash Nair
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
mubashir farooq
 

What's hot (20)

D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronics
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
 
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
 
Registers and Counters.ppt
Registers and Counters.pptRegisters and Counters.ppt
Registers and Counters.ppt
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Memory elements
Memory elementsMemory elements
Memory elements
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Flip flop
Flip flopFlip flop
Flip flop
 
Flipflop
FlipflopFlipflop
Flipflop
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
Ring counter
Ring counterRing counter
Ring counter
 
Counters
CountersCounters
Counters
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 

Similar to Sequential Circuit

Flip flops
Flip flopsFlip flops
Flip flops
Shashi Lata
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
amudhak10
 
Lec9
Lec9Lec9
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
AreebaShoukat4
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
Dharit Unadkat
 
Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.
msa29cse
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
DrSonali Vyas
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
AswiniT3
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
Raghu Vamsi
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuit
Rai University
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
AhmedAlAfandi5
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdf
imadshaheen2
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
Asif Iqbal
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
EasyStudy3
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
RLJIT
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
student
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
Thapar Institute
 

Similar to Sequential Circuit (20)

Flip flops
Flip flopsFlip flops
Flip flops
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
Lec9
Lec9Lec9
Lec9
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
lec7.ppt
lec7.pptlec7.ppt
lec7.ppt
 
Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.Sequential circuit latchs and Flip-Flops.
Sequential circuit latchs and Flip-Flops.
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Lec 25 26_27
Lec 25 26_27Lec 25 26_27
Lec 25 26_27
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuit
 
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptxSequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
Sequential Circuitsdddddddddddddddddsssssssssss-ppt.pptx
 
Sequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdfSequential Circuits-ppt_2.pdf
Sequential Circuits-ppt_2.pdf
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 

More from Heman Pathak

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
Heman Pathak
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
Heman Pathak
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2
Heman Pathak
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1
Heman Pathak
 
Simplification of Boolean Function
Simplification of Boolean FunctionSimplification of Boolean Function
Simplification of Boolean Function
Heman Pathak
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
Heman Pathak
 
Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix Multiplication
Heman Pathak
 
Elementary Parallel Algorithms
Elementary Parallel AlgorithmsElementary Parallel Algorithms
Elementary Parallel Algorithms
Heman Pathak
 
Chapter 5: Mapping and Scheduling
Chapter  5: Mapping and SchedulingChapter  5: Mapping and Scheduling
Chapter 5: Mapping and Scheduling
Heman Pathak
 
Cost optimal algorithm
Cost optimal algorithmCost optimal algorithm
Cost optimal algorithm
Heman Pathak
 
Chapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesChapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming Languages
Heman Pathak
 
Parallel Algorithm for Graph Coloring
Parallel Algorithm for Graph Coloring Parallel Algorithm for Graph Coloring
Parallel Algorithm for Graph Coloring
Heman Pathak
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
Heman Pathak
 
Chapter 1 - introduction - parallel computing
Chapter  1 - introduction - parallel computingChapter  1 - introduction - parallel computing
Chapter 1 - introduction - parallel computing
Heman Pathak
 

More from Heman Pathak (14)

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1
 
Simplification of Boolean Function
Simplification of Boolean FunctionSimplification of Boolean Function
Simplification of Boolean Function
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
Chapter 7: Matrix Multiplication
Chapter 7: Matrix MultiplicationChapter 7: Matrix Multiplication
Chapter 7: Matrix Multiplication
 
Elementary Parallel Algorithms
Elementary Parallel AlgorithmsElementary Parallel Algorithms
Elementary Parallel Algorithms
 
Chapter 5: Mapping and Scheduling
Chapter  5: Mapping and SchedulingChapter  5: Mapping and Scheduling
Chapter 5: Mapping and Scheduling
 
Cost optimal algorithm
Cost optimal algorithmCost optimal algorithm
Cost optimal algorithm
 
Chapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming LanguagesChapter 4: Parallel Programming Languages
Chapter 4: Parallel Programming Languages
 
Parallel Algorithm for Graph Coloring
Parallel Algorithm for Graph Coloring Parallel Algorithm for Graph Coloring
Parallel Algorithm for Graph Coloring
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
Chapter 1 - introduction - parallel computing
Chapter  1 - introduction - parallel computingChapter  1 - introduction - parallel computing
Chapter 1 - introduction - parallel computing
 

Recently uploaded

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 

Recently uploaded (20)

J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 

Sequential Circuit

  • 1. Dr. Heman Pathak Associate Professor Dept. of Comp. Sc. Kanya Gurukul Dehradun
  • 2. Flip-flop / Latch Flip-flop is a basic digital memory circuit, which stores one bit of information. Flip flops are the fundamental blocks of most sequential circuits. It is also known as a bistable multivibrator or a binary or one-bit memory. Flip-flops are used as memory elements in sequential circuit.
  • 4. Flip-flop NOR: If one input is 1 output is 0 Output is 1 only when all inputs 0 Q S R Q(T+1) Q’(T+1) 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 0 S R
  • 6. Flip-flop NAND: If one input is 0 output is 1 Output is 0 only when all inputs 1 S R Q(T) Q(T+1) Q’(T+1) 0 0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1 1 1 0 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 0
  • 10. Clocked R-S Flip-flop S R Q(T+1) 0 0 Q(T) 0 1 0 1 0 1 1 1 Indeterminate
  • 11. D Flip-flop • The D (data) flip-flop is a slight modification of the SR flip-flop. • An SR flip-flop is converted to a D flip-flop by inserting an inverter between S and R and assigning the symbol D to the single input. • If D = 1, the output of the flip-flop goes to the 1 state, but if D = 0, the output of the flip-flop goes to the 0 state .
  • 12. D Flip-flop S R Q(T+1) 0 0 Q(T) 0 1 0 1 0 1 1 1 Indeterminate S R=S’ Q(T+1) 0 1 0 1 0 1
  • 16. JK Flip-flop  Because of feedback connection, for a given clock pulse, the output will oscillate between '0' & '1' when both J & K are high.  The condition is referred to as “race around”.
  • 18. Methods to eliminate race around condition of JK Flip-flop • The propagation delay (delta t) should be made greater than the duration of the clock pulse (T). But it is not a good solution as increasing the delay will decrease the speed of the system. Increasing the delay of flip-flop • If the clock is High for a time interval less than the propagation delay of the flip flop then racing around condition can be eliminated. This is done by using the edge- triggered flip flop rather than using the level-triggered flip-flop. Use of edge-triggered flip-flop • If the flip flop is made to toggle over one clock period then racing around condition can be eliminated. This is done by using Master-Slave JK flip-flop. Use of master-slave JK flip-flop
  • 19.  T (toggle) flip-flop is obtained from a JK type when inputs J and K are connected to provide a single input designated by T. T Flip-Flop
  • 21.  In this type of flip-flop, output transitions occur at a specific level of the clock pulse.  When the pulse input level exceeds this threshold level, the inputs are locked out so that the flip-flop is unresponsive to further changes in inputs until the clock pulse returns to 0 and another pulse occurs.  Some edge-triggered flip-flops cause a transition on the rising edge of the clock signal (positive-edge transition), and  others cause a transition on the falling edge (negative-edge transition). Edge Triggered Flip Flops
  • 24. This type of circuit consists of two flip-flops.  The first is the master, which responds to the positive level of the clock, and  the second is the slave, which responds to the negative level of the clock.  The result is that the output changes during the 1-to-0 transition of the clock signal. Master-Slave Flip Flop
  • 30.
  • 31.  The characteristic tables of flip-flops specify the next state when the inputs and the present state are known.  During the design of sequential circuits we usually know the required transition from present state to next state and wish to find the flip-flop input conditions that will cause the required transition.  For this reason we need a table that lists the required input combinations for a given change of state.  Such a table is called a flip-flop excitation table. Excitation Tables
  • 32. Excitation Tables  Excitation table consists of two columns, Q(t) and Q(t + 1), and a column for each input to show how the required transition is achieved.  There are four possible transitions from present state Q(t) to next state Q(t + 1).  The required input conditions for each of these transitions are derived from the information available in the characteristic tables.  The symbol x in the tables represents a don't-care condition; that is, it does not matter whether the input to the flip-flop is 0 or 1.
  • 33. Excitation Tables-RS Flip Flop Characteristic Table Q S R Q(T+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 Excitation Tables Q(T) Q(T+1) 0 0 0 1 1 0 1 1 S R 0 X 1 0 0 1 X 0
  • 34. Excitation Tables-JK Flip Flop Characteristic Table Q J K Q(T+1) 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 Excitation Tables Q(T) Q(T+1) 0 0 0 1 1 0 1 1 J K 0 X 1 X X 1 X 0
  • 35. Excitation Tables-D Flip Flop Characteristic Table Q D Q(T+1) 0 0 0 0 1 1 1 0 0 1 1 1 Excitation Tables Q(T) Q(T+1) 0 0 0 1 1 0 1 1 D 0 1 0 1
  • 36. Excitation Tables-T Flip Flop Characteristic Table Q T Q(T+1) 0 0 0 0 1 1 1 0 1 1 1 0 Excitation Tables Q(T) Q(T+1) 0 0 0 1 1 0 1 1 T 0 1 1 0
  • 37.  A sequential circuit is an interconnection of flip-flops and gates.  The gates by themselves constitute a combinational circuit, but when included with the flip-flops, the overall circuit is classified as a sequential circuit. Sequential Circuit
  • 39. Analysis of Sequential Circuit How many Inputs, Outputs & Flip-flops Input - 1 - x Output - 1 - y Flip-flops - 2 - A & B
  • 40.
  • 41. State Table  The behavior of a sequential circuit is determined from the inputs, the outputs, and the state of its flip-flops.  Both the outputs and the next state are a function of the inputs and the present state.  A sequential circuit is specified by a state table that relates outputs and next states as a function of inputs and present states.
  • 42.
  • 44. State Diagram  The information available in a state table can be represented graphically in a state diagram.  In this type of diagram, a state is represented by a circle, and the transition between states is indicated by directed lines connecting the circles.  The binary number inside each circle identifies the state of the flip- flops.  The directed lines are labelled with two binary numbers separated by a slash.  The input value during the present state is labelled first and the number after the slash gives the output during the present state.
  • 46. State Equation A B X A B Y 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 0 1 1 1 0 0 1 0 0 0 1 0 1 0 1 0 1 0 1 1 0 0 0 1 1 1 1 1 1 0
  • 48. Analysis of Sequential Circuit How many Inputs, Outputs & Flip-flops Input - 1 - x Output - 1 - y Flip-flops - 2 - A & B
  • 53. Designing Sequential Circuits How many Inputs, Outputs & Flip-flops Input - 1 - x Output - 0 No. of States - 4 - 22 Flip-flops - 2 - A & B
  • 58.
  • 59. Designing of Counters  A sequential circuit that goes through a predetermined sequence of states upon the application of input pulses is called a counter.  The input pulses may be clock pulses or may originate from an external source.  They may occur at uniform intervals of time or at random.  Of the various sequences a counter may follow, the straight binary sequence is the simplest and most straightforward.  A counter that follows the binary number sequence is called a binary counter.  An n-bit binary counter contains n flip-flops and associated gates that follows a sequence of states according to the binary count of n bits, from 0 to 2n - 1.
  • 60. Designing of Counters How many Inputs, Outputs & Flip-flops Input - 0 Output - 0 No. of States - 8 - 23 Flip-flops - 3 - A0, A1 & A2 Type of Flip flop - T
  • 61. Designing of Counters Present State Next State A2 A1 A0 A2 A1 A0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0
  • 62. Designing of Counters Present State Next State Flip flop Inputs A2 A1 A0 A2 A1 A0 TA2 TA1 TA0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1
  • 67. Designing of Counters JA ABC 00 01 11 10 0 0 0 X 1 1 X X X X KA ABC 00 01 11 10 0 X X X X 1 0 0 X 1 JB ABC 00 01 11 10 0 0 1 X X 1 0 1 X X KB ABC 00 01 11 10 0 X X X 1 1 X X X 1 JC ABC 00 01 11 10 0 1 X X 0 1 1 X X 0 KC ABC 00 01 11 10 0 X 1 X X 1 X 1 X X
  • 70. Design with State Equation
  • 71. Designing of Counters Present State Next State Flip flop Inputs A2 A1 A0 A2 A1 A0 TA2 TA1 TA0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 1 0 0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1
  • 72. Designing of Counters Present State Next State A B C A B C 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 A(T+1) ABC 00 01 11 10 0 0 0 1 0 1 1 1 0 1 B(T+1) ABC 00 01 11 10 0 0 1 0 1 1 0 1 0 1 C(T+1) ABC 00 01 11 10 0 1 0 0 1 1 1 0 0 1 A(T+1) = A’BC + AB’ + ABC’ = A’BC + A(B’+BC’) = A’BC + A[(B’+B)(B’+C’)] = A’BC + A(BC)’ TA = BC C(T+1) = C’ = 1.C’ + 0 = 1.C’ + 0.C = 1.C’ + 1’.C TC = 1 B(T+1) = B’C + BC’ TB = C
  • 74. Design with State Equation Present State Next State A B C A B C 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 0 0 0 1 1 1 0 0 0 A(T+1) ABC 00 01 11 10 0 0 0 1 1 1 1 1 0 0 B(T+1) ABC 00 01 11 10 0 0 1 0 0 1 0 1 0 0 C(T+1) ABC 00 01 11 10 0 1 0 X 0 1 1 0 X 0 C(T+1) = B’C’ C(T+1) = C’B’ + 0 = C’B’ + 1’.B JC = B’ KC =1 Q(T+1) = JQ’ + K’Q A(T+1) = A’B + AB’ KA = B JA = B B(T+1) = B’C B(T+1) = B’C + 0 = B’C + 0.B = B’C + 1’B JB = C KB = 1
  • 75. Sequential Circuit with D Flip flop
  • 76. Sequential Circuit with D Flip flop
  • 77. Sequential Circuit with JK Flip flop
  • 78. Sequential Circuit with JK Flip flop
  • 79. Sequential Circuit with JK Flip flop
  • 80. Sequential Circuit with JK Flip flop
  • 81. Sequential Circuit with JK Flip flop