HCT222 - 22computer Architecture and Organization 2021 July Test1
HCT222 - 22computer Architecture and Organization 2021 July Test1
HCT222 - 22computer Architecture and Organization 2021 July Test1
Faculty: SCIENCE
Organization
Duration: 2 Hours
Examiner: Mr M. Munyaradzi
1
Question 1 [25 marks]
Assume an arbitrary number system having a radix of 5 and 0, 1, 2, L and M as its independent
digits.
Determine:
(b) the total number of possible four-digit combinations in this arbitrary number
system. [4 marks]
(c) Find the binary equivalent of (17F.F6)16 and the hex equivalent of
(1011001110.011011101)2. [4 marks]
(d) Find the octal equivalent of (2F.C4)16 and the hex equivalent of (762.013)8
[3 marks]
(ii) the maximum numbers representable with a given number of digits? [3 marks]
2
Question 2 [25 marks]
a) To process an instruction, a CPU goes through a cycle that has three main stages.
Name and describe each stage in this cycle [6 marks]
b) Four computer terms and eight descriptions are shown in the boxes below. Briefly
explain why you would link each computer term to the descriptions that you suggest.
[6 marks]
i. Arithmetic and logic unit (ALU) ii. Carries out operations like addition and
multiplication
c) One of the key features of von Nuemann computer architecture is the use of buses.
Provide a brief description for each of the buses.
[6 marks]
d) The seven stages in a von Neumann fetch-execute cycle are shown in the table below.
Place each stage in the correct sequence and also give a brief explanation on the
incrementation of the program counter with respect to the seven stages [7 marks]
3
Stage Sequence number
the instruction is then copied from the memory location contained
in the MAR and is placed in the MDR
the entire instruction is then copied from the MDR and placed in
the CIR
4
ii. If the processors each execute a program in 10 seconds, find the number of cycles find
the number of instructions. [3 marks]
iii. We are trying to reduce the time by 30% but this leads to an increase of 20% in the CPI.
What clock rate should we have to get this time reduction? [3 marks]
i. Find the IPC (instructions per cycle) for each processor. [2 marks]
ii. Find the clock rate for P2 that reduces its execution time to that of PI. [2 marks]
iii. Find the number of instructions for P2 that reduces its execution time to that of P3.
[3 marks]
i. Assuming that arithmetic instructions take 1 cycle, load and store 5 cycles and branch 2
cycles, what is the execution time of the program in a 2 GHz processor?
[3 marks]
ii. Find the CPI for the program. [3 marks]
iii. If the number of load instructions can be reduced by one-half, what is the speed-up and
the CPI? [4 marks]
5
c) Cache performance can be improved in a number of ways, briefly
describe how [5 marks]
d) Explain the difference between hardwired control and micro programmed control.
e) The following four cache designs C1 through C4, are proposed for the Beta. All use LRU
replacement where applicable (e.g. within each set of a set associative cache).
Cache C1 C2 C3 C4
Total Data 8K 4K 8K 16K
Words
Total Lines 8K 4K 4K 8K
Associativity Fully 2-way S.A Direct Mapped Fully
Block size, 1 1 2 2
words/line
i. Which cache would you expect to take the most chip area (hence cost)? [2 marks]
ii. Which cache is likely to perform worst in a benchmark involving repeated cycling
through an array of 6K integers? Explain. [2 marks]
iii. It is observed that one of the caches performs very poorly in a particular benchmark
which repeatedly copies one 1000-word array to another. Moving one of the arrays seems
to cure the problem. Which cache is most likely to exhibit this behaviour? Explain.
[3 marks]
---------------------THE END----------------------------