Tải bản đầy đủ (.pdf) (28 trang)

Thiết kế mạch bằng máy tính part 10 pps

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (557.45 KB, 28 trang )

Nhu
V[IV
bt)
giC\
If!
thl!'
nghi~m
phal
hi~n
l,)i
h/O
EI
x = L y =
O.
11
=
I,
\'
=
1.
Chung
la
xel
tl(p
VI
dy
lim
YccW
gl<l
If! Ihu
Ilghl~lll


phal hi¢n
k)i
hil!l~
,,(j
<;-01-0
tren
duo'll,!;
fjj() d6i
vO'i
m',lch Irell hlllh 8,20.
I.
ill.
DU()"[jg
lill hi¢u I
dU\K
gaJ1
gia
tr!
l),
h~ll1g
dai rallh gi6i
j)
han
g6m I
G3]:
2.
Bl.
Vlli
giG
Ir~

dU()'llgj btuIg
'I',
phCpl()(in
x~ie
dinh
cttU.l
\':10
eho
la
"i.1
tri Iren
c1ulH1!!
('
hilll"
'I'
V:I
suv ra duo'no
('
I1h.\n
"1,i
Iri
b.II1"
'0':
L'.
~
e _ e
_~,
e
3.
83.

/\p
dL,ll1g
ph':p suy dicn ta
I1h,lll
duoe
gia
Iri
tn~n
c,ic
dLTcJng
g,
Ii.
f,
I,
k,ll
nlllr
<;au:
g =
I.
h =
I.
1=
1.
i =
I,
k =
O.
n :: 0:
4.
B-1

Tlmc hien
Iru) '6n
f)
qua
ph;iJ1
tlr
(;3,
cht:ing la
llh~tn
duo\'
trcn
c1uc1ng
i gi;l
In
[)
\';:1
tren d gi,i
tl"!
'0':
h:ll1g
dO'i
r<lnh
gilli
/)
ehCra
I
(;6
],
5.
il6. Do (hrong lin hi¢u i kh6ng phill

EI
d:iu
ra
nCll
chung
1<1
quay
i<,li
hLfO'e
B4:
6.
B-1
On
gi(l
If!
Ir~n
<luling tIn hi¢u k hilllg
'0',
cho
nl-n
chling
I:>
klH'lng
Ihc
IlllK
hlen
\'l¢C
Iruyen
[)
qua

ph,i.n
III
(;6.
~hl
kh,ie
hi:lllg
dO'j
r;lllh
&16i
D I/mg, dicu
n;\',
(!;'m
t6i
k(1
luflll [l)i.//()
1(1
16i
du'
thila.
Ta
e6
the
Ih,\y rtlllg
:-'If
dung
IhLl(11
toan
f)
ehllllg la
c{)

the
;dc
dpill
(liH1C
m0i
b()
gia
Ir\
Illlr
ng:lu¢1l1
l1c
tim mqi loi
h<'lllg
s{)
ell the phat
hi~11
duue.
Them
V;IO
do.
Ihu~lt
tmill D ell
the
\11(1
r(mg:
dC
CIP
dung:
<;aug
e,ie

tnt)
hlllll
[hi
khac.
3,
Thu;.)t
toan
POnE~J
( Palh-Oriented Dcclsinn
Making)
Twng
thu;lt loan
I),
(tiu tlen gi,i
11'i
[)
dWK
dna
t6i
deiu
1'a
ella mach
htlng:
pllcp Iru)'en D .

au dll
dung
ph~p
ttxll1
xac

ctl11h
d:iLl
\":10
de
11111
gl.t
Ir!
Iren
de
deiu
<10,
Neu
h.hi
x.le
dP1h
gla
Ir]
driu
\'aO
g.)p
1Il[11l
thutlll thl ([lLrc'
hi~n
quay lui
\,~I
!l.ra
ehl,lll
du-i:ing
IruY~l1
D kh,\c

tere
[il
Ill'
bu6c
B7
ella
thll~ll
tn,ill
quav
1'.li
bwk
13-1
Trung tnrlJng
IH),p
g,~p
nhlC;u
m{IU
thUitl1
trong ph('p \.:\c
dP1h
dfiu
\':Il1.
Illbi gian
ll''lng
h(.rp
\'Ceto'
gl,i tri
klClll
nghlem
t;1ng:,

'v'
f
duo
nhu
klli
xU:lI
hi¢n nillel[
phi.i.n
III
XOR
[rong:
nwch.
e[le
than lac
truycn
f)
kh,\ dlill
gian nlurng
vi~e
<.ip
dung phcp
IOiin
xae
d!llh d:iu
"an
linl'(1ilg
h;1
lillie kh(lllg
273
lil,11l1l

,,'Ollg
\:1
qu,'i trtnh Illly":'ll
IJ
ph;ll (jlldY
Illl
DjClln~IY
1;'1111
cho
\'I~T
kIll),!
Il,'P
h(')
~L\
Hi
lilll
Il~cilll'll1
h;lIl~
liIu:,11
IO,'lll D phdl 11('U
11111
Iltl'lll
IlII1'-'lI
th('l'i
g],IIl
Dl; Idll
t
\
IlJ~'U
qua

l'lld
qu,\
Irinll
IruyC:II
/)
\';1
X,lc
djlliI
d:lll
\'i\(),
lIeli
Ifllll
loi
IIltemg IJIlh
11lI(lng
lb
Ill'U
In~ll,
lrong.
h.y
liIu,}1 Ihu,'l'Ilg. slr
dung
plllWllg
pldp
PODE'I
Tr()ll~
pi1u()ng ph,ip
n;IY.
khr
lime

111l'l1
quay
lui
1<1
dlll1~
Illt'l
111'-'
didl
Lhuycrl n)lLIOc'
Chllllg
1<1
c/l
Ihe
tllllh
11:IY
ng,ln g()11
lilll
{tiC
dieh
ehlly,,~n
ngLf\I'C
nlH(
~,lLI,
(ira
IhIe'(
lilllg
Ir('11
dll'(m~
lin
IHl'u \'lhi\YII,:\]1 ),.'i,ilri

\',
T;,11
\'i
Irf
dLJ'(,iC
d'llll!
nil;ill
li:"tU
lien
lill
dUll'llg
lill
hi,-'lI
.I'
lILhiC
g,in gl,i
If!
I',
dning
1,llua
CIJ(.lll
mil!
dlfi!ll!;
d;-in
lh,'o Illf(l-l1g Ill'j (btl
\,:10,
(il;i
II'!
llU
nll,10 du\!c

d;i()
h:ill dl
qll,1
nhCJ'Ilg
phdJlllI
h\ll
:\X'\L),
\'Ol{,
,'\'()l',
Tron&-
qU[1
lr'll1h diel!
CllLlY~11
11~211'IH
__
'
Iheo IlIi)1 dU(l'llg, g],i
II'!
nll;lll
dLfne
Iruy(:n then
hU'{.J'llg
ILl'
(I<\u
ra ella 1l1',ldl I,'ij
die
d:1lI
\:10,
])\)
lki

(ill]
n')'j Illllt-I1g
pldn
ILl'
ell
llhi~ll
ddll
\il,),
clllln,::.
\;1
l':111
1111'-'1
phdl I
Lt',1
dlOn
de
dLfllllg
\':l()
tU'lfllg
ling
\'(l'j
de
Ill,~lt
IL,ra
CIH?11.
!\Illfll&
dlril'll!,!
till
hl,-'U
! h(lllg du\JC I

Lt',1
dH,l1l dlt'lfC
dUd
\:I()
h~lllg
doi
qu,ly
lUI
\'i\
~l'
dU(lc
~lr
dung
Irung
qu.:i
Irlllh
qU~ly
Iu!.
C:ic
IU,)1
Il,rd
ehml dll'(\llg
till
hil'u
\:10
C()
dallg
Illlu
,~,lll:
ll,it

IL(;ll'lll,lJl~:
I)
Ll,fd
ChUl1
dLt'('jIl~
tldJl
~:lll
lLllI
\';1(1
nh:l1:
2,1
:<";0u
;.cid
III
CI'I;III!J;l11
b,-Ill!,!
'0',
eill-Ill!,!
tet
IiL)
chull dLu'ing
IlllyCll
1:1
d,w
ra
ClICl
ph,1l1
III
:\'\D
110<'1,,'

!'\()R,
0,'('1l f!.i.i
Iii
ella n!J:lIl
h,-Illg
'I'
el""l~
I"
I""
dh'"
d""Jl~
11U""
I.,
,[;,,,
'"
ell;] OR I,,"'e
;q.'\IJ
Tr,-'Il
ell
,>(l
CU;I
lhu
tlll'
dkh
CiJU}L'1l
Il!,!lJ('C
ll(ll
Ir'::'11
\,1
IU<:l1

:a
Ilia
dl\,lll
dU,'ill).! IruY':::IL
thu,-II
1(l,il1
]lOUI·:-"l
C(')
Ill":' dutl'c
IrlIlh
I<IY
nlm
,>,lll:
Thll:11
to,in POJ)Ei'I
I,
Trollg
1;:1]1
hop
e,ic
kll.
IU<I
l'i]()11
Ihi
h:lllg
'>Ii
clWd
'>Lf
tll,lllt! ,\'-(/-\ trell
dw\ng

Iln
hl,-·u
,\
1:1111
clIO
dw\n!;
lin
hl":u
nit,:111
~l;i
Iri
I' - ]()i
.1'/1
Trl'Il
dll'img
,\
Ihi'::'1
Lljl nil;!]]
I)'
\'~l
dUd
\'iIO
hill1f!.
dl.!1
ral1ll gi(l'l lJ
!lilting
phjll
Itf
nh,'111
dU('illg

,I
I:un dilu
\'~l(),
:"J(;u
h.h(')!1g
6)]1
It'll
lrong
I;IP IHlp
l<ie
Itll.
,-'hllng
1,1
dLI'll.'.'
lju,i
IJll1h I{lng htl'p hi) .'!i:i
1rl
thlf
Ilghi\'llL
Trl'll
dlJ'(\ll!,!
lin
hl~'lI
\,
Ihl,fe
hiLII Ih,tOI,ic Ihil:1
1:'ljl
/)'
\';1
X,'IC

dmh
c,ie
gi:i II'! d:ill
\';\tl,
'Jell \l!,\1 Itic'n h.]w lI<lllg iIr,\
choll
dlft\ll),! d,lll.
~lf
dung
IU;~II
:a,
nhCrng
rh~\n
Ilr
clm
I'-,Ii
si:
du'l.)-c
dua
do
h:l!1g
ltoi Ihic'l
L\p
phl.lC
\'t,l
qU:I
Irlllil
qU'-ly
lUI.
~.

Dhi
\'('ii
nhu'ng.
glci
tri dilu
v;\O
nh:uI
elll\iC
It
I'
k0-1
qu.'1
liluc hil'l1
tit.\O
1.le
Ihie'l
h~p
D".
chung
la
Illl.fC
IlI':n phcp
_~uy
dil:n.
4.
Dt"ii,
l1i
gia Iri d:lu
til'l1
lrong himg

dU'i
r<-lol1
gi('ii
n,
chlll1g la
1l1uc
hi0n
phcp
lruYCI1
n.
Phiill1lf
nh~ln
II0'p
thm
tHlng
pilcp
tfu)'cn
J)
nl1;\o
gi;i
If!
f)
1' 11
d;lu
\'iIO
(hll)'l'
dlla \,;lll (till hilllg
dU'1
rauh
gll)'i

n.
Tl'llng
gu:. Iflnh
IfUYCll
f).
ne'u
dn
thiel
ph;11
I~ra
chqn ph:in
III
Ir0n dUlillg
CUll
11l:11l
Ulill.
Chlll1g
ta ,ip dung
Ill,)t;lB.
Th{)llg II1Lftmg chl'mil la
dl
liI~
Slr
dl,lng
ILl;~t
B lrong Ihuill loan
L>
1;1111
IU(lt
Jl3

clla
I!lU,:11
to,in
PODE]\.l.
SilU
khi
dJ.
ILIa
chon
p1l:in
Ill'
Irl'11
dU'i1ng
Iruy':n
[)
\l\-j d:iu
fa.
dc
ph:lll tll' c(m
h.lt
dLflK
<ILIa
";10
h2mg
dl/i
r<lllh
gl(li
D.
Trong
tnri:),llg

ho'p
Ihal)
I;IC
Iruycn
j)
l(ji
d:iu r

kh6ng thc'
k0'1
lIllie
dU-(.l'L-,
chung
ta
~U:
dt,lng
pld.1l
Ilf
IIC'p
Ihen lrong
h:Ulg
dl)i railit
giCl'i
D. :"ku
hi\l\g
d()i ranh
giCii
D f6ng,
16i
dlfl,l'C

COl
1:1
j{)i
du'
IhLla
\';1
"i~e
IIl~le
hl~ll
thu.~1
tmin duqe
quay
li.li
bu'o-e
1.
5.
TIwc
hi~n
ph~p
suy
dien.
6.
TIwc
hien
tliu
Il,le
dieh ehuy'0'n
ngu't,)'c
d6i \'6i nhli'ng dUllllg lIn
hiL;u

I]"cn
d6
gi;i
If)
(Hiu
]"<1
clla
de
ph[in
Ill'
duo'c xae
dinh
cbn
C:IC
gl:l
11'1
d;i,lI
\'~\O
chua
.,ac dinh.
Trong
trulmg ilt![l
dn
thi0'l phai Iva
Chl.ll1
elUting
tin hi¢u.
chung
1<1
Iht,l'c

hi¢n
I~ra
ehqn
dllll11g
Sll'
dt,lng
lu,H
9
l\hiIng dui:mg
lin
hicll
d1lra
dUlK
I~fa
dll,lll
dLl\iC
(1\(<1
\'ilo
hill1e:
do'j
l[uaylul.
7. Tlnl'e
hi~'n
ph":p
suy
dlcn,
sau
klti
(1;-1
g;ln cho

eic
(hill
\,;10
ni1Cfllg
gla
In
nk'in
Ilh,)n
duoc
ILr
phcp qUil:
ILlI.
Kicm Ira tinh
MIll!:,
It'tll ella gi.i
Iri
cLlu
Cllil
nhan.
t\"c'u
kh,'l11g
nhilll
dL]'(),e
gd
Iq dting,
dlling
ta
kiL'lll
Ira t[nil
MIlle:

dilll etla
1;1.1
tn ngh!ch
(bo.
;-"ku
vice kiclll tra glii
Ir!
ch.)
kc't
lIU,'1
dllng,
Chllllg
1<1
ellllyc'n
~ang
hUlk 6
\,;1
~lr
dung
lhflillg
IIll
hl';u
d£lu
tiC'1l
lrung h:lIlg
clui
quay
luI.
Trong
lru,('-mg.

ill)'p
"ICC
kicl1l Ira
eilu
\ 0'1
qU,'1
sai.
nlHI
\',)y thao hie tru)'cn D
16i
d;ttl ra kh(lllg
thL'
lime
hl~n
(hrq'c, dll'lllg
\,[
quay
\'C
hutl-c l
8.
N0'u
16n
tai
dU(lJIg
dm
phcp
thl,l'c
hi¢n bu(fc 6,
Chllllg
ta t!llrc

hl~'!l
L
,'[\
bu6c 6
\"i:t
hLl6e
7.
9,
NL"U
gi,.i
Irj
1)
\Cl'i
duo'c (ttu I"i\,
hl~
gia trj
lUU
\'tlO
nhrlll
l1u\1c
s0
hi
\'ccto'
gl<l
tri Ihu
Ilghi~l1l
d~
pilal hi0n
ltji
sll'

\'tl
eilllllg la quay
L_.li
275
blr6\::
I. Trong
Lnrimg
lWp
Lhao
1,1e
lruyen
[)
khhng
Lt'll
lhf()C
d:iu
r,L
cilling
1<1
quay
L.li
hu6"c-1
Ch(\ng
1.1
llllnh
Il()

Lh\l~lt
10;ln PODEl\l qua mach II"':n hlllh g.21. (;1:1
276

1Ilnh
s.:!1.
\l!niJ
hoc!
tlHlilllo-ill
PClDL\ltnlllf.
\'IL'C
IUllt:
1){111
!21-i
In
tln'r
IlSI11':lll
ph.il hi(:ll
Ii)]
hall!,
~()
HI
/
lrl'll
dlflJng
(f
(fi/.
,
IhiC'L
n\ng
lrong
m:.lch
:\u:il
hl¢n

!6i
h,\ng
~6
s-u-J
LIC'n
(hf(-ing
a -
a11.
T(;ng
h(.)"[1
WeIr)
oi;i
tri
kiC:m
nnhiC'lll
~.
~
.
d(ii
v(li
16i
u/
J thL'o Lhu:II
1()(ln
PODEl\l
dUne
Illl.fe
hi~n
!llnr
~au:

1)
nl.
(i,in elm
dUll"llg
(j
gi,i
trj
D, hilllg
(\lfi
ranh
gi6i
f)
s~
chlra nh(rng
ph~in
Llf
~au:!
li2.
(;1
I:
2)
n2.
Dc
du<\ng
lin
hien a
nh,">n
giCt
t"
'(1'"

ehllng la
e,'llllhlC'"L
dU'iillg
lin
hicuf"i:'
g
]}h,\11
glil tri htmg > J
';
~)
rn.
Thue hi¢n
phL'P
"uy
dl~'n
dt'li
\/Ij
duim~l.
f
\';1
g.
ciJLlng
1,1
nh:lIl
dum'
hai duimg lill
11Il'UIr
\':lil'llng
Ilh~.ln
gl,i

Iri
'J-:
-t)
H-J
Tlllrc
hl~lllllallluc
Irll~'cll
f)
qua phfin Ilf
(;2.
chllng
1a
011(111
dU\iC
gi,i
Ir!
dll'(~mg
h
=,
D
\,~I
dU(l'1lg
I
ph,'li
nh:1Il
gi'l
tri
'I'.
Ttf
d{l

:-'1I~
r,l
h;lTlg
dui
r,]1111
gill'i
J)
s;:
ban g611ldc
pkin
tlf
I
(;6.
c;~
1:
:'I)
115,
/\]1 dung ph0p
\l1y
dicll
1(1
nh,:111 (1U'oej:;;
/.;
=
'1
': / =
'0',
1/1
=
'1',

Do.l
1:1
eLiu
do
CUd
llle.lell
1]('11
cal'
bu6\.
ILl'
hUCK
116
den
Hi')
cua
Ihl1(11
\o,in PODE\l du\Jc
h()
qU<!
\':l
chung
LI
sang
hu{1l'
B9:
6)
nlJ,
Do
ehrll'llg
tin

hH::ll
h kh(lIlg
ph;'lI
IiI
(!:ill
";10
ella mach.
Chl'lll!2-
la
ehlly0n sang
1'.11
budc
B-t;
7)
B-t.
Thue
hi~n
Ih<lo
1,1e
lruy~n
f)
qua ph[in
IU
(;6,
fJ0
th~rc
hil'n
(lLrnc
dil'U nil)' chung la Gin
c{l

du(mg c nh(ll1 gl,\
Ir\
'I'.
dUil'llg
/I
CllIlg
ph,'\!
nb;)]]
glCt
In
'1'.
H;mg dqi ranh gi6J
/)
SC
chI
Cll
pil[ill
It'j'
I
Ci?'
I:
:\)
H(l.
llH,l'C
hiL'I1
1hu
[ue dich ehuycn
I1,gUO'L'
\'(\"j
,gl;i

Iq dudng c h:tng
'I',
Chllll!::
1,\
nh<:lt1
ehl'l.lC
gi,i
Ir\
duang
p = II
=:
'0'
\,;ltlieu
ll;IY
suy rd
(\w\ng
\'
nh(lll
giCtll"]
'()":
9)
B7.
Tlwc
hi¢n plicp suy
dien
d6i \'(j'i gi,i
Iri
I' =
'0'
~C

cho la gi,i
11"1
s =
'1'.
/I
=
'0',
c =
'I'.
Nlm \,;\y
chCl!1g
la
khCl!1g
llh;m duo'c gl,i
Iri
(1<\u
ra
(kln~
(
1(1'c
\;\
1.1
ph:\[
I1h~ln
(hn),c
II
=
"l'.
('
=.

/)
)
Cl\\~lllg
1:\
nghich
(lctlJ
!!i,i
Iri
eua
\' \'
=
'J'.
V\'J"j
ejii
Iri
n:\\'.
dlt'illll.'.
lill hieu
~
.
~.
~
'.
,.
.
c =
/),
]lhu'
\,i~y
Ch(\llg

1;1
cling
khLlllg
nh,:l!I
dlH,l"C
~i.i
Ir!
(';\n
1!JJ\YI
{'
=
'\'.
K61
lu.)n
r<'uIg
chCll1g
1<.1
khlmg Ihe
Iht.fc
hi011
dUP'e
ph0p
I!"UYCIl
D
qua
ph:"in
Ill"
(;61(J"i
Ll:iu
1'.1.

do
d6
ph;.'li
quay lai bu(ic
IH~
Ill)
11 1
TIll.rc
hi¢n phcp truycn D
qua
pkin
ILr
(;3.
ChClllg
la c6 gl.)
Iri
Ir011
duCmg
('
==
D (
\'1
gUt
Irj
eluting
I' dii
(lLn),c
nghich
delO
lai

h~lllg
'1'
).
dU(1ng
I)
=
"1).
Ilill1g
d{)"i
ranh gl6i
f)
bao
g()lll
phful
IU I
(j6
I:
1\)
Wi.
Tlll.l'l"
hll~lI
phcp
~uy
di~n
\,(1i
lIhi:l'l1g
~I'\
1["]
\'(ra
nh~lll

dlH,1c.
1<1
C(l
(I
==
I"
=
'1',
,I =
'()',
Ii
:::
'I':
11) 89. Do khfJng llhflll
dlr~)'c
gia Iri 0
(j
dilu ra. ehll!lg la
qu:.l~
lal bu6c
!look
[3)
B4.
Tl111c
hi¢n thao lac Iruycn D
qU"l
ph:ln
Il(
(;6
chung la

llh~ll1
du'O'c
('
= D.
dle
hU(K
Ill'
bU'0C
B5
den
blf(l'c
BX
dIH.1C
Inai
b('"l;
14)
139.
Do gill
Ir!
f)
dU'0c
Iruycn
16i
dilu
nt.
h()
gi,i
Irj
Ihll nghicll1
IIh:ll1

dmJc
sc
\il:
x
==
\'
= 1/ =
\'
=
'I'.
NhU'
v,"tv
ehun"
la
lil:IV
1'<111"
Ihufl1
ItKin
PODEI\'1
h.h:1O
S,ll
t:tt
e.i c,\c
16
.•
b • b .
hq'p C()
th~
e6
ct'ta

(thl
"ao
eho nen eo tht:
lip
dung Ihu:II lo,in
n~ly
ck
I(~ng
h0P
de
b()
gi,i
II"!
tilll'
nghicl11
d6i v6i
ll1(li
161
1l;\llg
s6
e()
Illl:
pl1111
hil'JI
dUtl'c.
Btlllg
uteh
,tP
dl.lllg
c{1e

IU:,11
I~ra
cll\}n
killle ni1au, chling ta
e6
Ihe
sLta
dt'ii
thtl:11
IO:1ll
PODEM
d~
co tilt
nh~1Il
c1u\,"iC
cac Ihu(ll 10,tn hi¢u
qUi'
han.
Cling
giong
nhu
Ihu(11
loan D. Ihuflt Imin
PODE;\l
co
th~
lip
d~ng
de
\(~ng

IWp
de
b(l
glil
Ir~
tilir
nglllCll1
ph~\t
hi¢n
de
I[li
htlc
du.
§8.4. Plllrling ph{lp
nu'>
hlnh
h6a
It\i
1.
Hili
to:.'Il1
mil
hlnh
hoa
i<'li
Vi¢c lall
ute
\'ceta gi,i
If!
Ihtl'

llghi~ll1
cit
tIm l6i b,\ng
de
pluf(l'ng philP
Ihu~11
\0<.\0
cho
pilep ta
Ih~re
hi~n
d6i wii
1l19i
loi
c6
Ihe'
ph'll hi¢n
dUl,fC.
Nlur
\'~ly
co
Ihe noi rfmg
phUUllg
phllp
thuZlt
toan
IiI
phuong phap
t< Io
\((to

gi.i tr\
277
lJUP11~l1h
J.(\np
U~!q
Jilql
~ljl
9:'1
P.l
nU~llp
[l]1
'u\Jild
!ljU
~)

l}tjJ
::lll\llJ
1/
\~J,llp
~Y)
,(rtu
Zli
l(llLl
n)u
9P
0(1
· (!?ltl
J}I
l~lu\
3ut;q

~~I
Qtu
1~)J1P
n~~lj
~
. 0
un
'Hu

)np
:'1p
1I~.11
!.l\
1~!"
'!Q\
1:9l\
l\llll\
9111
u~lll
:1illll
. .
~lPl
':1!iQI
1~9lJ
qUllJ
QUI
qupI
!mb nqH
)'l)
'6u.onl

nuIJ.:)
'flll()~'
fluo\
101
)?lll\
lIlI!lI
0111
1ju~.l\
\~nb
l?o1j
tlltll\'
'tr'H
ltUm
"
~u:
';3uos
~110S
!I)J
~'.OllllUtli
QUI
d~!lld
:-i1l.0Jllld "'[
"qt\I:.I\
qUI?:!
!qll?~){\
qUIt{
qU!
ur-qd '3u.o.nljd
">\
U)!P .(ns

1\1\
P~ll\l\Ulq
QllI lh}'ld nu.onqu
'~uos
guos
H2\
P.9lJ
lJlIIl\
QU!
uJ:ljd
nuoJ1qd :!9\
!~()lJ
qUIll
\lU!
1I0!q
:1illn
~p
lJlI)tp ur-qu
flu.o.nqd
nll.Ql\u ll!;n
1I0!tli?u
C"
In
ilu!'LJJ
.
.(I?U
Jinu
iluo.l,L
'J!i?O\
1?01.\

ljuIll
9U1
qUlJl
1mb
U0!ll
Jilt\l
?P
nT?qu
1l?lj"l
d!?qu
t:JlJI
ilu.l}tju
nl\lip
J;ls
~ql
9:3
nt
tlu1)lJ:1
·I.\Ji?ll1
T?~J
H)\
!q
U~?q
U~!qu
Y),\
(9P
U0!lJU
(n1
'!Q\
lU)lP

nU91.l'\
1).\ !9\
1~.1)l.p
:d~)q
gU\l.n.l1 !PIj
~l!n.1l
lJ:)I~llI
:1!TI9\
1~~)lJ
llUPl
()ll.\
lJU!.11
!mh
lI:).lJ
lU1P
U!~q
p:1 :;.\
!9\
~~Olj
lJH!lj
9uI
dVqd
gUDJlqd
'."'.l.!ql
I~l
511l1lJ:)
·J.~lnJI
Dlp
O\~,\
n~?p

i.ll
!;!~
.o\J;),\
1~:l{U
~lInp
J.IS
\!~n\
I~~l]d
:l.ll.np
,~q\
9)
~9\
:l~~:1
·tjlljp
:l\,x
U!;t\U
~u.o.nl]d ~\
!Sll
"9q
t\lllq
9111
dV'lu
~IID.nlJd
':)r'l'I. lP!?J
~~)~
·\?X
illH~P
\(,1\
U0!tt
l!?qu

ul~nlilu
.1,11\1
!.1\
!~!n
.o\:l;1,\
\~\
IOJ
:1.6.np
0\:'\
lll}P
j.l\
l'~fi
PI.l;).\
."\.~!
\
nqu
'nequ
JVL\)j
!',ll
]4
GU<)lJ'1
diH\
03l!o.n.l1
iiUll.!\
'!A
!Yl
L1~!lJ
l\?-nx
dill\
~tJ.Q.n.lJ

'GlIO.ll l\:11\lU
P~;)
r l
n~,p
j.1\
~?!g
.1!?J
::limp
u~~lJu
n>J.r ::
'~)P
01)1.1
0\::.\
1l1,p
j.ll
~~!~
.up;:"!.\
\(Hll
H).\
nUJ)
iiunm
!Ql
\~J)lJ:l
q:1\~Ul
JIBQ\
\?91.\
lJUIq
9lU
lL)~lJ
:l.nlJl

n
iil1~l\p
:\ll?S
.11qu
l1l)~
lll?'Bu
."\'\!l\
l[Ul-\1
J.onp
~t\l
9:l
!91
P~lll
lJl1111
OUI
d!?lJ! l
;1l1.o.tllld
'un
~:lJ"l
0\'\\
1~)1.l1
H)."\
!~)\
,l.()np
lI~!q
\!~qu
UV~lI
1lI?1.:1
\.lJlJl I(ll\l
"<3Ull.11

d;;'l\U
lllp
1\)\
!~lllJ
qU~lJ
~llU
d!:lJd
;;U.0.lll\J
'\(2\
"sn\lJ\!~q
t)U!
In
~6j"
U!~lJu
thwnqu
,l!~.l
llUlljJ
.1,1:-
.~lJ\
~n
U(::l
1~1
gll~l!.J.lIBtllll
6'1
03110.l1
'Ur()ll~mll
m:lJ
U\~I
:lJ}qu
()p

9·\
9P
ll.F'\
I~,(nb
)~~1"5
.XI
'lpbu
~U().n
H~?q
0.1
,))0\)\
.111
I!~}qd
.)!~J
"GU()J1\
9~
n~J
u0l
o:1U\,!1
ils
~9,\
()\
"q
,)~:q
-
)1"1
:lDq
0\
'~I
;:os

Ul0~l\j"U
.nq\
!.IJ
!~~il
94
01'1
UP!~
!J?L]\
',01
JJit\l
~unlJ
lpi?1lI
;111.~H\l1
)9.\
!.08 'lpi?lll or::.\
P!n
Ulmn
J!n()\
J.II
U\?qu
;1uilll\
9s
!9.\
19P
[llli llll!lJ Iljn]
O:llJl
iilln;:>s
lU~!lJnU
lllll
\n

\,!ii ()l\ oil)
UI?)n
~Ql\l
'l~."\nql
S\
O;)ql
'quIOl]u
fi'uDI
0S
!l)\I1~!lJ
Wl]d
!.ll
l'~il
()q
()\~I
0P
u\~1"G1QI.\1
'!?UlJ\
LjJl?UI
1?\1:)
u\'q JJ}l.]u 9P
111)\
'ryp
,'q)
19\
UlD
lU0~l\fj'11
J:'lJl
. .
~

1l1(l
hluh
IllJ.l
dIll \'('I'i
/I
\'ccIU
~l;ll]'i
d;lll
yilO
111<.)[
c.tcil
~Oll).! ~lllli'
Tl
h'l~
'\('1
\ I du Inae11
1]'('11
hinh
S.:::2.
DIll
\,()'i
1ll.H;h
n:1Y.
\
('Ii
l1lP\
UI'
lll;lY
gt'IIll
I (l-bit.

1<1
c()
Ihe
Ihue
hi~n
lju.t
Irlllh
1m)
1111111
hl),]
\()ng
,Ollt-'
(kl!
\'{!i
\,t'1
ca
Clic
n:ct(j
gl<i
In
lLll\
do.
Trollg
tnl'(m~
ill.l·p
n;IY.
c.le
I\li
ell
thL'

dU(lC
!lICli
dicil
hang
eJch
thilYt
1;ljl co
dplh
etc
gi,[
tn
'(j".
'I'
Ir('11
de
dm\ng
\In
hl'~ll
hi
\()1. f-hong
plu.1111l16c
";ll) gi;i
Ir!
(Llu
\
:Ill.
!Xii
H)-I
me.lell
IrCll Illnh S 22,

dllllig
ta
time
hl~'n
qU<llrillh ml) hinh
116:1
Ill!
\'l)-i e,le
\"l:l'Io'
~I:llq
d:ILI
Y:1U
dUU'L
hll:L1
di~'11
l]'cl1
dl'
Ill'
ll1:1~
S-hll:
cele
gl,i
II"!
llC:n
ell'
duung
lill hll'u
\,<1
Iren
(i:!u

r'l
dU\lC
hlCLl
lhl'll
Ilcn
blnh S 21.
(Ju.:i
1]'11111
IIll)
hmh h(la d(ll
\'('ii
kn
Il.Il1g
"'11
\-
(/-/ lr0n
dw\ng
Ii
/i.//
1.'110
chung
1<1
Ih.yy:
1111
IliCU
d'\lI
r<l
L"lla
tllal'll
1:1

/) = ""O\OIOIU\".
Tl"tlllg
khl
d6
d:ill
ra
Irollg
Iruung h,l'P
1ll.,lell
khllllg
IlII
i:J.
I)
==
'"0101] [01"'.
!'."Ilu'
\,(Iy bil Ilui
ILl'
tloh
III
hen
ph'll
de!
hi Ih:IY
d(;1
d'l
j(li
hif.
'I'll'
d6

wy
ra
h(l
~J,i
Ir!
(
d.
h.
(, if ) = (
lJ.
(),
L U )
El
bry
t'.l;\
If]
lhu
ll,ghlCl\l ph.it
IH~n
It'll
hi
J,
\1~)1
cid1
l\l'(mg
ILL
la
d1
Ill~
Illve Illcn qua Ifluh

mll hloh
hoa
d()i
\,{ii
m!}1
It)i
ct'J
Ih~
ph,11
hi¢n
dll'O'C
kil.lL".
0ku
t-',l,i
Iri rlau
r,1
lrong Inl'(mg
IH/P
tn',lch chll'a
Illi
kh,\c
\'(ii
d:iu
ra
ellC!
n\lCh lrong
IJ
U'il'ng
11(.)'p
mach

khllllg
b1
l()l
Ihl
chung
la
dl
thc
ke"1
IU:1ll
rtmg
h<)
gl.i tr! d:iu
do
IU()llg
ling
1:1
h()
gl,;
Ir!
1111'[
nghil"lll ph:il
11I0n
1\\1
a:OIIlW!01
c:
I I I I
(]IlOIl
I I I I I
(]O(]O

I:
I I I I
(Ill
I I
IIIIIIII
h:1I01
WOI
(
f:
I I I
IIlIlIIIl
I I I I
IlOIlIl
m.ll
In
I (lO(] I
OIOIOIIlI
c:
ilOilO
I I I I
g:
1IIIIlOilli
I I I I
IlIiIlO
n;()O(lO
II
()()
O()OIlOOOO
d:
OOll()Oon

I
h:IIIIIlOII
IIIIIIII
p:IlIllIIIOI
1l1OIOIOI
ill
i: II II
Oil
II
IIIIIIII
Y
'"
hi
j:OOOOIIIO
OIlOO
I I
III
khull)."
lili
bi I()I
,,00001100
OOO()OOO()
lIluh
X.D.
\i(l
11'11111
hOil
~ong
~()I\g
C,1c

i!l~l
1i'llt."ti1 l'ill)::l1 c.il'
bid
III
d.ll1 \':l\1:
h)
gl:i
II
I
tll:11C,ic ilUll'Jlg
tillllil'Ulillllg
tnrong
hO[llw\ch
["'lldll~'
101
l'iI.JI
cllll'.\
101
Khi
m(1
hlnh
h6a
IhcD
phuong
ph<.ip
1re'l1,
clUing
1:\
IhdY
c<.ic

,gi,i
In
d,]\1
\:10 thalll
gia
\,:tn
qu,; Irlnh
m6
hlnh
hoa m()t
ckh
(1/)l1g
Ih(\i Irl'n
!<'II
ea
de
bll
Clla
Ilr
meiy
do d6
plwo'ng phap
n:IY
gOl
1:1
/!Ul
/rill/'
/r(i(/
h;t 1'().;
lUll

l'lll!
sung suug. Kh.ie
v(l'i
C<tch
I:\ln tren.
ChUllg
U
c()
Ihe Ihue hi¢n qu,; Irlllh
m6
hinh h6a
Irl"n
loillJ
h()
C<le
l(\i
chi
Sll'
dl.lug
1l1()1
b()
gla lri d:iu 1:1.
PhUO'll~
ph;ip n:ty
gOI
1;1
m(l
hinh l\()a
16i
",Ollg

,",ong.
Cllllll~
ta
!J;ty
.\cl
\'1
(ill
mo hlnh
hoa
16i
~ong
song
\'{'ii
sci
d6
mach
tl"'::l1
hinh S.22.
TuO'ng
Crng
\'(j'i phuong pll;ip m(l llinh hml
Il1i
SOI1~
song.
ChLlI1g
ta
Ihtfe
Ill¢n
qU(l Irlllh
1116

hlnll h6a
mot
deh
dong thtii \'6i
de
Il)]:
279
glO,
gl L
hiO.
yo,
JII,
klO,
kll,
\TIl
I;
wang
lmg
\"6i
h~)
gi<l
Iq
chtll
vao: (
it,
b. c. J )
:::
( L
O.
1, 0

).
Trcl1
hinh
:-\.24,
Chll11g
ta
Ikty
b(l
);.1(\
tri
d<.lu
y:\o
nhu
nhau
l cllllg btlllg
"\010"
) d()i
\'6'i
tilt e,i
uie
h\1
nell tren. Cae
~.'I:t
II"!
dU9C
stIr
xe"p
trong
Il[
mCI)'

lUting
l'rng
\'6i (

Ie
\(}L
tlk°l)
trlnh
t~l
I1l'U
Ifl'O. Sau
f,:11l
thlJC
hi~n
que\
11"11111
!11() hillh ho;i 16gic
\'(ii
W:t
C:l
d.c
\()i dJ cho. l"\lling
la
nhfm
dW1C
H1
may
biC:u
dicn
de

gia
IIi
dflll
ra
II
::::
"II
\
()
10
1\ ".
'fa
Ilh~\ll
IhS), ntng. trong I\w\ng hllp neu
xua"'
hi¢n
de
k)i
a:
1111 I
III
dlOOOOQOO
,,01000000
Ill:O
I
OOlJ{IO
I
h:
OOOOOOOli
I:OllOOOOO(J

j:
III
0 I I
II
n1lllOI011
c: II
III
II I
~:
0
IIIOOOOlI
k:
10111011
p:llllIiOll
d :
1I00(J1Il
I(
I(J
h
:01
OOOliOO
1:0\
OOO(JIlO
yy
Hinh
H.2 \.
l\\C)
hlnh hoa lui
~()!lg
\Oll!:'.

ktng
s6
J(()
ho(\c
t:./O
gi,i tri tIn
hi0u
d
cHiu
nt
p
khic
voi gi,i
Iri
dilu
ra
ella
nwch Irung
Irul1ng
11(,1p
kh6ng
Cl)
Il)L
( Irong Inlll'ng
hLJP
kh6ng co \oi,
d~iu
ra
p
nh,}n

gi;i tri
hAng
'I'
lU(mg
ling
\'<.1i
veclO'
gi,i tfi (I:iu \',\0
•.
to
10".
con
Irung
1nl'lmg
iH.)P
:>;U~\I
hi¢n 16i.i(()
hO(IC
1 10,
d£il!
ra
I)
nh;:m
gi~
Iri btmg
'0'
).
Tlr
d6
suy

fil
\'ccIO'
gij
Irj
d iu
<to
(
1.
0, \, 0 )
I~I
\"(;:clCi
gi,i Irj
kicm
nghi¢tn
M
ph:11
bi¢n
de
16i
h,'l11g
,,6.J!'O,
k/IJ.
Troll"
IlhUIl"
dieu
kien
thon"
Ihu'on
o
,

\'ll:C
tilO
ra
de
n;ctc1
01'-\
tri
klcm
t
L"
• 0
e
e.
nghl¢t1\
Ll6i
y{ji
lllQt
:.6 hr\1ng
Kin
161
str
clung
phlrong philp
1116
hl11h
h6i\
16i
song
song
\'J.

:'<lU
(\6
:IP
d~ll1g
phlfdng
pll<ip
ll1()
hinh
ho,1
Ibi y6i d[iu yilt)
"ong
~nng
cho
nh(}ng
16i
dUla
dU(1C
ph,i1
hi~'n
(;(')[1
lai
IiI
me)1
Ihu~lt
lOan
1' 10
eSc
Yce\o'
.tll~i
Ir~

ki~m
nghi~lll
de:
ph:it
hi¢n
i6i c6
hi¢u
qu,i
nlo.
H1nh
tU5.
Vi
du
Khi
1111,1(:
hi~n
pilu'("ing
phap
ml)
hlnh h6a
l{)j
cung nhv khi tlwe hi¢n qua trlnh
1110
hlnh
h6i\
logic
ta
co the
: Lr
dyng phlwng ph.ip bicn

d~cb.
Vi
dy,
Irnng
mi.\Ch
trcn
hinh
8.25,
d6i vlii philn
tlr
AND
chung ta
th{I)',
bieu
thlic
ldgic
P"
cllo
dU'0ng
IIIl
i1l9U
(j
c6
d'.l11g:
P,,;;::O
xu"
+ a
l
:
Irong

de):
<1",;;::0
1 trollg tni0ng
hqp
gla lri dung
trcn
duong
o~
,1,,;;::0
0
tron)!,
truling hqp ngu0c
I~li~
<II::::
I kill
thi~t
li)p
giu
Ir!
'\'
Ir~lI
c\u'ollg
(/:
a
l
::::
0
trong
nhu'ng tru'ong
hqp

khAc.
Nlu1
V(I)',
khi thi(t
h~p
gi<.!
tr! '0' tren uUdng
tin
hi~u
(/
ta co
280
III
=
all
=
0:::::)
V.
=
O.
Tuong
It!
nhu
v(ly.
tren
duang
lill
hi~u
h:
1\=

yo,.
+ hi:
Chun"
ta
thuv
rttn~
"ia
tri trcil
dUCIn"
tin
hicu
c
him"
P
f-'
"
tu
do
suv
ra
Hi,i
eo.
Leo·
eo.
eo
"I
. e
tri
tr211
duong

tin
hieu
c
c6
the viet du&i
di lt1g
bicu
thue
Il)gle
sau:
P~=(PJ\)C

+CI:
tXii \'6i phrin
III
OR,
oieu
thli'C
logiC
:-oC
co
d'.Iilt!:
P.=(P,
+Pd)CIl+C
1
:
P
d
= ud" +
I:

Qua
trinh
mo
hlnh
ho;i
neu
tn:n
duqc
thuc
llH:n b.ll1!!
d.ch
xrly dUll!!
nhung
hicu
thii'c
logic
d6i voi nhfrng
trang
th,ii
16i
eua
uk
ph'l\l
tu
16gie
\'J.
tinh
de
gia
tf! eua

chung.
Kili tinh
de
hieu
logic
btlllg nhii'ng
phep
to,-ln
tren
hit voi
de
tit'
e6
do
d~li
nella
gia
tr!
cac
hien,
ta
co
the
th\t'C
hien
m6 hlIlh
ho,( . ,ong
song.
Vi
ch.1.

doi
mach
trcn
hinh
8.2S.
de
time
hi¢n
m6
hlnh
hoa
drill
\':10
song
song
d6i
voi
16i
htll1g
so
c/().
chung
Ia-
dn
dua
ra
cac
gia
tr~
eua

tr,.mg
th{li
16i
y,\ Ircn
co
sii
d6
xae
d.inh bicu
Ih(['c
logic
cua
m'.Ich (
hlnh
8.26
).
Trang
tnt'cl'Ilg
heyp
1110
hinh
hoa
l()i
song
: ong
ta
dn
ph,ii clua fa
gia
tri clla tn.mg

Ih{li
16i
(
hlnh
8.27
).
Trong
d
cI\1
doi \'6'i
nweh
Iren
hlnh
8.25.
chung
la
tlwc
hil'n
qua
trlllll
1116
hinh
h6a
!l'ji
song
song
ello
de
\l)i:
u/().

(/1/,
NO.
hi
I,
('/().
eli.
dj(). elli d6i \"6i
\'< :eto
gi{\
Il"j
dfill vao: x = y =
'I'.
/I
=
'0'.
Mo
hlnh
hoa
drill
vi:\O
<;ong
song:
u 01010101
,00110011
),00001111
a 11111111
b 11111111
c 00000000
d
11111

III
c 11111111
00000000
00000000
00000000
00000000
00000000
lIinh
8.16.
~
1()
hinh hoa
lUI
vt'1i
d.c
d ill
vim
\Ollf!
wng
elm mach trrlJ
1111111
8.25.
u 00000000
,x
11111111
y 11111111
a 00111111
b 11001111
c 11110011
d

11111100
e 11111111
01000000
00010000
00000100
00000001
00000000
Irinh
8.27.
r-,j6
hillh
hmi.16i

ong \()llg elm mach tren hlnh 8.25 v6i veclO
(till
\';10 (
/I,.r,
\,)
==
(0.
f.
f
)cho
C<le
16i
£I/O.
(/11,
MO.
hif,
c/O.

1'/1.
i/lI!.
tI/I.
281
Khr
su
dl,mg
phuong
phjp
hi0n d!eh lrong
qUii
Irlnh
me)
hlllh
hoCl
kH.
chung la c\[1
ph{1ll
h',lI1g
dc
ph:in
IU
16gic
";1
IIH.re
IH':ll
Ihl'll Illnll
llr
L'lla
c,\c

bl~u
Ih(rc 16gic.
J.
l\16 hinh
h6a
I()j
suy
dicn
Trong plW\illg plulp
m(l
hillh
h{l(l
\(Si
"ong "ong
(1<1
nell Ir':n. dall
11<,:'11
chLlng
la dua ra
dc
\'ccto
gr,\
Ir!
d{iu
\':10.
dc
Itli
\':t
~au
d6

klC:lll
II-a lh.i
11'-111g
ph,il hi¢ll
de
It)!
au'a
ra
billlg e:ie \'ccl(5
gi,1
If!
dell!
\-:10
dang
.\.cl.
Trollg
IfU011g
h0P
!Iu,fc
11I~1l
ki~lll
Ira
Ih~llIh
c6ng.
\'ccln
gi,\ If! d,lu \;10 dang )'cl
du'(.lc
COl
i~1
vceto'

gi<.l
tq
kiC:m
tra phul
hi~n
16i
da cho:
n6u
Ihue
hI':]}
Ill()
hinl!
hOiI
l<:h
kh()ng Ih:\nh e()ng. chung
1<1
ph,U
tlwc
11I¢1l
qu:t Irlllh
m(l
hinh
Iw,;
If)i
eho
be)
gr,1
Irj
d:iu V;IO "il
h)i

kh:tc. Nlnr
VfIY,
Irung phuung ph.ip
me)
hlnh
hoj
I(li n6i Iren, m6i quail
h~
i(lgie
gil}'a
de
I(\i
":1
de
\'CL'IO'
gl,\
If\
d."lLI
\'i:t()
khong
dWK
Ihie'L
I;)p
\'il
do d6 hi¢u
LJu,i
eua
qllj
Lrlnll
\,.\0

e<.ie
b()
gl;i
Iri
ki0m
nghl~111
ph;II
hi¢n
I(\i
kh()ng cao.
tJe
timg
hl¢U
qua
ella
IhU(lt
lOan
m6
hlnh h6a, chung
La
dua
fa
phU"()'llg
phjp,
Irong d6
!U'ong
ung
"O'i
m()1
n.'clO gi:\

II"!
d:iu
\';to, ph;tl ph,il hi¢n
1<YI
c;'\
dc
lell
Co
the
dUQ"C
pilat
hiGn
bang
b(,)
gi;i
Irj
nilY.
f)~
Ih~re
hl¢ll du\)\
__
diell d6.
chung la rb.'li
Slf
dl.lI1g
dc
rhcp
10<.111
suy
di~n

1{lp
hq"p
dC:
111l,rc
bi~n
qU:I
If
JIll!
Ill()
hlnh h6a
vii
do
d6
phu'cing
ph'lp
11:IY
duqe
gt)i
lit
pilll'(l"lIg
ph~lp
m(J
hillh
b6a
16i
su\' elien.
n;.:
dO'n
giiin
\'it

et)
Ihe th:ly
rtJ
dunc
co
che'
,uy
di~n.
chung la
XCL
\'1
till
ph(ln
ILr
AND
co
b:1
(hlu
":10.
N6u
de
dfiu
\':\0
nh{lIl
gi'I
Iri
(/
=
'0'.
I;

=
'I',
("
=
'I',
d<.lU
ra d
,,is
l1h,~l[l
gi,i
Irj
II =
'0'.
Til do
~uy
ra
de
h~i
h,\ng
,6
do
\'celli
gl{l
Irj
d<.lu
\'ito (
u,
h,
("
) = (

O.
I, 1 ) ph,i! hi¢n
dU~ie
sc
I~\:
a/
l.
dll
( chung ta
Illull H,28. Vi
<ill
mo
11il111
lax!
kJl
SlIY
die-n
\,(jj
ph[ill
Itt
AND
cO
ba
ChIli
\'ilO.
282
sc
\'ie:'t
gqn k)'
bi~u

h~r
h:lllg
~(i
.HI-\,
IrC'1l
uU'()"ng lin hi¢u s
IiI
sh
Ihill\h s,).
N0'u
e,ic
d:iu
\';\0
EI
{/
= ' I '. h =
'I'.
c =
'1',
la c6 d =
'1'.
TLr
dt'!
suy
nt,
Wp
11lrp
dc
161
h,'lllg

.~(;
dl
11)1.,<
phat hi¢n
(ILri,l'C
b,\ng yccln'
gi<.l
If!
d.ll!
vito
(
(/,
h.
("
) = ( L
1.
I ) sc
1:1
I
till'
1;0'
(li"
dll
1.
Ch(lI1g
ta co Ihe nh:)n
dU\1C
I<.)p
hop
n:IY

Ihcll
nhung
IU(lt
sau:
Lm)t
suy
dicn
C:
cae phcp toan
1(lp
helP
d6i
\'{~i
phlin
ILl
,\
vii cae
gi{l
Iq
lUU
\'~In
cua
pldn
ILl
eto:
DU'(-mg
tin
hi~ll
dlO
(/

ella
pldn
ILl
la
dU'(llI~
vilo
ILr
bcn ngoai.
Nc'u
gi<.i
Irj
uutmg lin
111~U
n;:\)'
btlllg
'1'.
tJ
c6
La:::
1
(/0
):
nc"u
gi{\
Iri
<lLrb"ng
tin
hi~u
btll1g
'0',

thl
L~:::
1
(//
):
H~lln
ra
eLla
ph:ill
ILl'
A
dw,"l'C
bicu
dicn
dU'6"i
dang
I{)ng
ho,)e tfeh.
NfLl
gla
tr!
dung
cu,\ dLlbng tin hl¢U
(/
btl11g
'0'.
thl k)' hi¢u
(/
trong bic'u
thLrc

~C
duo'c thay btlllg
L.,.
ky'
hi~u
(/
(hl\K thay btlng
La'
(\jell
gi{1 tri
dling
cua
dUll"llg
tIn hi¢u
II
b<.l\1g
'I'
thl Ihi k)' hi¢u u trong bieu Ihlie
se
dLI~1C
thay btlllg
L.,
\'~\
II
duqe thay btmg La.
T(eh logic (.J
V;I
tCing
16gic
(+)

trong bicu
IhLfe
du'~JC
lhay b,\ng
de
phcp
100In
\{Ip
hop n
VlI
u.
Ne"ll gi,i
Ir!
dll11g
eLm
Ct:iLl
ra htlng
'0'
thl
bieu
thLrc
d~r0c
Ihay
b,\ng
t.
n6u
la
'1'
- L.
Trong tnrh'ng

IWp
khi giJ tri dLlllg
ctJa
dw\ng tin
hi~u
rafb~\Ilg
'0'
Ihl
la
119'\1
1(lp
\1<)'p
1./;
I vilo L; neu gia
II"!
(tiu ra
b~\IIg
'1'.
1<.1
se
h{.1p
qp
hl)"p
('/;, \ "ilo L.
Ket
lJl1'l
ta
nh(1ll
duo'c t(lp
ht,1p

1.,1'
C{le
phlitl
ttr
lrong Illp h0P
Lila
die
lot
h:ll1g
so
e6 Ihe duvc phJI lu¢n
btlOg
\'ceta
gi<.i
Ir!
Chill
\'UO
dang
xl5t.
V(
(\1,1.
doi \"('ii
phAtl
ttl'
AND
tren
hinh 8.2X.
la
co
d:::

(lhc
,\\1i u:::
'0'.
h:::
'1'.
c:::
'I'
tlf
dCl
suy
ra:
L
J
==
(L"
n
tb
n L)u
{d
,
i;
lrong d6 La:::
(/,'
\.
1.,,,
==
I
h'l
\.
L"

==
{
("0
I:
~au
m()t
s6 phcp bi6n d6i.
nhi~n
dl\"(~L
Nell
e,ic cl[ill
\'~tO
nh(lll gia Irj:
(/ =
'I'.
/J:::
'I'.
c:::
'I',
la se c6:
I~:::
(L
n
Lb
nL)
=>
Lei
:::(L,
n
[I>

n
l,)u
{dJ:::
(L"u
L"u
LJu
(d
l
.}
lrong
d6
La:::
I {l1J
\.
LII
= 1
h'l
}.
L,.:::
{("o)· Nhu
\"~Y
ta nh(ln
c111"<JC
Ld::: I (/n, hi,'
Co·
do
).
Trong nhung Inri:mg
hq'p
khi d:iu \'ao a

ella
phfin
tlf
khong
piJ,ii
Iii
d:iu
vao
Ilr
b0n ngoili.
La
Iii
1(lp
h<fp
d.e
16i
duqc ph,il hii:n tnr6c
mLfe
dang
xcI. Do do. khi dl
lLI
cae dau vao linh
llr
hen ngoili luan
IU
[hco
llH1'C
eua
sa
d6

16gic
V,\
ap
dl.mg
nhieu
Uln
lUi~1
dJ neu Iren. [.:t
co
the xiie
djnh
duqc
1(lp
11(.1p
It)1
dLfQ'e
ph~l
hicn
bang
b() gia
trj
dlill
\'ao
dJ
cho.
Thll~11
loan
ne'll
trcn
du,\1C

g<)i
lit
Ihu~ll
to{1I1
ml'!
hlnh hoa lui
SllY
dien.
Chung
la
hay xct vi
d~l
ap
d~l\lg
pl1Lfong
phap ma hlnh
hoi
lui suy dicll
deli
283
,,6i mach
I["en
hlnh 8.29. nil! loan
d(lt
ra
Iii
X~IC
djnl1
cic
It'li

c6
Ihd
cllr{)'c
pil,it
hi~ll
,,6'i
H:Cto"
gi:i
II"!
d:iu
\'ilo:
.r::::)'
= T =
/I
=
\'::::
II'
= I
Illnh
S.19. Vi
lIl[
mlllli
hUiI
phuong
ph,ip
m()
llinh
hOii
kll slIr dietl.
Lh

= (
ho
J,
L; = (
io
I;
I.,
= (
L"
n
I."
) u I
c,
I = I
c,
I:
Ap
dl.l1lg
rni\l
c.tell
lurin
ItI'
de
luflt
hill
dfill
Ill'
d:.iu
dlO,
chung ta nh{l1l dwyc

c,le
1(lp
h(!p
,",ill!:
L" = I
0,
I:
Lil = {
hil
I:
Ld
= (d<ll:
L,
= I
/"
I:
L,.::::
(Lei
(\
L)
U
(c
II
)
::::
l
u(I
,e,l]
:
Lg::::J-I"U (go J =

(dn,cn.g
o
J:
L
j
=
L,.u
(.in J = I till'
('0'
ill
j:
L~=(
L;uLIl)u
I k
l
)
= I iu.hll,k
l
}:
L[::::
L
j
U (
II
J =
("'I'
CU'.!<I'
'I
):
Lll)

= (
Lk
(1
L[
) U (
III/
J = (
1111
J:
LII
==
(L
g
U 1,1) u {
11(1
J = (d,). en,
g'I

./,",.lI
o
}:
Ljl==
(I." (1L,H)U[PIIJ = {dl!,c,I.,t:rI,.I;"l/o'Po)'
1\'1111
v,}y
vcclCi
gi<\
Irj
diiu
"ao

X = Y
==
f:::: II =
\':::::
II':::;:
'1'
e1lO
phep
phat
hi~n
lllQi
16i
m\m lrong:
t,!P
hqp
1,1'
= {
do,
Co.
go.
;;1'
11
0
,
PI'

I\eu
gii.l
trj
dfiu

d.o
y thay d6i lilunh '0',
Ihl
sc
c6 nhung Ihay d6i sau
11'011"
dJ.v
,>uv
dien noi tren:
b , ,
y = 0
:::::::>
II
= 0. k
::::
1:
Ii =
0:::::::>
L
II
::::
{
Ii/I:
-
k=!:::::::>
L~=(LII(1L,)u(k()J:::;:(h,.krIJ:
VI
m = I
:::::::>
t",

=
(L
k
n
Lr)
U I fIIo) =
{c/.
dl!'
(//' hl .
.il'
'
0
,
kil'
nil!
I:
VIP:::: I
:::::::>
LI':::: (l'H
(\
I~,,)u
[PII] = I
hi')"
"/I.
'rI.lllo,pl! I:
Til
VI
dl}
tfen chung ta thay rang khi
SLr

dl}ng
phu,(J'ng
phap mo hlBh
hOii
16i
suy dien. chung ta luon sir
dl}ng
de
phep
Imin
t~IP
hqp. Dicll do
dill1
(tc:n
2R4
\'i~c
dn
111Ii,YI
",ay
dung
phuo'llg
pb:l[1
Ihu'c bien
Cll
hi¢u
qu,.\
C<1e
pll~p
loall
1(1[1

lH.l'[1
Ir':l1
lllciy Ilnll.
Ulling
la lil:i'y
r;I11i;!
dc
phcploiin
ItlpIH.)P
ph~l
IhutJc
\'210
de
gj,i
II"!
d:lll
,,:to
I1C'I1
\'I¢C
,ip
dung
e:le phcp
xu'
I~I
song
~()Ilg
kllt'lng
the:
Ihvc
hi¢11

du'O'c
tJ"(lJlg
Inrlillg
h(.1P
n~IY.
4.
Mil
hlnh
h6a lui
canh
f anh
Trong phuong phiip
m()
hlllh
11O,i
suy
dicn
cHi
trl11h
b;lY
(1
tfl'n,
danh
~,ieh
de
kii
c6
Ihe ph;il hll'n b;ing
11l1)1
vee

In
gia
Ir1
lthl
\'~IO
cho
IrU(K
dU0l'
111ll
111[1),
bang
c{leh
Ian Iruycn tu:in
t~f
li11
then
dc
mLrc
ph'lll
I".1ng.
Trong
phuong
pldp
Il;ty U
dn
phi'tJ
Ihue hi¢n cae phcp to.in
1<)p
h(.l"p
kho

tlwc lu¢n Irl'll
]11,iy
tinll.
Tlt'(mg
tt.f
\'l)'i
ttl'
tUl\ng
IruY~Il
danh
~ach
161.
chung
t,~
dl:lt1g
phlfl1!lg ph.ip
,\:."Iy
dVllg
danh
s.kh
king
c<-leh
m(i hinh
hcia
th;]), ello
cae
phcp\ojn
Ihp
\}()p.
Plllro'ng phap nil)' goi

IiI
phul1ng ph.lp
Illl'l
hlnh h6a
I{,i
c',mh Iranh.
Chllll,!;
1.1
xct
\'1
d~lll'l'n
hll1h
R.lO \ll'i
C(IC
d:iu
\"210
6w
m
•.
[(:11
12t:
a = h =
O.
('
= I J = L g =
0,
V(~ji
a = h =
'0'
til

co
gi.i
Ir!
dung tai
('
=
'I'.
I\'hlt'llt!
16i
c{Jlhe
dU\lC
ph,il
hi~ll
nh(l'
lllJll'ng
gi<-i
If\
dfiu
\"i\o
\'~l
d{iu
["it d6 nh;)ll
de
gici
If!
(Lto
(// I,
hi
I,
(i()

,
Id
c()
Ihe \'Jet
gc:m
IiI
c:u.:
IClI
(/
/'
hi'
(Ii"
Cie
I('li
£Ii!'
h"
Irollg tru())\g hop nity
khl)ll,f!
Ihe phlit hi¢n
dli'(Jc
b6i
\'1
chung
1;1111
eho
,
,,-~.
"-;:,~-~ L-
(;Jj ~
,


[J,
,
1 [/
-~'
(;,
"
I'
~
(/=h={),d=
Lf=
J.g=O
lIillh
KJO, VI
du
Illl)
h'lllh
hl)~i
l{)i
,if
dllll~
plllf(jll~
ph.!p
lllli
h'lllh
hOil
(hiu ra e6
gici
11"\
Irllllg

\'eji
gla
tn
Ihlre.
D6i
\,{ii
ph.ln
II~I'
(;2, ]leu
gia
Ir!
Irl'J]
dUll'I1t!
d httng
'I'
'illy
ra gi,i
If!
dung
l"li
dll'(\ng
c bim" '()'.
KIll!'
\'{IV
ciic
It)i
o

c6
the:

du't,1C
phill
hi~'ll
b:
(,J'
el,!,
('
/.
VI
de
Illi
11;IY
thie:t
1(lp
giii
tq
cltr(l'ilg
c b;\ng
'1',
ch()
]len
1 11;.\
11,-llIg
ph.it
hi~n
uie
16i
do
btmg
bQ

gi;i
Ir!
(tau
\,;10
dang
.\.Cl
c1U\K
(1c'lIll
b,'lU.
'I'Ll"
do
suy
ra, \'6i
c{le
gia
Irj
c1{iu
V~t()
a = h =
'()"
d =
'I'
Illi
de
kli L
"
= (
(ii'
d
lJ

,
('
I 1
co
the
dU9'C
phat
hil'll,
Neu
gi<.i
tri Iren
c1u'0ng
lin hi¢u f =
'j',
g =
'0',
ta
: c
e6
gi:i
Ir!
dung
trcn
d{iu
ra
Ir
Clla
ph,in ttl (;31:1
'0',
do d6

dlc
16i
(./;),
gil,
h,
I
e6
the'
du(.l'c
2X:'i
ph,il hi¢n.
M,~I
kh,ic. khi lrong mach co loi
fl'
cbu ra h =
'0'
nhu
v;ly,
danh <teh
I{)i
cu6i
clmg
sc
dlf(Je
phCtl
hi~n
Et:
L
h
::::

\
gl.lr
l
\:
D6i
\'(')'i
pb,-in
Ill'
(;-1,
gi,1
Irj clung
In.'11
de
Ch1l'Illg
1',
It
bilng
'0'
do
ckj
gij
Iri
dting
Ircn
dui\ng
i (Ullg
bimg
'0'.
l\'hu \,(ly
de

I{)I
(6
Ih~
pkil
hi~1l
duo(
''0
1:1
Iii'
1',.
\1<-11
kh;ic
'>~l'
:"U:I't
hicil
CUd
k;i (', duqc
;inh
r<1
ILl'
danh
,>,kh
L
e
.,
chn
ll\i
iii
n{lln
!rong

!;:IP
lWp
L
h
.
Kc'l
IU;lll,
t;:IP
hO"p
(,ic
16i
,0
lhl\K
ph,l! hlcn Ircn
(.1[[u
ra
:
J.'t:
L;=
I cu,d!J,£".g/.
11/.
i
j
).
Tr0n hlnh H.J!
[:1
sa
d6
Irtnh
1L.l'

truycn
\':1
llh(ln (lie
101
ell
thc'
dll'O'C
ph'll
hi011
qua cue ph:in
tll'
logIC
Irong
ml.lcll
Iren hlnh S.JO.
DLfa
\';10
cuc suy
lu,:1ll
ncu
IrCll.
chung la c6 IhJ
(lLl'ct
LI
Cdl
ql\~'
I:\c
sau:
Lu,H
D:

\. D6i \'6i ph'ln
Ill'
\l'1gic
G 1
cO
I,lt
d.
cae
drill
\'ao
[;1
Ill'
ben ngo:li:
Chllll)!
1<1
k)'
hl~U
dc
diill
";10 [il a,h,
(bu
ra IiI
(':
giu Ir!
t'.Ii
de
(till
\';\0
k~'
hl~'\1

[;1
(1,
/1
\';\
d,ll!
1'<1
Wong
ll'ng
1:1
y.
Trollg danh s,ich
dc
I{l[
:-;0
phcl!
hl~ll.
\
(/
.h
.c
\.
cic
itJl
dU'\)'c
coi
E\
dU0C
phCII
hi0n
IlC'U

chung
Ihi0'1
\,\[1
Irl'lI
!(
/1
2.
luong
Lint!
Iii
({
vll/;,
d,lu
r<l
\;\
c.
(,iCI
Iri
lren
c1lf(\ng \'ilo II
\i\
a .
lren
lhf~illg
lruycn
h
I~l
jJ.
gi{\
Irj

Jung
Ir~n
(\[ill
ra
c
b\
{.
Tlr danb s,icil
CiIC
101
e6lhc'
ph,it
hi~ll
I
u".L"(jJ).c,,
\,l1ha-n~
loi ehlnh
IhCre
duVc
11m
Ih:ly
, ,0];'1
2~6
nhCrn!,'.
lr'll
lhil"l
1~lp
ifC'n
,Uu ra c gi,i
If!

.,',
: lhiIng
Itll
nil\'
1;10
\hill1h d.lIlll
s,kh
1(11
l:\n
IrllY~1l
L,
C;,J,
_'.
Dr)1
n'jl pll<ln
Ill'
I()gle
(;"
chi
eel
de
dfiu
\ilO bl'll IHlllg
lit
II,
/;
\':t d:iu
ra
(.
,:,le duijllg lin

hi011
(/,
Ii
dU\K
d(tl
gd
II"!
,lung
((
\'il
fl.
dUl_mg
e
,,0
1l!t,:1I1
&1,1
In
dUllg
Iii;,'.
Tel"
danh ",tch { L,,(a).
LJ.(jf),
('_I Clc Il)l
sc
ph,ll
hi~ll
\ ,.
c'
"0"
",~_.

___
l;:"
\
:,
~~ 
,
[7
du'()"C
IiI
cle
101
d':11
gi,i Irj Iren
dlfLl'JJg
('
hil!1g
y,
NhiIllg
It)]
\lily
t'.IO
Ihilllh
danh <tell
Ihi
Jail
Irllycll
qua
pil[ill
IU
(~~l

L

('r).
-1
C;te
](')1
Ian
IruY':1l
LeIi'!
11m
Ih:ty Irl'll d:ill
ra
hl'll ngo:li ella
l11<.\ch
(
lao
Ihilllh
I.)p
h{yp
ell'
li)i ph,lt hien
dLl"<:)'C
nho
b(l
gi;i
Irj
(L-ILl
\'i't()
dil
eho,

Cilling la
:\01
\-{
dl,l
dlii \'6i ]\l'.lch trell hlnh
)-).12.
sau khi ;lp
dung
IlI;:lt
D.
1.:1(1
hop
de
Ii))
nh:1Il
dU\K
Sl:
1;1:
1.1'
= I
cI
"
.
('i"
g".
II'
\1',,'.
PI'
I
CLlIIg

1II'00I1g
IU
nhu
phuong
phiip
m(l
hillh ho,\
j()i
suy
di~ll,
\"i~e
Illl,l'e
hl':ll
\11'
I~
"UII)!
~ung
til:
l't')
Ihc
lll(')
hillh
110.\
d()llg
Ilti'!i
lrl'll
de
\'ceto'
(L-ill
\';10

tHong diii
pilLf,,"
\'.Ip.
:\!lll' \':Iy. chl'lng la
d21
J1.l2-hicll
eLfU
IIhCfllg
phU"lillS
ph,ip ml)
hll1h
hO;1
j{1I.
t.)(ii
tU'lftlg
ap
dl.lllg
ella
nllllng pillfo'ng
pll:IP
n;IY
Iii
ph.il ilien e,ie
16i
hrlllg
~(j
l'lltl ceil' lllach
1(;
Ilo'p.
Chung

ta
dJ
Ih,t}' lrollg eilUlmg
),
khl
Ih~rc
hlen Ill()
!tl11h
!to;l
j()1,!Je
ei10
1I1'.lCh.
ehL"lng
La
e6
Ihe [inil dell d(l
Lr~
eLla
Ciic
ph:ill
ILl'
cling nllll' hlllh
lL,llIg
eLla
lill hll'U. Do rl{)
chung
La
cung
e6
Lhl;

XCL
d6n
llhCfllg
1]1(')
hl111!
I{)i
Ilf{ill!;
Il'ng, I\JlI
chung.
qua
Irlnh
m()
hlnl1
ho,i
It)i
nl"u
duOl'
Ilnl1
llj'j
L;ic
lh()llg
~{\
\'':
11}(\i
glan
xLf
1;'
s0
pll1l'C
I:,\P

hon
r:\lllhl~U.
2S7
§S.5.
]\:1()t
s6
plllWn~
Illu1P
lam
dun
gian hoa
qll~l
trinh
ki~1ll
tra phat
hi~n
lui
V6i
~lf
pb;illri~n
ella cbng ngh¢ VLSI.
kkh
IhulJ'c
\'it
uo phue lap eua
de
m'.lCh
~61{l\lg
nhanh.
Khi


6 hl\ing
de
ph~ln
Ilf
nweh
tfll1g. thai ginn
d.n
Ihiel
dc'
lao
de
h()
gij
Ir!
thll' nghi¢m
ph!l!
hi¢n
Jeli
t[mg.
D6i w'ii nhil'ng mach
phCfc
I;'IP
nhLf
de
h'J
\'1
XLI'
I)'. hiu
tOiin

kicm
Ir<l
1(.1
lrO'
llell
h0't
Sll'e
pllCle
\',Ip.
Dc
gi:1l
quycl
V,lil
de nay. ehling
\<.1
k.h()llg
the chi
gl6'j
han 6 \'ice
I!m
ra
nhU'llg
phuong ph:\p kidm tra
e6
hi¢u qllii
Illa
dm
ph,ii tim
each
thie"t

k0'
nhl"rng
m'.lCh
cllO
phcp
1~1I11
d(m
gi,in hoa
h~u
tmin ph'lt
11I¢n1t'1l11~ilY
11'"
c:,,'1.
DC:
1<'lIn
dOll
gi"1l1
h6a
qua
trinh kicm tra
V;I
phal
hlC'1l
I"i.
,.'hlllig
I.l,dn
ph.li
gi'-II
quyel hai
hhi

lo,in:
mli to,in
thCr
nh,'ll
1:1
giam
thai
gian
\i.IO
de
\'cctel glii
Iri
thu
l1~hi('
n.
Bili
to.ln
l1;\Y
dWje gi,ii quy0't
[x'ing
deh
xiiy
dlfng
nhiJll.!:!
Ihu~l\
\(:
'11
1' 10
n:eW
gi:\

Iri
thu
nghi¢11l
hi¢u
qUit
hem,
13;'ti
loao Ihlf hal
Il\
llun gium so
IU'Q"ng
cae
ph~p
ki~1l1
tra \'a
nh~tn\
l11l}e
dich
Iil.
Elln
gi,'lIn
Ihoi gian kiem tra m'.leh.
Them
\
;10
d6.
l hi
thi(1
kc'
nhil'ng m;.leh

de
kie1l1
Ira
Ihen
dte
111~\c
(Heh
nell Iren lai
mlY
sinh
ra
cae
v;1'n
d~
mO'i:
T[l!1g
,,6Iu'(!ng thiet b\
d~
1~lm
don
gi"1Il
h6,1
qu(\
tdnh
klClll
Ira
me.leh.
Ci,-llll
t6e
dc)

lam vi¢e
do
ht;
qu,'1
ella
\,I¢C
Jilin
don
gl'-'lll
h('l<\
LJuit
trlllh
ki(:'1l1
Ira.
Nhu
v~ly.
thi6t ke
nhCrng
m'.leh
de
kiC'lll
tra
e6
Ih~
COl
I:.
Ihi(1
k['
mach
l[lgic

\"(J"i
kh:\
nflllg
thC1l11l1(11
s61Wmg
l{ii
thicu thiet
b~
hl';
sung
\'~I()
mach
111~1
kh6l\g
Elm
tha)-,'
d()\
ehCre
m'lng
V~I
dc
111<1111

6 clla
Ill'.ICh
b'1I1
d:iu
kc'l
11(.1'11
vdl

kh.i
11,lng
Ihlfe
hi¢n kidm
tra
m~lCh
hang m()t so
IW)"llg
IIhb e,ie \'cc\(1
glii
11"(
klc'm nghi¢m
nh;~11
du·l.1'C
tLI'
nhiJ"ng
phuo'ng ph:lP dlm gi,tll. Trong
t1we
k'.
de
nh(lIl du'qe
1l1()1
pl1l1'ong
ph.jp tho.i miln
I[it
cil
de
) 'cu
du
neu

1r(:11
\:\
l h{mg
don
gi:l11,
do dtl.
Il'Ol1g
qUi;
trinh Ihi(1
ke
nhCt'ng
llweh
de
kiC11l
Ira.
nh;1
Ihi(1
kc ph,li
citra
ra
ducK
dch
gi'-li
quyC"t
nhlin),!
\',In
d~
nOI
Irell.
1.

Cae
giOi
h<:l"
ve
diu true eua
sa
do
t T6
ta
ch(rc
nan~
phall
Ilr
K f(x.),J
I t
2
H)'
~
x:f
4
, +y
5 xl'
ri
.\ffi Y
7 "
Citc
hilln
chuc
l1im)!.
ctla

ph[\Il
tll
Ky
hitu
phan
III
IIinh 8.33.
M6
til
cflu
Ink
va
ch(rc
nang clill
(lh£in
Ilr
co ban.
Tnr6c tien, cluing ta nghicn
cuu
nhung
phuang
phap
thiet
ke
nhung
rn<.lch
de
ki~rn
tra bang dl!a
tren

vi¢c
x&y
dl!llg
nhung
m;:.lch
logic
co
mot
d<;ing
nhat
dinh. Nhfrng
rn<;lch
d6
thuemg
c6
cau
truc
d~ng
rna
tr~n
hai
chi~u.
Vi
diu
truc
cua
m<;lch
co
t[nh
guy

lu~t
cao
cho
ncn
chung
ta
co
th6
tong
hqp
d.c
veeta
gia trj ki6m
nghi~rn
cho
nhfrng
rnl.wh
lo,:\i
nay
rn(H
each
luang
doi
de
dang.
Cluing
ta xet vi
dl,l
mOl
rn<;tch

kinh dien: rna tr(m
d.c
phan
111
co
ban vai
nhung
gia tr!
dLICJC
giiin
ILICJc.
Ph,tn
Ill'
co
ban
cua
rn'.lch la phfin
tll'
e6
hai
dJ.u
vao va
rnQt
cHi.u
ra. Phan
IV
nay thl!c hi¢n
1119t
trong
bAy

ham
logic
co
ban
nhu
trong rno
til
In::n
hlnh 8.33.
M<;lch
ICing
th~
sc
co
cCiu
truc
dLICJC
rnb ta
duai
d<).ng
rna tr(m nlur Iren
hlnh
8.34. Cac
ehu-c
nilng
logic
duqc
tht!c hi¢n
Iren
co

sa
kel
hCJp
ma
tr~n
thu(ln
va
ma tr4n nghi.ch chio. Ncu chQn
ham
chu-c
nang
cua
plutn
III
trong rna
tr~n
thu(m la
xy
ho~c
XY, Ihl hiun
chuc
nang clla
phan
tll logic trong
l11a
tn)n nghjch
c1iio
se
co
d' mg

(x
+ y ) va
duqe
the hi¢n
duai
u,!ng
chuan
tac
tuy~n.
TLr
d6
suy
ra,
[rang [wang hqp t6ng quat, chung
[a
co
[h~
:',
:$:$
."""""
:$.
:
bi~u
dien
va
x&y
dl!ng
chtCJc
rnQi
ham

A.
__
._._
_
__
_
logic.
Trong
rnl,lc
nay
chung
ta
chi
xel
de
loi
hang
s6
tren
cac
duang
vao
va
duong
ra
x,.,"
#""""""~
»
eua
cae

phan
Ill,
Qua
trlnh ph,'it
hi~n
lai
se
duqe
tht!c hi¢n
theo
trlnh
It!
sau:
I.
Xac
djnh
gia tr!
~I
cua
t~p
hqp
cae
trang
moi
cQt, gia Irt dfiu ra
z)
trung
t:"

~

bicn
chiu
'laO
(.fl.
x
2

.•
"
x,,)
sao
cho
#::
:
vaiy).
+
z,
Z,,'
Hlnh
8.34.
fo,[a
tr~n
cac phan
Iii
vCii
cae chile
ruIng
gian
il.rqe.
289

2.
Neu kbi thay doi gia tri}'J d6i voi
b(i
gia
lr!
dau vao
X/
chung
ta
nh~n
duqc sl! thay doi gia
tri
ella
zJ'
nhu
v~y
co the ket
IU~1l
ding kh6ng co
llii tren cae dau vao va dau
ra
eua
m<;lch.
Di~u
nay duqe thlfc hi¢n voi
mQi
e(it trong
SO'
d6 eau truc
CLla

m;:.leh.
3. D6i voi phan
tt'r
tren giao diem cua c(it thu j
va
dong thu i, chung
ta
il!a
chQn
cae gia If,
XI'"''
X"I'
X'+I'
• •
XII
va
Y
J
(X,i.
Y ) sao eho duang
truy~n
tir dau vao Xi toi dau ra
ZJ
tluqe kfch
hO<;lt.
4. Neu khi thay d6i gia tft
x,
d6i voi
(X,',
i)

gia tr! eua
ZJ
cling thay doi
thea,
nhu
v~y
chung ta co the ket
lu~n
rang phan
tt'r
thu i va
thu
j
ho<).t
d(ing dung. Dieu nay se duqe
nghi~m
dung voi
mQi
phan
tu
trong
m~ch
ma
tf~n.
Thea cae buoe thl!e hi¢n
neU
tren, chung
ta
co
the & dang kiem tra

ho~t
d¢ng eua
to~m
b(i
m~eh
ma
tr~n
thu~n.
De
co
lh~
ki6rn tra
hOi;lt
d¢ng
cl.m
rna
tf~n
nghteh dao, chung
ta
cling co the
d~
dang
x<1y
dlfng cae vecla gia tr,
lht'r
nghi~rn
bang each khbi
t~o
cae
dUO"ng

truyen kfch
ho<;ll
nh~y
cam v6i loi m¢t
cach tuan
tl!.
Yo
Cluing ta
nh~n
thay, cau
trUc
cua
rn~eh
eOng
giG"
nguyen khi xay
dl!I1g
~
K
f{x,y)
y
Ph:.!n
1I'r
co
tliin
cae ham khae nhau, chi co
eac chue nang eua cac
f-+ +-f,
phan
tt'r

Iil.
thay dei. Do do,
vi¢c xay dlfng cae b¢ gia
f +-f-
f2
Il'i
thu nghi¢m trong
tmang
hqp nay khong phuc
t~p.
Nhu
v~y,
rn<;lch
co the duqe
eoi
Iii
de kiern (ra. Tuy
nhien, khi xay dl[ng
rn;:~ch,
f +-r
fm
chung
ta
can
su
dl,mg
so
/{x,y)=,+y
(/(=1)
,.


Y
(K
=
2)
luqng
phein
tiI
cO'
ban nhieu
hC1n
so voi qua
tdnh
thiet
k€ logic thong
thuO"ng.
Ngoai ra, d6i vui ma
tn:).n
kieh thu6e
11
x nJ,
so
luqng
Hinh
8.35.
Ma
trAn
NOR·NAND.
dc
tiing bang 2m + II, nhu

v~y
toe d¢ lam
vi~c
ella
rn<;l-ch
co the bi giam. Vi nhling
Iy
do tren, vi¢c tiwc
hi¢n xay dlfng cae
rn<:lch
16gie
theo
phUC1ng
pMp
neu tren
g~p
nhieu kho
khan
trang
thlfC
teo
SOluqng cae veeto gia tfi thu nghi¢m co the
d<;ll
toi 2m(
II
+ 2 ) d6i
VOl
m¢t ham 16gic.
290
Trong

ma
tr(1I1
noi tren,
chung
ta
sv
dl,lI1g
IXlY
h~\!n
logic
ed
ball.
IUy
nhien,
mQt
hi\111
bfit
k)' c6
the'
dUQ'e
bieu
di~n
htlllg
hai
h:l1n
eo
b,in:
I'\AI\D
hO~le
NOR. Nhil'ng

ma
tran
d6
dUQ'c
gQi
Iii
cae
ma
Ir[1II
d<.mg
NAf\jD-
l\'OR.
Khi
:X~ly
d~fng
k
hhm
/I
-


I


r
'~).
=lD
~C
\1
-j

Hlnh
I'L~6.
X[IY
dung
Ill,!ch
logic
It(
nhL'mg
ph in
llf
AND
dl
XOR.
bien bang
cac
ma
tr(\I1
cl'~11g
NAND-l\'OR.
s6
lU\mg
cae
vecW gia tl"! thtl'
nghi¢m bfing k(
/I
+ 2
),
va
so
II19ng

cac
tiing
el.re
(t.li
b<.\ng
/I
+
k.
Nhu
v(~y
eung
la
thay rang van
de
vc
soluQ'ng kiem Ira chua
dUQ'e
giui
LJuyet
tri~l
cit
MQi
ham logic co
th~
biC:u
dicn
du'oj
d

mg

to
hqp cae phcp loan XOR ella
d.c
tfeh
logic
( xem chudng 2
).
I3i~u
dicn
h~l.in
duoi d

mg
nhlI
v(l.y
eho
phep
tlWe hi¢n duai
d,~ng
m'.leh
hai tang clla
cae
phep loan
logic
A; JD
va
XOR -
d~llg
il1i.lch
AND-XOR.

vi
dl,!
ham logic:
J(
.\""
x
2

x,)
= X
I
.\"2
E8
.\":>-\"!
E8
xl"r
,
EB
XIX~·.i
x,
x,
x,
Xl
0 0 0 0
T,
0 1
I~
j
1
0

o
-O-
j
1 1
1_
d 0
1
0
T.\
d 1 0 1
d
1
1
1
\ d - trang nhilng
di~u
ki~n
thong
thuang,
nl1(\11
gia tri
'0'
hO~le
'1 ';
T\
-
kitm
tra phan
tt'!
AND;

T"\
-
kiem
tra
phan
tv
XOR.
IILnh
tU7.
Cie
b6 gia tri lhl( nghi¢m
T
deli
v6i
mach AND-XOR.
se
du,<!e
bieu
di~n
duoi
d~lJ1g
m'.leh
hai tang nhlf tren
hl11h
8.36. Cae
veeto' giJ tri
thu
nghi¢m
eho
nhfrng

m'.lch
IO~li
nay
co
C[\U
true klui dan
gian.
CYu
true mly
bao
gam gia
Ir(
'0'
doi voi
ll1ql
bien
va
gia
tr!
'1'
doi
v6i
cae
bien eon
l<;1i,
Neu
so
11Iqng
cac
tfeh

CLla
/I
bien
logic bang p,
chung
tu
co
tht
thfly
ding
s6
1l1qng
cac
veeld
gia tf! Ihu
nghi¢m
sc
btmg
(
2/1
+ 4 )
V~l
so
luqng
el,fc
d~li
cae
tfing
m~lch
se

b~\llg
p. Neu so sanh voi
dc
plnJ'aug
ph<.lp
xay
dL!ng
cae vccto gia trj thu
nghi¢m thong thuang, so
ilIQ'ng
d.e
vccto
gii.l
tr(
tho
nghi~m
kh6ng
16n.
291
M¢t
di~tn
khac
bi~t
la
soluqng
d.c
!ling
vU'Q1
xa
so

luqng tiing neu so s

lnh
nJ' xily dvng
tn;;tch
bAng
phU'C1ng
phJp
thong thuang.
2.
Hien the ctta
sa
Mi
m<;tch
va cac phau
to'
them
11100i
N6i chung.
de
don giiin h6a hai tmin phat
hi~n
16i
trong cae
m'.lCh
logic,
chung
ta
d.n
don giiin hoa

qua
trlnh quan silt cac phtin ben lrong
cua
m,.tch
va
gii.\n1
nl19
vi¢e thief
1(lp
de
gia
II',
tuy
Y
h.ti
dc
ditm
ben Irong ella
nl<.\ch.
Noi theo
dch
khae, chung ta can tang tfnh
d~
quun sat va kh;i nfmg
h~l1l
smil clla
111<.1cl1.
Voi
I11l,1e
dich do, chung ta

dU'a
van trong
mi.\Ch
nhling phan
IU
bo sung va
thl,fe
hi¢n vi¢e hien
deli
so
do clm
111' lch
sao
cho
m,~eh
kh6ng
thay
doi
vc
chu'c nang. a day, m¢t
vtin
de
quan
IH,lI1g
Ii!
chung ta
phii
Xil.c
d,nh
duve

tnl,lC
dieh chinh khi nghien CLfU
x<ly
dl.J'ng
nhO'ng
'm~ch
d~
kiem tra.
Neu
xuAt
phat
di~m
Iii.
s6
IU'qng
clJe lieu cae h¢
gii
II'!
rhu
nghi~m,
nhU'
v,)y eh(ing ta co the bien dbi
mi teh
di~n
sao cho c6 the phat hi¢n duqe
16i
chi
crin
il nhal
Iii.

ba
be)
gii.l
trj thu
nghi~m.
S6
IU\ing
nay
dU'qc
dU'a
ra dlJa vaa
nh.)n xet
111m
sau:
de'
co the phat hi¢n
16i
ella
nhO'ng
phfin
IU
AND
va
OR
c6
hai
dilU
vao, cluing ta ctln
it
nhal ba b¢ gi,i

tri
kie'm
nghi~m,
vi
v,-~y
c6
the'
noi
ba
b(l
gi<.1.
Ir,
thLr
nghi¢m
Iii.
dn
duai
thea
Iy
Ihuyct.
De
ph<.1.t
hi¢n loi eho
m;.leh
AND c6 hai dfiu
\,~IO,
chung
ta
d.n
plu'li

ki~ltl
tra ph
all
tu
v6i
ha
h¢ gia
tr!
duu
V~IO:
(
n.
I
),
(
I,
0
).
( I. I
).
Do
dl'l,
pll'-i.n
tif
A:"JD
co the
dli'l,)"(
kitlll tra boi btll k)' hai trang
so
de

clay
gii
II'!
dfiu v;\o
sal!:
S,,= I
all,
101, 110 I
Trang
truong hqp phan
tiI
OR.
\'i~c
ki.hn tra co th0 du9'c
hao
dam blii
h.:ft
ky
hai trong
s6
de
day
gii
trt duu VllO sau'
S"
= I 001,810. 100 I
Dc
e6
Ihe
plli.lt

hi~n
dU'qc
16i
dung cae dily gia
Irj
drill
vaa
neu Iren thl
m<.lCh
dn
phii
duqc bien doi
nhu
sau:
292
I.
Mi.~ch
phai duqc
c1llly~n
doi Ihanh
ll1i.tch
chi
chua
de
ph an
tu
AND,
OR,
NOT.
2. Philn

tl1
AND
(
hoi!.c
OR
) co
so
luqng uau vao la
ba
hll[te
hCiIl
SC
~
'
x 001
Y101
Z B f
b)
duqe khai trien thimh to
hqp
licn kct
tu,l.Il
tv
cua
cac
ph,l.l1
tu
Al\q
(
hm)c

OR
) co hai
dfiu
va~.
Vi
uy, phan
tll"
AND
c6 ba
d.l.u
van
In::n
hlnh 8.38a se
dlIt}C
kiwi
tri~n
th~ll1h
mach
gam
e6 cae kct noi
eua
cac
pluln tu
AND
hai dau van
1110
ta
tl"cn
hlnh
R.3Rh.

3.
chung
Bat
dfiu ttl
ok
Miu
vao,
ta ch91l
cae
h¢ gia trj
Ilinh
~UR.
Qua lduh phan ra
1ll1.ICh
cho phcp phal hien16i chi
Vlji
ba b6 gl,i
If!
dilu
vilo.
thu nghi¢m ttl trong
c<lc
ehuoi
S"
va
So
lUang ling voi
u,!-ng
clla phan
IU.

Truy~n
de
gia tf! nay toi
U,l.U
ra ella m',leh.
4. Neu trong
qUi.\.
Il"1nh
lruy~n
gia trj,
khang
nh(lIl
dUt}e
cae
day
tin hi¢u
ttl
SA
ho~e
So,
chung ta
dn
phai them vao duong tin hi¢u phun
tu
AND
ho~\C
OR co hai dau vao.
Vi
dL.I,
nc'u

day
d.c
gia
tr[
duqc Iva
cJ1911
nhu trcn hinh 8.38b, khi do
I<~i
dflu vao clla phan tu
AND
II se xuat
hi~n
day tin
hi~u
"001".
Neu
thcm phan
tu
OR
nhu trcn hinh 8.38e
V~l
Iva ehQn b¢ gia trj luong
Lrng,
llml trinh phat hi¢n
16i
t<;li
Uit
ea
cae phun
IU

trong
m,.tch
co
tht
uuqe thVe hi¢n chi bang
ba
b¢ gia trj thl! nghi¢m.
5.
L~p
buoc
IB
va ll4
cho
toi khi lren tal
d.
de
phan
tLr
trong
111'.ICh
thiet
l~p
duqe cae
gi<i
tf!
thu
nghi¢m.
Vi
uy
ve

phuang phap nay duqc
uLfa
ra tren hinl) ti.39. Vi¢e ,ip dyng
buoc
1 va 2 uoi v6i
m<;teh
Iren hinh 8.39a se d,\n t6i Ilweh trcn hitlh 8.39b.
Sau
do bang each ap dyng luan
II.}'
cac buoc 3 va 4 dni v6i
m'.lCh
tren hlnh
8.39b.
chung
ta
nh~n
ULfqc
m<;tch
Iren h1nh 8.39c.
Plll(ong phap noi tren co y nghia
ly
Ihuyct tfcn
quan
diem xuy dVng
m<.tch
voi
solu'lng
CLla
bl}

gia trt
kie:m
nghi¢m toi thieu.
Trang
tlwe Ie khong
Ung
dyng duqe vi phai tang
soluqng
cae phan
IU
len nhicu.
293
Trcn
quan
diem
llwe hanh Ihl ta can phili tang tlnh
hi~u
qua
eua qua tr1nh
tong
hQ'p
cae
gia
tei
kiem
nghi¢m
voi slf tang t6i thieu
so
IUQ'ng
cae philo

tLI'
m,~eh.
294
x
r

y
, 1
Z r++
__

x
110
100
0,
Y
101
c,
01
001
011
c-
Z 010
,
c,
100
o 1
010
C
4

001
f
a)
b)
100
0,
010
0,
001
°e
c)
011
07
0,
101
001
Hinh 8.39. Phan ra cae ph[ill
ttf
nhicu dall vilo thanh Ole
pldn
ttr
hai
diiu vao: a) vi
du
mach
tci
hop:
b)
xay dung mach theo
cAu

tnk
dang cay: c)
ph:l.n
ril
thanh
ok
ph[in ttr hai dau vao.
Rai
t:)p
cho
chu:ung
H
I.
Tim
nweh
sCi
e6
lhe
chua
m¢t loi
ngit
In4eh
kh6ng
phal hi9n
dm:;1C.
2.
C6 ton
t<~i
m"t
mi leh

10
hQP
C voi m9t dl1ang tfn
hi~u
S nao
d6
"il h9
gJ<l
trj Ihtl' nghi¢m I
sao
eho
b¢ gia
tr~
t
co
the phat hi¢n d hai loi s-a-O
"il
s-a-l
In~n
dLIong
tin hieu S ? Hay eho vi
dl,l
hm~c
chung
minh
rtmg dieu
d6 la kh6ng the
x~y
ra.
3.

Cho
1TI4ch
so
In~n
hinh D8.1. Hay xac
djnh
haITI
ra ella mach
<.lSi
v6i
nhung
loi sau:
a)
Loi
hac
cUu
A: JD
giu'a cae
dau
vao ella phun
tiI
U I.
b) Loi kep {Xl s-a-l,
Xc
s-a-O}.
x,
G1
a
x,
Hlnll 88.1

4.
Vai
m~ch
di~n
trcn hinh
mu.
nhu'ng
h!)
gia
tr~
nilo
lrong cae h¢
gi,ilr!
sau sc phal hi¢n loi
Xl
s-a-O:
a.
(0.
1.
I,
1
):
b.
(1.
1.
1.
1
):
c.
(I,

I,
O.
1
):
d.
(1.0,1.0).
5. Doi voi
lm~eh
di~n
tren
hlnh
D8.!,
hay xac djnh hieu thue 16gieeho
tAt
Ci.l
cae

gia
tr!
thlrnghi¢m
ph
at
hi¢n
16i:
a.
x,
s-a-O:
b.
x
2

s-a-O:
c.
x1s-a-l:
6.
Hay
thLfe
hi¢11
nhG'ng
thao lac sau doi
nJi
lTI<:tch
di~n
trcn
hlnh
ll8.2:
295
296
A
B
C
Tim
(i.~p
hqp
hft
ca
d.e
bQ
gia
tr!
thu

nghi~m
ph<it
hi~n
16i
a:
s-a-O:
"I1m
t(lp
hqp
Ull
d
de
hQ
gia
trj thtl
nghi¢m
philt hi¢n loi
b:
~-a-O;
Tim
(~p
hqp
tat
d.
cae
bQ
gia
tr~
thu
nghi¢m pilat hien

16i
kcp
l
a s-a-O, b s-a-O)
a
/
~
-
Z
r-
Hinh 88.2
D
TiIi
Ii~u
tham
kiulo
1.
Sa\"diev.
A.
Ya.
Prikladnaya
Theorya
Tsiphrov)'kh
Avtom<lto\'.
Utsdmik
dlya
VUZOV
po spets EVM. M Vysshaya Shkola 1987.
272
pp.

2. Savclicv.
A.
Ya. Ovtsinnikov. V.
A.
Konstruirovanic
EVM
i ")".;km.
ljt:.;ehnik dlya
VUZOV.
M Vysshaya Shkola
1984.248
pp.
3.
Norcnko\'. L
P.
Manitscv.
V.
B.
Systemy
avtomatizirovannog;o
Proektirovaniya
c1cktrollnoi i v)'tsislitelnoi
apparatuf)'.
M
Vysshaya Shkoia
1994.272
pp.
4.
Ugryumov
E.

P.
Proektirovanie elementov i uzlov
EVE.
M Vysshaya
Skula 1987. 315pp.
5.
K.
Kinosita.
Logitsheckoe
proektirovanhie
SBlS.
M Mir !
989.3
\0
pp
6. R.
S.
Sanclige.l\lodcrn
Digital
Design. McGraw-Hili, Inc. 1990.
7c.t1
Pl'·
7.
Y.
Hsu.
K.
F. Tsai. J.
T.
Ltu, E.
S.

Lin.
VHDL
modeling
for
Digital
design
synthesis.
Kluwer Academic Publishers 1995. T"i6pp.
8.
D~Ulg
V[\I1
Chuye"t. K5'
thu~t di~n
til
s6.
r ;XBGD, 200n.
9.
Nguyen
Thuy
Vtm. Ky
thu~t
s6.
NXBKHKT.
19q1J.
10. G. De Micheli.
Synthesis
and
Optimization
of
Digital

Circuits.
~1c
Graw-HilL Inc. 1994. 580pp.
11.
I

Nayabi.
VHDL.
Analysis
and
Modeling;
of
Digital
Systems.
Me
Uraw-HilL
Inc. 1998. 632pp.
12. M.
Abramovici, Melvin A. Breuer, Arthur D. Friedman.
Digital
Systems
Testing
and
Testable
Design. Wiley-IEEE Press 1993.
653
pp.
297

×