Professional Documents
Culture Documents
lrJt#Ul+ll"ill,.Hl
IIITIff{ATIOMi, ISUMIC UNTVEBSITT N$UffSItr
Programme : CE Engineering
& CIE Level of Study :UG2
Time :2.30-5.30pm Date :4rH January2018
Duration :3 Hours
Course Code :EECE 2314 Section(s) : t-Z
Ccurse Title : Computer Organization and Microprocessors
This Question Paper Consists of 4 (Four) Printed Pages (Inciuding Cover Page) with 5 (Five)
QLrestions.
INSTRUCTIGN(S) TO CANDIDATES
Aryt forms of cheating or attempt ta cheat is a serious offence which may lssil to dismissul.
&rprsred-hL.
itveiing ilei+
CorniL.iei iiiginterng
$f [l4e'lit'ai anc
ar ri'f-nflr neeiit-rg
U;r. r1]i;1ry i..,:ala! -sia
iii+rnationai !slartc
ANSWER ALL QUESTIONS.
a) The execution cycle for a particular instruction may involve more than one reference tc
[.]' t memory or input output device. With these additional considerations, provide a detail
instruction cycle in the form of a state diagrarn. (8)
b) Sumrrarize the two approaches in dealing with multiple interrupts with the aid of a
diagram. (6)
c) A system bus consist of typically from about filly to irundreds of separate lines. On any
bus, the liires can be classified into three functional groups. Describe therir with their
f"rnctions. (6)
k
r.lu a1*,tt",l .1
a) Describe four (4) main differences between AVR and ARM microprocessor. (8)
b) What is addressing mode? Provide two examples of arldressing modes that are supported
by AVR microprocessor. -- ' A-r'd"i ' '" 'r "'r 1:r (6) '' i j''
*l*#+r' ",
D
s (;r') ii-iiri ii'.r*' i"
)
\ c) A block of data is transferred from main memory to ciclie memory, r,vhile a word of data
? is transfemed from cache memcry to processor.
t$
2vn. / I D\t'tt 5Sz
9nn Lb"}.
3sv1 ?
4 +*-( (. ,("4 r
\?
*k
Onru
?Q z
ht.o
bRr
![E Qr,h)/r-
QUESTION 4 [20 marks]
a) Answer the following questions based on the assembly program below (4)
t'i c
k..= y LDI R20,0 /Llo= b aUo
a,r=Y
{,t
LDt R16,2 R t(, 1 #.r-,
al
tt! ADD R2O,R16 L qF t "
rA LDI R17,9 Rr-o:2 ,( 4c v
p,
RI7.R2O Q.lt :Z
J
i
[@i l"-,,,:1 ]lr,
SUB
b) Write an assembly pi'ogram that receives a number in dX i'egister, counts ihe number cf
EB a h^"t- ones in its binary iepresentation, and returirs this count in BX register.t (6)
I\4ain m
YZz. p jL Prt
2000
Miiin prograrn
2002 CALL Proc I o 2_
2043
.Z 2_ q
2405 CALL Proc2
2005
Y +-=-
r
.4,
2503
Frsicedure
-\\
250s CALL Proc2 Pri;c 1
2546
RETURN
Pr*cecir-rre
I? I]T] TBhT
FEg.4
I
a) Describe tr,r,o (2) reasons r,r,hy peripherals are nct corlr-ri:cted directly to tlte ,iri.,, Uur.
(4)
b) Explain the diiierence betu,een Programmed 1/O and lr,terrupt driveii I/O. (4)
h0-h13
1_4
T{}{:L'*
Ao-f.13 I
{
4363 27L28
r"rk t f
4
8 1J)r
OE oo-oz
WE
OE
CE
CE
I Fig. 5
-+
.-'&F
I s-
t
i1
\ 1
{
t d..
a
t
{
qf,,e,eqL
,, .',. f .. .r '.
,i it,..i""j
**** rr
Ii
u
f.i
1l
{" _i,
ilrTE\ 6^if ij,t DEir! ii
', ' i "..:
! i-r i-F -E- j- f=.,r. I- l.-1
i
i
-t
t4j
,
1.i
p
vS f,-
I, t'
.. -:;' 1
a
I .{,