WWW.DISSERS.RU

    !


Pages:     | 1 || 3 | 4 |   ...   | 7 |

Heocpeceo ac op pocxo o cay WR. Ha apae oee ocoe peee apaep: WR - eoc caa ac, e eee 450 c; AWR - pe ca caa ac ooceo cao apeca, e eee 50 c; WRA - pe- coxpae cao apeca oce caa ac, e eee 50 c; OUT - pe- op ac, e oee 550 c. Bce apaep o y-ac poecce oepoa [13, 14].

Aa peex apa ooe poep oppeoc cxe, oe eoc yopoa, acoe coca. Ocoe pyoc oa p aae pox ycpoc a eeax c pa aepa, apep, ycpae pco co, oo coca cao. ycpoc, oex a e-eax, ex oy y e aepy, y poxoe caa cxee oy pa. o po eoopeeoy p-xoy cao a xo oex eeo. Tao e aaec oa cao. B peyae oc cec ox cao, .e. oa pc co. Pc co oy oy -a a aep p opaoe xox cao, a ae eoopx eeo c p epc xoa.

oa cxea c opa c oe epaoococoa -a coca cao.

Cocae cao - o oee pao-peex yco o pe epee cxe ooo coco pyoe. Boae o ee cece aoe cao c coep ea aepe.

WR WR WR Data WRA WRA AWR AWR Boe ae * * A0,A1, CS Apec opa C * * op A,B,C OUT * Pc. 1.5 Bpeea apaa pao C 8255 a Pc.1.5. Bpeea apaa pao C 8255 a o pee o pee 1.2 Coco oecoo oepoa B acoc o cocoa opaa ceoo poecca paa a ocox cocoa oecoo oepoa pox ycpoc: oao (cxpo acxpo) co.

oao coco oepoa. o oy cocoy oc pee paaec a pae cpee epa (a). oeee y-oao cxe ycpoca paccapaec a o apoao oc pee. Byp aoo aa o ee cxe axoc oo oo yx coco: yeo eo. ee, opaye yoay cxey, aocc yopoe poo cco c yaae eo oepa a. Cocoe aoo eea cpyec, a y pee a oepye cce.

B poecce oepoa ocyecec popaoe ca-poae cca opeeeo ope. B oo ae oec ec-oo epa, a ao oopx oppyec eop oecx coco eeo cxe. aa ceya epa xapaepye cocoe cxe p eeo coco eeo eye ae.

Moopa ec pocop cca pooc o ex op, oa e cocee epa e coay. oyeoe coaee ec pao ooa oepoa a ao ae. ae aaoe ec pooc a ceye ae. Moepoae aepaec o cepa xox oec peeoo epaa oepoa.

oao coco ee eoope ocoeoc, oope eoxo-o ya p oepoa cce. epa ocoeoc - o op eoc aa. eoc aa e a oee pe oepoa. Ceoaeo, e ee eoc, e eee paoa oepye popa. Oao eoxooe pe aa oo o oooc ao o, pa cex ae peex apaepo. o ac o yea eoce poo cao a xoax xoax eeo cxe, pee x aep, epao ey ee xox cao .. Ta opao, eoc aa oa ao, o oyea peea apaa a oppea p ooo ee pee oepoa.

Bopa ocoeoc coco pe ocpoe cca eeo oceoaeoc capoa. Booo oceoaeoe poooe ocpoee cca, o e acoc o oo cco cea ye pocapac ooc. Ceoaeo, peoeee cooa oceoae p ae aop, oope a aeee pe oepoa.

Cxpooe oaooe oepoae. p ao cocoe oe-poa oaa, o cex eeo oaoo ac cxe aep pa y. aep cex eeo a oao pa pa eoc aa pao cxe. B o cyae ypyec oo oa pao cxe.

Moepoae ocyecec eoo pocx epa o opye O(k )= F[O(k-1), X()], e O(k) - aee eopa O a k- epa. Ec O(k) = O(k-1), o peee aeo, ae oec ceya epa. Heycooe coc-oe cxe (eeppoae) o, oyee p po-epoa, xapaepyc ocyce cxooc epaooo poecca. pep xoa epa - ooe oeco oop-xc ao peee peeoo epaa oepoa.

Acxpooe oaooe oepoae. B ao cocoe y-a, o ee cxe e paoe pe cpaaa. Bpe cpaaa opeeec aepo poxoe caa c xoa a xo eea. a a pao cxe paaec a p poao c eoc, cooecye aepe. Moe-poae pooc o poaa epaoo. aoo oe-poa eoxoo ec a acca oecx ae xoo eeo: MO = [MO1, MO2, , MOn] - a peye poae MN = [MN1, MN2, , MNn] - a oceye poae. Macc e oaoe paepoc, e n oeco oecx eeo. B poecce oepoa, o aepe ao epa, pocxo coxpaee ae acca MNi MOi. Ha ceye epa o c-xo a acca MOi peaec ccea yex ypae pe-ya acaec acc MNi. Peee caec ae, oa ae acco a peye eye poae coaa, epao poecc aaaec.



Acxpo coco oepoa oo cooa a aaa a ypoe epax pocxe, a a ypoe cpex eeo, xox coca oecx eeo (o, pacop, pecop).

Co coco oepoa. Ocoa e coco ce ypae oo apoax eeo, .e. ax, y oopx xo a oo xoe pooo coe (eac xoa epeea).

Aop, peay co coco, a ao ae ycaaae, ae ee c apoa, ae oe oo x eeo. Tao oxo ooe cyeceo copa apa aoo pee a aa cxe.

Coe caec oe eee coco cxe, apep, epexo ee ooo oecoo coco pyoe. Ec ca, oae a xo eea, po ee eo coco, o o cpyec a coe. a p oaoo cocoe, ec cocaec cco, oop aocc opa o cex eeax.

poecc oepoa coco ceye. Cpe cex eeo axo e, oope o paoa ep, apep, o xox cao. a ao ee eee coeo coco oe a oe co. o opeeec cyecy c ey eea. Ceye ae, o ce co oo pae a e py: oee co yye. Moee co pocxo e aep o pee. Co yye peca coo oeco oex co. aa peaa oeoo co ooe oeco co yye. oa ce co oece oex peaoa, o paec aoe coe oeca yyeo, oopoe e ceo o pee pacooeo eyey oey. Moeco yyx co epeocc oeco oex, a pe oepoa popeae aee pee oo yyeo co. o poecc oopec ec.

Moepoae oo ca aepe, ec ooc peaoaa pya oex co oo coe oeca oex e ae co yye.

Aop cooo acxpooo oepoa paccop a pepe acpao cxe (pc. 1.6).

epe oee oepoa o opeee ee gi G1, c si G2, eop Ii, Oi xoo xoo eeo gi. aoo eea oa cyecoa oeca oe ocae aopa oecx y Mi.

B poecce oepoa oc ceye a.

1 Ha xoax cxe ycaaac aae ae ecoo oceoaeoc X() = X(0).

2 poepec cco eeo G1 oppyec cco eyx co eeo gi, a xoax oopx pooo eee coco cao c c oece X().

3 cca eyx co pac eeo gi cooecye oe Mi.

o oe cec pea xoo Oi c aepo. oppyec cco eeo gj, xo oopx coee c xoa eeo gi. ae pac Mj pooc cX1() Y1() Gg1() I1() O1() X2() Y2()..

gk() M..

Ik(t) Ok()..

..

Mk..

g2()..

I2() O2() Xn() Ym() MPc. 1.6 Acpaa cxea poo cce Pc.1.6. Acpaa cxea poo cce e, opeec oe ee gk .. o ex op, oa epecae oc ycoe pacpocpae oec X(). Pacpocpaee oec aepeo, ec e oe eeo, a xoax oopx pooo eee coco.

4 oce pocopa cca eyx co pe oepoa yeaec a o a = + T.

2 OCAHE A VHDL 2.1 Cpyypa VHDL ocae papao VHDL - o oca aapax cpec. O coep pa oepoo a popapoa, accecoo PLD a popapoa, a ae ec cco oepx pao papao acpao cce.

Ocooe ocae opaa cpyyp VHDL oaa a pc. 2.1 [7 - 12].

Oepaop aea ec eoae paea oca. Oepaop entity coep ocae xooo xooo epeca poea, a a aa pocxea ee xo xo. Oepaop architecture coep ocae yopoa poea. poe oe coepa oe oeco oepaopo aeo, oeo apxeyp. cpyypo cxe a o, o apxeypa coep apaee oepaop, ae a netlists accece oceoaee oepaop. apaee oepaop oc e aco o opa, Package - ae (Ocae y poeyp, eoaeo) Entity - oe (ocae epeca) Architecture - apxeypa (ocae oe) Ocae y poeyp Signal declaration - ocae cao napaee onepamop - Oepaop epa ooea - Oepaop ycooo opa - Oepaop opa pcaa - Oepaop eepa - Oepaop poecca Variable declaration - ocae epeex noceoamee onepamop - pcoee cao - pcoee epeex - Bo poeyp, y - Oepaop if, case, loop, next, exit, return - Oepaop oa wait Pc. 2.1 Cpyypa poeo a e VHDL Pc.2.1. Cpyypa poeo a e VHDL oopo o aca. apaep, epeaaee o ae, epeac ey oepaopa c oo cao, pcoee caa ocyecec paepo. Ca oo cpa ecc pooo aopo pooo.





Haoee oe ocpy a cpeac yp oceoaex oepaopo. Tae ocpy paeac eco apaex oepaopo, apep, oepaopa poecca, y poeyp.

oceoaee oepaop oxo a oepaop o popapoa, o oc o e ope, oopo yc. ae coepac epeex ocaax. Ca coyc epea xox xox ae poecca o pyx apaex oepaopo. o oe ao oa oe a. Bceyx paeax paccop pae ypo acpa a eoopx pepax, o caaa opee ecece ee a. oeap popae (poee) oy oeo cpoo oe cpo oec y aa pe. Co - o a o Z, a caape ceco. Cpo aac oe a, apep, "cpoa". oe cpo oxo a oe, o x oo yaa ccey cce ax, apep, b"0101", o"05", x"5".

2.2 Ocae epeca B e VHDL oeca cxea pecaec a oe poea. pecaea oeca cxea oe ocaoo coo, a, apep, popoeccop eca poco, a oec e 2-HE. a oe poea co oepe ee a pax a oca: ocae epeca oo oee apxeype ea.

pocppye o a pepe. Ocae epeca cxe epaopa, oopa peopaye xoo epexpap o apee oo ypo a oo ec xoo.

entity Id_1 is port(A: in bit_vector(0 to 3); Y: out bit_vector(0 to 9));

end Id_1;

a o, oca epeca poc oea xapaepyc eo xo xo. cao oca epeca yaaec caa (apep, xoo xoo) eo . B ao cyae bit_vector(0 to 3) bit_vector(0 to 9) - o oe eop o 4 10 .

B oca epeca oe coepac ae opa ooceo ppo oea, eoxoa oyepoa. Hapep, oo epeca yaaoe ocae epeca eo aece oeap ay coc oea:

entity Id_1 is port(A: in bit_vector(0 to 3); Y: out bit_vector(0 to 9));

------Taa coc --------------------------------------------------------------------------------------------A3 A2 A1 A0 Hoep xoa c a ypoe ------ 0 0 0 0 ------ 0 0 0 1 ------ 0 0 1 0 ------ 0 0 1 1 ------ 0 1 0 0 ------ 0 1 0 1 ------ 0 1 1 0 ------ 0 1 1 1 ------ 1 0 0 0 ------ 1 0 0 1 end Id_Oe, o ec oca epeca aa coc caea a oeap, a a a cpoa, aaac c yx ao pe, eppepyec a oeap.

2.3 Apxeype ea Ocae epeca o cyecy opeee oo xo xo oea poea. poe oo eoxoo e cpeca oca oee oea. B e VHDL o e cy a aaeoe apxeypoe eo. o eo oe opee oeee oea eocpeceo (.e. eo-po) peca cpyypy eoo a oee poce ooe. pcya poeccy poepoa, papao oo ye e aop pay cxey, oope eoxoo peaoa. Baae, oao, xoeoc poep x paoc.

epoe apxeypoe eo, oopoe ye ocao - co oeeecoe eo. He oaao oooe oeeecoe apxeypoe eo epaopa Id_1:

architecture DC of Id_1 is begin process(A) begin Y<= "1111111111";

case A(0 to 3) is when "0000" => Y <= "0111111111";

when "1000" => Y <= "1011111111";

when "0100" => Y <= "1101111111";

when "1100" => Y <= "1110111111";

when "0010" => Y <= "1111011111";

when "1010" => Y <= "1111101111";

when "0110" => Y <= "1111110111";

when "1110" => Y <= "1111111011";

when "0001" => Y <= "1111111101";

when "1001" => Y <= "1111111110";

end case;

end process;

end DC;

B apxeypo ee ocycye popa , ocyec capoae xoo o A(0) o A(3), eco oo pee oepaop opa case, oopo ypaee paee - o eop. B acoc o ae xooo eopa A, opeeec aee xooo eopa Y. Hyepa papo eope ocyecec cea apao.

o oeeecoe eo eao ocae paoy aopa, oao paec e opaae ocpoe yopoa peao aapayp, a a e oeae a opoc:

ao oe cooecye ocpy a aoa ea aep ocao cxe pooa paccopee aoo pepa, oo ycao oece y eeo xooo eopa:

Y0 = A0 A1 A2 A3; Y1 = A0 A1 A2 A3; Y2 = A0 A1 A2 A3;

Y3 = A0A1 A2 A3; Y4 = A0 A1 A2 A3; Y5 = A0 A1 A2 A3;

Y6 = A0 A1A2 A3; Y7 = A0 A1A2A3; Y8 = A0 A 1 A2 A3;

Y0 = A0 A1 A2 A3.

Moo ae co oeeecoe eo a apxeypoe:

architecture Level_Mech of Id_1 is begin Y(0)<= not A(0) and not A(1) and not A(2) and not A(3);

Pages:     | 1 || 3 | 4 |   ...   | 7 |










2011 www.dissers.ru -

, .
, , , , 1-2 .