DSD Module-4 Notes
DSD Module-4 Notes
X Registeas
A colleeiion cl lip-flops in cascade is called a 1eq7ste
Shif t
Rcqisiens a e used to sioe daiain a digiial system
siored
Tegisde2S ae capable_of mavinq 0Shiiiing the olata
inAhei7 flip-flops ineither direcdioo Shidt cgisieas which
canshiHL dala in büBh directions are_calledbi-dizectional
dada in anly dizecdion ae
while those_whichc a n shidt ane
heir shilj
called
called unidivediona Shift egistens are classikied by
disecdion capabiittes We have Serial in -seridl outSerial in
pardllel ouE_parallel to -5eridloud 2 para llel in -parallel out
egisters
*Serial-in_paallel-out unidizecdional
ParalleloutT
shift zcgis ter
Seaial
dada fn o D D
clocK_ C
C
9 -
4-to-1 4 -to-1
Mode 4-101 4-to-1
MUX MUX S MUX
Control MUX
T
Serial input
Serial input
for shift
foTshifL
Tight (5TR)
left(S11)
T
Panllel inpurts
0 0 0 0
0 0 0 1
0
0 1
Q2 0 1 0 0
0
0 1 1
0 0 0
0
1
0 1
ep
Count enable 0 0 0 0
etc.
(a)
(c)
Count
pulses
LUTTLUUUUUTULUN
UL
T:..
Tme
(b)
Figure 6.31 Four-bit binary ripple
counter. (a) Logic
(c) Counting sequence diagram. (b) Timing diagram.
Ho tha o
whose cOuningseguence coiesponds
Cownters
LOunier5. The modulus
n u m b e r s a r e called binary
the bioary number _oi flip -dlops
is2wheze_nisdhe
O a binany tauntez is implemended with
-c0undeY
tour-bid binary up
inthe Laund er A7ansiion
e
-4lop. Each posiHive
positive edge trigoezed T 4lp ccauses dhe 4lip
om logic0 to logic1L
on the C Eeminal
lop to ogale to each fKp-lop
is input
the
lhecouot tnable signdl flop change
is logic-1 the , ilip
wheo count enable signal
edge od a count pulse, The L0ntYol input
Sdade on each posidive comected du tht Oud put
le c o f the vemaininq itp-Alops s
o i t spevious-0rder flip-Alop
is assumeol to be iotially in its Ooo0 siate
he Louater
enablc siqnal is logic-1 Upan the occunrence of the
4the Count changes to_
posidive edge adHhe firstCount Dulse the ,4tp-4lop
Output ierminal gaes 1om logici do logic-o
ids1-state.Since G
nat afected by ihe input pulse The state of
Hhe lip-flop Q,is coun t
is aow O0ol when the p0Sitive edge of the
the (ountey
+he Q, ilip-{lop is again toggled. This time it
pulse ariyes, Ho
0-stateSince d, outpui goes fom logïc.o
edurns Ho its
ecge occUTs at the (onirol inpud of the
ogic-1 a positive
p4causes i to toggle lhe chang in state o the G_
4ip-flo
not affect Hhe Q, {lip -flop_Since a negadiveedg
p-lop does is oolo
Now the state of the Lountez
Octus at ids coatrol input.
countpulse ccugS only Ahe Q, Alip-Alap do change
Ihe third posidive edge of
coun to become ooll, when the
Statethe
Ap-flop eBusns do iis 0-sate
HheHourih pulse _occuYSthe G. termina
positive edge to OCcuy dt the G,_
hiS_Causes a
ids 0-siate I o
i t o g g l e d e d u n i a g id to
Thus 4p-4lop
p-flop chanqes
ids siadethe 9,lip.
addtion when dhe
Tug o.
lop is t0ggled by dhe logi.c-0 do logic-1 Dale
Hransii on appeainq a thc -Oudpuli
terminalThe countey
nou stores +he hinagy numbey
0100. The binay oundinq
Sequeace cominueS uoiil the count l ' s 1eached, Ths
A that 4imea count pulse (aus es
dhe {p-flop to veiun
o is 0-state This i0 tua, ccuses
he 4li p -4lop do_
edun 4o ids 0-stateA Conseguence o this
ch ange tauses_
the ip-4lop to 7ehuno to ids 0-sAate
4Ainally Hhi s
Change redUTaS the QAp-4lop do its0-state. Thus
ht
SAate o the LOunteY bt(omts 0000I
Urth ey_ Count
pulsesaT applied to Ahe cauoter.then it epea4s itS
LCoundiaq SeOtn ce
EDHT C
Count pulses
Ti 4bis
4he louwey -0ide lip- lops_ave in thei 1 sdades
LOndidioo sadisieSthen dhe fip-4lop i09gles upon the
OCCUTTence
incunned
re applied d'nectly Ao each Altp-Alop the only delay
bed he_applicadioa a count gulse & the availabili4 o he nte
Lount oudpud i sthe pyapoqadion_delay fime of a Alip Alop
Counters Based on Shift registers
The couoters based on dhc siudure of Ahe shiit eqiste
Qc OD
Count
D 10 0 0
01 0 0
pulses 0 0 0
0 0 0 1
10 0 0
etc.
(a) (b)
Figure 6.37 Mod-4 ring counter. (a) Logic diagram. (b) Counting sequence.
D 1
Count C 0 0 1 1
>C
pulses
ep 00 0 0
etc.
(b)
(a)
sequence.
Figure 6.38 Mod-8 twisted-ring counter. (a) Logic diagram. (6) Counting
Qc 00 90
1 0
0
QpQc
D
QceD
D
Count
C C C 0 01 Qplc
pulses QceD
0 0 0 0
etc.
(a) (b)
Figure 6.39 Mod-7 twisted-ring counter. (a) Logic diagram. (b) Counting sequence.
O 1
KAip-flcp
00 X
X
*D Aip-Alap
D
TAp-4lop
*Desion oia
Synchyonous counters
Destgn o a
Synchronous Mod-6 counte
using clocKed JK
SHep 1 Number
d Atp-ilops
Fip-lops acguio ed tguioeddo build 4he tounde
Here N: Gac22>N
0c2' N
2 ,6
.e thee fip-lops 0:3E
ae
coui ed
stcp2 ExiHatton 4able dor JK 4lip 4lop
XO
X x
xX X
X
Fo JA Fo RA
9A000 1 10 o 1 10
O
xX
For Ja Fo Kp
A00 ol 10
o X|x o
0xx
fo Oc Fo K
O0oLI10 g00_ol 10
Xx
XXX
S c
BA
clock
Design_oi a Synchronous Mod-6 oLunie
Usingclocked D-{lip-flopP
6
2 6
:3 e dhee lip-4lops ae cquined.
O
O
DA A gc
Fov Dc
Gn000 l0
D O
clocK
1 0
o
O
X X X
A 00 0 I lo 00 o 10
oo Do
xX
ForcG T1
step5Smplemeo dhe (oumder
A- 0gict
TA A
clocK
x |o
Step 3 I7ansition 4able
A S9 SARa Sa RsSe
0 0 0 0A10
0 0 o 0 X
x c
9Aa SA RA SRaSR
O X
X
X X X X X XX
O0 0l 00 0 10
o0To ox Xo x
X oX|X|
SA g c RA 9
Fo SB Fo7 K
A oo o 1 10
oOC|o X OX
x
Re s c
Foy Sc Fo Re
B
OO
Do
G6 SB
clocK
R a c e _ a o u n d _ ( o n d i i o n
fhen the
Io a JK laBch_when J 4R are both high
toggles_(oiinuouslyThis
condidiaa is cclled_a ace
J-
Propagation delay
sequential_cirruits
*Comparison between combinaitonal&
For U For K
00 0
ox x13
x i|o
K:SS
For Jo
For Ko
00o 10 00 0l_
K
JmplemeHation
Design a synchr0nous cauotey o s9uence
024 2 6 0 uinq posidivc edge igcred S p 40ps
sol Thtre are fixe distinci states hence thite Alip-4lops
aye ne9ired.
000
(Tto (l00)
Enilation Hable
Cellno eseni sdad e Ne SdadeFip-ilop iauds
00X
2 X 0 X
3 0 X_X XX XX
00 0
XX_X
6 O 0 0 O X
7 XA x XX X
R-maps
Fo7
ox
S4,
FoyL fo R
O0 ol,110 , a0 oL 1,
R,
For Ro
ox1x
Implememation
UL So