Tutorial 6 - Part 2 Solution

download Tutorial 6 - Part 2 Solution

of 2

Transcript of Tutorial 6 - Part 2 Solution

  • 8/12/2019 Tutorial 6 - Part 2 Solution

    1/2

    COMPUTER ORGANIZATION AND ARCHITECTURE SESSION:

    2007/2008

    Tutorial 6 Part 2 Solutio!

    "# $rit% t&% '%(u%!)% o* +i)ro,o-%ratio!' r%(uir%. *or t&% u' 'tru)tur% o* i1# " to a.. a

    !u+%r to t&% AC 3&%! t&% !u+%r i':

    i# a! i++%.iat% o-%ra!.

    t1 : Y(IR(address))

    t2 : Z(AC) + (Y)

    t3 : AC(Z)

    ii# a .ir%)t,a..r%'' o-%ra!.

    t1: MAR(IR(address))t2: MBR Memory

    t3: Y(MBR)

    t4: Z(AC) + (Y)

    t5: AC(Z)

    iii# a! i!.ir%)t,a..r%'' o-%ra!.

    t1: MAR (IR(address))

    t2: MBR Memory

    t3: MAR (MBR)

    t4: MBR Memory

    t5: Y(MBR)

    t6: Z(AC) + (Y)

    t7: AC(Z)

    2# I! a +i)ro-ro1ra++%. )o!trol u!it4 8 )o!trol 3or.' ar% -ro5i.%. *or %a)& +a)&i!%

    i!'tru)tio! routi!%# Ma)&i!% i!'tru)tio! o-)o.%' &a5% it'4 a!. )o!trol +%+or &a'

    "02 3or.'# Su11%'t a +a--i!1 *ro+ t&% i!'tru)tio! r%1i't%r to t&% )o!trol a..r%''

    r%1i't%r#

    An address for ontro! memory re"#$res 1% &$ts (1%24 ' 21%) A s$m!e ma$n*:

    oode: ontro! address: %%%%%

    ,-$s a!!o.s / .ords &et.een s#ess$0e addresses

  • 8/12/2019 Tutorial 6 - Part 2 Solution

    2/2

    9# $&at ar% t&% a.5a!ta1%' a!. .i'a.5a!ta1%' o* +i)ro-ro1ra++%. )o!trol u!it )o+-ar%.

    to &ar.3ir%. )o!trol u!it E;-lai! 3& &ar.3ir%. )o!trol u!it i' u'uall u'%. *or RISC

    a!. +i)ro-ro1ra++%. )o!trol u!it *or CISC ar)&it%)tur%'#

    Ad0anta*es: ,-e deoders and se"#en$n* !o*$ #n$t of a m$roro*rammed ontro! #n$t are 0ery

    s$m!e $ees of !o*$ omared to t-e -ard.$red ontro! #n$t .-$- onta$ns om!e

    !o*$ for se"#en$n* t-ro#*- t-e many m$rooerat$ons of t-e $nstr#t$on y!e Its$m!$f$es t-e des$*n of t-e ontro! #n$t $m!er des$*n means t-e ontro! #n$t $s

    -eaer and !ess errorrone to $m!ement

    It $s a!so f!e$&!e as -an*es o#!d &e eas$!y made to t-e des$*n

    r$n$a! $sad0anta*e:

    !o.er t-an a -ard.$red #n$t of omara&!e te-no!o*y

    ard.$red ontro! #n$t $s #sed for RIC Ar-$tet#re &ea#se -ard.$red $s faster and an$mro0e t-e erformane

    M$roro*rammed ontro! #n$t $s #sed for CIC &ea#se $t ma8es t-e des$*n s$m!er and

    #s#a!!y $n CIC ar-$tet#re d#e to -#*e n#m&er of $nstr#t$ons $n t-e $nstr#t$on set t-e

    ontro! #n$t $s "#$te om!e ene $t 9#st$f$es #s$n* m$roro*rammed ontro! #n$t

    # A -ro)%''or &a' "6 r%1i't%r'4 a! A