Thhng IlllfiJ'ng Irong nhi~u 111161 ke ~t( xu:;! hiC'n ,) li0n k~'l gJCra dc ph{ln Itr kh()ng Wan theo 'Illy IU:I! 1(1)) giang lrong \'l til.1 lrl'l1. t)6i \'(1"j nhll'ng Inro-ng hq'p n~ly. ng(m ngCi' VHDL cung dip kll.'l nCtn.:-: Ill() IiI mach ~lr dl,lJlg S(i de) if. Kh,\c \'(ii du ICnh if tu{in I~r. du lC:nh if kll(',i Ian khClIlg cllli'a cal' nlHinh cls(' \'J. dsif. Di~u n:I.Y c('i the hlL:lJ dLf(/C \,1 lrong m(lt m',lch ph:in cung xac d\nh kh6ng the' n:1O t(ill tal hfa l'llOIl cfu truc dl,fa \':10 dCr It¢u hC'1l ngoili. Co ~ '" .~ IV" FA I I YI" I Xi2, I Yi2l ~ FA ~ I IXil l I, 'I (I j \ \((11 \ YI II, FA 1<- HA I I /(1) Z(O} lIinh 7 1. Xii) dUllg b(l ~'OIlS hl'in b11 III h:1 b() c(lIlg d,ly <Ill lll()t bit vii 111(11 h6 nLra t(i ng m(lt hit. Vi dt,l, chung la x,ly dung he) e(lllg h(in hit Ill: ba b(l C(lllg (tty dtl IlH)t hil \';\ 11l9t he) I1lra U;llg. Chi true n~IY fU'ong t~r e:lu true Iren hlnh 7.:'. chi U.;c 1'.li m()1 diem lit khollg c6 dolu \';\0 ·'0" ellO ph.'in III d~\u lien. Nc'u SL! dung e<fu [rlle if, du Irue clla he) U?llg h6ll hIt sc du'q'c m6 t,-lllhu' salt: architcctUf(' Gell_for of FullAddcf<+ is sj~nal X, Y. Z: STD_l(XiIC_ VEL/OR ( ) downto 0 ): si~nal Cout : STD_LOGIC signal Tmp : STD_LOCiIC_ Vr:crOR (4 downto I ): componcnt HalfAddcl" port( A.ll: in STD_LOCiIC S, CO,, out STD_LOGIC}: cnd component: hl'gin GO: for I in 0 to :. gcneratc G I: ir I::;::: 0 gcncrate HA. HallAddcr port map ( X( I I, V( I ), /( I ), Tmp( I + I ) ): 213 l'nd gelll'rate: (;2 : if 1> 1 and 1<= 3 gelll'rale FA: Half Adder port map ( X( 1 ). Y( 1 ). end gl'l1cratc: l'nd g;cnl'ratc; COlli <=:: Tmp( 4) : end Gcn_for: Tmr( I ), Z( I ), Tlllrl 1 + 1 ) ): B<1t k)' Im)t c,ru truc ~ong song cLla VIIDL nlllf cac quCt trlnh. dc 10nh g,in lin hi¢u song song. C<IC kh6i hO~lc dlc 10nh gOl ehu'(mg Irll1h con "ong ~nng \'il dc knh kh('1i 1'.\0 kkk co the ntl111 ben Irong dc OlU l¢nh kh('fi t,.lo, Khi Slr dL,mg de du l¢nh ["hoi lao l(lIlg nhau. Chlll1g ta c6 the x,ily dl!'!Ig nhun,f! criu true e6 II1Ih quy hl~11 nlur _~illi' !\e,sh:d_Ocll: block L I: for I in 0 to J gcnl'l'ate L2: for J in 0 to J gCl1l'ratc r-A: CELL 1'01'1 lI1ap ( AI I ), Il( 1 ), Ci 2 " 1 + J), ill 1+2' J ) ): end generate end gelll'ratc l'lHI hlOl'k Nesled lien 4. ('lie eau hlnh OIC kiwi h,lo th:lI1h ph[in \'il e,1e phiell IXln ella thilI1h phrin ehi ehii'a m(l til ben ngoili ella m()1 pkin It! maeh Irell 1l1()1 mue chi liel nh:il d]!lh. C:le Il1l,IC the nilY kh6ng th~ slr dl!lIg du,\1C trong qU:I trlnh 1110 phong hCii \,1 el1llllg kh6ng ehua nhLIng th6ng lin 1116lil \'c ehlJ'e nflllg eua ph[intLf. Nhl!' \,ily de e6 tlte tlwe hien m6 ph('lI1g hOi.\1 d0ng ella phiin IV, eitlll1g la ('fin 1I10t C(f eit61i0n ke'l cae m(l 1'-1 bl'11 ngo;li d clle du true h0n Irong ella pl1fln Ill'. Tron~ ngllll ngLr VIIDL. cO' ehc lien kc'l n:ly dl(.K th~ hicn lrong C,tC ('(ii' IliJlil ella pldn ILL Chllllg la ha~i X~I \'1 lIt,l me) I,-i du true clla Ix) e()ng d,iy (1t'[ Int:)t hil fullAd(\(:r lrl'll hlnh 7.2. G() eong nay dLIqe 111() 1:1 h;lIlg do' 11l chu'(mg Irlnh ~au: 214 libraly IEEE; usc IEEE.STD_LOOICII64.all; entity f-u HAdder is port ( A. B. Cin: in STD_LOGIC Sum. Cout: out STD_LOCiICl: end FllUAddcr; ar(.>hitectnre 1\11)\ of FullAddcr is component Xorgatc: pori (10.11: in ,TD_LOOIC: 0: out STD_LOGIC): end ('>olllponent: component And2g<tle: port( 10. 11: in STD_LOGIC: 0: out STD_LOlilC): end component: component Or2g.ate: port (Ill. II: in STD_!:OGIC; 0: ullt STD_!:OCiIC): end component: si~nal SI. S2. 53: STD_LOC,IC: begin U! : Xorgate port map ( A. B. S I ): U2 : i\nd2g~ltc port Imlp ( A, B. S2 ): U3: Andlgate port map (On. SI. S3 ): U4 : Xorgalc port map (Cin. SI. Sum ): \ "5: Or2g.alc port map (S2. 53. COllI ): end IMP!: Trong do,.111 chm"ing trinh md til 6 11"011. chung ta chi kiwi bao \'~ ki~u clla Ih~lIlh ph[il1 \'~\ nhG"ng phuong thue kct n6i giiIi.\ Chllllg mil kh6ng chi ro cal' chu·c nung ella lirng Ihanh phan. NhLI v<~y. de th",fC hi¢n V:l 1116 phl)ng doan chuo"ng trlnh n6i tn~n. chung ta dn phai m6 tit hi\nh vi cua lung Ihanh phi1n. Trong do,~n chm1!lg lrinh dudi day, c hung til mo li'\ nhilng llwc the thal11 £oia ~~t~cc~~c~~d~~~~~t~th~~~~~ phan khai h(LO Hwc the \"u mo til. hanh \'i. library IEEE; lISC IEEE.5TD_LOGIC_II64.all; entity And2gatc is 2\5 POI" ( 10, I!: in STD_L()(JIC: 0: out STD_LOGIC ): ('nd And2g:lte; architecture BH V of And2galc is begin 0<== 10 <lnd II: ('Jl(1 BHV: Iilll'ar:v IEEE: usc IEEE.STU LO(dC_1 ](i-J. ctll; ('ntit.'· Or1galc is port ( 10, II: in STD_LOGIC: 0: out STD_LOliIC ): end Or2galc: architecture BHY ofOr2gilie is hegin o <= 10 or 1[: end I3HV: lihraly IEEE: usc IEEE.STU U >CiICJ 164 ,til: entit." Xnrgale is port ( 10, I I: in STD._LOGIC: 0: out STD_LOCiIC ): end Xorgalc: architecture BIIV of Xorgalc is hegin () <= 10 xor I I: end SHY: Sau klli 1 lt GI de th~rc Ihe \'il ki0'n Irue ella Ilfllg phill1 Ill' tluqe hlen (heh \":\ chCra Irong c~\c tilu \'j¢n, chung la eo Ihe li~'n h:ll1h biell dieh mt'l hlnh ella h() cong d,'iy dLI m()1 bit Full Adder n~ll tr~n. Trong klli bien (heh IhiC"1 k( ella h(l dHlg (by ttLI, ehuong Irinh dieh -;C> d6i sallh ill'llg d!lIh danh ella de thimh phftl1 trong IlH) la thi0'1 ke \'6i e,le lhue Ihd trollg IhLl' \'I~'11 dang ~U dung. l\'C"u ling \'6i m6i Ih:ll1h ph::ill trollg Ih10-1 ke' c6 Ihe tIm th,'IY tlll,re Ih( c6 cling \Cn lrong e(lc Ihu \,l¢n. clUfll'ng trlnh bien dieh Sl: xfl)' dUllg lInK the Ill() phong 216 1\1PI Clta \16 c(ing FlllIAd(k'r c6 bit Ihilnll plliln 1;\ Xorgale. Or2gi\Ic \';\ And2gale. I\cu Il"Ong Ihlf \ i~n WORK chLm e<.lc tlwe the e6 eung 10n. clurrfng lrlllil 1110 phl'lllg se g{\Il k01 kie'n Iruc duoe bien d\eh "all dJllg ( trong IrUt)"])g h9'P tln.Tc thc' c6 nhicll hon lllt')! I·jen Inie ) \'6i nhung Ih;l11h pl]{\n tuong ling. Nhlf \,,~y nh:\ Ihi0't k0' I hl'mg nh[lt thid ph:ll (1[IC 1,i m()1 Clieh tUlHlg IllI11h ~V gtm kCI nhCrng phi0n lxin ella thi:tnh ph[ln \'il de e;:lp lh~re the - ki0'n In'le ehLra tWllg tlur yicn thl0'1 kc', Chung ta gOl '>l! g{1l1 kc"tn;\y 1;\ g;i.n k('1 1ll'.1C dinh. Trong tnrl1'llg hqp m()llhl!C the C{l nhicu ki(:n In'lc Ihl \'ice ehon m,:lC dlnh ki0'n Irllc dunc dieh sau dlllg e6 the kh()llg Ill'a eill}ll duU'e l i0'n tn'le e,-Ill Ihie:t. do d6 dn ph:li bieu dicn Cllu hlnh 11161 Clieh lui:mg I11mh. !\,1(lt thue tile c6 the l'{l nlllcli ki61 trLle, ;"'1(n kiI.<n Irue e6 Ih(: 1;1 m(l hlnh Ihu(l\ 1.);ln. klCll tIlic kh,le co th0' iii 11llJC thanh ghi truycn d<,lt ho;k e6 the Iii me) hlllh du tnk. Tr011 khia CI.ll1h Illlc't k0', ehllllg ta dn llya chon e.IL hle;n trllc ella phtll1 III 11161 each thich hqp \'ZI phai ehi j"("'i de khal b.lo th~re the Y:I Clie \ i"::l1 In'le SC lhlo'C h,.ra chqll. :"JIllr \,[\y. Ill(lt cl"u hillh ,0 cling ci'p l'hu chLlng ta deh ltya Chl}Jl nhCrng khal lXIO Illl,re the \'il ki(n true d6i \'()i Ilfng phi0n h.l11 cLla th:\1\1 1 phrin throe lll() t,'\ trong Ihflll kic'n trLle o'ta Ihic~l 1 :'. GIll hlllh ClI<.l \11()1 d~\C t.i th;lnh ph[ill dll\~c blC'U dien thco qlly 1(Ie ell ph.;p sall: for' < d;lllh._s.iclt phicll_han >: < t011_th;tnh_ph:-in > l1~l' < d~lc_t,i. ~?/In_kc't >: Trollg ct6: < danh_".kh_,phi011_lx'11l > ehi ra danh ,>.icll phien h,'lll Ula tltil\l!t ph:-in dlfO'C d~U du hillil( e6 t(;n dw,l'C chi ra b{l\1~ < lCll_th:lIllt. __ phan :> ). Phicll ball c(l the duqe d:,le la b,'llIg < nh:lll __ pI1l011_hall > hO:.lc dllllg e.ie tu' kh6a otlll'rs hO~le OJl\. • Tlr khl)a others chi \l~i de phicll h,in eLla thilllh ph6n C() k'll 1;1 < tCll_thilllh_phrin > d chua duqe d~.lt C:ill hllll1. • Tit kh6a all chi tl)'i 111(.1i pili0n b:!Il CU;1 lh;ll1h ph:;n C() len Iii < tCn_, th:ll1h_phrin >, < d.K_t.l_gdn kel > dU,1 ra dc ;[nll xa giCra de klc'n IdK duO"c llfa Chqll. dua Ihcn do phicn bill I \12 (hl\K x.'!y dlIng. Th(lllg lin 1l;IY sc duqe nl{) t<.i theo 'Illy lac Cll ph:ip sau: entity' < t01l_thu'_"10n.tcll_thLfc_thc > [( < tCll_kic'll_tn:ic > ) 1: 2[7 Nell tln,re Ihe chi co mol ki0'n trtic Ihl t011 Clla ki0'n true trong ph[11\ < d(\C_tll_gtlll_kc'l > ct) the: ducie hl) qua. Vi elu, la co Ihe d(le 1(1 b{) ct)ng dfiy du htlllg deh SLr dl,lllg cae ctlu hlllh nilLf 'i<'\U: lihraly IEEE: usc IEEE.STD_LOGICIIM.all: entit.y FullAddcr is port( A, g, Cin: in STD _LOGIC Sum. Coul: out STD_LOGIC): end Full Adder : archit(,cture !\-1Pl or FullAddcr is component Xorgale2: port ( 10, II: in STD_LOCilC: 0: uut STD LOGIC): end cumponent: component Andgalc2: port (1O,1l: in STD_LOGIC: 0: uut STll_LOCiIC): end component: component Orgalc2: port ( 10, I!: in STD_LOGIC: 0: out STD_LOUIC ): end component: si~Il<l1 51. S2, S3 : STD_LOCiIC for U I: Xorgale2 usc entit.y work Xorgate( BEV ): for uthe."s: Xorgalc2 usc entity work'xorgalc(BHY): for all: Andgalc2 use entity work.And2gatc: for U5: Orgalc'2 usc entity work.Or2gatc: hegin U I : Xorgald port map ( A, B. N 1 ): U2: Andgatc2 port map ( A, B. 1'\2 ): LJ: AndgaLe2 port Illap (Cin. N I. N3 ): U4: Xorgalc2 port map ( Cin. N I. SUIll ): U5: Orgatc2 port mnp ( :'-J3, N2. Cout ): end IMPl: Trong "I elu nlly. phicn hAn co nhan Ul eua ph:in ttf Xor se c6 11l{) {,i tU'o'n~ Crng nl'i tlurc Ihe Xor2gatc ChtIa trong tim vi¢n WORK. Yi¢c 1111I,::"t ];~r lien kc't giCi'a phi0n b ln va Inn t,i thy'c Ih":: duqc the' hi¢n tHong rninh ht'lIlg call 218 l¢nh g{1l1 k(l for. Cic phfin 111 Xor co nhan khk U 1 :o;C throe g:~l!l kl:'1 theD dlmg kn fur others tic'p theo. Til"! e,t e,le philn III Andgalc2 :-;2 :-;u: dl;l1lg C:\U h1nh IHo'ng {rn~ v{ji Ilwc Ihe And2gale. DCii v{ji phfin Ilt" Or vi~c 1111.l"C hi¢n g[\11 k~1 du Iruc cling .'\~ly ra wong. Il.L ~7.2. )\W hlnh hoa trcn m{te thanh ghi tru)'cn d: \t M()I Ihi61 hc' Ircn I11ltC Ihunh ghi Iruy~n d'.11 han g:61l1 tn(~1 \{Ip h(.1P ule thanh ghi licn kc'l v6i eLIc tn'.lch t(~ hq·p. Trong !llUC n;'ty. chun~ 16i .'-,,::: Iflllh b~ly mOL quan h¢ giLl"a d.c du Ink tren lllLre Ihanh glli trung ng()n ngu VIIDL \'il 1ll'.lcll 16gic sc ducyc 1(}l1g hem. 1. M6 hinh hba m;~ch to IHjP l\.1()1 qu:i Il"lull killing chLl"a dIU 1~!Ih if \'6"i tin lli0u dieu kllien Iheo 'arrl"ll 10n hO;lc :o;ui)"11 xLlong Ilo,~c kh(ll1g: chu·<.1 e[1Ll I¢nll wait \"ai dc .w klcn ella Ifn hi~u gQi Iii qu;.l Iflull 1(; IWp. /,\"1()1 Dill qu,i Irlnh 16 hap sc dUQ'c 16ug h(m hIlllg d.c Im.lell t(~ h(}p. VI tll.l sau drlY SC 11101,1 m:.lch It) h{.J"p Ilnll gi<i Irj nita ella b(l c(mg d{;), L1ll \'{ji cae d:iu V:IO A. B. Cillo signal A. B. Cin, COllt: BIT: proccss( A. B, Cill ) bq!;in Coul ¢.= ( A and B ) or ( ( A or B ) and Cin ): end: 219 TrOll~ \'f uu ni:ty, t[lt cit c,te till hi¢u vilo ph'l! dU'lK gIll trong danh ~,ich tin hi0u t • .\c dl)llg. Danh ",\eh tin hi~L1 t,Ie dl)ng ehi ra ril11g, qUii trlnh tfnh to,Ill dang xct ~c du\l"C tllve h!¢n khl e6 SLt' lhay ,I(;i CLla dc lin hll'U ntul1 lrong danh s,ielL D~ 1l1() til n1<.leh ll)gic td h0p. dc bien v:. tin hi011 troug 1ll()1 qU;! 11"lnl1 process kh(mg chfq'e nh;1Il gi,i 11"i g;!n kh()'j t',IO IrLr()c bl)'j \ I lllilCh It) IH)'P kh(m~ ehlia C:le ph:in III nlll}. Khi lrong 1l1(J hlnh mach e6 de hl6n hO:lc Lin hlCll dwye khll'i lao gi,i Ir! tn['lk, dlCll n~ly s.: Luong dunng \'('ii \'l¢e Lrol1g 111'.ICh ph,li c{) nhu'llg ph:in Ill' luu Ir([ de gHi lri kIH')'i [i.IO. l\'hu' \ ;)y h.hi lll() hlllh h6a e:lll Ink, ehuong trlnh 1m) ph()llg "i: ,inh 1"a de pld.Il Ill' nh(l &i Iuu tn-r de giii Irj J JJ('ii 1,.10. \1'.ICh tn)' Ih:lI1h mi,lch e6 nh6'. Them \':10 (k), trung dlc 1l1{) hlnh lllHeh t{i h(.l'p. de tin hi¢u \'i:1 hien c:\n ph'll dlt'oc ~iin ~Hi 11"1 Irll'lk klli dWK sLr L1t.lng. Moi du knh lufin I~r 11"Lf de I¢nh wait. loop \'i:1 if \'(')'i nhCrng lin hi¢lI ctl~Ll kIllen Iheo SLf('-m d~u c6 Ihe dllng dl: Ill{) 1<\ c,ic Ill,,lcll 16gic l{) h()p. eic phcp loan ,,61H,le nllli +, -, * : c:k phcp to,in quan h0 d de phcp LO(UI ]()gic dcu e6 Lh~ dUO'e ~u dung lrong bi~ll thL"rc. A I' ~ l- B! ' c ) 'I , Sel . l :[~. / ,. '"Z J ) J llsel 'i b) IItllh 7.6. I Lll k,:'\ qU;1 101110' help 1ll;,ldl kkil' [Iklll. C{lIlg Cl.l Il)llg hqp e6 th~ tlwe ili~'n cilia Sl~ t~lI nguycn HC'U co ele lhao I;le lo,.lJ 11"(1' trong hiel! ellen thic!t k2'. Vi Ull, hai ph~r LO(tn cl)ng lrong lrong dO' lll clurong trlnh dU()'i d:I.Y Iii hai phcp e(lIlg lo'.li trlf \'1 cluing kh6ng the Ilu.1'C hi~n d6ng lh()·i. Chllng til co Ihe g,-in d.c ph0p to,tn d6 el10 hai khili ehL"fe nZl1lg kh,ic nhall hOi.ie ~:tn eho cung 1TIl)1 khoi chL"fe n:ulg IUy thw)e \'~IO d.e r~l1lg b1l6e \'C Ii:li nguy0n. Kcu dicu ki¢n ri:tng hUl)C \'C lili ngu)'i.':n yell c:\u : l1' dl.lng 220 l1l(ll b() UHlg. me.leh 1(;llg hqr duqc 0 c() (bng Iren hlnh 7.oa. Tuy nhlen. n(~"ll ctleu ki~n r:l1lg bll(JC yell du hal b(l C(~ng. me.teh nh;lll (hl\fC : 0 Cll dan~ lrl'll hlnh 7.6h. Vi dl.!, process ( !\, B. Sci) 1ll'~il1 if ( Sci = 'I' ) titl'l1 /. <= B + C l'ISl' Z <= A + D: end if; end procl'ss; etC rh~p gein l(n hi0u song ong ccllhc dW"C il" dung ng[1l1 ~\.)n d{)i "("fi 1110t s6 loe.li ll1<'lch lhgic tll hl}'P, Vi duo trong qu;. trtllh ;illh ra gl:l tn 1\11("j Cll,1 b(l c(1!lg (by dll llj(~t bit dl th~ duqc vie'! du6i (L.lng m()1 phcp 1;,ln till hl~ll song sung n[H!" trollg doc.1ll chucmg Irlllh dll"(ri d{IY. Vi lIl.1. architccilJl'l' D,llaF10\\ of FullAddcr is signal A Il Cillo COLlt: BIT: COllI ~ ( A and B ) or ( ( J\ or B ) and Cin ): l'ud DalaF10\\: Irig(j EIl1l \'l~l' then SU<)"J1 ":1 trigO' 1:1111 'ICC Ihl'O 111 (I"l' thll"(\ng dlfo'c Sll" dung lrong de ph;in Ill' n!J(i m()1 bit. Ta x:GI vi till 111(1 1,'1 m;H:h tngo D [:1111 \'IC:C tilen 111((C. Vi d~l, m(l I;i h~lnh \'j m;.lch trigo D 1;\ln "i¢c Ih< 'o 111(I"( btlllg ng(lll ngu' YHDL: [)]ll [J[)OUI -[)() S - C mnl! 7.7,!'ILKh tn-go D 1:\111 yieT \"("1] ("he d(l deing 06 tlk'() 11llrC 121 signal S, Dill, DOut: R1T~ process ( S, Dill ) hegin if ( S ~ 'J' ) then DOut <= Din~ end if; end process; (,hllng ta lh,·\y. danh s,ieh Clie 1111 11I~u !lh',lY e:1I1l eht'ra l'de lin hh:'U S \'~I Din. ek lin hicu n~IY dn 111Ic't de rh:ill Ilr Irigo' D hO'.lI d(lllg dlillg. l\hu \"':Iy. kill till 11l~'1I Ircn dlf(\ng lin hicu S \';1 Din Ihay d(ii gla II"!, qU;l Irlnll C: dli(/e d1l1l1ng lrlllh lTlO rhong th~[e hi¢ll. Cllllllg la lil:iy \'i¢e g,in gi,i Iri eho lin hll'U DOtli dUr)'C '-til Il"Ong chi I¢nh dicll ki¢n if, gicl tf! lin IIl¢u trcn (hrll'l1g tin hl¢lI DOLIt si: kllollg Ihay dr'il lieu gi,i [rj tren du'i"mg S billlg ,()". N0'u gl;'ilq [ll-'Il du'(mg tin hicu S htlllg '1', gi;t Ir! Ircn c1u()"lIf,! tin hi¢u DOllt sc thay (kii \':\ billlg Din mt'Ji kili lin hl~'lI [rong danh siieh [in hi¢lI nltay cam [hay dl;1 gii'ilrl D6 EI h:lIlh \'i ho, t dl)llg cLla rh:in tlr Ing(5 1;1I11 \'I('e theo llllie : JIm \';:IY. lkll Yl~i de milch trigo' 1;1111 vicc thcn llllk. chung Iii plHli chi j"() danh s,kh ell' tin hl¢u t,le d(mg. Kili Clie [in hl¢u I;Ie d(mg thay doi Ihl qUit ll'!nh Illl1 la h:!llh \'1 ella Ill<,lcil sC: dU'9'c Ih~rc hl¢n. N6i dlllllg, h;\ilil \'i CLIa de JlWeh [ng(1 I:lln \"i¢c the() lllll-e sC' duoe X:I:-" tlt,j'J]g Ircn nhCmg ei'llI I¢nh dJCU kl¢n if kll(lug (hi), dl'l. ell the hicli chi knh dicli kl~~n if J h(lng (hiy du lit du I~nll if chi e6 Im)l nh,\llh th('11 \:\ khullg chLra nh;lnh c1st,. l\"hu v'~y. nwi lin hi¢u hO;h: bien khl)llg dUde diL'lI hllicll h(')'i t{11 cil de kh,\ n{l1Ig e(i lhc e6 eua diell ki¢n dell dune llll1 ph\lllg 111:11111 lllll-rllg ph::ill Ill' IIlgu' l~lIll \'i~c th ::o IlUi-C. C;lC ph:lll tll' trig(51;1111 \'i('c theo llll~rc llilf()llg XlI:tt hi('ll lrollg Llu,i Irlllh IllO plll'lIlg khi g'.IP c;le knh if \';\ cast' OJ cau IrltC klH)ng d;IY dll. D(\ln dll!,(Jng trlllh t]'(lng \'1 lit! \'Lra nCli tl'l'll ILrung Ll'Ilg \'(')'i phan Ill' Irigo Elm \'Jce Iheo mt'fe d dtH)e hi~lI dJl'll ht\llg du ]Cnh if e6 e:1lI IrllC khr'lIIg (by dLI. Dc Ir;lnh s~r XUil't hi¢n ella de phSn Ill' lrig(i !i\ln "icc theo mlre khl\llg mOllg l11u6n. ehlJng til ph;11 g;ln [ill hi¢u ,,6i tAt c,i de kha Ilallg e6 the U') ella diC:u kl¢n trong dc du knit rc nhi'inh. Vi dL,I, llC'U [<I b(~ sung de nh;lnli \";10 C,-lU Knh diC:u kl¢n [J'Ollg dO'-,1I1 eilu'()"ng trillil nClI lren, chi I¢nh if sc dwyc hicli 222 [...]... llgiJ VHIlL 8 ,\1{) Iii dIU true \'01 ehere n~lng eLla 1l1i lCh e(lng, trir mIT BCD bang ng6n ngu' VHDL lJ .~1l'1 ti.l cAli true \';l ehCrc Jl(mg cua mi;leh el)og 2 s6 nhj ph . va Inn t,i thy'c Ih":: duqc the' hi¢n tHong rninh ht'lIlg call 2 18 l¢nh g{1l1 k(l for. Cic phfin 111 Xor co nhan khk U 1 :o;C throe g:~l!l kl:'1. sU'an len cua tfn hi~u dong hci CLK. 6. Sa d(i chung mil ta ITI:,Ich co nh6 2 28 Nell xet tren quan diem diu true va ehue nang. mi teh e6 nht'f IU()11 dUQ'e. chua dc thuQe tinh 'event ). Trong phan m6 ta ca.c m;:wh nha dong b9. chung ta 8icu dH::n cae th~mh ph::in lni leh co hanh vi plw thuQc vao sl! xu:it hi¢n de SUOI1