SlideShare a Scribd company logo
1 of 56
Topics to be covered
 Flip-flops
 Applications of Flip-flops
 Shift registers
 Asynchronous counters
 Synchronous counters
 Sequential counters
Sequential Switching Circuits
 Sequential switching circuits are circuits whose output
levels at any instant of time are dependent on the levels
present at the inputs at that time and on the state of the
circuit, i.e., on the prior input level conditions (i.e. on its
past inputs)
 The past history is provided by feedback from the output
back to the input.
 Made up of combinational circuits and memory elements.
 Eg. Counters, shift registers, serial adder, etc.
Sequential Switching Circuits
Combinational Circuit
Memory
elements
Inputs Outputs
Sequential Circuits
• In sequential circuits, the
output variables at any instant
of time are dependent on the
present input variables and on
the present state, i.e., on the
past history of the system.
• Memory unit is required to
store the past history of the
input variables in sequential
circuits.
• Sequential circuits are slower
than combinational circuits.
• Sequential circuits are
comparatively harder to
design.
Combinational Circuits
• In combinational circuits, the
output variables at any instant
of time are dependent only on
the present input variables.
• Memory unit is not required in
combinational circuits.
• Combinational circuits are
faster because the delay
between the input and the
output is due to propagation
delay of gates only.
• Combinational circuits are easy
to design.
Sequential Circuits v/s
Combinational Circuits
Flip-flop
 A flip-flop, known formally as bistable multivibrator, has
two stable states.
 It can remain in either of the states indefinitely.
 Its state can be changed by applying the proper
triggering signal.
Latch
 Latch is used for certain flip-flop which are non-clocked.
 These flip-flops ‘latch on’ to a 1 or a 0 immediately upon
receiving the input pulse called SET or RESET.
S-R Flip-Flop (Latch)
 The simplest type of flip-flop is called an S-R latch.
 It has two outputs labelled Q and Q’ and two inputs
labelled S and R. The state of the latch corresponds to
the level of Q (HIGH or LOW, 1 or 0) and Q’ is the
complement of that state.
 It can be constructed using either two cross-coupled
NAND gates or two-cross coupled NOR gates.
 Using two NOR gates, an active-HIGH S-R latch can be
constructed and using two NAND gates an active-LOW S-
R latch can be constructed.
 The name of the latch, S-R or SET-RESET, is derived
from the names of its inputs.
NOR Gate S-R latch (Active High)
S
R
Q
Q’
Inputs
Outputs
S R Qn Qn+1 State
0
0
0
0
0
1
0
1
No Change
0
0
1
1
0
1
0
0
Reset
1
1
0
0
0
1
1
1
Set
1
1
1
1
0
1
x
x
Indeterminat
e (invalid)
R
S
Q
Q’
Logic diagram
Logic Symbol
NAND Gate S-R latch (Active Low)
S R Qn Qn+1 State
0
0
0
0
0
1
x
x
Indeterminat
e (invalid)
0
0
1
1
0
1
1
1
Set
1
1
0
0
0
1
0
0
Reset
1
1
1
1
0
1
0
1
No Change
S
R
Q
Q’
Logic diagram
Gated S-R Latch (S-R Flip flop)
S
R
Q
Q’ EN S R Qn Qn+1 State
1
1
0
0
0
0
0
1
0
1
No Change
1
1
0
0
1
1
0
1
0
0
Reset
1
1
1
1
0
0
0
1
1
1
Set
1
1
1
1
1
1
0
1
x
x
Indetermina
te (invalid)
0
0
x
x
x
x
0
1
0
1
No Change
S
R
Q
Q’
Logic diagram
Logic Symbol
EN
EN
Gated D-Latch
D Q
Q’
EN D Qn Qn+1 State
1
1
0
0
0
1
0
0
Reset
1
1
1
1
0
1
1
1
Set
0
0
x
x
0
1
0
1
No Change
D
Q
Q’
Logic diagram
Logic Symbol
EN
EN
• What if shot both input of SR and put
NOT gate at one input
• New flip flop is generated D- flip flop.
• Input will be given as output.
• D Mean Data.
• Also called Buffer flip flop.
J-K Flip-Flop
J
K
Q
Q’
Logic Symbol
EN
J
K
Q
Q’
EN
EN J K Qn Qn+1 State
1
1
0
0
0
0
0
1
0
1
No Change
1
1
0
0
1
1
0
1
0
0
Reset
1
1
1
1
0
0
0
1
1
1
Set
1
1
1
1
1
1
0
1
1
0
Toggle
0
0
x
x
x
x
0
1
0
1
No Change
• Invalid state of SR flip flop is corrected.
• New flip flop is JK flip flop.
• All other functionalities are same.
T Flip-Flop
T Q
Q’
Logic Symbol
EN
T
Q
EN
Q’
EN T Qn Qn+1 State
1
1
0
0
0
1
0
1
No change
1
1
1
1
0
1
1
0
Toggle
0
0
x
x
0
1
0
1
No Change
• What If we shot both input of JK flip
flop.
• New flip flop is generated called Toggle
flipflop.
• Toggle = T
• Here Output will toggle(from its
previous) if input is given 1
Application of Flip flops
 Parallel Data Storage
• 1 flip flop to store 1 bit => N flip flop to store N – bits data
• Data available at input of D-FF, on clock pulse data will be
transferred to output Q.
• FF are connected parallelly.
 Serial Data Storage
• FF are cascaded.
 Transfer of Data
• Serially or parallelly
 Serial to Parallel conversion
 Parallel to serial conversion
 Counting
• FF are connected in particular fashion to count pulses
electronically called counters
• 1 FF can count up to 2 pulses.
• 2 FF can count up to 22 pulses =>n FF count - 2𝑛 𝑝𝑢𝑙𝑠𝑒𝑠.
 Frequency division
• FF are connected in particular fashion to divide input frequenct
called ripple counter
• 1 FF can be used to divide input frequency by 2
• 2 FF can divide frequency by 22 =>n FF can divide fr. By 2𝑛.
Application of Flip flops
Registers (Group of FF)
 As a flip-flop (FF) can store only one bit of data, a 0 or a
1, it is referred to as a single-bit register.
 A register is a set of FFs used to store binary data.
 The storage capacity of a register is the number of bits
(1s and 0s) of digital data it can retain.
Registers
 Loading a register means setting or resetting the
individual FFs, i.e. inputting data into the register so that
their states correspond to the bits of data to be stored.
 Loading may be serial or parallel.
 In serial loading, data is transferred into the register in
serial form i.e. one bit at a time.
 In parallel loading, the data is transferred into the
register in parallel form meaning that all the FFs are
triggered into their new states at the same time.
Types of Registers
1. Buffer register
2. Shift register
3. Bidirectional shift register
4. Universal shift register
Buffer register
FF1
D1 Q1
> FF2
D2 Q2
> FF3
D3 Q3
> FF4
D4 Q4
>
CLK
CLK
x1 x2 x3 x4
When clock pulse applied stored word Q becomes X
Q4Q3Q2Q1=X1X2X3X4 or Q=X
Shift Register
 A number of FFs connected together such that data may be
shifted into and shifted out of them is called a shift register.
 Data may be shifted into or out of the register either in serial
form or in parallel form.
 So, there are four basic types of shift registers:
1. serial-in, serial-out
2. serial-in, parallel out
3. parallel-in, serial-out
4. parallel-in, parallel-out
 Data may be rotated left or right. Data may be shifted from
left to right or right to left at will, i.e. in a bidirectional way.
 Also, data may be shifted in serially (in either way) or in
parallel and shifted out serially (in either way) or in parallel.
Data transmission in shift register
Serial-in, serial-out
shift-right, shift
register
Seri
al
data
input
Serial
data
output
Serial-in, serial-out
shift-left, shift
register
Serial
data
output
Seri
al
data
input
Data transmission in shift register
Serial-in, parallel-out, shift
register
Seri
al
data
input
Parallel data
output
Parallel-in, parallel-out, shift
register
Parallel data
input
Parallel data
output
Data transmission in shift register
Parallel-in, serial-out, shift
register
Serial
data
output
Parallel data
input
Serial-in, Serial-out, Shift register
FF1
D1 Q1
> FF2
D2 Q2
> FF3
D3 Q3
> FF4
D4 Q4
>
Serial Input
CLK
Serial
outpu
t
Serial-in, Serial-out, Shift register
CLK
Serial
outpu
t
Using J-K Flip Flop
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
FF3
J3 Q3
>
K3 Q3’
FF4
J4 Q4
>
K4 Q4’
Seri
al
input
Serial-in, Serial-out, Shift-left, Shift
register
FF4
Q4 D4
< FF3
Q3 D3
< FF2
Q2 D2
< FF1
Q1 D1
<
Serial
Output
CLK
Serial
input
Serial-in, Parallel-out, Shift register
FF1
D1 QA
> FF2
D2 QB
> FF3
D3 QC
> FF4
D4 QD
>
Serial Input
CLK
QA QB QC QD
Parallel-in, Serial-out, Shift register
FF1
D1 Q1
> FF2
D2 Q2
> FF3
D3 Q3
> FF4
D4 Q4
>
Shif
t/
Load
CLK
A B C D
Parallel-in, Parallel-out, Shift register
FF1
D Q
> FF2
D Q
> FF3
D Q
> FF4
D Q
>
A
CLK
B C D
QA QB QC QD
Counters
 Synchronous counters and asynchronous counters
 Asynchronous counter = ripple counters
Asynchronous Counters v/s Synchronous Counters
Asynchronous Counters Synchronous Counters
• In this type of counters FFs are
connected in such a way that the
output of the first FF drives the
clock for the second FF, the
output of the second the clock of
the third and so on.
• All the FFs are not clocked
simultaneously.
• Design and implementation is very
simple even for more number of
states.
• Main drawback of these counters
is their low speed as the clock is
propagated through a number of
FFs before it reaches the last FF.
• In this type of counters there is
no connection between the output
of first FF and clock input of next
FF and so on.
• All the FFs are clocked
simultaneously.
• Design and implementation
becomes tedious and complex as
the number of states increases.
• Since clock is applied to all the
FFs simultaneously the total
propagation delay is equal to the
propagation delay of only one FF.
Hence they are faster.
2-bit Ripple Up-Counter using Negative Edge-
triggered Flip-Flop
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1 1
Q1 Q2
CLK
CLK
Present
State
Next State
Q2 Q1 Q2 Q1
0 0 0 1
0 1 1 0
1 0 1 1
1 1 0 0
CLK
Q1
Q2
0 1 0 1 0
0 1 0
2-bit Ripple Down-Counter using Negative Edge-
triggered Flip-Flop
CLK
Present
State
Next State
Q2 Q1 Q2 Q1
0 0 1 1
1 1 1 0
1 0 0 1
0 1 0 0
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1 1
Q1 Q2
CLK
CLK
Q1
Q2
0 1 0 1 0
0 1 0
Q1
’ 1 0 1 0 1
2-bit Ripple Up-Counter using Positive Edge-
triggered Flip-Flop
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1 1
Q1 Q2
CLK
CLK
Present
State
Next State
Q2 Q1 Q2 Q1
0 0 0 1
0 1 1 0
1 0 1 1
1 1 0 0
CLK
Q1
Q2
0
0
0
1
0
0
1 1 1
Q1
’
1 1 1
0 0 0
2-bit Ripple Down-Counter using Positive Edge-
triggered Flip-Flop
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1 1
Q1 Q2
CLK
CLK
Present
State
Next State
Q2 Q1 Q2 Q1
0 0 1 1
1 1 1 0
1 0 0 1
0 1 0 0
CLK
Q1
Q2
0
0
0
1
0
0
1 1 1
Ring Counter
FF1
D1 Q1
> FF2
D2 Q2
> FF3
D3 Q3
> FF4
D4 Q4
>
CLK
Q1’ Q2’ Q3’ Q4’
FF1
J1 Q1
> FF2
J2 Q2
> FF3
J3 Q3
> FF4
J4 Q4
>
CLK
Q1’ Q2’ Q3’ Q4’
K1 K2 K3 K4
Ring Counter
After
pulses
State
Q1 Q2 Q3 Q4
0 1 0 0 0
1 0 1 0 0
2 0 0 1 0
3 0 0 0 1
4 1 0 0 0
5 0 1 0 0
6 0 0 1 0
7 0 0 0 1
Mod-6 Asynchronous Counter
After
pulses
State Reset(
R)
Q3 Q2 Q1
0 0 0 0 0
1 0 0 1 0
2 0 1 0 0
3 0 1 1 0
4 1 0 0 0
5 1 0 1 0
6 1 1 0 1
↓ ↓ ↓
0 0 0 0
0 0 1 0
R = 0 for 000 to 101
R = 1 for 110
R = x for 111
R = Q3Q2Q1’ + Q3Q2Q
R = Q3Q2
Mod-6 Asynchronous Counter
FF1
T1 Q1
>
Q1’
FF2
T2 Q2
>
Q2’
FF3
T3 Q3
>
Q3’
1 Q
1
Q
2
CLR CLR CLR
1 1
Q
3 R’
CLK
Exercise
 Design Mod-10 ripple counter.
 Draw a frequency divider using JK FFs to divide input
clock frequency by a factor of 8.
Design of Synchronous Counters
 Step 1. Number of flip-flops:
Based on the description of the problem, determine the
required number n of the FFs - the smallest value of n is
such that the number of states N ≤ 2n and the desired
counting sequence.
 Step 2. State diagram:
Draw the state diagram showing all the possible states.
 Step 3. Choice of flip-flops and excitation table:
Select the type of flip-flops to be used and write the
excitation table.
An excitation table is a table that lists the present state
(PS), the next state (NS) and the required excitations.
Design of Synchronous Counters
 Step 4. Minimal expressions for excitations:
Obtain the minimal expressions for the excitations of the
FFs using K-maps for the excitations of the flip-flops in
terms of the present states and inputs.
 Step 5. Logic Diagram:
Draw the logic diagram based on the minimal expressions.
Excitation Tables
PS NS
Require
d inputs
Qn Qn+1 S R
0 0 0 x
0 1 1 0
1 0 0 1
1 1 x 0
S-R FF
PS NS
Require
d inputs
Qn Qn+1 J K
0 0 0 x
0 1 1 x
1 0 x 1
1 1 x 0
J-K FF
Excitation Tables
PS NS
Require
d inputs
Qn Qn+1 D
0 0 0
0 1 1
1 0 0
1 1 1
D FF T FF
PS NS
Require
d inputs
Qn Qn+1 T
0 0 0
0 1 1
1 0 1
1 1 0
Design of Synchronous 3-bit Up Counters
 Step 1. Number of flip-flops:
A 3-bit up-counter requires 3 flip-flops. The counting
sequence is 000, 001, 010, 011, 100, 101, 110, 111, 000 …
 Step 2. Draw the state diagram:
000
001
010
011
100
101
110
111
Design of Synchronous 3-bit Up Counters
 Step 3. Select the type of flip-flops and draw the excitation
table:
JK flip-flops are selected and the excitation table of a 3-bit
up-counter using J-K flip-flops is drawn as shown below.
PS NS Required excitations
Q3 Q2 Q1 Q3 Q2 Q1 J3 K3 J2 K2 J1 K1
0 0 0 0 0 1 0 x 0 x 1 x
0 0 1 0 1 0 0 x 1 x x 1
0 1 0 0 1 1 0 x x 0 1 x
0 1 1 1 0 0 1 x x 1 x 1
1 0 0 1 0 1 x 0 0 x 1 x
1 0 1 1 1 0 x 0 1 x x 1
1 1 0 1 1 1 x 0 x 0 1 x
1 1 1 0 0 0 x 1 x 1 x 1
Design of Synchronous 3-bit Up Counters
 Step 4. Obtain the minimal expressions
From excitation table, J1 = K1 = 1.
K – Maps for excitations J3, K3, J2 and K2 and their minimized
form are as follows:
Q3Q2
Q1
00 10
0
1
01 11
1
x x
x x
J3 = Q2Q1
Q3Q2
Q1
00 10
0
1
01 11
1
x x
x x
K3 = Q2Q1
Design of Synchronous 3-bit Up Counters
Q3Q2
Q1
00 10
0
1
01 11
1
x
1
x
J2 = Q1
Q3Q2
Q1
00 10
0
1
01 11
1
x
x
x
x
K2 = Q1
1
x
x
Design of Synchronous 3-bit Up Counters
 Step 5. Draw the logic diagram
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1
FF3
J3 Q3
>
K3 Q3’
CLK
Sequence Generator (Pulse Train
Generators)
1) Using Direct logic
 Inspect given pulse train
 Decide the number of unique states and minimum number
of FFs required.
 If unique states are not possible with the least number
of FFs n, then increase the number of FFs by one or more
to get the unique states.
0 1 1 1 0 1 1 1 0
FF States
LSB
0 0
0 1
1 1
? 1
FF States Decimal
equivalent
LSB
0 0 0 0
0 0 1 1
0 1 1 3
1 0 1 5
0
1
3
5
Sequence Generator (Direct Logic)
State
assignment
State
diagram
Example: Generate the following pulse train using direct logic.
Sequence Generator (Direct Logic)
PS NS Required excitations
Q3 Q2 Q1 Q3 Q2 Q1 J3 K3 J2 K2 J1 K1
0 0 0 0 0 1 0 X 0 X 1 X
0 0 1 0 1 1 0 X 1 X X 0
0 1 1 1 0 1 1 X X 1 X 0
1 0 1 0 0 0 X 1 0 X X 1
J3 = Q2
K3 = 1
J2 =
Q3
’Q1
K2 = 1
J1 = 1
K1 =
Q3
Sequence Generator (Direct Logic)
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
1
CLK
FF2
J3 Q3
>
K3 Q3’
1 1
Sequence Generator (Indirect Logic)
Example: Generate the following pulse train using indirect logic.
0 1 1 0
1 0 1 1 0
1 1
Q3 Q2 Q1
Output(f
)
State
s
0 0 0 1 0
0 0 1 0 1
0 1 0 1 2
0 1 1 1 3
1 0 0 0 4
1 0 1 X 5
1 1 0 X 6
1 1 1 X 7
Q3
Q2
Q1
00 10
0
1
01 11
1 x
x x
f = Q2 + Q3
’ Q1
’
1
1
Sequence Generator (Indirect Logic)
FF1
J1 Q1
>
K1 Q1’
FF2
J2 Q2
>
K2 Q2’
FF2
J3 Q3
>
K3 Q3’
1
1 1
CLK
f

More Related Content

Similar to Digital Fundamental Material for the student

De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptxMukulThory1
 
Digital design slides for engineering
Digital  design   slides for engineeringDigital  design   slides for engineering
Digital design slides for engineeringkasheen2803
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuitBrenda Debra
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsstudent
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptxamudhak10
 
Registers and counters
Registers and countersRegisters and counters
Registers and countersHeman Pathak
 
9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptx9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptxudhayaveenaa
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationSmit Luvani
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxUtsavDas21
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1Sarah Sue Calbio
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxbagotjesusa
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxThapar Institute
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
SequentialcircuitsRaghu Vamsi
 

Similar to Digital Fundamental Material for the student (20)

De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
DLD Chapter-5.pdf
DLD Chapter-5.pdfDLD Chapter-5.pdf
DLD Chapter-5.pdf
 
latchesflip-flop DLD
latchesflip-flop DLDlatchesflip-flop DLD
latchesflip-flop DLD
 
Digital design slides for engineering
Digital  design   slides for engineeringDigital  design   slides for engineering
Digital design slides for engineering
 
Latches &amp; flip flop
Latches &amp; flip flopLatches &amp; flip flop
Latches &amp; flip flop
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
 
9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptx9flipflopsupdated-191016140658.pptx
9flipflopsupdated-191016140658.pptx
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and Organization
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docx
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 

More from jainyshah20

student important knowledge on computer data .pptx
student important knowledge on computer data .pptxstudent important knowledge on computer data .pptx
student important knowledge on computer data .pptxjainyshah20
 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxjainyshah20
 
Data Warehousing for students educationpptx
Data Warehousing for students educationpptxData Warehousing for students educationpptx
Data Warehousing for students educationpptxjainyshah20
 
3171617_introduction_applied machine learning.pptx
3171617_introduction_applied machine learning.pptx3171617_introduction_applied machine learning.pptx
3171617_introduction_applied machine learning.pptxjainyshah20
 
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSBASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSjainyshah20
 
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIAL
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIALTRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIAL
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIALjainyshah20
 
3150710 MATERIAL FOR STUDENTS FOR EXAMINATION
3150710 MATERIAL FOR STUDENTS FOR EXAMINATION3150710 MATERIAL FOR STUDENTS FOR EXAMINATION
3150710 MATERIAL FOR STUDENTS FOR EXAMINATIONjainyshah20
 

More from jainyshah20 (7)

student important knowledge on computer data .pptx
student important knowledge on computer data .pptxstudent important knowledge on computer data .pptx
student important knowledge on computer data .pptx
 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptx
 
Data Warehousing for students educationpptx
Data Warehousing for students educationpptxData Warehousing for students educationpptx
Data Warehousing for students educationpptx
 
3171617_introduction_applied machine learning.pptx
3171617_introduction_applied machine learning.pptx3171617_introduction_applied machine learning.pptx
3171617_introduction_applied machine learning.pptx
 
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSBASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
 
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIAL
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIALTRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIAL
TRANSPORT LAYER_DATA STRUCTURE LEARNING MATERIAL
 
3150710 MATERIAL FOR STUDENTS FOR EXAMINATION
3150710 MATERIAL FOR STUDENTS FOR EXAMINATION3150710 MATERIAL FOR STUDENTS FOR EXAMINATION
3150710 MATERIAL FOR STUDENTS FOR EXAMINATION
 

Recently uploaded

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

Digital Fundamental Material for the student

  • 1.
  • 2. Topics to be covered  Flip-flops  Applications of Flip-flops  Shift registers  Asynchronous counters  Synchronous counters  Sequential counters
  • 3. Sequential Switching Circuits  Sequential switching circuits are circuits whose output levels at any instant of time are dependent on the levels present at the inputs at that time and on the state of the circuit, i.e., on the prior input level conditions (i.e. on its past inputs)  The past history is provided by feedback from the output back to the input.  Made up of combinational circuits and memory elements.  Eg. Counters, shift registers, serial adder, etc.
  • 4. Sequential Switching Circuits Combinational Circuit Memory elements Inputs Outputs
  • 5. Sequential Circuits • In sequential circuits, the output variables at any instant of time are dependent on the present input variables and on the present state, i.e., on the past history of the system. • Memory unit is required to store the past history of the input variables in sequential circuits. • Sequential circuits are slower than combinational circuits. • Sequential circuits are comparatively harder to design. Combinational Circuits • In combinational circuits, the output variables at any instant of time are dependent only on the present input variables. • Memory unit is not required in combinational circuits. • Combinational circuits are faster because the delay between the input and the output is due to propagation delay of gates only. • Combinational circuits are easy to design. Sequential Circuits v/s Combinational Circuits
  • 6. Flip-flop  A flip-flop, known formally as bistable multivibrator, has two stable states.  It can remain in either of the states indefinitely.  Its state can be changed by applying the proper triggering signal.
  • 7. Latch  Latch is used for certain flip-flop which are non-clocked.  These flip-flops ‘latch on’ to a 1 or a 0 immediately upon receiving the input pulse called SET or RESET.
  • 8. S-R Flip-Flop (Latch)  The simplest type of flip-flop is called an S-R latch.  It has two outputs labelled Q and Q’ and two inputs labelled S and R. The state of the latch corresponds to the level of Q (HIGH or LOW, 1 or 0) and Q’ is the complement of that state.  It can be constructed using either two cross-coupled NAND gates or two-cross coupled NOR gates.  Using two NOR gates, an active-HIGH S-R latch can be constructed and using two NAND gates an active-LOW S- R latch can be constructed.  The name of the latch, S-R or SET-RESET, is derived from the names of its inputs.
  • 9. NOR Gate S-R latch (Active High) S R Q Q’ Inputs Outputs S R Qn Qn+1 State 0 0 0 0 0 1 0 1 No Change 0 0 1 1 0 1 0 0 Reset 1 1 0 0 0 1 1 1 Set 1 1 1 1 0 1 x x Indeterminat e (invalid) R S Q Q’ Logic diagram Logic Symbol
  • 10. NAND Gate S-R latch (Active Low) S R Qn Qn+1 State 0 0 0 0 0 1 x x Indeterminat e (invalid) 0 0 1 1 0 1 1 1 Set 1 1 0 0 0 1 0 0 Reset 1 1 1 1 0 1 0 1 No Change S R Q Q’ Logic diagram
  • 11. Gated S-R Latch (S-R Flip flop) S R Q Q’ EN S R Qn Qn+1 State 1 1 0 0 0 0 0 1 0 1 No Change 1 1 0 0 1 1 0 1 0 0 Reset 1 1 1 1 0 0 0 1 1 1 Set 1 1 1 1 1 1 0 1 x x Indetermina te (invalid) 0 0 x x x x 0 1 0 1 No Change S R Q Q’ Logic diagram Logic Symbol EN EN
  • 12. Gated D-Latch D Q Q’ EN D Qn Qn+1 State 1 1 0 0 0 1 0 0 Reset 1 1 1 1 0 1 1 1 Set 0 0 x x 0 1 0 1 No Change D Q Q’ Logic diagram Logic Symbol EN EN • What if shot both input of SR and put NOT gate at one input • New flip flop is generated D- flip flop. • Input will be given as output. • D Mean Data. • Also called Buffer flip flop.
  • 13. J-K Flip-Flop J K Q Q’ Logic Symbol EN J K Q Q’ EN EN J K Qn Qn+1 State 1 1 0 0 0 0 0 1 0 1 No Change 1 1 0 0 1 1 0 1 0 0 Reset 1 1 1 1 0 0 0 1 1 1 Set 1 1 1 1 1 1 0 1 1 0 Toggle 0 0 x x x x 0 1 0 1 No Change • Invalid state of SR flip flop is corrected. • New flip flop is JK flip flop. • All other functionalities are same.
  • 14. T Flip-Flop T Q Q’ Logic Symbol EN T Q EN Q’ EN T Qn Qn+1 State 1 1 0 0 0 1 0 1 No change 1 1 1 1 0 1 1 0 Toggle 0 0 x x 0 1 0 1 No Change • What If we shot both input of JK flip flop. • New flip flop is generated called Toggle flipflop. • Toggle = T • Here Output will toggle(from its previous) if input is given 1
  • 15. Application of Flip flops  Parallel Data Storage • 1 flip flop to store 1 bit => N flip flop to store N – bits data • Data available at input of D-FF, on clock pulse data will be transferred to output Q. • FF are connected parallelly.  Serial Data Storage • FF are cascaded.  Transfer of Data • Serially or parallelly  Serial to Parallel conversion  Parallel to serial conversion
  • 16.  Counting • FF are connected in particular fashion to count pulses electronically called counters • 1 FF can count up to 2 pulses. • 2 FF can count up to 22 pulses =>n FF count - 2𝑛 𝑝𝑢𝑙𝑠𝑒𝑠.  Frequency division • FF are connected in particular fashion to divide input frequenct called ripple counter • 1 FF can be used to divide input frequency by 2 • 2 FF can divide frequency by 22 =>n FF can divide fr. By 2𝑛. Application of Flip flops
  • 17. Registers (Group of FF)  As a flip-flop (FF) can store only one bit of data, a 0 or a 1, it is referred to as a single-bit register.  A register is a set of FFs used to store binary data.  The storage capacity of a register is the number of bits (1s and 0s) of digital data it can retain.
  • 18. Registers  Loading a register means setting or resetting the individual FFs, i.e. inputting data into the register so that their states correspond to the bits of data to be stored.  Loading may be serial or parallel.  In serial loading, data is transferred into the register in serial form i.e. one bit at a time.  In parallel loading, the data is transferred into the register in parallel form meaning that all the FFs are triggered into their new states at the same time.
  • 19. Types of Registers 1. Buffer register 2. Shift register 3. Bidirectional shift register 4. Universal shift register
  • 20. Buffer register FF1 D1 Q1 > FF2 D2 Q2 > FF3 D3 Q3 > FF4 D4 Q4 > CLK CLK x1 x2 x3 x4 When clock pulse applied stored word Q becomes X Q4Q3Q2Q1=X1X2X3X4 or Q=X
  • 21. Shift Register  A number of FFs connected together such that data may be shifted into and shifted out of them is called a shift register.  Data may be shifted into or out of the register either in serial form or in parallel form.  So, there are four basic types of shift registers: 1. serial-in, serial-out 2. serial-in, parallel out 3. parallel-in, serial-out 4. parallel-in, parallel-out  Data may be rotated left or right. Data may be shifted from left to right or right to left at will, i.e. in a bidirectional way.  Also, data may be shifted in serially (in either way) or in parallel and shifted out serially (in either way) or in parallel.
  • 22. Data transmission in shift register Serial-in, serial-out shift-right, shift register Seri al data input Serial data output Serial-in, serial-out shift-left, shift register Serial data output Seri al data input
  • 23. Data transmission in shift register Serial-in, parallel-out, shift register Seri al data input Parallel data output Parallel-in, parallel-out, shift register Parallel data input Parallel data output
  • 24. Data transmission in shift register Parallel-in, serial-out, shift register Serial data output Parallel data input
  • 25. Serial-in, Serial-out, Shift register FF1 D1 Q1 > FF2 D2 Q2 > FF3 D3 Q3 > FF4 D4 Q4 > Serial Input CLK Serial outpu t
  • 26. Serial-in, Serial-out, Shift register CLK Serial outpu t Using J-K Flip Flop FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ FF3 J3 Q3 > K3 Q3’ FF4 J4 Q4 > K4 Q4’ Seri al input
  • 27. Serial-in, Serial-out, Shift-left, Shift register FF4 Q4 D4 < FF3 Q3 D3 < FF2 Q2 D2 < FF1 Q1 D1 < Serial Output CLK Serial input
  • 28. Serial-in, Parallel-out, Shift register FF1 D1 QA > FF2 D2 QB > FF3 D3 QC > FF4 D4 QD > Serial Input CLK QA QB QC QD
  • 29. Parallel-in, Serial-out, Shift register FF1 D1 Q1 > FF2 D2 Q2 > FF3 D3 Q3 > FF4 D4 Q4 > Shif t/ Load CLK A B C D
  • 30. Parallel-in, Parallel-out, Shift register FF1 D Q > FF2 D Q > FF3 D Q > FF4 D Q > A CLK B C D QA QB QC QD
  • 31. Counters  Synchronous counters and asynchronous counters  Asynchronous counter = ripple counters
  • 32. Asynchronous Counters v/s Synchronous Counters Asynchronous Counters Synchronous Counters • In this type of counters FFs are connected in such a way that the output of the first FF drives the clock for the second FF, the output of the second the clock of the third and so on. • All the FFs are not clocked simultaneously. • Design and implementation is very simple even for more number of states. • Main drawback of these counters is their low speed as the clock is propagated through a number of FFs before it reaches the last FF. • In this type of counters there is no connection between the output of first FF and clock input of next FF and so on. • All the FFs are clocked simultaneously. • Design and implementation becomes tedious and complex as the number of states increases. • Since clock is applied to all the FFs simultaneously the total propagation delay is equal to the propagation delay of only one FF. Hence they are faster.
  • 33. 2-bit Ripple Up-Counter using Negative Edge- triggered Flip-Flop FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 1 Q1 Q2 CLK CLK Present State Next State Q2 Q1 Q2 Q1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 CLK Q1 Q2 0 1 0 1 0 0 1 0
  • 34. 2-bit Ripple Down-Counter using Negative Edge- triggered Flip-Flop CLK Present State Next State Q2 Q1 Q2 Q1 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 1 Q1 Q2 CLK CLK Q1 Q2 0 1 0 1 0 0 1 0 Q1 ’ 1 0 1 0 1
  • 35. 2-bit Ripple Up-Counter using Positive Edge- triggered Flip-Flop FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 1 Q1 Q2 CLK CLK Present State Next State Q2 Q1 Q2 Q1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 CLK Q1 Q2 0 0 0 1 0 0 1 1 1 Q1 ’ 1 1 1 0 0 0
  • 36. 2-bit Ripple Down-Counter using Positive Edge- triggered Flip-Flop FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 1 Q1 Q2 CLK CLK Present State Next State Q2 Q1 Q2 Q1 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 CLK Q1 Q2 0 0 0 1 0 0 1 1 1
  • 37. Ring Counter FF1 D1 Q1 > FF2 D2 Q2 > FF3 D3 Q3 > FF4 D4 Q4 > CLK Q1’ Q2’ Q3’ Q4’ FF1 J1 Q1 > FF2 J2 Q2 > FF3 J3 Q3 > FF4 J4 Q4 > CLK Q1’ Q2’ Q3’ Q4’ K1 K2 K3 K4
  • 38. Ring Counter After pulses State Q1 Q2 Q3 Q4 0 1 0 0 0 1 0 1 0 0 2 0 0 1 0 3 0 0 0 1 4 1 0 0 0 5 0 1 0 0 6 0 0 1 0 7 0 0 0 1
  • 39. Mod-6 Asynchronous Counter After pulses State Reset( R) Q3 Q2 Q1 0 0 0 0 0 1 0 0 1 0 2 0 1 0 0 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 1 ↓ ↓ ↓ 0 0 0 0 0 0 1 0 R = 0 for 000 to 101 R = 1 for 110 R = x for 111 R = Q3Q2Q1’ + Q3Q2Q R = Q3Q2
  • 40. Mod-6 Asynchronous Counter FF1 T1 Q1 > Q1’ FF2 T2 Q2 > Q2’ FF3 T3 Q3 > Q3’ 1 Q 1 Q 2 CLR CLR CLR 1 1 Q 3 R’ CLK
  • 41. Exercise  Design Mod-10 ripple counter.  Draw a frequency divider using JK FFs to divide input clock frequency by a factor of 8.
  • 42. Design of Synchronous Counters  Step 1. Number of flip-flops: Based on the description of the problem, determine the required number n of the FFs - the smallest value of n is such that the number of states N ≤ 2n and the desired counting sequence.  Step 2. State diagram: Draw the state diagram showing all the possible states.  Step 3. Choice of flip-flops and excitation table: Select the type of flip-flops to be used and write the excitation table. An excitation table is a table that lists the present state (PS), the next state (NS) and the required excitations.
  • 43. Design of Synchronous Counters  Step 4. Minimal expressions for excitations: Obtain the minimal expressions for the excitations of the FFs using K-maps for the excitations of the flip-flops in terms of the present states and inputs.  Step 5. Logic Diagram: Draw the logic diagram based on the minimal expressions.
  • 44. Excitation Tables PS NS Require d inputs Qn Qn+1 S R 0 0 0 x 0 1 1 0 1 0 0 1 1 1 x 0 S-R FF PS NS Require d inputs Qn Qn+1 J K 0 0 0 x 0 1 1 x 1 0 x 1 1 1 x 0 J-K FF
  • 45. Excitation Tables PS NS Require d inputs Qn Qn+1 D 0 0 0 0 1 1 1 0 0 1 1 1 D FF T FF PS NS Require d inputs Qn Qn+1 T 0 0 0 0 1 1 1 0 1 1 1 0
  • 46. Design of Synchronous 3-bit Up Counters  Step 1. Number of flip-flops: A 3-bit up-counter requires 3 flip-flops. The counting sequence is 000, 001, 010, 011, 100, 101, 110, 111, 000 …  Step 2. Draw the state diagram: 000 001 010 011 100 101 110 111
  • 47. Design of Synchronous 3-bit Up Counters  Step 3. Select the type of flip-flops and draw the excitation table: JK flip-flops are selected and the excitation table of a 3-bit up-counter using J-K flip-flops is drawn as shown below. PS NS Required excitations Q3 Q2 Q1 Q3 Q2 Q1 J3 K3 J2 K2 J1 K1 0 0 0 0 0 1 0 x 0 x 1 x 0 0 1 0 1 0 0 x 1 x x 1 0 1 0 0 1 1 0 x x 0 1 x 0 1 1 1 0 0 1 x x 1 x 1 1 0 0 1 0 1 x 0 0 x 1 x 1 0 1 1 1 0 x 0 1 x x 1 1 1 0 1 1 1 x 0 x 0 1 x 1 1 1 0 0 0 x 1 x 1 x 1
  • 48. Design of Synchronous 3-bit Up Counters  Step 4. Obtain the minimal expressions From excitation table, J1 = K1 = 1. K – Maps for excitations J3, K3, J2 and K2 and their minimized form are as follows: Q3Q2 Q1 00 10 0 1 01 11 1 x x x x J3 = Q2Q1 Q3Q2 Q1 00 10 0 1 01 11 1 x x x x K3 = Q2Q1
  • 49. Design of Synchronous 3-bit Up Counters Q3Q2 Q1 00 10 0 1 01 11 1 x 1 x J2 = Q1 Q3Q2 Q1 00 10 0 1 01 11 1 x x x x K2 = Q1 1 x x
  • 50. Design of Synchronous 3-bit Up Counters  Step 5. Draw the logic diagram FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 FF3 J3 Q3 > K3 Q3’ CLK
  • 51. Sequence Generator (Pulse Train Generators) 1) Using Direct logic  Inspect given pulse train  Decide the number of unique states and minimum number of FFs required.  If unique states are not possible with the least number of FFs n, then increase the number of FFs by one or more to get the unique states.
  • 52. 0 1 1 1 0 1 1 1 0 FF States LSB 0 0 0 1 1 1 ? 1 FF States Decimal equivalent LSB 0 0 0 0 0 0 1 1 0 1 1 3 1 0 1 5 0 1 3 5 Sequence Generator (Direct Logic) State assignment State diagram Example: Generate the following pulse train using direct logic.
  • 53. Sequence Generator (Direct Logic) PS NS Required excitations Q3 Q2 Q1 Q3 Q2 Q1 J3 K3 J2 K2 J1 K1 0 0 0 0 0 1 0 X 0 X 1 X 0 0 1 0 1 1 0 X 1 X X 0 0 1 1 1 0 1 1 X X 1 X 0 1 0 1 0 0 0 X 1 0 X X 1 J3 = Q2 K3 = 1 J2 = Q3 ’Q1 K2 = 1 J1 = 1 K1 = Q3
  • 54. Sequence Generator (Direct Logic) FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ 1 CLK FF2 J3 Q3 > K3 Q3’ 1 1
  • 55. Sequence Generator (Indirect Logic) Example: Generate the following pulse train using indirect logic. 0 1 1 0 1 0 1 1 0 1 1 Q3 Q2 Q1 Output(f ) State s 0 0 0 1 0 0 0 1 0 1 0 1 0 1 2 0 1 1 1 3 1 0 0 0 4 1 0 1 X 5 1 1 0 X 6 1 1 1 X 7 Q3 Q2 Q1 00 10 0 1 01 11 1 x x x f = Q2 + Q3 ’ Q1 ’ 1 1
  • 56. Sequence Generator (Indirect Logic) FF1 J1 Q1 > K1 Q1’ FF2 J2 Q2 > K2 Q2’ FF2 J3 Q3 > K3 Q3’ 1 1 1 CLK f