Professional Documents
Culture Documents
Acic Stbavcture - C Ompuey: Tapes o Computess Heneal Pusrpose, Vasiety o Sol Tammo
Acic Stbavcture - C Ompuey: Tapes o Computess Heneal Pusrpose, Vasiety o Sol Tammo
Tapes o Computess
ferseral COmtes
heneal pusrpose , vasiety o soltammo
Subject to Cost perosmanté toaded
ahWankstations -
6. Embedded ambutena-
Hidden as componenls Senk
stain acht esesþelhemarce /ost orstear
FUNCT IONAL UNITS
Aithmetic
and
Inpt
loqic
Memo
Ovtput Contbol
nocessos|
*Mem0%Y Unit
It staseg tha i/p data h+gaams
I t is basically to types
-auman mem0s
Secondary Mem0J4
BrimaumemO
Fast man memodu.
in memasy uhle
Paog ams must be staed
they a beina execute.
It ContaihS a no. esemmiconducios
lange
Stosage ces. £achcel is Capable o stosin
ne bit o inasmatron,
sie
FHase a poocezsecd ina q*oub o ied
Calod wnad associa ted wih
I t is ha One exclvsi vey
adds.ess
To porovida eocess ,a oistinct
wih ech aprd.
s associatec
bits in each uaad is called he
-
No.
word lenqth of compves,
- Instavchiors gdata can be wuten into tHu
mCmar y Uhde th Cntool procezSS
Memmor okich Any Socalioy Lah ke, psachr
ined amout tume a l
in a, shol is Calld Jande
speciy adkess
CCCeS meme CRAM)
Th mo
acce time.
callad
cahd memos
MemoyM hich s
Mems enly radeblo hy he u
kch eant ba alteros
conn RoM)
Cold Kend only memoy
-
Caches aro ho Sma da4 RAM nite,
phich o CoUplal wh Hha pAOceLS0 to oe
acherve-
on the Some IC thi
oten, cDntaned
high per,oomanco.
îs esentbl iFFends
Rhovgh aima stesage
to k expensive
Secondary memnDu
- It Ja useo shrs large amoud data &
ave ts e itoivd.
hrooang
Particulasly undormaluen ad is Acce&ed
wnpuguotly
tsMaghebic dids &topes , optical disks ,resek
+Asithmetic heqic_unit
erecled in ALU
- Most o
Most o he comptes operatoas ane
otherocesson like
addition ,sub,divisicn
multiplicathion e,
the om menstu.
Ka oberards are into
brovght
alliol
stovae eleme
stoaed in high speed
egIstea.
to the instavc tors de operadion
Then ac
Then tho e/UIOeol seveCe
penamod n
non
h i comtol s the ALV are a tim fa
timas
dhon oteo, devws
Conmecis a A mpulo,
Sygtem.
- boung th
Load he oeands into memouy
the poocessO perlorvmm dheralion in ALy
to
e l t back Bo
memoryheta4
Store tho
h dhe oce&sO
o Conbol
dhus eha bes a hgle prOCOLO,
h o . oeclorhal olevucs,
Inpt Unit
piogs.am/high level ang uagos s
#o souce npuldeices
ed o a Computa through
ee
Key boasd is mot w m o n type.
- Lshene a key is pORseod ene corsesporeling
wOnd on ho. branstared into its cuunlod
eihe to procen
binay ods ed
oven a able
binay Keqbera
& Joyshicks, tboackbals, mouse,
Output Unit
-Fae ars he countepashe input devices
resala
uhcth îs to send ha processed
Its basic
+o h ugen.
mohitn efc
-
EPainteer, Speakess,
-Control uhit
to olher unit senses ithui,
It senda sighals
Stales. the
1ming sig hals that
govern
-
The actual pracesse,
thounslen odata
Dw input Uhit,
dhe
memesu4 PUntt are 9enealid by
Contsol Unit.
A h e operatbns ar ontvrolled by dhe
Centtme i.
The Opeahions a CompulD
inlanmation in t t Jom
Jhe cempul ncepts
orogams dlato hrough
on input vnt 6
stanesihthe mCmOu.
letehud
is
I n o r m a t S t o r n d in the
memosry
A Instructio pAoce2ing
e)
Add Loc A , Ro locat" LoCA to ho
at m e a y
Ald the operand Ko i n thu processe.
opehahd in
ho Epicre
Sum
ko.unto regixtis Ro.
Place the
Contena o, LocA is reseaved.
A orginas is overdwsiben.
0, Contert oh Ro
heoriginak ha
Ihatauctio is etched om ho memory intofcheek
opeond a locA s e
processo ha R Ho aesulting
anteute o
adoled b h
is stahRd iho eqiste- ko
Sum
Load ho
the Jegisten
R)
to
Add RI, Ro
at te memany locaf of
A dd tho oerahd
tho epero atthe memou
aegr'ster Ri to
cath o aeqicteite, ko
- lo
store the Jreralt in e t a n Ro
RCOnhection derwen dh bAocesK0 hL HAeM
MEMORRY
Oheratix sheps
heside in ho memars thaough /P devi'ces.
kognams
instaucron.
PC is set to point to t#o ingt
TAa centerrts oPC aro toaAdero.ed to MAR.
-AA Kead sighall is sert to te me masy.
-
ingtsuctHen
Interaupt Be
erecution o brogsams mouy Pee
Nooma
device HejuBes vagent Seveng
me
erecuuon
corntpoga
e momaV Aaises h Intes
- ke device
U s a o internuptes
Sigha
Lhtevpt -
Seavice rootine
baoku nestoe
Cwnd sustem inlaamatk sevice b
hpoceReA ptovids ho Aeajuesed
service soutiho
ewecctiny a n apprcpiato inteaupt
Us Stuctre
OutpiMe
Memas Proce0
Input
Yerosmante
ha mod wmportad masuwo Computes e
hoo Auucely t Coh eceuti piagram.
fertos oed
00 berkormance
Hondusou deigh
htouctien se
Comalen.
to aceen progaam depoesds
ceseo, fimg a
n the ececulion
n dhe Jarcusoe wolyed
ndiidual grachihe nbucluón
Main Cache Poceso
Mermany Memo
e ocess
hHhe
us the acho.
Proce elock:
ontroled by o timing signal
Vrocesso ckt are
Celad clock.
the re Gulas
tîme intesul
clock desigh
he,
a Wes clook cyeles,
Jo eacecuto
etecutea machine in8ta uclio he proceo di'vidos
.Io
he actK to bo perfo*mid into a sea/uehce obusie
Seps
be amfleted in 0ne elock
Aseach step
each cah
cy cle.
yele is ah impatard
R ergth P o one ctock
mane
orometer dhet allets dthapoceaso
ha cloek ralo olepineel a s the inves
Fhoehore
ofthe leg th of on clock qycle
R - clocXsato
Clack Rate
ncaeas clock nate to mako he ckt faal,
Impove IC technolog y
Hedice tHha amoud o ocesing den fn on bs
step causeo ay
t i e l cauee
hcrege3 n R Hhat
aro
toa a wo,d
bits is rellerrud
Each gsoup oh unsd length
intarmahon h is cllsol the
e 8 to 6t
be bits.
sed ngth an vary om
The
& bits is calid a bste.
A wit of hah2*
ho. o addressable locatles ,
I 2= s onpud
conshitute he adodreas space
.
addreses
fae O to 21,cellel memoy. ace.
24 bit memay *= 16,t7726 = 16M A g
Ct M-9a
32 bit memar 2"= 4G = C g 3 )
n bits
fistasd
> Secone unrd
Memany
Wosds
q Endiom t l e krdlirn
Wand Aqh ment
te e akiguo memoy
lords
adlbess ¢hat s
dhey begin at a bytt ,
word
of bytes ih
a
tho uwmbe
multiple ok
wcods
lengthis 16 CRtes, alighed
he uoed
addseses O,24 4, ..
begin at byte
b4 aligned und
length is (8 bytea)
t h o aod .
aldrasces 1 6 .
bepin at te
he wosds ara said to he Unaligned adtses=
adres
arb tay byte
a
a ah
thy begina
Characte-s& Characters stings
Acessirg
Numbers
L10d
ward .
t t c
I CanaA acesed
ke
an acesed
Amo. usay CCcukies On
w a r d addWex
i'n he memouu b bec Can bR acegsed
Similasy ndivrdlug chosacters
address
heo byte
by
by
me hods
epret
a
a tain
ctain
He meanins
Thne
'There au
dhasactes
awih
cohtaol
A shecial he las charart
can
e uaed au
os staing'
e
erol
e staing
n Can Conkun
Conlaun
Aegsten. au
A Seperal wand oca the le
locat"n
e t h o uhu sainu
stai
leah
hO ind iatina
n bytes
Momor Gpera luen
soad eration sahrs a cohy
etha
.
a Dvad meme*yLscat
scat tts the
Cotnta a speciie
Conten nemain vnchangcd
ha memosy
steps o
Steps load qeationi
headrers o
ha desiuol
the olesi ocath
Proces sends
to ho memoy mmosy h
issuesJeQd sighal fo
Pooce&sO
fetch tha data stared a
date
Mepypsy aeaole de
Mem9
adldrens senods data to ho
eod
MemoIy
bOceA
Brocesso egile
tehs in I/o devices
Kogis
locaTh a s deroted hy placing
.Conters of a aOUhd ha ham o th
bsackeù
Sqma
h
locat (RI[LOC
Hardueore
Location Bina Exonphe Descxiptiom
Addes_
Contents
Memoy LOC, PLACE,| R,-Loc] LOC a o tahserted
e m loc
NUM
into egis kes R
Adel tha content of
Bocesso k, R,, R egste Rl GRa Elae
Ilo DATAIN, R-DTAIM TA o I/o aeqigle
Hegis ters DATAOUT DATALN asg banslerhe
i'nto egîs t e RI
Assembly_konguogeNotatio
To epgeKt machine ins tauctions poogaams,
Jo-mat is
assembly lang ua4e
Asgenbhy
amg
FoNmmol
e escriplion
data om ZC
memasy locat
Mov LOC, RI
e
to isten R, The Conlents o Zoc
a urchoungcd dy the execution o t s
tnstuct*, b t *d old contente èh giste
R a r 01EN tLaitten
is eatricted
Lots egisters . Memosy
o Load sfare
using 3 addses
OEvaluate CttB) *CctD MCA1 t ME
RI RI
ADD A, B, - MECItMLO
A DD , D, R2 R
b RIR
C MUL RR2,X M vSing 2 ddds.ess
CAtB)* (CC+D)
Evalua te -MAI
a. MOV A,RI RI
bMeVB,RI-
RIt ME]
b. ADD B,RI RI
MIe1
C. MoV C, R R2 TRa1 4 MD
d. ADD D, R2 RA
R2,RI RI TR2] DRI
e. MUL
e
MOV Ri,X
ME] 4
-TR
CA+B)*Cc+O)_using
_I_adldsess
O Evaluate AC-MIA]
a. LOAD A
aa. AC< LAc]+ M2B7
b. ADD B
b TAC
C. STORE T MITI
d L0AD AC
AC LAC tMlo
C. ADD D
AL
SFOREF ME -FAEI
TAC]* MEI
MUL T AC
-TA+C7
STORE X; MLx]7
9.
adel
Evaluati CAtB)*CctD using
Zero
a. PUSH A TOS-LAI
b. PUSH B TOS<[BI
TOS-AHB]
C. ADD
d. PusH C TOS L
TOS-OI
. PUSH D TOS-LC+D]
. ADD
MUVL
TOS-LC+D] * A t7
MAI4-[TOS
h. Pop X ;
sing RISC
Evelvate CA+B)* Ceto)
a . LotD A,RI RI MA
b.2oAD B,R: R2 M[BI
3- M[e]
C.LOAD C, R3
D R4
a. LOAD) R1R, R4 M[D
e. ADD
RI; R)-[Rl+RI
ADD R3, R4, R3 R3 e31+[P
MUL R,R3RI, R1<-[RI*[R
Mk1- [eI
STORE X,RI
DBirg Reqisters:
Kegisters oe Jasters
Shonten ihstauctien
Patenbia shedep
Mini mize breaperey hehwheh data s
dhe
noved back &Sorth blw ho memoru
rocessO e q STOB
Tnstaucticn hzecutionStraght line Seavencdng
the addaess ol tho st instaucto is loockrd
>Intially
into PC.
Then, he þacesSO contsol cincuits use inomal
he inlaona
af
in he PC to feteh f erecuto instaucth, o o a
SUM
B wUM
NUM
NUMn
addng a listof kun
h
Consides he g a m do
Ho lwcatr Contalning the
thn
Addzes o ho memo as NuMl, NUt2,N
Sqmoheallgven
Mumbes are
Yoonching
No. e enfsiesin the list
Move N,R Storod n memay lecf* /
Clan Ro Counte
RDetsnDetemine ob
addsess o
Registea Ri is uged as a
timas te
Nextno. fadl to cletemine dhe ho«
Nextno.oRo loob is ececuTio
Decemerd K N is lpaded uh
C a n t e n t - locaticn
Bsanch>0 LoP he begiing e
Move RoSUM Aeister Rl at
bspneh eni ib
bopheA
a
secid cobdihon is cahs/hed
dhe cohdifon s a satiie,dtho PC is incyend
i the hDema ua, dhe hee ingtsAvd in gea perhh
addness
addsess ocen is etched f erealis
1 if aesult is neative,.1
Noegative) set b
oivenise cleand toO
i Aeault s O,
4 Z Lzero Set to l
othesuose ,cleaneel to O
get to1 cnith metic ovelbu
3> VCoverlow) ch6rus to o
oCeuwrs , otheuwie
esu
ou
4Clcasn) set o l i otherwise olkaed Bo0
c a y
a
Om ha eraton,
Floatingpeints
85. 135 t e in
IEEE loating point
Oret
Rebhesert
sing Single processos.
us ing
5 . 125 O.125X9= 0 to.g25
O.25X? =O+ O5
242-
O .1 8 5 O . 0 0 a
5-0
al9-1
-
85to10lol0
S5.190 = 010 101.00 lt
ark 6 bosition oto th
h ekl
Shit deema zero drg't Jen
So dhot e n l y o hoh
tha left
101O 1O1. b0lta
85. 125G
1.010jO100l ca)
lWovmalized=}.
Ol0lo joo 1
Manhsa
lololtoc (a
O101O1001 0 O0OO0O0000000
Sign Clbit) = O Ca tve he)
Etporect (bitD = t00 001Olca)
O1o 1oo OlOO OOO0 O000 ooa
Man tisa (23 bi)= C