0% found this document useful (0 votes)
16 views

Unit V

kjhj

Uploaded by

sridevi ramaraj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views

Unit V

kjhj

Uploaded by

sridevi ramaraj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 27
@ Rastaten Trove bt hogte 5 a tayo ; ceevtncctoat Te AE ddigg ays tra beyptentat degic Ays oe S Te ptedfy a Rare atlpteR age wotthe ea nheke tude wow Matic 2k - > ee a aes ays emdty , Wigs pys. Oe Brn Vook odrtey AI prod. weies > spodetes ane ccorutrudkul tere . or AR AEs , Merri » Ar cedor& 1 conde years ars wokic 2ha cenrl contre -Aogic- - - oste roctlodk ee np a aa tat srottra.reaticet Be oR he Abep « Arye oe “<* Se ee ON OF BaDens , ACA oval MYLCCRA D ‘ouky bead pragta ou ane select em pagores ts 9 ea Abe PE ad Fin nek q. Poyeamions Ownl Baels v ——— =3 we On ak ays. Ro donc Aiseck Ape ck Rad cpa hares Oyo MEtiek Bah Ue i Fg AtssShag OP te Cova porns or bee se in the system w& thar fu. £oee torr Sok 7 j re Kan, EBSA en the tapi tay Scanned with CamScanner ~ ance “parr wit ote tyres 9, regi Ahoy Zosl an ET mags , centaur err memory Units, TR) Bivey Sp fermetiien K Sad. BERK Son rage ey be Winey noes Boh merry coors Arctmab nes, aelsmuninm © clrennctars cot anh Br anny een Brroryecoded rte, clomi ieck nie Free corte gente OD momenta date Anon on bivany ashe Kiron Seda « Gackered Mes. Ue Jan Lark brerekce Compton, Ch) wens teak dole Bush oo ealphano moe charade otter Femme) _codack euperlocts wad Ba Aged appt, CTH) Qwrtaucktnn coolers octdnercer ok Ola 2 Oey te ~ Pemcarring MERIAL Toons LSM y. WEadl Ge Ape Sy duka— P- contin ae BD corteet ferdvow = SS, . = consist Sheng Bignnalk Bhrot Bayern gr ogeiews os ot a Aimee Tb Bioramy Vorrelttt Bact, ortnas fe oe Boker arate , Sd ttakes awn operation omnral , rer Bo aha OMA Brorony Abeke SAU toe operokion, oa . ° 4 BD) Where operdtios own there Loperotitin Strat town be peryenred on apenodbel SREai wei cleo pale poet — Resorts 9) opers brown wey Sryplere Lhe Previous Soin LAS. ok toe te es on) si oe pune ot & L Scanned with CamScanner 5 BERET, CoUnnk prods clear crt Foot: rypes 9 ticseepeetiow oe Jaap USIAN > Santer regi Gr = Arerwmrher getn ve change the mf wot . iy Waves bch owe ag a) Att nackte — operteres subline oon ate Rtmed Zant. A orm © ew BAK as ond CROW . 3) mes < “Tee Bits “atone iw oueg + yy Sgr — Apecdgy operctiors qer reer mK: ak TyTER RE SITE TRANSFER i Soe 2 Doar s. Sates ~donigualad Py cag 2 oe . cha ni a Mae, -Pourncbiionn Op THe mE? La gacten, - oes mar Cmemoy f sero R2 award TR. “4 oS A,B, RVs > A um a ne getn ty a oun wey eee (2? megintn A Ch IS rearing WaivrapsheeM, , f Qe 1 wm 8 Ee re ey Coa ummbetng galls CAD Portions 4, wa Sagi ate ; pen be peck Siatal vin Peaytaten rosy. oe Ba cdot aterKourest, ey "Neetaee REGASTER ACD) MBRLI2D, PCCM) 3B Deceace SLBFEGISTER PCCLO= PCCH-E), PoC) RP a. > Regie aap Scanned with CamScanner A “Cantnet —y- By A Berean Bn Uren cormn OS eqpel be lp om ie 4% ea menaakadd Korte cs Coen. as xT, - A eR gla Tasnnstgn ogretien 22% ant cwed by Waa alo ‘T= i oriole x =o ord. ony wren oa n> | ee) Wen | a “eheniog UOMLADL T= I. ole srreptarmeiolion ete, 7 [rae RA A Beste Syn bls fer Ryiatn—frownmnsger Leste PRrorral WOrAR — amp eR ened Doscrpttsn Er TeX Conrd rerremtn) Derma, eran eee 4 Seanesnt Dano® abit ates. eR rke | PararnAlaatne Lo damoter « psilinaany, ce! By & Dewrtes-the HromatyrQ coe. Lmercop ) eto . Taney a Cebit hy ASR OO . > Segnrakn by scieavopillan et &, BEA Moo, wo peat tes Oey exch os eRe RT my Scanned with CamScanner Bus Transfer @@e 4 ee es - Fectha Mots he broiler 2G pure Common -Rire: TR ter nro 2 Arorkelee Are anerecadtly open Lalit oa Pree * a a Fenway Ager Fy Os Fy 2B teohes So cra WH pequtvect pate + 8 ane eee Uo tere path. Sy bus sou ene USGA Bos PP oper ey Ae Scanned with CamScanner = ae Common — bus Arskew~ Craw Bre -ces bere tol at tt on kapherens, ont a Atstihat tou avcy. ter the buy Krarstyr Corn be selectoal rey trea Sa clo cedex, Moltiploca ~ Selects oro Gewnrcee Aap reece — Geleochs ernre dostinaliicn r2e , Fig eb J 7 Rey maps oa al nib ae padplouy mus weeded ts Per en MLine bru. Sak Dimes Sa ate Bes one connectil fs thao! 4 [pa ©, otk Pay. S Parkicution Dood coven? ccebiucted t Actaetael try Goa o[pe wy Hae decoder wlan erated. 3 Ceiba Bre ptet | i eae > cendeek fn ag arrotiles thin Aromas gen rouial Bedack paz. A ae the Deer onrak Mey © for the cestivabes poe eeabkiplocens ord clecoctin select J/pa trad an Seeack Counce = 00 CMux.,g gebect aap ad GPa derbivelion=[0 C dococorcebocts 4-0) De certtan Pratyle =o © che cooler eta emrbled) en tee aatt choot pulse tho ¢ cute nats % a, Lresing Onn tee BUD, ane DredtA Suite prapia ten c. Scanned with CamScanner Memory T nestekper . voy p04 f weatte eqeraton a Franniges Qe Bf. aunt am aa, “a Rana epiinn Samet Ea Be ats Kan MAK Memory Addenda Se MER Mowery Ruger Ragh ony KE Read [ean Mae fr Se wv Tee] hen by, vottr tse j Sh dhel Commun Seb suse em - ve Arhectrl rewory eR enotkhion —remitets Age Fe a Pagioterm Late MBR. - Gey ar mero pak, : sb Ry ee embed fe tha? ni Kekes Ane, - -R 2 * ~ “4 ; arenes Sof Saks mar & HThin Cnn dary toe Bollrend Pedad med mS ) ie Me: Pa 2 : wroting — dramegen BP” 4) Wice Ope TT nny Rage “ ped pied pe os the sled . R Gey wi Me™ . . Y wok Lad Raltio tan Write eperetion cot w ae We Lanter ensclion fie MBR Scanned with CamScanner On Some Bystarrk, Bue paumery OE ao coiv de Adri awd doba yom eoomy asyiateu connected S Common Sourts - 3B mE rey word 2 apect red Uddre Arpt M Rerlewed wy Lan Badin ow Ayrton a rays Qrnclese x3 BQ pone Boro crabs ic, a a ” The ew ey te pag ser witha on tha Faye 7 co AN M, lpanckels SREY The rdw HSE Soe we, aastor rockin “Yom Aapiate 62 BB A Mermey Lr Beha cool Bry the adclrera An rp AI aly Byperlostingsh Dey Ame prokeorent ! wi Mtall <—e2 Rood open SS ae Tee prod R:po0em TAR Apes npr a eed eprokion 4 ; Wess eodso an open by AB. Wee Astana oof. Conning uk ef ony ds Arormaperrecl Ube my. BO. Oem A PEMD AG: Fiy. S28 Scanned with CamScanner O@® ARITHMETIC MIcReoPERATIONS = — - Tanker nagha tr bronarten aricin parties AP oo v PAG tno! thre lurt, orrkeunt whew Hac Dainty a _ os e - . : . / “nooe qe Mee POUnee Avy, Jo Hae Dardieedee @ 5 ¥ — Ret otrr on Exe oporekiow velo ee th nf - Lenk duiery dae chlor ther * Basic Arktlerndle Ofer opener a aan f) Back AAD Sudrack “1p eee b tS Bits ; v Aah teeken wire oped ie Ads terte UE Sole pencwpliov Bostgrodree | ¥ wreuka b A patina ered oF & ear® i done with. Hao Balp 9 ||Rarololen . be AB cankentr 9 Pr oninns B temutuaed OE & dena he Me Anal ©, WR satecte bee aon pherrrnnh ree OC 1 Comrpdoransed ) BeB~t foum the 2 Cormplonmenh nyeerowctia Fearne) A plu. tae 2's conn pt Oye. Plereak 6 be ha AS OnOawerk Sis ‘ ote coments oy a mu & oh) Decne (cx ! Atnrnannd tre coker ae “ up) CCsuntayd ! — 7 a Pum cts > a ee TET a 7 Scanned with CamScanner bioastoln cbuo Atiste To1 ac Are TW AeA | Regi prod vb ~ PernrodLod rate | som 4, tend | a Regie f | - the aol ana— O _deplonnnion 2 2 Babich ae Aye sorfoors Sie oe "pa Roark B. m the perch a-ppriiest do tee Ale 4 Ny Ay awd tiny duke Praga ple. th: Sotto Ts Ban rirnnenta the ny. Ly nt YY pace cuenta de > peradteh eee Tha Aum BE Ke > Mei Own aproddiny wus snes > pn SIA pe co Sinn operstiow Sarrplormrerstical wit Bonyrerriae DA crak AAAERY toons operations + \ pivt rien Be Veeghtemetad watt a payee FADES coi noo erations . powder arr dicen i Dye wes 2 i; By Tepes oo > on Dpeaaktinnd lot a tite} brad o~ wo Mb 4 ) Boonen lett. set pik 20 ey he pnnadtaley SRA GM — Scanned with CamScanner Exo mianoperslion 2 ey nhrllageot by F= 2@n Vore comtent a, A Lloo Gewkenr 9, B — SI?) cowtorton Fe AO — aot SAFE mine cporecens Lose Sq edhe Dosrirption daytretion Deere _ FT .?Pr—— . Peon Complmred oll Intts 2 papi rte A FeANS Loic OF Nine op Croton eae AS Lasic acd mf crcoperabion ce Aes Lesic Ex on miccopestion Re Sle SWer_Lapt nepinti & Beoshr~ a SWE pigist aagiavtes A. —_ ok ar DOR aT, ReAtR, CL DV EF ; Z y at tryeret be dene te OR ay Ae Creel 2 ore} fa 7 wae Bayes Teoh ds dernute ef wey ab > Usd An 2 ae A Hama lBe > eabume bk rece Wal Ne Leg sedod 2p ody py Baghorwre poling te 4, shanty /| re é aA AEE ° owed ain tee PUY RI dpeitio dandy . bea aS sectopmak Ph de r 4 ' AW 4 An CE Creatine th. wa Bbbs 2 Scanned with CamScanner @ conditlosr Comte St. = ee | ranottn.g 3 em Cc@mnd) ten C ABT, ay Cae) Ken (Le 0) plte (Foo) i enol mines ivewer 8] aloe C est F foal DoE angela. toe Gin iFey CT? Feo , To: ow Fel ae Ae 1 0 ' wn > ae FeO 33 ¢s0! c pO" L t, 7 on ats = es Dinern = FEO Be 2b & abik nag “ c= fale Tele] ther Bre =o 7 Te it ai ' ~~ HE c, Sr eg Cy eC C4 Cotte te,’ Aeon Pe grerekal untvre NOR saty | Hy Xa, Coit fr Ae Lomol wi” th ae spoke 4 umd fur ond Ark pak Ds etas hi Scanned with CamScanner fr a pein Bivaag hob ote cmnh Rosin point _peprasiaielion Sip si ve Sipe 3 ° | —ve —! seo. To npr a Aigo Dronerony 0 « dane Bg WE sole me K+ FF. Rs | 15> Sipe ee pi) ‘glen Fe et noprarnabelic, Naud feint_! mee ee aking p ; Cosa ep RT Ria Rag ansitly upd SSPE] COD] Stayt tay mt Visi bde techs Then No. oa & Rembor t ~ Tat - Sy > +4 _, : oe Saget Oo 0 1eCe| | 60180/ Sei eee © > Cf be, 1d awetre Wm 22 Comfleweny 6 Coroel |, ;setil ave Caf 3 Ruck mm Lb ino Vo easy Aap emt It | | Aiglibiee Mile lin in 24 Coengpterred: napeenetabinn Bln a Connplemet | it 46 80°00 = Atioiy =—91 Vio 4 2 ceo) +b 0000119 61 11100), G Ease Pte” 4 0 eotee! Pe en 0 00010 +3 T1108 See +2 05000) Cat ad ag A gre the rons A Npicod Cign) bikas AN oA, Scanned with CamScanner Te DeNiman’n command fap Nn aon amen rues oats do dyer Pompe tGR bo mah ushene “RD sot eve dy gong A ~ Wen coo ms. Am Hay’ G one achoho A Barn one Gia Bere weephen nat EG ovengine OC + uy OCLAMA vIn Rw due ) Two Aasd: ann eR 2) Thue “et: one — Ve Jie. e » am ell HS Ties Blank Doimomy mrot 138 papinlen Zigt 27 bbe , ahaennp ? o 4 ol penis | - - ° ABS Ft ee gsot ke 2 {| of1rec 4° o \e ee aS pete! o1trelel ee — of —_—— a - oT ONS te bie © igs | teoctet) a = tre aan cory * ation wil An miei eanny Yarn ov an . a ~~ BN rt \ poe re aah Barone 9 UD —_—~ . ’ 2 be cit Che) Cmrry oe my the Gigabit & pest Gow 10 ceeey + oe Beer ss Pe yy Buel Laake 0, “By sary smudee) ~ Agmimene A Scanned with CamScanner Tome ; fatomenc Siens G —Trccoperttion Mrak chy, A Aigraol Area osiye TS thy, Legh or aigrk. = Shh dgt vbbiphia ve Bipnuk Ldvoay wl, - Sigh aageh ividhar Brn rc. by 2. ~ ARttmeble BIG erncd thawe the Sign UMS Doresvor Ba Bi pr Sy the An, nemains Ahre Zor ume Lk ds -onidtiplid a dwidod ty . 7-1) _ == — — >i, BWipbeniyh thet lividus at), ACN | Rs OL - Ar Nombe bi = 2 * ACN) &Shx ACN), anit? a eee pelt em dorne BQ esr A , ACSIA For ROl* v 24 Pesitiye wo +125 0 O@llo°e 46:0 OOlfo Stine rrapertude -l24 lL @1loo —b :\t cote 4 Sigel 2 Complnrrent H—2% Vo loon —Gil ttoeo Sign - pa empnet —l2. | boloo —6G: 4 Hote eWay y— deat thos 0 plies a ™~™: wy a Ao & She AcN), A, +? for Ai gaa Mmapni ticle A zshin, A, & ACS? tien Aign Ub conyptomren as Shia 7 Rife fer Atynats uv Be Pore WO FI®s Calicoe e206 tio : bo: Sim. : : eNom tag bnde: “2 11 6 ito ty) tte. Sh Goak | Comey Lannie “1% 2 6 MOor, ant Ld Signore complet ab: Git Sou, “1! oo 2957 matt 1000 Scanned with CamScanner Tusturckion cenehan or Rargipwckion Cola ae a Yop O Sndte ral Jat See veownpetin te paporns Apak & —— \ a aos | { Subtos Dayne os eprrtion S406 an Add, int, ene Tansee con code _formek ware | _ Ciael a 9 i ° Cone bye) —— RE opromel Eby &) 3) [opete Spek |— Divedk odd. C3 by te ) 7 NEM Cadel) “Stamps comme 2) opear | oferond | Dee en Sy Rag _ ular ae bh Gy Sauda Tey COUR , tone ogy ® TROrwatruotion ney) Pecedournr Yopersdeen Agcocker 2) Vimirg Axvcoder WA Bannon owk ? 25b%e Scanned with CamScanner AO entation bk cache tt tomenen IR edt. 3 Aonhdh Sia bo. mA R PO yy, ( mice Para eer mae aM | Pe H ect) operetien ye at tre TR & meer mreacdo axparotiion Alm ore em (PCT, Pec~ her) Bae teem Op Busta enn 7 ereSger Mee MALE OPT” your . ey es, You Bakr t peFd~ open ns om I Pe ° ~ gs pk Tt op-eede a, te ease tae Suuclioy 2) Lp cprDd cre, mien opreknnrs = aap pane e tal, tmnwuckien one 4, bz © MARS PO Arent cpr oad, ve ty ft ME eEM 4 PCL PEt! 24 opsoad x7 7 = Poe £e t A +mnne) THEO Vets Ne ope win For ly Arash se Ofperornel oem Sipe pend Froeniger TK Zante aaysnkn gy emneey 2) Lap ADM nya) a, by TMARLH Pc * en a than nMohe Scanned with CamScanner Veky — g*S Vat, vs, ty m , PR SPT] AsedADRS Tron maha oS MER 7 Preyer epee why MBR & eect Opt Re MER , T<0 Frome apsrond fe A, Se detec Cyele, Scanned with CamScanner 3.10 Gere ue es . functions and microoperations: fyi ardware components an 4, To design a digital system by specifying the hi d their interconnections. / can be explained 2 words, but initi tated the definition can Dé S| pre- sine. The use of other macrooperation system, and can be used to d to check its intended operation. The internal is best described by a set of control functions and st that describe the organiza. from which the system i i ter The set of instructions for a given compu! when defined with macrooperation i init ambiguity. cisely and with a minimum of a eas organization of a digital system | microoperations. The list of register-trans! tion of the system can be used to derive th can be designed. | | The next section shows by example how the register-transfer method is used in each of the four tasks listed above. This is done by defining and designing a very simple computer. 8-12 DESIGN OF A SIMPLE COMPUTER The block diagram of a simple computer is shown in Fig. 8-14. The system consists of a memory unit, seven registers, and two decoders. The memory unit has 256 words of 8 bits each, which is very small for a real computer, but sufficient for demonstrating the basic operations found in most computers. Instructions and data are stored in the memory unit, but all information processing is done in the registers. The registers are listed in Table 8-4, together with a brief description of their function and the number of bits they contain. The memory address register, MAR, holds the address for the memory. The memory buffer register, MBR, holds the contents of the memory word read from or written into memory. Registers A and R are general-purpose processor registers. The program counter PC, the instruction register JR, and the timing counter T are part of the control unit. The /R receives the operation code of instructions. The decoder associated with this register supplies one output for each operation code encountered. Thus q, = 1 if the operation code is binary 1, q, = 1 if the operation code is binary 2, and so on. The T counter is also decoded to supply eight timing variables, to through t (see Section 7-6). This counter is increment rh . ry clock pulse, but it can be cleared at any time to start a new sequence coaplie FE ge ough # serbysep counting sequence and nue Siumbuter to read successive instructions previously stored in memory. The PC ¢ address of the next instruction in memory. To read an instruc~ Scanned with CamScanner 256 wordo Memory unit & pith, 2oct— 25608 DB remedy SY 2) Seven augis B Tuc clecoe Figure 8-14 Block diagram of a simple computer tion, the contents of PC are transferred into MAR and a memory-read cycle is initiated. The PC is then incremented by | so it holds the next address in the Sequence of instructions. An operation code read from memory into MBR is then transferred into /R. If the memory-address part of an instruction is read into MBR, this address is transferred into MAR to read the operand. Thus, MAR can receive addresses either from PC or from MBR. Tame 8-4 List of registers for the simple computer Number Symbol of bits Name of register Funetion MAR 8 Memory address register Holds address for memory MBR @ Memory bufler register Holds contents of memory word A 8 A sepster Processor register R 8 R reister Processor register °C 8 1m counter Molds address of instruction IR 8 register Holds current operation code r 3 Timing counter quence generat 345 ~ ~ Scanned with CamScanner ee instructions for a simple computer tions f¢ r Tame 85 Thr Description Function Operation code Mnemonic . _— 00000 Move Rio A ack eon mov 5 Load OPRD into A . iA potty tps DRS Load operand specified by 4 TADRS] eA "ADRS into A i fous section are specified again in tructions defined in the previot re spi ae eee naire ae eight bits in the operation code, it is possible to specify op ose aiferent operat entation, we consider here only i implify the pres 3 r ifferent operations. To simplify the pr¢ i weaves sted instructions ‘The mnemonic associated with each instruction can be ; i ith symbolic names, used by programmers to specify the instructions with symbolic | The y ding binary operation code and sym. mnemonic MOV stands for the corresponding bin ‘OV indicates th bolizes a “move” instruction, The R symbol following the MOV indicates that the contents of R are moved to register A. The mnemonic LDI symbolizes a “load immediate” instruction. The OPRD following LDI stands for an actual operand that the programmer must specify with this instruction. LDA is an abbreviation for “load into A,” and the ADRS following it stands for an address number that the Programmer must specify with this instruction. The actual OPRD and ADRS values, together with their corresponding operation codes, will be stored in memory asin Fig. &-13, ____ Table 8-5 gives a word description for each instruction. This word descrip- tion is not precise. The statements listed under the function column give a concise and precise definition of each instruction. A computer with only three instructions is not very useful. We must assume that this computer has many more instructions, even though only three of them are considered here. A program written for the computer is stored in memory. This program consis af many instructions, but once in a while the instruction used will OF she three listed. We now consider the internal operations needed ‘0 execute the instructions that are stored in memory. Instruction Fetch Cycle Program counter PC must be i conta sored in memory. When a “att” swig ae Me follows a basic pattern, An operation vode memory into MBR. The PC is i i Im sequence, The operation co t t address of the program f tivated, the computer sequent we Whose address is in PC is read from Me gad By Vo prepare it for the next addieS This sequent erred from MBR tw IR, where it § ion code from memory led the instruction fetch cycle, sinc? it fy th, and 1 FY and places it in a control register. TH 2 Out of the timing decoder are used as cont! ‘nce the microoperations = Perations for reading an operation code (op-cot# | Scanned with CamScanner : / / 1 1 7 5 , Searser*.* a SEC. 8-12 DESIGN OF ASIMPLE COMPUTER 347 and placing it into JR: tg: MAR & PC transfer op-code address 4: MBROM,PC—PC +1 read op-code, IR— MBR transfer op-code to IR srement PC oa It is assumed that the timing counter, 7, starts from a value 000 which produces a f, timing variable out of the decoder. The T register is incremented with every clock pulse and automatically produces the next timing variable in sequence. The first three timing variables execute the microoperation sequence which may be symbolized with the macrooperation statement: IREM[PC), PCH PC +1 This states that the memory word specified by the address in PC is transferred into IR and then the PC is incremented. The hardware constraint in the simple computer is that only MAR and MBR can communicate with the memory. Since PC and JR cannot communicate directly with the memory, the above macroopera- tion must be executed with a sequence of three microoperations. Another hard- ware constraint is that the PC cannot be incremented while its value is being used to supply the address for a memory read. Only after the read operation is completed can the PC be incremented. By transferring the contents of PC into MAR, the PC can be incremented while the memory reads the word addressed by MAR. ‘The fetch cycle is common to all instructions. The microoperations and control functions that follow the fetch cycle are determined in the control section from the decoded operation code. This is available from outputs q, i = 1, 2, 3,.. + in the operation decoder. Execution of Instructions During timing variable f, the operation code is in JR and one output of the operation decoder is equal to I. The contro! uses the g, variables to determine the next microoperations in sequence. The MOV R instruction has an operation code that makes q, = 1. The execution of this instruction requires the microoperation: qs: AOR THO Thus, when q, = 1 at time 4s, the contents of R are transferred into register and the timing register Tis cleared. By clearing 7, control goes back to produce timing variable f and thus starts the fetch cycle again to read the operation code of the next instruction in sequence. Remember that PC was incremented during time ,, so now it holds the address of the next instruction in sequence. Tor aT AA Scanned with CamScanner CHa oaic 348 REGISTER-TRANSFER L ration code that makes 4, = 1, Thy The LDI OPRD instruction has an ore microoperations that execute this instructio! transfer operand address mat MARS ead operand, increment PC tg MBRAM, PCH PC +1 rea an ’ transfer operand, go to fetch cycle. Gols) A MBR, THO = id the The three timing variables that follow the fei gee while ta ai rea a he oped from memory and transfer it into register A. Sint location Tollowing the operation code, it is read from oe one addres specified in PC. The operand read into MBR is then trans red to A. Note that PC is incremented once again to prepare it for the address of the next operation code before going back to the fetch cycle. , ‘The LOA ADRS instruction has an operation code that makes 9 = I. The microoperations needed to execute this instruction are listed below: sty: MAR — PC transfer next instruction address MBR<—M,PC~— PC +1 __ read ADRS, increment PC she: Qyts:, MAR — MBR transfer operand address slg), MBR—M read operand Gly) A— MBR, THO transfer operand to A, go to fetch cycle The address of the operand, symbolized by ADRS, is placed in memory right after the operation code. Since PC was incremented at 1, during the fetch cycle, it now holds the address where ADRS is stored. The value of ADRS is read from memory at time 44. PC is incremented at this time to prepare it for the fetch cycle of the next instruction. At time fs, the value of ADRS is transferred from MBR 0 MAR. Since ADRS specifies the address of the operand, a memory read during time 4, causes the operand to be placed in MBR. The operand from MBR is transferred to register A and control goes back to the fetch eycle. The contro! functions and microoperations for the simple computer att summarized in Table 8-6, The first three timing variables constitute the fetch cy—1) Figure 615 Implementation of xj: MAR PC i + between the ion i lean function. The ta control function is a Boole Conal ovetiané denotes ‘a Boolean OR operation, and the he ab of Gn operator between g; and f, denotes a Boolean AND operation. t combines all the control conditions for the transfer from be into ae Te hardware implementation of the above statement is depicted in Fig. 8-15. The control function can be manipulated as a Boolean function to give: fo + ats + ats = to + (G2 + Ids 4 The binary variable x, is applied to the load input of MAR and the outputs from PC are applied to the inputs of MAR. When x, = 1, the next clock pulse transfers the contents of PC into MAR. The binary variables that cause x, to be a | come from the operation and timing decoders in the control unit. There are cight different microoperations listed in Table 8-6. For each distinct microoperation, we accumulate the associated control functions and OR them together. The result is as shown in Table 8-7. The combined control func- tions obtained for each microoperation are equated to a binary variable x, i=1,2,...,8. The eight x variables can be easily generated with AND and OR gates, and will not be done here, tn ute design of the simple computer can be now obtained from the register ne Hoewe aon sven ponble 7. The block diagram design is shown in Fig In addition. there 1 ey weisters, the memory unit, and two decoders 7 dition, there is a box labeled “combinational it.” i |. circuit block generates the eight control functions, xv, mene, The combinations ‘unctions, x, through x4, according to the ‘Tante8-7 Hardware specification for a simple computer a : of th + at: MAR & PC Sai ays aug HRS abe 2 ae. ne MBRAM a as armen ne a te Teo IR MBR 350 oR Scanned with CamScanner Nigse 616 Denga of « wmple computer 3st canned with CamScanner CH. REGISTER-TRANSFER LOGIC soe I functions enable the load ang A register that receives information from two. For example, 4p between the (we y fuiplexer to select hetwe Wliplexer associated 4 ee svonaaton trom Af oe from PC. The mul (x, 7 1) but tranger Maki mor the contents of PC when its select Up yecaine x, 7 Owhen x, = | themes cf BR nen he pee ine hat racontents of MBR go through at stintes the load input of MAR so that | ith every clock wee soulhteretenta MAR. Timing counter 7 is incremented wi ry Pulse; however, when x; = I, itis cleared to zero. 1, Fig. 816.ean be des ae The i \s specified in Fig. igned The eer a te dig funtion speci i Fi #16 can be dee Jividually by means of combinational and seq} pytem eam e can readily find commercial Ms tem contac ih nerd ici one can realy find commercial MS rcuits for all registers and digital functions. | control can be constructed with SSI gates, In a large computer, this part would be more efficiently implemented with a programmable logic array. control list of control funetions in the tables The of contre ! a increment inputs of the various regis REFERENCES 1 Mano, M.M.. Computer System Architecture, Englewood Cliffs, N.J.: Prentice-Hall, Inc, 1976, 2 Cine. Y= Computer Organization and Microprogramming. Englewood Cliffs, NJ: Prex tuce-Hall, Inc, 1972. 3. Dretmever, D, Lopical Design of Digital ‘Systems. Boston, Mass.: Allyn and Bacon, |97). 4 Bell CG. and A. Newell, Computer Structures: Readi sand Examples. New York: McGraw-Hill Book Co, 1971, ms “vee 3. Hull, F., and G. Peterson, Digital Systems: Hardwar rganizatic York: John Wiley & Sons, 1973, ” " =2 tion and Design. New 6 Banee, TC... L Lebow, and 1. § Reed, Th York McGraw-Hill Book Co, 1962 g x z EB PROBLEMS ©1 Show the block Magram that erccutes the statement ar bz ne A constant vatue A can be transferred tw 4 , ‘eral equivateat wy logic} OF lowe.0. spares! bY applying to each input a binary Show the implementation of the transfer: 1 4~ nowt Scanned with CamScanner

You might also like