Unit- Ir
Conrab ing Unit 2~
Irfrodurction Mejor Componenti of cpu
Contre Unit
Laser Sot
ithmetic boo tcat Unit.
oS
j
i
chui~ The paset” complex that mt the tutk o tats |
processing Soerabione called cho
oT
Aegis Set t= Lt shoret inlormedials clots used hc.
the execution 8} the insbuuctions
ALU ww Posporms Ahe sreguired micre-sperations
vexed
the vaebruchins
Confrol Unit I~ Supenvizer Lhe Aoansfer
snfrmation amons
the sepittexs £ Incburt; the ALU. as A 7
which “ape ration Fe perform
|
Con trol [ T
b - 4 — 4 -
X inlapret the | Arithmet. Sosic |
e [Unit Care)
lor Compan eeu,
a a& eral Resfelir Orgarisation re
Memory locations xem receded Jor Staring poinkxs , counters
Seta Coldrett femporarey resubt 2 eb_procucls
mult lication
g Bult ti cuefor memory Location Jor buch.
plication is tine -consuminig bechuse meme access 1S
| ithe mast’ time consuming ofseration-
So Gt 5s Teonverient £8 more fpident fe sbre a
these inkomedialt sterult Cy procetar sreg7slérs*
When tarpe number’ af vephitel ane ysed, th
axe connected thnough’@ Gommen bus Lsystem
The olegichone communicate With ear often cust only
for dliredt clale AranYort, but also while perprming yesiovs
ak
pew eperalien’ , Bo 4 commen suntt $5 provid thal can
pexform all anithmelic, topte 2 shoft micveperations in the
ence sfor"Bus Qrganteclion for Been cpu ropisters a
Chock.
at
Common afi
Namo of LecturerA set y seven processor rigivtoss connect eth ALU
thw: Q commen bus _4
Jaw buses a ard B wu used for two input operendt _
cregudvect Zor vming the mitre peralien Ln the
ALU g
3
The _qperords axe Stored tn Procestov Heg%e Jers CRi~ Rx)
thence the taro commen buses A and axe connected.
Me cach processor segisheon Arrough sro mubtipheners
Selection Utes tus mubtiotexen select ene |
of the sever Srepichns at o Hime por occe?G cal Z
oo parcbterlir but Zi
The _spevation CoPR) select fn ALU delerminet the
arithmetic or logic mex - operation To He performed
The. ee? cresutt sf the ration can be tered back
wate ay he processor nepishrs through Bebe ct |
ine fq "axe decoder. kd
The. clecodex acbvales of Hhe sregishs thro
i one. ph tebect
Hines ts boad the output value of tne micro Gnevalion=> || The control uit that seperate the CPU bus system directs
the tnformation plows through the sigpistos and ALU
hy Lelecting vasSouk componente ¢
Por Ex - Ri <= Ro +R:
1: | Mux A scleclor Ccern) i> te piece the contsnt Sf Rp into
bees Ot
~ ts place the corlent Sf Ry nile
bus B
2. | MUBBseleclos CSE
3. | ALU eperation scleclar Copa)» tb provide the acithmetie
additin APB |
bh. | Beceder destination selecter Csern) ~ 16 Be
contents the output bus Crt Rs
# | fur conBrol selection vardables [SELA, SELB, OPR, SELD] axe
genealed Jn contest unit & aveilesle at the
jini clock cycle
bgnth o
Contre! Wordin Tere are Iu binary Selection rpute
the unit 2 their Combined value
xpectpre 2 contyel word
3 3 3 =
SecA | sev8| seed] ope |
trol Worel
——-0_202020202—" © Nine Loaner ap wo
yThe control unit provides the binary Selection vatuer Sa
VasGout componente uch ag m exes Ne cotert LU»
Gi) || SLA —> Select Q source Steg oy A, aJALL ‘yom Lf.
K84it) one of -teven professor raps.
Gi) ll sere > Select 9 cowree reg: fos B i/p Ef ALUY
3 bit)
“5
Note in Ty the operation dee: net weguSrer tir Spout
Value SELB elects no weptes 2 ofp from
wdeconel mubliptexer wtes we ger
Gii)|| SELD > Select _@ destination sregicter ising the decoder
est) 2 the seven doad Of
Gv)\|_OPR > Tt 3s an ration cole for the axithmet or
Hegical eperdliin te be Performed o7 the turo
Zy So
nput perands selected from sérA &
Loo R R R
Lol 2 ee ee)
110 Re Ri R
m4 g Roly Ro
| |
=> Tre Deepicho eebected y jeldS SELA, SELB and SELD Js
Dhe orc whose decimal number. Is egutvesent te the
piusy numb tn the code:
Cs
2
Athen SELA or SELB Ss coo the corresporcling multiplexer
selectt the external input olats: Y
| When SEL = 000 , no. destination segieher Sc 2ebeched
but the confents of the output Gus axe quatlable
[bn the enternel octpur-Operation
Transfer A
Brerement A
Sub 4-8
coremert A
AND A ard B
OR A ork B
ond B
compliment A
ight Alast shen, stored Aut
te seebvived first]
A tefl featine y the CPU bs -atock - |
Siocki- tick Js 0 sforage device thet storey Soformotsn
tr auth @ mannex that the hen thovet tase
Se the first then setrievel je iF pattern followed
_spsratin Insertion 2s called push: Zn
volin we sfre new lem on Tep paritiin
The. sperstin of celetisn Is. called pop Bo srs
operaliin we yemove ome item to that th,
tiene ase simulated ty Zrerem
enti the ack inter. Sregistan -
d. BE Sulhacl pata[Fee EMPTY re
ol=|elal=
Block oliagram ofa
64 word stock DR |
Chak Painhin Conkains Sinasy no, that Lnotfeolee oe _|
actdess of the yore that Bs euserentty on the top j
4
Dia Gunword stack the SP _comtarre 6 bits becomte |
26 = 64
2 bile, it can't excees ne: grealx
Prat
wthan.63. Fyittst)
Aceauce.
Tf1tIL+I) = looeeod
hut SP can accomodate only the six terct
Bgrificart bits: Also when 900000 Se decremented by 1
by
ua the result Ss rip til.Futtiw the one if Ssregtsten pull dr et toL corer
the atack 9: poll.
EMPTY t~ the one bit esregislen EmTy 74 Set Sot
the 2tock 2c EnrY.
DRiw DRY late iste that hell Lhe binroruy dels
te be writtr” ints or ead out _o the Lo:
Push. || Fritially enty Is ef to | & Fuirtis cleaved too
Ss ee
fe marked empty & not publ:
YY 3G 2e not FOLLCY fou =0) a new ck |
Js inserted with Posy eperatisn «
lel 2~ When we wont tb puch then check that #lack
2 ee! Ss pull Crurr <1)
then we wont te pop check EmTyY €), iy stack
3s emp
pus s~
SP SP), thevement. op.
mise] < DR
write Yen on top ap slack»
Fe pao) then (Furr <1)
Check iy stack Je FULL
EMTY <—D j
Mask the stck net erply |
4 Oval|The Sk pent Js snevemented to that i points Js __-
Dhe ackdress of the next -Aipherx word. a
¢
& | The memory wiih oprotion Drees the word from PR
wnt top Gy stack :
[Note r~ sp Aslels the aoldress Of the te, the sock a.
M[sP] denotes the memory word specified & a
the adden oveitasle in SP. i
% | The past len x 2teredl Jn the stack 3s af acldvesst-
* | The test ikm Se elored at addvess 0:
% | EP SP Sreaches O the stock Js F full o
scatitn Ls Once As Gorn 3: stead out . sp 2
decremenked and Steochet Me value 0
“2 Hah Fos
Bhe 2utias palue of tt Re ced ing the fetch pnose Le reac
on qperrard inc Tous 5
> Used iwting the Exeulion phase Se readk an
\ *
operand
x —> used Fo push 2 pop efeme.
Addy eae
Memory Unit Le
38
= bf Program
Cin cchion
Tae
: Ag ;-—> Date
| Cops reeds)
k T 3000
_ 3997
se 3998. :
T2oe9
ooo
ps ‘roo
[om
Computer meme os =e
ia memory with program, alata and afach oss tt
+ |DR—> Js uceck to Femporarciley -elere a 1
: th, le be uxt tfen
or read from he a ex Satsang Hope Halen 1=| Te Lritiad value SP 4s 4001 2 Aleck grows eet?
decrecting akties .
| TrenepoK the first dtem stored 2 the stock 5st
addthess Yovo, teronch Tem 4s lore at addro% 3939
2 dost acthiets that can be uSedk por sock 3s 300°)
>| No prvision for stock bemit checks - A
PusHi~ Anew ttem 2s Ensented with the push ep? af -
SP