0% found this document useful (0 votes)
57 views40 pages

20 23

Uploaded by

YOUR TECH BUDDY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
57 views40 pages

20 23

Uploaded by

YOUR TECH BUDDY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 40
- Ass aa At | Mame Kure ) ston | see Iclase Fe E-2 - | anne 63 | ‘eneclyrers tp, OUI | Pe » wpe Cope fox aie ADDER = > tes A Os » Dataflow Cony AS Vhwaty '¢#°> we ike. cu aU en tn vis oF (a, bc in Sid lagi 5 suo, vk out * out Sd_ logic end a ees aschiec se dataflow of tolf-odder is bei Sum <= a xor b; Grory-cuk <= a ard 6; 5 oud SiLtey’c) j od low > Gruchriak ate 4. ieee) flere .Std- Te-U6Y. al 5 oe Nalf-adder ts “Yb (a,b: in Sd logic 5 Gum, Cour end Ladder ; oscnidectute Srauctuse % Arolfadoler ig | Component xo ate, Pose (il, 12 * in Std Log’ c | or: out stetogic) | ercl Cam ponent 4 | component: He Pose (1,12 . in Sve log*c; O1 + out Sid_Loyid); | end Com psnent tn lL. . . ule x e foswapliLsa, i2=sb, ol Sm; U2: a ate poor map Ci, 2Db, 019 Cut): 4 Nd SteuctuTe; 3 Bohavtoval ne fere ) use fee std_Lagic U6 al) 4 ent tylf-adder is Pott (a,b: in grdloyic) Sum, Cour! Oot Sidelogi cs | erd — adler; | aschtketuxe -behoviour + hal{-adeles is |b at process @/b) | begin { OT gett then | Sum Zerot b j Coot <= b; ease gum 4b} Cout 2 '0!'; end if end ptoces ha; encl behaviour > @ Fal Adder — Sums oy Cassy = a? >) os © ~ \Kbeany Tee’ » we TexS FeAl SUL» ens Ahooble Ts CA: i9 SAd_ Logic vero (2. dourte O) O: Our CV, end -furl-adar 5 ees CL Leute O); vette * Se gain Mb © <= "oo" usher, A ="000" OS ue "10" when A="oo1" ae "10" when A ="0lo" ebe "Io" when A = "00" alse UII" When A = mu! are lol"; rok ) Se dede{iew ; Se Struct gum = A@BOCin se it ge Ueyrott j Cout = as + Bins My - Bina A entity -fulaclel ig 3 ab Post G/B, Cin! 1 Stdtoy'c 7 —\ Sum, Cour 1 or Stdedig?e a | enclentity ; larhtecture stuctirot of futlodlus ig ot xory % | Post Can, n : ta see) 3 | ot our Sid tapi) 3 | ond : | component anda is Port CP,A * In Std Gs ney end bm, Z Compovort ot4 1S Poot Cary. Tn Sad toyt & but ott; | €rel Component ; | Begin | a 80, 8\, 82, S3, Qu! bit, 2 a posrrap CA, B, 50): 1 7 anh 'p Paster p Go, Cin, Sum) at ela 18, St): ' “a : ard postrap Ca, 6, chy, $39: a om CA, Gn, 8353 oO om AAP C3, 59, 30); | Oo? ° _Pmrap (SH 83 oat 3; erd architec. By | Behavioved Mibwary ieee, use urcic_leic-tiovall ently LAr is Pose (Ar B, Cin ria Biss conn, Caer cut 8403 erd PAS gerchtiecter-e behaviond of FA begin Process (AB, Cin? cinzo then S C<=05 1 then See 15 C<=O) 1 C 2% 3) Mainfloo Jit fete) Ie ele Sid bate tt6u- aU; entity HalpSubshecty ib ¥ ao Cx, ys fin -satgi bd: out et tegre) 5 end Half Subhacior * artchisectree doseflnd --. Hol {Subbtractor fe PF osoeens £24 fi b <= (not AD ara B; be Acs A x03 B; end dodafew,’ 4) =| Stout) a Abra tee, tage Teer. Sad—Logi cMI64- aU; 2nkty had Subsactos pattoerin Sdlgics 3ifbe boteouk och Ade beg) 3 | excl half. Subtiactor; | asentectise Sisuctsall of tolf-Subtsactos FS Sigral Sut in Stoteye 5 Corp rent YOULL 1S . fost (01 P 2 in abe, Bi out Stdetey > 20d Component ; Camporent andi is | Pow Cary. tn Std! 2: ta Log ic) 5 earch Component} “ a Cemponent nott is for (Cu: in gid logtc, Vi aur Std leyic); | rel Cornporort | \ begin MS Mott Rosrmapla ,b, dif, 5, XD! Nott PostemmpCa Si), | WO tan £ Powterap (a,b, borrow); erd Beh~ Shu ctor’ >) Bernviosal | bran, feee} | Use Teer. StL lai 164 -au: j early Half s UDR: 1, | fou} Cog: in Sid tegic 5 | bid + ow Sag fy 2 | ere half Subhactoy ; SAGO 5 1 (ct arckieckise Behaviow! of hall Subwortor ts wn “4 Pavocers (1, 4) | begin 4 (a=!0\) en bays @ Fou. SvatanctoR > | Dateo0 Nhyay eee 5 “ube veers Lage 5 entity Aw_Sublactos 1S Post (@)b/C sin Sd laics | Dif, Bowsou: out dle cD; end ful Subbsactor; architect chiaflow of fau-Subbsattos Ts WM ct <= Axosb os C; i 050 <= (roto jerd dataflow 5 Coben DexCb amis) ox ardcrot dS) ie ieee ; bos Sea FC MGY Ld: enti du se sbmeciad ts Post (arb, 10 SIG arty bommw : 0 erel fpdoelaae Stoteyied (y aschitecdus @ Shuctesal of, ful Subteactor iS Sim cs, (2,03, 84 * in satay: Component xo-2 |S fom Pose (Kase! 19 cid ley G out Side bg; | ered Gompsnent | Gsmpsrent ont 8 a: fost (ys in Std 2. our Std~ ore); end Compsrert 5 Gmponent cL is Port Git in Std Zt our Std-lo 3: and Gsmponent; not_t is fot te a in Sade Lo Se & Sidtienporick, 9 an xor2 postnrap (Arb,C, ai); ya. artet fostep(si,b, 0D. 53 ae) fost reo c, b, (2); xd andl pestmap (st, c C3 KS. ot PoB+ aNCCl, 2,03, oavou) end SreuciTed’ | A ilosos: ieee’, | ude ia Fo NB. 5 Ww entry A Gai fa tin Sido logic vectoy (2. doorto 0); | dob + OF” 9 lic); | end fil Sub 5 2 atthilectuse behavior! o& Aub 1 begi 16 + Procer (0) (2) fn a | "y ‘4 A="900" shen dze'0'; bezd5 eur Q="001" then det; bee't'; elit a "olo’ thn dze'y'; bé='L'; elifas “Ou shen dézlo'; bez 1); Qui as "00" apo d 224! 5 heel Wak as "lol uten ddclo!; belo! BIZ, a= "10" then dézld ; beZ='0%; he ds ys ben's erel If. errel PooCess Py: ard RW Sub; ©) Decoder . > dedoflas)— Di bx ieee) use rele Sdtel_Lo ict 16Y-aLA 5 entity, decals iS / foot (AB: 10 Std- Lingi cxectsx C1 etenorto ©); Vopepadaags 1 out Sta logi creeinCdoure Sf end decoder; Z aschi tcetuse, loctaf low + decoder *% ° fa ane . " when "Woo" > Y<="O00!" 5 when "Ol" =) ¥ <= "0010"? when "10" > Y <= oloo") ahen "HI" Sy < 1000"; when othess dy <= "000075 erd Gre, ard dasa plow, 4 Batwioss) \p) i Te Siege 64-0; entity decocdir *$ Poot (a: in SAd_ bo cctor (1 dourto 0); yout Sid bale vector (3daurte 02), end decodes ; AbdhiHechi¥e “behrawicsad of decoder ig in "y psocess@’) bain coun O te when "Cod Y <= /o0e!"; | wher "ol" gy c= 100 10" ; | Uden lO" SY Ze Hole"; usher "iN" by <= No00!; when otheas S y <= "0000" 2nd Cale end proces PI; | ed Behavior; 2» | Skéuctus ar tbe ieee ; ‘use feee-Sid —leyic ey-all } jerrity deceter ES: AND WATE iS ‘ome (a,b)¢ + 19 Sid dy ow Side 2): | end AND-WME 5 ayer deenee Bebovi ooh of ANRLATE & | Ero (0b, 0 , @B | a 14 C273 phen a ad peu) od Beravors) Wieseagy leeey | ude feet. Stel Were 10% ah 20riby NOTgax” is ’ Sons co. rn ae Ley Ps cut Sd "ey end NLA, astnixctuse, Beroviowel of nor_gat is BOD ocerwle) bait, . | 4 <= oF) | ord PsOCUs; lend Belmar, Vibxaoy, fee | use i sich lyfe = BU, entity deadoy 1S Port (Al, A0,T “in Sid leg ¢; V3N2M Yo! OW Sadan); | Siqoah 62. Sd lege canpsnerns AND-IPTE 1S fot (a,b, 0» i Std-layic; di ous Silegid; 2nd Corpsrert’ a Gompsneny-_NoT-gae. 18 Posy (e! fh Stobtoyic, £1 Cut Std_t6y'c); 2rd Component if NIM MoT gpte foot rep CAI, $10! a1. No Noare a Choy sn; AD. Petree Ay Ao,J,¥3 cn cite Peabo ssp oy 2 AND-GPTE pow % KOSLIVIY, end Stsuchrsad * r APCD se, MOS),5, Ye) a sat | OD Entodee_ (a2) ee Dataflow | Ajbramy ieee > | Ube, ieee.siel logic 64-0 emt: 1 is . ; pore CO 3 tn Sick Lag CHOY C3 dour 0): bt out SicLtay ctor Ct dowto o); (etl Cncocleys | ; | Aehikckume clatfou of encoders ts | @sea is : | wwhen "1000" > b <= "00"; usher “'o100" 3 b <= "or"; uter "ooo" 3 b <= "10"; when "ooo" bee "41": end aye” ws Db e722"; 20) doves low Bebav love Mbwasy lee; use Tene Std U AC_1164 AU 5 entity orceebst 13 Post (a: fa SAc lo: Ze_MeCHO (2 dourto 0)3 lot Ou} GA lac NeCHON C4 dante 3) | end) entacus 4: axthiectye behavior) of encaert ts | in Deceed 1 pg” i (a="1000") then { _ 6& "00"; i esif (45 "0100! shen | be"or'; | Be Ca= "O08" hen i be"; eHil C=" oo") Hen = Hh ahs b<= "ya"; et Library ‘ens wuse ie sic dngte-tby-a enh tu org 1S fost (a,b: in Std loge; ct out Stel_tog Oo enol 009 - lawchidectuve behavioral of o% fs ‘Begin | Proce (ab) | Bean | Ceca ov b; ferd proces’ end Sebnviozd, —— enader a) ieee; : ule. ie € Sid _hogic— 1164-0 , ant enlodey iS Post Coley, 2. IN Stdelog!¢ ; Al,AO: oub Sid-logic), end entoder; at chidecHuse Lwuctusal | Componen+ 039 1s | Post (yb: in Sdalogi G | C tout ‘Sto Leg oy ed Gornponent; Ben rr org Postma Coty, AN; | ort 0a Posrap Ca,2, Ao, end Sudo; 4 entodes is a @) Mudtiplexet @? >| Dringlno J pret ieee) use ieee tdLOgc— Neue } enh mux 4x | ss port Ci! in Sd Pevectos (3 dewrtd ©); St In Sid legte- KC C4 chante 0) 5 your Sidalegi cd: ercl Muxuxl 5 | caschickedure Clokasflew of mupcxl bS | PO och S Select | y de ite) when "oo"? TU) uh "Oly 12 uten" 10", 1D when ots} end dhstad loud >, Setoviote: Dibhosy ieee) ute ee. Stl logic u6Y-al) ony pu 4x IS : fore (ao ee vector (3 downto 025 In Std_Logic Katey C1 dourt 0); ste} out Sao ag end murdxt } - | axchisec dave, “bebavio val ef Tucan! S b Freee Carta, Sd) b. ¢ b=9, S95, 4 > #mpP2) res ruv2rt psotmmp Cademps, bodempa, 89%, YY) end shee 5 @ | Dernult plerer_ > o pibrve ieee) Cue ict cL jendity demux iS | | Pose (s,s. * Std ly 03,04! owt Sid- wos ol, 0% | \ Lh) \ | a zy g- | logic HotU 5 end demux; | agoninentie dletoflod of, demur ‘s | (W payin 01 <= Tard Cro} 80) ard Crot S41); O2 <= Tard, Crot Se) ord (SI) O3 <= Lard (So)ord (nor SV OH <= TZ and (80) arel CI) ered dato fon, 2 | behavior | Lbryosy jeer | ude FOL ict legyic—Mew aU, jp entiy demux) | Poot Cdir t 90 Sad-lozics , Gi in Std. icxXectos C1 doorrto oy cloxt: out Std tape vee tor CS dowrto 0); end demux! aschiec tse bebovicta) of demuci %& beat O' paceos Gin, Sd) begin ig Gin = '41) then if, (Sd = "00") then lout <= Noolo"s uit (8g ="o1") then dout <= "0010"; out (Sd ="10" Dahen clout <= "O100"; eke dau <="!C00"} erd if; ele, dout <="Q000" enc) ard gies, end Behavictal; 3 | Stsuchreal J tervcney ieee) use ieee Sidley! 1164 oll’ [enti aardy "Ss th IN hei, iw Poss (a,b, C1 fn Sard Logie? dL owt Sid fgre): end anda: | Wechidecunse SperaviCvvl af andg is | gage, | PO cea b/d | bygtn 7 if CF "1" dhe) deta amt | endif; and process ; endl | behavicval) iby ieee, | Us Tree Sid —| lenbay fot. is | poss (et.S¥d—leg'c ; Prouk Sid toy eS eleva, ed Avis as chi jecr¥e dlotaflow of nog XS "4 c= not (ey end cletaflos’ -- [toy Dermuc bY avy lee) ude ith. Side Loic. 1164-0, endity hemuxtiot i's fost C1, S0,$! in Sid lg g V3,YaNl Yo! owe Std topic: end demur_t4o4 Oschikeruve s4ouctiel of cemurito tg Rgnat Je! Std -log g Sigral tat Std logic; Soraponent oun is fost Cb: in Srid-log?'c; Jd’ out Std lonic): end Component; Cernporere Noy is | Port Cn in dog c) (out sito) vrs enol fomponert , Begin Ni. Mot He powtmap C51, 41); No* poet wrap C&, 42); Gi: ard post rap C4, Dy Jn, 1095 postmap C4, SJ; (92+ and G3: a fostmap CT, Si, 3,49); Gu: on fostrrap C1, $1, $0,939 ond! Shuchese! oom b —} un Baste_ALU ea ia at

Regd < Regs + Peg?) ~~ addin when "oot" => ; Reaeac Peg — Ages —- Substsach' on when 1010" <5 Peg < not Res —— NOT gate When "O11" => Pays = Re nand Rez’ N100" 2 Het OS a hee oe Ra bes ote Cig) 3 ~= NAND (eat when "Tol" Reg 3 ee Pegs. and Ree, 2 5 when "lo" 3 Ree = Ret ov Ree; when "411" 3 Regd <= Regi xor Rey 27 hen others > NULL } and cos?! endl if? end Process, enc Bebovicr); Srruch es —— Hol adder Ubsany Teee; ie. ee. ct. Jagic—1l64- al; | enn. HA is Powe CHAA ,HAB + fn Std- SUM, CARRY = out Std la , wzod HA! onsch) ke Lose. clorla fined % Ha CFO oon ce HAA XOR HAG; Crpy ~@ HAA AND HAB; NU end clatofiow, —- Mult pliew Ji feet 5 | Use 182/-Sto) — ogi 1 64 aU j erbitg mut plier i | Pow CA, MB? tn Sdd_l Péoduct: cust Stent) end routipl tx: atin ec use afew of moutdphier is |" Pbeduct <= NA AND ND; erd dataf lou, aay - - Noli plxey i Behn DS os tibsavy teary = Use + Sto Logic_1164-oU; embity mux is Pore CAA2,A3,Aut in Srduloyies Sitin SacLlogic. ecto (4 dountr ©); x + Our Std= lene); enol mux 5 *, orschtitcletve. dodogiow of MU% 'S bain wit S let x < AL when "oo, A2d uten "ol, AB usten "Lo", AY olen otess5 end dataflow ; ~— Grswnd reer igor 5 use. Seer .stotegicl6Y-aU, eng gisound is pore (Nt Inout Stdleyids end gourd; | asatkduse donplow of, yrrurcl is an | ene wh, end dataflow ; -- ALU oe jeeey we i e- Stoh legic = 6-0; eniiy ALU FS 2 tn Sdileres | post (A/B, SELA, SEL? ‘ As, ALD2 2 out Sid —ley?c); | end ALU; | arch) Hectic Shyuctused # ALU & | ot He iS . cormfpone post CHAA, HAB +s To Std_leF#C aur, AOR ¢ out Sid legit ds | od Componerrt - LL comporent HS ic ge CPE eee eee - Poot (HSA, HSB: fA Stal togle | DiFCEREME, BoRRoW > out S%Lleg'c)’ | ero Comp orent, multiplier 18 Porr CA, He + in Sic lacs Product + out Std_Log tc); end Gm ponent ; ~d : bsrrponen+ MUX %S # Post CAL,AL,AB, AU: tt Sicl_Segtc 5 / S. in Sd_loyic—vector (Adounto | xt a Sidi Lone); end Component; comporent around ts | post CNS! fnous- Ld—Lepto) } end Component: Sigqnar $0,S1, $2, 83,84, $5 t Std Loy ce in coe qeourd Porermp( NDS5)3 ui: SHA poverrap (HAA IA, HAS 6, SoMase, Heats gS} uz! Hs Post map (HSA SA, S658 DIF FERENCE S | Bore US. -anuthpler Port rap (NA >A, MBB Propo > SD | Ort Mur post rep CAL S80, A238), A3S2, AYSD>S5, x3 AW | St D> SEL A, Scr) => ‘SeLes); ae UE: MUX Pest 7AP (a1 953, AISSY PSDS5 AUDSS YS ALD Slo) SSELY, $1) > SEL2); | end Stwchtrad ; a 0 Sovel Srifto > loco Liban Teee use iste.ctd| cA NOH oy huge eee Mumesic_S td a (2)) = ar nen ih Ce ae oe [IR nated Chapuete 09; a oe rye (g ctounte 9); end hard, ; i apubitectute detaglo 4 pea begin 4 wren “00 ten Yew oder "ON" hey fone i Y& wrort ; eee usken "10" tren Y= whoa; Whe "11" Hee U c= WRoR 3° 2rd dav (od) =)) Rrmwricval: | Upyomy jean vy tbc “upg 64a); we co. seh ga ant kervpeh. n uel (3 dounto 0); poor ("1 st in unig Cidaunte 0); y vad wlgred (3 claunto oy end bowel; Oxchitectuse — Bekaviorel % baer is “Pees G,w) J ber "90" then Yee W aren 'pL" shen Y & wRoets ; when ” 40" thay Y< weoe2 ; wate "yy" tren Y| Structured i bfa' hee; Use Seer. ste Logic 64 oa 5 use iece Std —Lahic .avtth, aU, ent muyed Pl 1S ort (AB GD: in St loge ; So, $) 2 IN Std-dogic 5 2. out Sdlege); end muro! aschitectrel dataflow of murUto! cut bisector (Bdourte O) 7), | enol -muttiply: } | orehiechite ctecnflew of murtiply begin Plo) <= AO) AND Blo); ; (Ale) AND 80). pa) <= (AW AND tB (oe) KOR Pl2) <=(0W AND Blor)AND (Alc) AND BLD) oR caw and BOL D (AC) pC) <= (CA AND B(o)) AnD (ACO) AND gcd) Ant AND go end olacter{ low, => feb aviotal Ai bs ay eee + | Use jeee Sd. degic—! ley-aU) entity Mutriply_behov ts | Poor (1B: in bit-rector (4 dounto oO; Pt dub bre vectos (3 dounts 0))} | endl muiply—berav_ | archikchag behaviowet of, uthply behav ou | bgin t ew Psocos (A,B) TS m g cae A TS Y wine OO" tee a B="00" pz="0000"; ga "or then PE "Oooo" ewig wit, 8 = "to" then PE 10000 gue Pe ''0000s end if) Uten "on" > "0000 4 6 90" hen P& Pr B eloltaten PS "OOO! Ww B="1o" then Pe "00lo” oe ‘ool ardify udhen ny " i “Pb B= too" tren PL eras aug B 0), | © our de loc acter 3 deurte 0); | 1s Gur Sd. layic—lector G dpunto oy); | end division ; | gechiketuse dostaglow of; divicfon Rs j m | Variable, OC | Helen c_ vector (+ daurto 5 varfable Mine! Sid. loge —VeCos (3 dounte OF; Mibar t= mbm, oc:="0000"2d; Lp tin 444 LooP : oc Ca dante += ac (6dounto od @'us i oc (deur 4): = ac CF daunto 4) + Mbas +1000! i, oct)='5! then ac(o>: = 'O4 OC C+ dourte 4) s2.ac Ladeunto 4) +m; | [eee a | acto): ='4) oe ify erd Loop} Gea aclS dounto 0); yee ac (dour yy and dotah lor, Behovioval paige Povey Meer ue i Sid Logie 16 Y end Comporen+ ; Component xorgat is ; Poss YA, B: in Std oC yok Side Wor): enol Lamponen+ tga) g. Sad lagi. vector (8 dmunto, 09, a1 Alt an parmap CV > Rs, w9Bs, AL: andar, porrrag (H9 fo, 1? Bo, I> Ce); A3~ ard—gok fortmepC Kal, P9 Bo, 6 801); Au: “and gak post rap (BOAL Toh USSD); As. and gare. portrmp (25 s(@, DISD, Eds} lag. and-gak portwap CF= Sci), FISS(D, FC CH); jo!” postmep Com Ye, 039SC10 O48 BCY)):) |O2' or-gate poste (092 sca), 08 S804); etd Stouctuwal 5 ss of divi geo 2 bit ns sr) %| Design all Hip Hops CD, Ik, St, D > D Elip-floP. by ieee; use 1S20.S4d_layict164- Uy entity D flip-top is pr (uk, Din * in Std -ligics OQ: Out Stalogict Orot¢! Out Std—byie)7 wv awchiecauwe DE Fach of D-flip-tlop 1s beg n Process Cclk, Din) "ay (ekleverd and de> EHFOP Qez Diny oe Grol & (rot Din); ord ify end piven; end DEF oxen; Tk Lip: Hop Verasy leece; }uce ‘e0e-Stol togic 16a; Use leee . Std losi¢—atith. au; Use leee. Std los_unsipnad -au} entity TKEE is | Port CI)k, Woe: In Std-logics | Q, 9B : Sut sa. Byrd | erd JkFE; OssclntdecHse, behoviouva) of Ji fF is 10 Process (Clouk) Varsicbble TMP: Std_ late 5 eq i) 4 if CQoae ='L' ard Cloee'evenL) ther) i+, Crelo! ard k='0!) then THe = TMP 5 eit G='thand k 214") Hen THP:= not TMP; eit Cielo! ard k='4!) then TNPS= 61; me. ,, TMPH= 4 > end ‘6? erd if) : Q< Yor TMP) end Powys ; Lend behoviosal : (40) >| piotor | Aiveny fee; | ude tee « Ste entity TRF Ps foo+ (7: fn Std clpce 1 70 Sto @: ott Side leyhD: tc U6Y aU 5 “end TLEF 5 crsch eeav'e Behavior ef LFF * Si gral 4mp: std—Logte 4 preted (uous) | PB 4 ceteerlerant ond chcne'* then it (T= lo! )-then tmp <= tmp: ouif T='1! shen amp < not bp wand ih) 20d t > 'SR SR Fifpfop | Ribvar 12225 | use id. Std— te-16y-ed: | Use [22t- “aati en el Use jooe- Sd. weenie ae jentty AF is | pose SP, Coc * 70 Side | @, Siar + Ont Zia yids end SR FF befnvi coe) of SRF S auschi Hectuse 70 beg Peocess CULeck) } (30 - | Variable tmp: Sid_hogte » bein 2% 14 (oye ='3 ard Clove! arn) then tear if (S-!ol and R='o Hen amp: = +m, | auif (So's ard @: ‘1 then tmp r= 2 , eit (S='0'and R+'4') tren tmp:='o'; | Use emp: = 45 | end } | endif, | @<=tmp: QBay <= Mot tmPs end psoess end pehavidat, On Deitgn a decade Counter Ato ieee: Use sexe sidLoyic. 1164-01, entity Cours 7S —- fos+ Dectasat' on Post (ak: In Std. Preset * fn Std Lo: ies weet! 90 Sid Q* our oye. ~UCt06 (3 deunty oy; end Gury | -- ot Deceoation | Cormpore7t Teer is Pest (J: in ae K: in Sad ak: fa Sid _ Preset 19 ie @ ‘out Std tog ie) j end *) wr) ~-Signdl decvarion doumts 0)7= "0000"; Stoned temp ! Sid_Loyte Vector C3 Stoel TKouput: ota. begic. Ucter C2dounts 0); begin FREAD SicKe Poot rap (J3'1', Kss'L', UK > OK, pert Dperet Peset Delt , Q8 4rnp (oY); TK Output (0) <= rot Gempa) ard ternp (0) 5 FR 2: Jerr post map (> Jk Outpt (©, KS JK outpet (0), Cle S UC, preset > preset reset geod, &9-termpl | Teoutpur (4) <= Jemp (0) and tempt); FF 3: SkFE fost mp( ID Skaupur(, > TK outaet (1) Cesk, Preset > fSoser, Josep DBeet ,Q SHemp CD Tk cutput (29 & flemp (0) arcl emp (2)) caempiad and Teoutpur(!)); FRU: JILFF Post rap (JA TK Oudpur (22, KS TK outpur (29, Ud SUE, Preset > Preset, wese} erreset, Goremp3) O<= tmp, erd RTL; a Design a Ubi + Ripple. Gry fdcles $2420 8) Bo 20 ae cy l W tf hee ude i + Std dey! NB ads TF" fre near ae “entity Rippleadder & ky & nh Se | Powe CA. to Sid bey ic-vectos 3 dato O25 B: fo S_bepy'c_\ector (3 hourto o); ks | Cin: fa Sd 8. our Od MSaicuctor C3 deunto Oo Cour: Out Sd Logi 9} | ord Ripple Ades; Ascnikekere Behoviowal of Ripple-Adder aS | —~— FW addie Gampsnom dec(asahon | (25 Comporeny facta fil adele s Post CA: Pn Silence} Q: in Std LOG Gin: Pn std-loyic 4 S 1 Out Yd log"c; Cout Out a 1095 rel Com poner + Signal Cl, (2, C3 Std_vogics begin FAI! fulLaddtr pottmap (A(o), Blo), Gn, SLO, O15 FA2: -flLaddes Porirmp (Aa), 02, CL 80, (2); FAQ: fulladclor Portrap (a(2), gir) (2, S12) 3); FAY: fWeactier postmap (a7, BIV, 2, $6) 4); enc bebovi ce | 4) Daign an even Pash goer Ay o. U-bP data. | Miowas ieee) juser Sid bog te— (Math, entity Pas RS Port (At in Sid-logic vector CB daunto 3 pi out Stel hogi ds end entity ; | anchisechise, behnviowl of Pasity ts |B in | Psocons CA) | - | @se A is | usnen "9000" SS P< "O'; ushern 'looo)" =) Pd='4!- uhen "o0lo“s Pestah usthen "Cons pee'h'> when "0100"S peo (40) when" O10" > P Z=!ol; shen "OO" SP ='0'; tohén “Olas p P <= "9000". eel behold enc! Case) ond Process 5 end behavioral; Designo r-bh biaaw, 4 Gatay Code: Corn => E> Design Decimal) to BCD entooey Jibsary leary Use. “Teee, Std logic aU 5 entity DrB is : Pann (0,01 92,08," DSDDADEDU In Steger Posr Do, Ay a8 Sd bogie vector (3 dounte dy | end entity, oe od | . is mee | oririneee dottfas 4° aces °9 Ad) & olgard dA); je ee cm <= Du) ox Dos DO ov DD; a iF Ao AC) <= DUD os NS) ox DorDED re __ KO) & peor DD or DD) ox D@ x 19); end dare}lous em ee EE ————— a OP Meet Cher etabare 2} Behoviosey Aibsong ieee 5 Use Ieee. Stic N64.au) Ue feet Std- Logie —onith all; Use jeer. Sd lac—unaignad. ‘al; enh encoder-m Ls Cd: in Sid dope - -\ectos (9 Lownto 0); | Ao: Our Sid. Dayic vette 3dourto | dl encedes 5 ve 9 | asch\feexare Behavior! ° ercodism is 8 rocenscs) Begin . jse DIS " " ws when "Qoc00c000e1"=3 A <= "0001" uher "ooov0000!0" 9 A <= "oo0!"; usher 'lepooecd00" 3 A <= 'oo lo"; Ushken "“Cooavioc0" > ALS "ool!"; Uther “peal noone 3 A p=" ©1007, ushen " eooelo00e" 3 4 c= Voli"; usher "O00! 0 00000"5) 4 c= oes: | when "oorcoceees's a c=" oi, | Uhan “0 O08 0000" > fF <=" Jo00" then ''@! 000000000" 5) A <="190)") endl re: | end process; | rel Behavioy.! og Design Compaetor using clactaflow & struckem) «Compete bor * att mong a, be ode Hod dodf lew GBs) | Compa arse — dataflow Modeling a bi) [ti ieee 5 Use ike Sid Loge W64~ au; ent Com poo LIpit 7S | ¢ Powe (mB + in Std- fn ‘a (nS, € out Std LOGO | Com pared or L bit awede dataflow ety Camparsad-o¥— | bit 7g )>S (nce A ard (not a> S d= (not A) anol B5 Ed= A xnos B®) ord detaf lou, 3 Siw chat Medellin o> ie p> | " 3s | i> Oo OF [> bhorO 22 0-5 a loot? peo 4 | | | | Pets my Zz * of Std topy; 2rd om pared} aruniecduye Srructredh +, Compataty_! ig nip feo ip & o/P: | mare tae of we ES | Component a lel 3 Ce per Ry; Got Sick deg): end ae Z - sraponanh Not-gete is Poot (Vv: in Std. Wi out oa ys ere! Component, Comper KORG Post CGH: Ia std lal i 31 Out sia Lag CJ; and xo GiFreD 8’ feb gt vectdv Cl deurto OL oa wt gak PaxrrrapC A, $e), N2' horpate powtmap CB, sad): Als pnd. psctrmp C Slo), B, x) AZ! AND Gate Pastrap (a , SC, 2b vo’ Kongo postrap (x27); leno 24aucwe/; Behavi ovat Stu chitet [Aw 6 Fe DA way of deatsibrn gy delgn as % ons defined ust Fe Components duchy | ger ne pe ene augostihma InVAHT /MUH plavess, QalolexS, deeacuxs £ Basic Logi cgete LA Black bor modelling. |2) Glted gfors bor meckltin, Pin ry Hho cused or Showin, the velahions |9 fous ore Lor 7 | ¢ Te rn gee & pene internal Boral pone usre Treen iaprly tn behavinred modelliry Pot usd Oe? Yet, Aatofloco Mectettirg is move. Suitabl. fox Combrrattoruh Sogick, Ariause Tr aestsibed a Wyse iin deowd of tow esta, flows throu, He, Eystom. Dost, Beprdenceis tn He deals phon matth thoge th a 44piod. rordwase. Tmplmenta— rHon. a Destonn 0. Ub? bTnasy to (ode Gornester. uit m?n™ Naroh oe (Behovioras det et her. uty wnPn Ju tl ee We idee Sta ome tl6vey, Use jeor-StL Lovie unate 4 wi “a enbty Bio is Teaco), Pos (81, 82,83, Bo: in Sidalogtss GUGL OS G0 + Cut Sig lox ic): ered B40G; levis aschtechise Behavioral o Gh fe Beg? Process (81, B2,B3,8 0) ay BG3<= R38, Ga2.de (B2 rand (82 nard 83) ard C83 rare (62 row 839); n1€= (Bi rorck (81 ral 62)) nore (32. care (81 arc 2); G0<= (Bo Tard (Bo tend Br) rand (B\ Nard CBorend 81)! orc peu ; end behaviovel: wy to 20} Differene Beruern with ber Select B "Vinen ley’ Conditional Statements: When eke 1) The uben elie Hadirent fst | Soe wi to Toke & Cort | vdput baled on o irput- wit Linen Select yy The eras Common we Poo thy with when velecr dademerl Te Ho. Cade a multiples (ox Nox). (39) 2) > | | ue unite eQyhelont Log uiPR OFT options a4 x ¢ Babe The with is 1 ee to ut | Select Sgr, which dcttrrning the, SelacHory ff the outa Gorml, Gd the Tnput option ave tren Laid out Fogg ven Gpecif?c Select. Syrtox’ i 1) Sender 7 Oudpus <= Vell wren Line op) | oes Ved 1 wenn Corel 15 Condition 4 lh e Vol 2 wher (Hime ep) Grdition 2 due i van cohen Chima exp) | Condition ele, Nal Crime ef) CWvhen Contin Vad 2. arbor Core! 2° | ) credbec tel with other, oa; GF Te rally, uged Te mony | 5) 94 fs much mote Compl'cottd | Concurrent wun. In fad Ft is 10 Cd ovr wher eluc Starner the most basic. tol Try Gl VHDL - IE % much easier to Cools . 4) Best Pract ws : J ULe For Mureg U Clean, Vers 2 eoty 1 Be ef ® Gest Poactius’ i) great for Grecdyy ote Make Suse a the, Spr Popiblites we Dud. jisa >) for high Praaparay mately geod jdea doolio oura Glen others ay a th al fot iney.

You might also like