Académique Documents
Professionnel Documents
Culture Documents
INSTRUCTIONS TO CANDIDATES
2. Answer ALL questions in the Answer Booklet. Start eagh answer on a new page.
3. Do not bring any material into the examination room unless permission is given by the
invigilator.
4. Please check to make sure that this examination pack consists of:
QUESTION 1
QUESTION 2
i) 241 5 in decimal
(2 marks)
(2 marks)
i) 90329.10399 10
(1 mark)
ii) 184.5 10
(1 mark)
QUESTION 3
a) Give ONE (1) reason for the important of range and precision issues in computer
architecture.
(2 marks)
b) Give TWO (2) reasons that support the development of the IEEE 754 Floating Point
Standard.
(2 marks)
(1 mark)
d) Convert the following numbers according to the IEEE 754 Floating Point Standard.
(2 marks)
e) Determine the numerical value for the following IEEE 754 bit pattern.
i) 10110000100110000000000000000000
(2 marks)
ii) 10000000000001000000000000000000
(2 marks)
iii) 0111111111101000000000000000000000000000000000000000000000000000
(2 marks)
iv) 0100000010110101010000000000000000000000000000000000000000000000
(2 marks)
QUESTION 4
a) Determine the number of bits required to represent integers in the range -512 to 511 in
two's complement notation.
(1 mark)
(2 marks)
(2 marks)
QUESTION 5
b) The block diagram shown below is a 1 bit Arithmetic Logic Circuit (ALU).
A
1 bit ALU Y
B
i i
U_ U-
Design the ALU logic circuit for performing the following functions.
FiF0 Function
00 NOT (A,B)
01 OR (A,B)
10 AND (A,B)
11 XOR (A,B)
(4 marks)
c) Using a serial multiplier, show the process of serial multiplication for 0111 2 x 11002.
(3 marks)
QUESTION 6
a) Write the program to compute the function using the address instruction types below. Do
not modify the values of A, B, C, and D. You may use X or any temporary location T to
store intermediate results.
i) 3 address instructions
(3 marks)
b) Given the time to fetch, decode and execute each instruction as follows:
QUESTION 7
The diagram shown below is a small microarchitecture. The datapath consists of 6 general
purpose registers: RO, R1, R2, R3, R4 and R5. R5 is set to +1 which cannot be change.
FiF0 Function
00 NOR(A,B)
01 A
10 ADD(A,B)
11 AND(A,B)
Output Enables
A-bus B-bus
A-bus EMius
—+
Six
Write 1 4 bit register
Enables 2
C-bus
V
I Z-
(5 marks)
QUESTION 8
.begin
.org 1600
mula: Id [A] , %rl
Id [B], %r2
Id [C], %r3
orncc %rl, %rl, %r4
orncc %r2, %r2, %r5
andcc %r3, %r3, %r6
andcc %r4, %r2, %r7
andcc %r7, %r3, %r7
andcc %rl, %r5, %r8
andcc %r8, %r3, %r8
andcc %rl, %r2, %r9
andcc %r9, %r3, %r9
addcc %r7, %r8, %rl0
adcc %r9, %rl0, %rll
st %rll, [X]
tamat: halt
A: 1
B: 1
C: 0
X: 0
i) Id [B] , %r2
(3 marks)
I
Arithmetic 1 0 rd op3 rs1 0 0 0 0 0 0 0 0 0 rs2
Format 1 0 rd op3 rs1 1 simm13
I
Memory 1 1 rd op3 rs1 0 0 0 0 0 0 0 0 0 rs2
Format 1 1 rd op3 rs1 1 simm13