Professional Documents
Culture Documents
5 - DD - All Module DD Notes
5 - DD - All Module DD Notes
65 35
217.4 6
0+
-1 with be moo 1
+0 I -0
1
+I 0, Cany o(
eg
e 11. 110
Tol. I0T 10 00
+ 0 01. 10
+ 0
I00l. 0 o
Sol
0o010 > ' S Compl.)
5|
Sign bit
1 5
10 01 0 o 51
1
Oo o - 51
0
Sign bit t posikve
1 for Negahve
. Express 45 in 8 bit 2's Complemoak dorm
+45
45
( Comp-.))
45 II0 0 0
( Compl.) Ans
NuMBER SySTeM CoNVER SION
Conveit n y 70. syste m to decinmal
210
to decima
eg2: Conven o1.1Ol2
- (Tx2)+ (I?)+ (ox2) +(Ix 2') + (Ix2) +(1 2) + (0x Z*)+ (0x2
16 t 8 o 4+2 + +0.S +O +O.2S
24. 6 251D
Convent 5C to decmal
Ans. w i be v e .
Sino Jhy s Cam
and Jha no. oit be 00l00 O00 + 32
5
. Suwb hact om 26
uSin 8 bits 2's Compl. toT m
Ans 26 +26
5
49 +15
15 I0 1 1 o 0
+2 C
5
- 49
Take this
(6 436.62 4 36. 62
745. 81 a54-18
309.19 690.80
will e-Ve numb
Jhee is Cauy Ansuo es
Sinco
You Know This 80
690.
Convenhonal mefhod numbon ill be 9's Compt. 06
and Jhat
Ans is 3 0 9 .19
690.80_
3 09 9
. Subyac the. follooing mumbe using lo's Complernenmethod
Ca) 2928. 54- 4673 Cb) 416. #3 29 28 54
Sol
(a)
292 8 54 228 54
416. 73 95 83.2 10s Compl. of 4163
2 5!1 8 09.51.8
You Knoud Jhis is Answen wlu be +Ve no.
Stn Ce 3hoe
Stnce. a Cauy
Convenhonal me hocd and ho
ign ove Camy.
) 0416. 73
+707I. 46 10s Comp. of 2928 5
46.3
2 9 28 54 7488 . 9
-2511. 81
Sine Jhee is (NO)Cany Answn i be-Ve)no.
You Know his
10 S Cornpl.of 7488. 19 2511 8
ConVenkana mehocl
Ans is. -2511-81p
TopiC Boolean theorem S input 1
* Corresponding to OR Gate
A +A =A
input 2
A+A= 1
A+ O A
A+1 1 1 + Something =1
A+B +A |Commutahve La does mot depend
mpu posihon.
A. A A A
A. A A
Y
A.0 0
A A
AB BA Commutaive laud doen Tmot depend
inpu po sihon
(* AND is dishibuive.
Distibukbe Louox A.[e+c] AB + AC
Oven OR
*A+BC = (A+ 8) (A+c)> 'oR' is dishibuive
oven AND'.
eg.LA+ AB=A+B-
A+ A) (A+ )
CA+e)
es. LA+A = A+B- AtB
(A+A)(A+6)
(A+B)
A+.
Complement
AND is eplaced by R
OR' Teplaced by AND
îseplaed by '1
s Te plaCod by '0'
Vaviables Ue NNOT Complemon hed
e Rampk
GTiven expre ssion Du
al
O 1
1+1=
A 1 A A+O = A
A A- d A+ A =
AB .A A+B =E B+A
AD 4 A+ A =o A+e A.(A +e) = 1
om preiou elample in
|A+ B B
A. Break he line
change the Sign)
A+ B+C + A.B.C.
AB +CD = AB CD
PBreak he line
AB A +8 change he Sig^ J
. Demosanige (A+B)(c+D)
A+8) + (C+ D)
AB+ a.D
AB+CD
XOR
Arithmeic aBes
X NOR
NOT Ghate
A
A
A A
Concept_Of Buffen:
A (uoith Some delay)
JF Das ses the inpur as TE 7 F WEE
AND Giate
A B Y S
AB
B ABC
ABC
Onc buput
Jhvec. inpu
OR Giate
A B A+6-Y
A
A+e-
B
XOR Giate
A A B
O
A B AB+ AB
Sopye
Only 2, inputs for XOR Giate
AB6
AGD BGC
5+2+8g - 10*818
RPo0peos hies oXOR gote (A GB)
A A = 0 AA+ AA O
A A 1
A0 A
A 1 A
EXchange poopenty A BC A C B
CA
A I =
ÀA C9nventen)
Conhoe ilp= 0, 1
XNOR nate AO B
AlB
A -y - AB + AB
0
-
is
is also Cal led equolily_detectog
9
A O 1 A
Ex chanGe B
PoD penhy AO B= C AOC
BOC A
AO 0 A ( 9nvanten)
A
AO1 A (Buton)
Reduce
9 90 Ho atch
spideimanfmy fiends goes wih
0es
me and como rou0' am s
posponed. Problem stctkmont)
AB AND
2
7iven a Logic di agTam o any Tandom Statemont
CsoP
iotm gigates
(Digital
inputs
A Logic gates
D= AB.(A+8)
A
What is
Achuatly happening8
Given a
PoachCa problem
K- MA Toble
-NOmable 3-Wonable 4- Vanable
CDCD CD
A
2 3 2 3
O O One bit is
changed
O
one bie is
chan qed
0 ene bit is Changed.
Canoniccu
Youx ans WeniS e s
form.|
ONo
wsite douon
C = ABC + ABC
he minteims 07 Maxtenm.
(sop)
m (0,-. =mno,m,, -
Summan Sian)
X What do
yo mecin byMaxtems)
each O Jhe Sumtoms in Shandad O
Caled Max tIm 9 i
foim is
end is denoted by Capita M
om Hen
TTM (o,1, - .
) TlM
(MG, M,, M,.- )
>Procuck Sigm)
Youy Answen ic NO) Uhenonvenk is Standand ofm)
1. Expand A+ B to mintenms and
min/may tenm
LOite doton Hhe
0 Maxfenm s houo? exp Te sica
Shandand fom 0f A+B
HOME AssiGNMENTS.Mintem
2
or
bohk.
Maxterrwm bok.
AnsI A+ B
A-(B + B) + B(A+ A)
A B+ A) + BA +(AAB
AB+ AB+ AT
m 0 , 1,2) mintenms for mu
(Max tem
Missini
ntenm
Ointenms fromJho expressiom are axem
Maxtenmn
At B (SOP form) =
2mC o, 1, 2)
TT MC3
Ex pand A CA+ B) (A+ B +C) to
Maxtem Jhon Mintenn
POs form -
Gum 40nrw
AA B,C is
mis sing A+ BB +
mpor tant
A+B > C is
missing> A+ B+CC
A+ +C No vanable is mi ssin9
A +
BB + cC (A+B) CA+ ) + CC
CA+B+ c+). (At 0+ cC)
=
(A+ 8 +c) (At B+ C). (AtB+ C) (A + e +c)
At e+cC A ++C ) (A+B +C)
ACA+e)cÁ+8+¬) =
CAt04c) (AtB+C) CAt B+ C)CA+8+C ) (A+B tc)Ca
(o o0) (o o 1)Colo) C +
o
o) Co
, 1 , 23, 4, 5
Ans TTM(0, 12,3,4, 5)
Minteam ? Missing Maxteny 2m
m
6,7)7)
6,
K-MAP Step-3)
fill Jhe emties oY SOP form in Jhe K -
MAP
eg f Em (0, ,3, 9)
TM (2, , 13, 15)
-
AAC CD CD CD CD A CD C+ D CtD CtD Veruy
as1 11 A +B mpo
A A+8
AB
At
0
1
A+8
SOP entny
PoS eny
Vony impor ton)
TOPICS TO BE DISCUSSED (Module-2)
K- MAP method Pos fosm)
K- -
CD
+c +C + +C Ab CHD C D, T+ D C+D
B
2
A+B
A+B
13 5
0, 2, 3, 4, 5
TTM
Maxteme H Co, 1,2,3, 1, 5)
Mintenn m 6,7) missj n9 maxtenms
TM (2,6,13, 15)
C+D CD CD L1
A 9
0
ATB
AAB
A
X
NexNext
a[ten fuing he
Jhe enmes
and Yo have to cdo C lub bing poce ss
follow the ord en
8 boxes (ochet) 4boXeo (quod) 2 boxee Cpais)
highea pronty lowe pioihy
. Keduce Jhe expre ssion CA+B) (A+ 6) (A+ B) ung K- MAP
Step- 1 is a variable Coresponding K-MAP
expre. Ssian A and B and
B B
A
>A
A 0 Ans D (A). CB)
A
NoF necon
B
AB Jhey wju Come
A
epual.
Reduce Jhe follousing
nd implement iE using uwîvensal ogie 9
e
A+0
-B0 AB
AD
at 8)
A+D) Ans,
Ans AC + AD+ AB + BD
. Ans
A PS
D
c- D
fos ODihng Jhe fnt
fin Re duced
KeduCed Boole an Cxpye,
ss}on, quoaysS
ime. mpli cants which es senha
Valid.
aime impi cerntS Cssenhal pime impWcan CEP)
>
Non-e sSenhal Prima impli. (N- EPI)
.Reduce. Jhe boolean expve.ssi on
SCA BGD) - TTM (34,S,4,9, 3, M, 15)
A A
AP
Ans A B+Ct AD X X
Cis
AB+ A non-pimo. imp\i Cont
fCA,8, c) TTM Co,12, 5, 7)* d (3,6)
BC
A 0o X O Ans A+C
AD
AD+CD
AB
A
CD
Simpli (y he Boolom 6
40
A)
l+)
AAB
AM (A 48) (B+D)
A+0
. 3, 2mCo, \, 6, 7,
, 13
15
Column-I
ColumnI Column-II
ndex Min
A BclD
Ondex-0 ALBc D
(0,1 0 o0M A BC
1
Sndex-1 (o, 8)
o 0 J 0,8,9)
(1, 9 oo
6
9ndx-2
9
o0 (e, 9) T,14,14, 15) 1 P
(6,7) o
9nday-3 (6, 1)
13
9 13)
14
( , (7, 15)
SnAey 15 (13, 1S R
(N, 15)
Next STEP-
P 9 13 M15
X Columna l onc
An is P+
Bc+
Bc+BC
fle a) - £m (o, 3,5, 6, 7, 10, 12, 13) +zd (2, 9, 15)
Column- T Column - I
9ndex min A 8 CD A 8 C D
A 8CD
Snder-0 0 0 0 (O,2 0 0 6P ,3,6, 7) 0-I-U
Sndax-1 O 0 O0 (2,3)
O o 1 (2,6) - V
6
OloI (2, 10 , , 3, 115)
Snden-a o I (3,7) 0-
9 I-I
10
(5,7
C6,7
12
(S 13) - 0
Srdes-3 (9,13) 0IR
3 C12 13 L O-S
Srdey-4 15 (7, 15
C13, 15) 1
Jhus, P, , R, S, V, V ate Six Pi me mpli Con B
O 33 5 6
1lo 12 13 An P + U+ V + Q+S
AED+ AC + BD+ BCD
Donb inclue +ABC
R X
Don (an
,Key-point
NAND and NoR Implementahons
A
NAND Giate A =A+ B
AB c
B -
Touh able
A B
0
XOR gare A. AB
A AB AA . BAB
B
AOB
B.AB
Ouput o XOR
3ate
(2)
Ho A AB. BAB
A AB A AB
BAB
B AB y
y +
A (AB)+ B(AB)
A (AB)+ 8 (A+6)
AA AB + AB +
AB+ AB.
XNOR 8ate
A D AQ B
TOTa no.
of Nand
acles Yequived O+ 0 +
you do direc + 9
Nine Nand ate
irmnplemunkahon, you
yo ) requ ve
(
in put
nimum no. okNAND gates Tentiva implernonhrihen of
fe llocoing boolean expre s Si on
9f(A e) A + BC
Direct Implemenhahon A 3
AB+BC
C
0 AB+ BC
AB. BC
f AB + BC
ABBC
Touh Table
0 0 1
NOR Gnate as
Universal Civcut
NOT gate A
OR e A+B
. AND gate
AB
NAND ate
AB
XNOR
6A ate
A
B y A
XOR aahe
A An
Kememb ho able
NAND NOR
NOT gate
1 1
AND gate 3
OR gate
XOR gahe 5
XNOR gate
extsa Concopt
NAND-AND + NOT
NOR 0R + NOT
LoGC
CKTS
E LOGIC
CKTS
No Present /P
feedback Past /P
No Memory. Fee dba cK is Jheye
eg HA, FA, MUX ,etc. Memosy is Jhe Ye.
eg
e. Flip Fiop,
Kegistens
Let us
study Combinahonal Circuits Counte1s.
StTate gic
inpuis arange. o6 Dulp utc
LOGC gates
Pgoce.duse to de sign
e sign
denhy The no. 0 inputs and ouwputs
Constuc Jouh Table
Oite Jhe logica ex pre ssion n
sOP/Pos
Minimige ogicad exprassion
mplemonk Jhe gic Circuit
ARITHMATICCRCUITS Rule to be.
emembened
HALF ADDER
0 + + 0
0 Sum bit
Cauuy bib
A
HA Sum CS)
Caouy out Cout )
uth Table
LoGu GAL ExPRESSIoN
INPUT OUTPUT
A B Sum Cs) = AB+ AB A O B
S Cou
-Cov Out Cou) = AB
AB
-S
Couk
HAIF ADOER USINC NAND GATES
A
AB
A AB
AB AB
HAIF ADDER USIN C NOR nATES Do it
Yo urSelf
) HAIE
SUBTRACTOR
A
HS Dif.()
borouo out (Bout)
duth Table
LOGC Ex PRESsioN
TNPUT
OUT PUTT
A
D
D (D) AB+ AB =
A B
O Borouo 0uk
O
Bot)) = AB
A
D
LDo- Bou
HALF SUBTLACTOR
USINC NAND CATES
A AB A B- D
AB Y 7 AB B
Bou= A8
8. Ab 8-(A+B)
Ab
HALF SUBTRACTOR USING NOR CATES Do i Youxsel.
FULL ADDER
A
Sum Cs)
FA
C Coue
Touth Table
LoGCAL ExpaESSI ON
INPUTs OUTPUTSs
A Sum
Sum ABC+ABC + ABC+ ABc
Cin Cou
Sum m ,2, 4,7
0 Sum A B C
Le Conside Ihe A BC
CoUUy ABC,+ ALC + A BC
+
S A B
C Ci
Cous A) C
+Ae
Fuil Adde OR Gaate
Can be Conshu cted by 2 HA + One
A
F Adden
HA
Cin HA
OR Cou
tpa
tpd
Cout
A
D
FS Bomou
in
Touh Table
Lo CcAL ExPAESSION
TNPUTS
Dif Act ABC+ Aßct ABC
A n D Bom 2
m C1,2, 4, 7)
A e C
O
omuo m(2, 3, *)
Beut A@c +AT + A 8c+ ABC
cA@+A@) +ABCc+ C)
C(AO8) + A. B
A
OG1C
DIACRAM IM PLEMENTATI ON F u u Subhra cke
Hs
HS 2 |
+1 0R
pos tan NOTE
Similanto Fuu Alde FS Can be Con
cicut,
USin HS Jhe dis oduUcn
oje
shmucad by
y
is Jhcu Jh biy
P Tpo ate Jh oough Severo gates uhich makas
bib M M
mwMg
Then Jhak Fu L Subacha usiy AOT pd reclo
oic
ODULE -3
4 BIT
PAAALLEL ADDER
CARRY Loo AHEAD ADDER
A2 P3 Panallel 9npuks
A 8
AO Ac Bp
A Cn
A A
FA
Cin
Cin 1 A O Cin
Cou FA FAo
Cow Couk ouf S
Pialel ouputs
Fig. A4 bit binou ponculle adden Circuuut
Operahon A =
A A A A
B
Cu C
5 nikallyo
C C Sa So Ansus en.
adding tuoo bit n0. Ccun aive 2 ouput
Simil aly
erampe
U A 110
O
Couk 10 0 10
e n oih his Ci scwUb
n Jne
OC
paralle q dd ens discusSec above, 3he
Jhe Cav- Oule
Cay-Oul
stage is Comne.cred to
SEage Jhe Cauy.in, 06 Jhe e t Stage.Jhe
each
Sum and he
Covy-bits O any Stage Ccun no t be produ ced,
unb Some ime afte Jhe
Jhis is due to Jhe
Cauy-im 0 Tha Srage occUTS
pop ogabon delay
dlelay n the
he logic CircuFauy
uohich le acls to a ime
delay in Jhe addi hon
A each Stage pro Ce S
Ohe Sum bi is nok valicd unkL a6te
Jh Covuy bits in all Jhe pse ceding Shages are Uald.
9n effec Cavuy biks must
PTOpgate o ipple Thnugh
a s
tages
sEages
s
befoie Jho
befove MSB Valid- Jhus type o addens
also Catled RIPPLE CARRy ADDER
tA0DULE -3 CARRY LooK AHEAD C CLA) ADDER
To poedict
O
the calculakedd
CanMY befose F
achucll
Let us Consicen table
A
Cin Co
O
O
9 Can wite CAB+(A08)Ci
A0 e).
o
Co AB CA B) Cin
CUuy pmpogar
L Cwwy enevao
us Call AB G
(AD8) P
C G + P.Cin
Le uS
genenatize it
C
L
P-A2 A
Co
P AsG B
Cs
Co
5 S
P A,
Cho Ao B Co
Po A E.lL XCheck tho CCk diagram rom beok
Let i O, Cobi+PC
C G,+C C-is
ininia Couruuy ue
Put Value oE Co in esuahon
hode taKen
C ,+ CG+ P C.,)
C G + G +RO C, -(11)
Cs depenclonk on C not o. Co
Similaly i- 2 Ca Giy + C
C G +
C C is dependloak n CC 0t Co, C,
Let us
Consicd en 2- bit Comparatod
A CA, A) A7B
2- bit A B
B(B,9, Compara to
A B
200 I98
FY e ho to Comba ve he masn Of 200 and 20
MSSB O
bom euol
go to 20 Mse
2 .0, 2
boh ant efuad
go to 3Td Msg
2
o , 2 o(1)
201 200
A B A 1-bi t A >B
A26
A<8
B Compay -A D
A =
INPUT OUTPU T
A B A8 ALB A 8
O
O
O
- AB (A7B)
AOT logic
AO (A B)
A A, Ao AoT logic
B B, Bo A
Az
A
BA,E,+(A®B,)Ao.B,
A <B
A,B,+ (A0 P,) A B, X x XXXX
A CWRONC)
B (A,oe) (Ao O B,)
Let uS
Considen a 3- bit Comparator:
Az A Ao
A
, 8
B B
, ) (Ao6)
(A,0 6,)
A,0 (A, B.)
(AO6,) (A, B,)
CA0B,) (A,8) +
A Ba +
(A0 6,) (A ,0 8,) (A B,)
A7B
+ (Az0 B,) (A,6,) +
AB,
(A0&)
A <B
MUX Y ((ouput)
(21)
(21 no. of Seleck linas
2"no. ot inp th
SH So
select inpuBs
2x1 MUX
MUX 8x1 MUX
o
2x1
4:1 8x1
4x1
So
Y-S,To + S So
Y55o +5 S2S
ts,s.T2 t S, S 3
+S2,So7
line aUe Yequre
NOte 1 Seieck
Yo have 5 Input lines how many
a e Tepuivee
Selec inon
y o u have 7 inpu linen
linen, how many
2 Selec
lino=2 4
taka
() 5 inpu ue Can not
1 To Same Osden
4 MUx
= (°,,3 imple menke usiny
CA,8)
8:1 MUX
fCA, 0,c)= 2 (0,, 2, 4, 7) using
1
Y Aee + ASCI,+ ABe T2 t ABcI+ AgCT
11 ABC+ Asc
YABc + ABc + ADC +
Y
1
S So inpuks.
S 3hv Variable, at Selech
AB
Samo OTden
MUX
Le us cdo Jhe Orclen MUX
Same u e s h on ih owen
A,8) ( , 1, 2) using 2 MUx lowen ovden
Table
A
A wiul be 2:1 Y A
adyuslicl
hew
T T
To
6
C Loil be
adiunad
L C
he
So
AB
AnsV
AB
To 1
2
T 4 Y A O 3
A A
A A
wi be adjlLLo
in tho inpuh
. Use a.
(4x MU to A
imple mon BO C. Alse oh 8x
A A
2 Y. , 2,
O
To
2
A
S6
Leh w A A A A
8 C
odj A
A
A
-Y
A
BC
. VSe a Jha
muihplexen haing 3 deurelec inpus
m ple mon
Cogic fev Jhe. uncha
5)
m 0, 1,2,3, 4, 10, 11, ,
T
A S
:1 Y A 8 9 12 1 (
A A 11 A
H
Ler wo
BCD
adjun A in
heinpu 1
1 8:1 Y
A- MUX
0-
BCD
A<--Inpub
B
NANDNAND GATE
A Y 1-T _Y A+ AB
Ym(o,1,2)
A
Table AB
(AtA) (A+ B)
B At8
3 AB Na are
To
21
So
T2
2x1
2x1
Y.
T3
So
S
2x1
2x1
16
2x
I S
SS So
So
(b
21
2x
Y
2
S3
So
(C)8x l ustng 4x MUX ad OnA 21 MUX
So
De-MUx (1xe) usin (Ix2) domux
Desing highen orden
12 Yo
Y
1So
lx2
S
-Y3
So
Ix 2 2
Y
I2
I2 N
S
So
Convets binay
Decode Jt is Combinah ona Cixcult whi ch
Ophpu Gne s
rom m-bits
infosmahon
Genenol diagsamn
O o1O O
Decode
Y
Y
1
28inayto Ochod
taloelo
Intana Civcut o Decale
Aec
ABC
AB
A
A AB V ABc
B 3:8 ABC
AB
clcad A Bc
B A BC
AB
- A Bc
. Design Ful adeden usin Deco den
S(2,44)
Co
8
£(3, S, 6,9)
A
3:8 -S
C
-Cou
Nard gale usint Decode.
. Desig
PICEN CODER (NOdule 3
EN CODER Se
ODER St is a Combinahona Ciscut havins many
having Convenks
inpub (n a") and many Ovlur Lingn (n). St
Encoden
Ler :
: 2 ENCODER
Tu h Table
D.
YY
To Yo
:2
I2
Encodea
NOTE
wih 4inpu, 16 Combinahon
T 3
Y 0Upub
Possible but esk Combinaken (12
aA not used, dont ca
T3 - -lo0 0 0 0
O0 0 0 O O.
8:3 Y
D
Y2 00 o_00 0 0
0 0 0 0 0 0
O 0 000
Loweu Pmon C
Module-4: NTRODUCTON To LATCH 4 FLIP FLOP
OASBorage elemen-in a digital circuik Can maint oin bin ry
State. delivenen to he Cireyih), unti
indeini tely (as long as poo i
Signal edae
CConrod input
Posihve edge triggeing
is CiocK Sig nal)
inpuk
CLK CLK
gnpuk Oupu
us Study Latcheiys
Resek
R ouput
invered oukput
S-
Set LOGC DIACRAM, of SR Latch Vsing
NoR gae
Explanakon of above i scus Set Condih on
LetS= 1, R- O 1=11 cond
0 a She ady State
Nouo, Le us
pu NO change
S- 0, e-0 1 and o a Stecdy Shafe
No
change from pveouo Skate Memcy
pub Reset Conclicn
S nt Qnt Remanks
O oln n NO change Memony
O 0 Reset Condihen
1 0 Se Condi hcCn
INVALID s tafe
XSR LATCH Jsing Nand Giate
Seb
- ouput
- in venhe.d aupu
lat S , 1
G0, -1
at Sheady Skare
NO Change om preious staü > memooy
S O, R- 1
1, : 0 otk Sheady Shalk
Sek
Conclihons
Sl, = - 0 at Steady Shate
No Chanse from pethos
memony
e S0, RO ( @-1 a Steody dal
Jhis is NOT PossigLE> (FoRBID OEN)
oh is he
oallSumoruy
Remank
1 1
INVAD State
1 0 Sek Condi hon
O 1 Re ser Candihen
Qn NO Chonye Me mory)
9 Should be SR Lahh to agvee uoi npu hamn
IMPostant Note
0 Sgna Ho chone
Nand 9ate based SR Latch requien
its StaBe 9 is Some Hrmes vefens an s'R Latch add1 honal
S
9dea L Q
EN
x
Tau Table
Enable S R n Remanis
Posihve eves Latch ( Lakcl (,No Cchanje
iggerno
Laleh
) Latch ()No chore
0 Laleh0 Loleh (0 No chonse
Lach" Lach No chon
LabekLalch y No chony
Reset
Set
Summa _
INVALID
SR larch (NOR) SR Lalch CNand) SR Lakk CNond)
EN -
S
S-
EN
R
R
No
NO Let us COME o D-Latch. (D Stend S) for Dnta
t o anspasent lakch
a l s o Catled
D
Q
DD
EN
EN D na
No change
EN
OReset
1
1 Seb
EN EN D m -
NO change
O EN -
O 0Rese
I 1 seb
new Siate
o
of a Latch appeans a Jhe
Change to
ogic-1. Jh
Oupu while the
Shl achve Jhis OUpu s Connecteð to Jho pulsSe is
Jhrough Jhe Combin ah onal Cicuul 9 ohe inputs 6O he lalck
The lare
hile th Clock
input applieð
Appled to
to Jho
Lotche Change
ne pulse is Sh a Jhe
Ihe latche w to
6esponð to new Values and a ogic-
logic- 1 ved
Qved
occul, Jhe besult me
stale mcuy
Jhe S tate Ot Tho Lachen
an
unpsecGc feuol Oupu
Ouput
Sihiah on
SinCo. my Koop
ClOck pWe Slays at Jho changing
achve. Quel, for a
HOW FLIP FLOp SolVes his poDblem
tve
he
Jhe problem oi h Latches Level Taigged Ve
he Key o he
boopes op erahon o a Flip- flop s Jhat
tetaiggen Jhe Ciscut only a
(SI GNAL EDGE of TRANST ON
A clock pulse g0es Jhroug h tuoo oan sih ons
Symbo
D = O inikally.
LEVEL TRIEROED EN
DA
EN
TULTL
INTROOU CTLON to EIP=FL
C C
R
SR Fup Flop JK Fip flop
D Fip Flop
LOCaiC SYM8OLS of PoSITIVE EDGE TRahERRED
R K
SR Fip flOP D£lip flop JK fp fop
LoCic SYMBOLs of AecATNE EDG6TRG6RLE
Let us
Shudy One by One fotowing Jhing for each
flip-flo P
Y Y
SR TK
D LT
S
S
D na
R CIK
a ) Characletshc Table
(Chava clenshc e)
0 0
0 x
O H S + ,R
X0
(e) Excitahon. table
9 Jhe wavefoom Shouon
Fia be low is applied to a posihve edge
D
DD
- Q
L CLK
C
(a) logic symbol Minoy change Cb) Cisuùt dllagran (Nand toio)
CLK
Input Oupus
D nt On D
NO change
X o memsn
0 0
nt ,D+pD
Chaxa cleu D
CC) Tuh Tabe Lejuaer_d) ChayackeiHea dable
n D
CLK
CIK
K
(a) togic ymbol
Cb) Civcik Biagram (Nand)
next ouhpu
On Onti
CK Inpuks Ouhpu Remank
JK Gnt
XX NO dunge /memey
2
y3
TL00 QnNo change/nmemng
Reset
Set
n TOLE
Characevisic
equav Onan J + , K
=
O O
Cn+
(e) ExGrai on Táble
The wavefoxm iven below appied to a edge- tiggevmed ip-fop
JK. Draw Jhe oupu 0 avefoDM
ler iniially 0
legakve
CLK M
edge
(a ogic ymbol
D 9
b)Cixcwt Diagram
CLK T
T Gn
X n reou
o
1 1
O 1
Togg
choyac e": On+ ,
e)Tuh Table d ehaY ac leisht
T
able
n4T
O
1
(e)exdilaien tabte
Nastes- slave UK fiplop
Let us doad he circut diagram and
gie Sym boL f JK fup-flop
Touh Table
K Qn Remanks
Prevos State
CIK 0
n
Reset
K
Set
ToCCnlE
Level rggerd
NoE Race
arourd Condi Hon Rao aound
Condiw en
-0 ini ally
his is
not
S is Rocingtoggs
ON
ON
How to Solve Rae nound Condihon in JV ip oP
J
CLK
Circuit diagrom
Maste lawe
J Q
ClL
K
Logo symbo
Masten- Slawe
tip-f®p oTKing
+is a
basically Combinah'on o thoo
in
TK
K fip- fop
fip- flop
Sesuen
Conneced togehe
One acks
Combinah'on Ou
Out ok
ok these
these
Masten and ohon
act a a
Jhe oulpu o Slave
Masten s
O he uootwo inputConnected
Slave Jhe
ovpuy o6 Slave input
input OFMasten isfed back to the
flip-ftop. Jhe cio CW
Clo C
Connecled fo Masten Lohenea, pulse
pulse is
Conne cled to Slave
invenred Cloc pulSe is
Tmina diagsamn Masten- slave fiip flop (T1, L-1)
CIK
&
Hene Raco
Hene, Kaa around Condiin s eliminateed
0
loPLC RE GiISTE RS
egisteys te uSed to Sove goop ofbis
1 bit Memo cell
egistens Qvte Can cading of (flip- flops)
To incvease have use
Jhe
sBosage mpacily,
Storage we to
roup ofp-ap
Gisoup f fis Knouwn a Registen
fos 4 bils dala Stomge 4 flip- Flops oil be used
for
for 8 bis dala Stovege 8 fip flops oil be used
Sn gene.v,
or n-bit stosage N gis FF s1s Tequ red.
Classikicahon og Kegistens
iDeperding upon inpu and output
SI SO 'Seuial In Seriad Out
SIPO Seual in Pascullel Out
P IPIPo Panallel in panalle out
PI{0 » Panallel in Seyal 0 ut
SISO
SIPO
Daa out
Data
Dahin Out Dob in
Pi Po PIsO
Datla dut
ZZ Data out
Daa in T 1T
Da in
Depending upon Applicah ons
Ohan You udont Your daBa to shigt
Shit oe gi sten s
Seual in
Senial
Din D D Do Out
FP2 FFO
CIK
DIn
l
o 000 lo00 o0
|T R
Singte conduetr Seal in Sealal out
Louo CS
1S CIK 1
0 O
grd CIK 0
Cl 1 O 1
*Sn Serial In Senicd Out, g O Q,interad Oulpuls
tex 4 Cloc pulse e uoil gek only n extennal oukpula
tWeneed Move Clocu pulse to ge my dala out
dnadback
Can be Solved by
Da Do
9
FF F >
Ffo
CIK
Panallel bulput>
03 Do
Ff FF
T Pfo
Parnalll oupu
XOnly 1 CloC puhe s
Yeruived fast dala Shoveuge
(SHIPT REGISTE R C Panalld IN SERIAL
Panalls Out)
Panalll in
Bi
Shit/Load
Do Seniad
FFo t
t oup
CIk
Thee aJo too mode in uohich this C Can wOTK
oeuenay divide
Time1s
lo e n e nte
3, no.
o t Gip- ftop= 3
max imum 6 Shtes N 2 84
Sates
Mod- N
Countenn
Ovhpul 0ovefom
inpu requne)
o appied tawefom
Mpd-N Mod-P
Counte (oLn NxP
Depending upenn Clock plses pplied Countens (UC 6
C6
Aype
ynchonous Counte
A synchonou Counten
CLOCK
SYNCHRONOvs AsyNCHRON0US
.
Aflip-flops applied oih
DilenonF FFs ae appl'ed
Same clocK ih difforenF ClockKs
Faste Slooes1
Any Coun Sequen Con hixed Count Senon ire
be
designed Up and doon Counrex
e RING CoUNTER
RIPPLE CoUNTERs
1JoHNSON CoUNTE R
Jhus2we ae
going to S
tudy
to all flip-4loy
> cleck is no
ivcn Simullaneounly
O. (3 BiL AsyNch donous UP Counte
om 00ej to
Stant Ccuntea
we oit
Count fon highen
(A)
KA
Fi
Fig. 3 bit
Asynchwnou Up Counte.
CiK
1s dong
w Jub o
A iS done
A
L
000>001 0 l0 o
imad
O 1
ival 3 4 5 , 6 P
M3 N 8 to to SBate om 0 to
Maimum Count
XWe
4 Bi AsyNCHROnNous CoUNTE Rs (UP)
Can usc. T-fip-flop also inshecd o JK fup-floP
(LSB p (MSB
1- 1 1Te 1To
CIK
Oo00
Oo00 (00 oL
0L00LO 0oI 0 10 0ol0l OL II00ollooo lood LoLo lo i(loo.
01>2 ,3 S6
67 89lo1 23.
14 15.
N-4, N a a 16 Stue.
Ymaximun Coun vpo a-I »
- 15
pom hiqhe to l0we
MOD-8ount 3 Bit As Nchono DoWN ounlet
Counte
Jheie ae 2
pussible waus o design DOnN Countes trom UP Counte
1 ay Counte outpuls
TA
CIK Te Te Ge
OR
2rd
TB Te
CIL
Counte oupus 7
CIK
UUririi
ee
10
dOun COunfes
Asynchroun
. Design | MoD- 6 Counte using 3 bit dipple bunten
O10 2
sae
LO1- S
t design he Counten
Qc(MSe)
1 -JA 1 6 1
CI
Ke Ke
CiR
eLA
Qc
3bit Asynchrow (sippl
Counte) wi Count
Shas
0 9 don 0Cnl Jhis Acte
How Desig
Design YNCHpoNoUs Couen s
Synchoncua
Counten
CiK
XY have. to follow 4 s eps to nd out mput value
ExCitahonm table f Ff Stae Diagoam
GnGn+ JKK up tountest
X s sep 00
X
xo 3ra
st
( 2 bit
4K-MA P
NexF Shok inpu inpud
Prenear 24
shrul
O x
1XI
1 O
2- 1 k=|
Fincd CiYcit iaqoam
CK
1
Note: O6 tha above
Yo You want to desia doon Counte
example 3hen Jus Chongethe di in S a e diajre
(00
(2 bit
Stat
(o1
10
doon CounBes1*
Note 1 Yo Oant to design 3 bit up or down
Synchronou Covnte Jhon folo Jha sama Po Cod
pruod
000
- ou)
No,
Now, we wi shudy tudo Specia oynchronDs Counte
RIN G CouNTER
OHN SON COUNTER or Toisted Ring, Swich tai Counten)
(O RING CoUNTER 7
PR
D2
Cl L
Oveniding
inpul
ORI CLW
&,
oU X 1 0
O1 00
o 1 00 unique Stun
1
1 O
1 O
(2 JouN SON CoUNTER
s also appli cahon O6 Shi egiste
NO 6&
Shate (N): 2 n 2x10
2 of fip. 6tops
D
Do
CI
CLR
La
CLRCLK
0
1
0
1 1
1
8 States.
1 1
11
O
1
O0 again Stanteol
S