CAHM Unit 1 Notes
CAHM Unit 1 Notes
T
CPU
SH
llane
Hoster Saue
BI
A
IK
Keybond leintes)
AN
BuescoU
the heert Conpute that ctsls the operatis
the compuet and also pergons the data pocAEng fuztes.
stores itomediot
Regter et e enecain
catiol Hhe instutim.
Aetmete
The Coutiot umt Auperuuek lnil
the
ALU) , The ALU pargns
among te ond the seguired
T
netiulx tue ALÚ as to
fo enleting
SH
baaio teinelogg
IK
Qatt
bus
catsed Bus
Accumulato Genenat
Purpoae
Regidtes
CPU
Genenl
ahe
Puspese Registes - ey
he CPU amal
ahe
ae
eutta
uti lized
gitens thal
mgtme
oeation
data a
eyined
Infput Cutput eees- luegams data s ead i t
under he contiel q coo ustuctio
iput wnstuctisn output
Aage
deuees e waed Qutput tue domputes
thaamitted e ia compteu to
buses - Dalk
anothes, es, eauneting mojon wintimal cmponents to e
the meaA Puses. pes
ata Bud - d+ caies data among the memory uit,
the 1lo deuies and tue pwceAAM.
Addues bus - tt c£ries the adloreu 4 data (nst the
cctual data ) beteen memoy ad iocera.
3) Cantel bus- d caies cmtisl eommands ton the
CoU (and stats gnals tun thei deuieu)
deiees ) nde to
contio lamol coordiata a the actinites nitin the
conptes.
CPU
Memeny nput|
T
Butput
SH
BI
Contil eus
A
IK
AN
Address Bus
Data Buy
CoU
ganikation
Accumulatin" ogonisaton
qenenas Regite ongonidetin
lop
Slaek, Inmdementatay
Regster stek, Heey stact
Kequtin sthck t a onganized as icoleil) fiite mumben
CPU egista ae Ke n he ferm
stck, it is called as ugutn staek. Ahox, pointe dalds e
address the pounlr to he top the stack
Su A 32 bit
ualue .
wrd
32 bit wnd each doestss cuit biay
hane s bila addess becouAe 232. Stack pointe
whoe walue camnol eneeed ||.
wil be S bil-
Push apentin
SPe- Sp+ ) (Jnemeut atack Re mtei) Read ae
DR &HEse1 ad
s added to tte Tep
M
[SP]< DR Spe Sp- (Deent
Damt AtacK
sce
T
Ip (se= o) then Ful e ) oct fu)
SH
fuu)
A
IK
134
buample
AN
tustuetin (atb)Cc+d)
PUsH a
Push b
add unstuetiso
Puch c
2
Push d
add
asb
Iustuotuy fonati
Canputea pertoms task Sh
an the bas nibuctin puaided
A insteuetin format detuies te' dayout g a
the ail
An instuctin made
feloucing feld.
BI
the operamd.
IK
Aedres
the opetos to
operstin field- 1ikeApueis e
peyoned.
AN
ADD
MUL
MoV M[X] R,
) Cne addres insttuetin
umpied aceumulatoA for deta manipulatin
+his, one openomd in te tecumulaton, ano the athe
perand is in doeatto.
Opcode
memog
sole
T
adesess
SH
peran
BI
X= (A+ 6) t (c+D)
A
LoAD
IK
A
AN
ADD
SToRE M[ AC
LoAD C Ace M Cc]
A DD Ace AC+
MuL T AG e Ac * 71
StoRE X
PUSH D
ToS- A
PUSH To Se (c +D)
ADD
PUSH
ToSe lA+B)
ToS E(C+S) *(A+)
M[X] &Tos
PusH c
s) R1SC Jnstuato
(Reduced Jnstuctin det Conpten) time ey dinpwio
eeduce the exceutin
u dedigned to weguds mly t etoek
intuetin
the uiatuetion Aet. Eac
eaay to decode .
ydle
lng ugists nathel
rathet tho
RISC architictwe emphaslzes
ohe fostes auaitable
memony
tanduived Data Past
Covtisl Unit
RiSo areiteetue
ADD
MUL
.SToRE X,R
dddhea ing Hocle
Addmsing aole yes to the in wtich the perand
dle t
apeoified. -Tte addessing the acldreu
spreitus
modlify the
th opcole
actaly
pat
ttel Addassng myole t s nó selali
euetl
Mode
in Tnsbuetisn
BI
uistuctin tomat.
Addres Daa s decetly
apeode
A
IK
Mov lone
Suample
K, So
ualue te nalue
Hhatthe
Here + n the
epereno to be loded
moole In thi moole, data s
contains ddata n
to amothes. It
anol the opeutn pengorned
mieepotessos.
othe
giatens the
No. (Rz operand)
J@peode
tnstuctisn
(opeode
epesamd
Kuample - NOV A,c (opying
n tis mode, opomd weaides
the
and
adaheAA diiaty ay
address feld q cnstutin
R,e M[tooo)
Accumuato
lweatun
Lo AD
SoooM
indiiect adehesing
AN
ue Mode
Addusing Mode Ln tis mode,
Indiee gine te
eose etiu
-the istuctim dpeeitis
operand
CoAD Ri()
kuample
ee the
locatig etinng operand.
Hoe u tud mocle, th eiscteut
Relatine AddussingYPc) w adoled to the addhess pat
eot
der to stain the esheetue vaddresS .
the istiuetn in
ectue addres Pc + Address pat nstiutt
and addhes pant
Enample
A sead tuom loeatino '82S, the PC
the ittuctin s, neement tÙ 826
E A= 826+s z 8So the spenmd uil tae found
locatiin 8S6; ie. teydoatin towad
meul instiuction.
fun te addrers 9
Mode In tiis mole, the coto.
8) Lnded Aadcsng
added to the ddres par
addess dudo
tain the eectue
the ciauctrn toQn ndeu Addrs hld
uele. cnstuetin
egist stu
addres lbase addres) 4 data ano n
nslustis to
IK
AN
CPU
To enecute nsbuetuns, he cintol nd miat
geeate the kuguired contusl n ae
puapa deguence.
Taro teo 4gpoaches wsed fo geneatng cmbiel
tasd uied Contuel u l
3 Reo- phogammed Cantucl Unit.
ae
3*8 Becoler
wit
Tis Gates (contrct
Jneemen-lIR)
lea T irattel
Py - Hardid unit
SH
moditid on changed
elangd,
IK
No.
3) Tu decocens
4) 4- bitt begumce contes
s placed n the IR.
- An enstiuctun
eod fan meney
CI5) (astt hi)
1 bl-
dpehatis lsde Cn- 14) (neut 3bitx )
Aagili
AN
ata ache
Jnstuctsn
Cache
JIustaucn) (Seta)
Charactestias RISC
1) Abiluty to euecute sne utuzlion pe clock ayele
amd eay
BI
6) It cmsidta
decoded dustaati tohat.
A
han
IK
miw puogrammniny
Canplen 1stuctin Aet lompiy - (cIsc )
he man
Loadny emaluatny emd Atoring opeutóns
CISC Aeehitecwre
Mliemapuagtammed
Contud data pot
Mau
Memey
86. x1itl AMD, )Eu 8)
laye uLie ode 1
tineeMectin longen
longe tune6) eneeutin she Very 9)
Aofnne. tmphasis )
memo inApae
lak. to dend wlen ogam tuke4) lnoodo wittn Cuegan
hedung
etreis tewe eyuhes )
cyeles sleK eyele 'ock
lakes eueoutin tustuction 2)
AN
iustuctind. instuetin
IK
uistiwction
det puoesson cisc wnsbuctions
ket puscesso RISC
BI
SH
T
CLSC buteen RISC Ayenoe
C
ClS nd RISC n
pelplogen
ined. mieo des thepApelinedun Net e)
memoy opersmek
in manihulat
instuclins itag the
Jbeen CPi
euecit to
yele mattiple winstucisns
take Compleu 4
addnssing mode.
iffeent s ipuealy
2oto fuon modes A 3)
udtid aSo toloo
e. CISC
y aed yormatJnsbuuction dength Vaniable 9
Chanacteties
z
CIC
S Q