Simple notes for Microprocessor and Computer Architecture. Covers computer organization (CPU, memory, buses, I/O), Von Neumann model, performance measures, 8086 architecture with registers and flags, segmented memory, the 8086 instruction set and 8 addressing modes, with diagrams and examples.
Download Microprocessor Programming : Computer Basics, 8086 Architecture, Instruction Set and Addre and more Study notes Computer science in PDF only on Docsity!
pogo ; as i LoS aeh / ____# lFunciona) \nlocks ina computer (4 ts geen) po ie Memon 3, 3/9 Unit __ 4. O}P unit vile ae Dota Glow Ip CPU Memory £ Jo devices. _| : Meee I ca nals =~ = i Ruxiliayy Be ie | bare Srage” | rr ae i} | ; N) | | ae | i ey | q Unit 1 Con) a 4 Ue => ALA | i Registers | | i Processor ] I cOus Iain of compute y . \L pretossov mi oroprocescor G2 mei Sulasst ers * cu, ALU, Reaiskes : Ss Spec st comp.sys-Pclepenclant on grrocea.ser circhuidebies Pribinmnic Ado} Swabnch, ‘mud, t D My ‘Logical AND, Of Comporre, Shift ou. Jells other units ( Ae nee ywohat to do, Gaivects & coordinates compuber Syd zle dain || ic 1 led ou CU: Petching: oud inmuchion| data ites From memory. Ve, Decedings translales insmackions into commandly the. Computer Can Understand: i! Exourtina . Cones ouk he commonda. 2 Stoving united’ wealthy back to memoyy . yop comouler Pievessiag : idlernal communica tact Brcouoriuvs \ ree) ‘data inte uscdul tabyanaton + ra | Cormmumni cat” -ingice Lompulesr: _Prearam = Lnatructions ce ee Y\ Ped into Computer through Tp unis] ail & stored inthe Jeu bfetches induce Fano ater.” \ . {AFTER | [cu betorodtes tho inahruchions- ’ yon HS, ALU, Memory , 570) . = —\nstuchions Cy senda combo! sina | ae y +2 COTES ie set of Nives used to inkrcomeck cones t SS eer a 7" 3 grugs of bikin conpollel tnanner. + y_ Uys. divided into 3 Liga) tapi Buy 5 BUS 5 Gus. Rats Data Bus a \ Locomvies darta Anshuckions , sr commend carlos (hw = Bidirectional: | Pabderess Bus: \ Lecamies the adelress ( location) of doa in mermy - | \| rs Unidirectional [cpu Morn or | | + Contre) Bus’ \\ocantes aienlieaunel signal ( Readlurie Raye os). > Bidirectemod: S Enaurts CPU, memon4,% Wo davies work ‘together. CcPu: Maas master'! sscecidgy who usiil use buy when Mulfiple units request it Salton Io Aevites -\oidivectiona) itn sustem loupldata las) _Proceson & Merny = bidirectional uit ‘combat data bul th || Hl | | epu | 4 re seks ‘Data Bus, W Peldress Bun N W Contvo\ Bus fies | fet} ible quickly aap store, tater dol —cuercentty (n Use- 1 To execute an inahuction, the Cu eee “from Main_mennony 2 plecta Ub tna register. | AY, (Memory: elect nic storage space 4 Stores dadefingbud™. | Loused or tempoverny storage of Calerlat Yelab i 35 2 typos ] J rie woihapiay secemdary _ Primary [main acy i) a! [PMSA id ee 7 RAM Rom * Ram { volorive memurny OFF 2 everthing cliserppeces ). Ye processor olireetty “stores/rebiewes info. From Ub - + Memon wv urqounized ints Locations ,% each location wu idenkived by unique ackchers - “ vmetaing dota only fora pew radlliserorrcls smust be rehreshedl “repeaheally. ae retain deda os long ad power Supplied > bued for cache memerd i ‘i DATE i fod i ~ & | Processor Spocd.: pega hy + Prete clonlt sued + spel aire bus 4 al crade_ at which ae cones nko. | Liswelansineed tn MHz. |More Muz faster Procusiinga aracr bun unt ial oe eer pabiferrd (dle lass spead I” per unk tne. Ea [Elo PDevicon: »_ Tnpur Alewi'Ces* provides detalesnbrel signals to com/pubey | : key boca, mouse, Mi cropphone, et ee: - op dovice’ Pereinnewnte ae re Ufo result to Ugee | » Monit, Panber, S pealeer- cPu Non Neumann mode) : Computer coach kechixe in ‘which both mapenintne saa tal 'ene _storedl_ in he Same_mem ory; Z the coeur fetches, | clerodes & cxeruser instmictions Rom that NE my: Componen bs: | dl le. Unk. Veco dette & hut From wer [meron Unik. Stores clot Laxbuck® neues éanels bk courdinales oll 2 purad "> LAL". Perry anthmtic & logical Pe PP ea ‘olp uri: -clwiplays procuncc) enulie Working. Hefollows Fotch- Decode —Execute cycle. : fetch : ou rebniewes atuet? {rom eS * Docecle: Cou Inteypxths_ostruct” > ~ llEacocuitke:. COU pevfexhs required Gperek. We _roult vu “stored gent 40 Sip davis - 0 SES —— ae ieaene S memor A i The mee | Ta LOAD a Locatien( A) “| CRescing a \alue Srom trom mnemons vinko MOR) Take. ey. adamess (A) tniv the MAR-——_— | Sead a “aread” signed +o the memory-___ si Reod the elata pais: the MDR- ° ie STORE a Value C9 to 0 Location) Cuviting co value dnho memory (lotsa See clan (x) fo thse MBR- Viel Lovite the adiclyess (A) into the MAR. Uit| Semel ao Surire”’ na) +o the memeny: | : 4_Processing Unix: | Processi ng Unite Hl Deke Sot Temp| ai eae unis Inchuote tne ar le Be ees : “Registers : :small ptemperady nec SEAG “resilis:f4, LO-3 han 8 registers. y + Word sine Mo of bits normal i | eT & op (x/0) Devices for getting Acitou in & sad of naammoyy 2 Keyooas rap) Kegowe Dae za er | -Keyboarel niacigs eed atone (0) Displax, Dato Regiator, (DOR) : Duplay Syahw Register (DSR). + Some dovie ovovide born Vp “Yp (e5-disk, wakeoorls) « Dyver: progam ne conbols-€ access to adovice - x Contyo)- ana mai + RFU “ceorinai exertion of pope Bis Consinehien. Saeed Contains phe or -eclecpern ae contains are of. nexk | inabuction to le execired . he, Clr wrneads Anatruct? enn memory. | —decodes inatuck. — genorates signals thet teu other compares whet + alo- Li Pe: Proosrarn Counter | TRiTrBtruction Peqistur i) ny) mar: Memon Address @ jae DATE Tay NES eee ever va eas pe TN ec dulieech bie. " E) ee J ' | iaciBlactnasaar siibeaks o.d.doress stored in Pc) ait Prawns memo mito TR. a Ge Akeni: Gf.PCinte MAR _ I 2 send ‘read! gigna) to memory Hl > Copy conke nts ok MpR: to LR + Increment Pe s0 it points to next rag: Pee +2. Decode, (D)1--: * Tdeniifiy tne opcode Cin LC-3, alwaus the fix = bits of tne -inatuct”®)- Depenclina on /opceocle , identity other operand g From remaining bits: ss ‘ fa. fr Lor ee 6 hitk= offset ‘for ADD, laat 3 bib= Surte operand it 2. Svpsremies view Cea): * Por ipvbuctions thet hequiive memony access ‘compute address Used) Lor access - ey “ada offset tp bare register (LDR). ‘Add offset +p. PC: | “add offset 4 zero | eich operand (or): = a a (ce operands. mecded tor oPeratimn | Z ~Load data fiom memory CLDR). | Gay Begin,» BeadsdodnaeFmawninniatade ttle LADD). . : | ein | ro E q > y oe) ido nethaing. for loads stones. ‘ 5 hive. caer aiebeks ‘Write | results to eerie ke Reawlt of ADD —> destinasion register: “Res a ae iid € Changing Sen rence of fare akc lkviotcmne be the FETCH: ph | Cexecute “the Next Lik leeds in_oyeler) h £" calte plahich: régeiives ehanging Pc directa, - | These. ure. one Lasting centro! sat sectorad 2 Jumps + Unconditional: Olwaryschange dhe Po een ae coriditional: changes Pe maly iL | os “condition: ta: ey 4 [stoppin the Clocle: rice kg: cu “repeats nsmact™ processing Sequence as long ap Lolock ts -yunning, i + | When Cp pest Processing ‘opp Thstwuctions ib 5 procecsoa lnstiuctiona Prom. OS. ‘ ee E.! To! Stop Compuber AND the click genral 4. Execution time Cceu + | +0%a)_ ime a _Compuz ml CRU Hime SIC x CPS x cet Vo 23. Cinstuetion edatal fhe. of instnscl Sa _eroctitect by the progam ‘act (Cycles Per Thetmo)! avg: Np-of clock cycles aL “neniled eee. beeriGteck Cycle Time): time taken for one clock - Cycle Cin setondns) > lower CPU time= better perframance || | Ou Clock Rabe (Clock Speed’) * no. of cbecie caycles a Pococeracr eco carter per seiond. | Unit» Hete( pz) + Sa. 2GHz=3 billion oycles her second | Higher clock rahe = Foster exertion, 2: "F Throughout) | amount of work oO suskem Compleles in Ta given poral of ime. i Higher Unroughoul = Better oerfor J Ly. Responte isohadl Latency) i = Hine! 2° Wudustonidting actasis Be reediwing ub resus YN tt Lower latenty= es performance - St os WO omcos ~ J yN eGsurmes hors qcricklyy memory poe Net, ‘ accessed and. new much date th can Ys ONE |. + Becess Hime: time token tn ‘veadlusite « 9 t Bandi ydth: amount of data Ut ake transferred mex Sec Forinula D mia ces z | \ ma) | T ' | ; 25) Wy a pee j _ Soe _& |Peatunes of Z: emic estan 1 Sy [Pack Ao-bit mice” Prom tated + Address range 000 00h to PEREEH Llibesabte + consists of 2.000 bransishors.: - r ___Ayailevole asa. 40 -pia DIP(OQualetnline- ace | Package.) : Cherates in tus0- modes + minimum we maximum modg A tcbsbdl ; ies | BAU. handles. communication: With memonbYo. | a) es Matvuchon Quone (6 bude. tashuchon shea loule 2.Seament Qugister (CS.né, Ss, es). arya , > Snwtimiction Pointer CIP): | + Bcldvess Ackler Coompuiten. pis ical alder pun EM > fetch instruich*/cota Prom triemery tile’ Brsvibe dab. bo Mnemowny: ft. i 2 wsrire -claka bo. pont (20). * The lus .control- logic. of the BIU i. t] bus control signals, ne fev ‘read / unite signala i for. nervy: ye i + Nandles aM\ *tro: the fouser on. tochatt. of the Eu Setches & | lexecutea one. Jesbauckon, Woe. cave Queues up the not Lew iasbuchiany tn_ advance, usnin improves dpend « 7 or Ant bandles. faa tear 4 : Contains ’ “> Conbo) ! ciruaitay > Tnabaachion: décodle ' : AU" L ~ _>oinler & Thdex negusters : | 2 Flag neeofator. | = EMS :5 ells tne BILL whee tn Sich Sashruction/dala fam, os > Docnckes Ane Yaxtuctions : > Executes the eat ctions. : The Split: lotus. 2 unis allows tne BIU to | fete Next inatriction while: EU ts exeouting toe. Cuerrent ene Mian coded ‘instnuttion Queuing lo Simple, orm of $-Pipeliniog). 3 Physica bres. to ae ml | sti 7 Ping BA (eepnartgaendmadated Address _~ DA SCS» Aotiat ofteer: * K # fi é ~~ Ove ii {