Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

FACULTY of Computer & IT

Computer Organization, April 2020

Please Fill in the Following Information Carefully [ALL IN CAPS]:

Full Name: ____________________________________________ ID No.: ________________

Class: __________________Semester: ____________________ Date: ___________________

Assignment Marks: 20 Marks


INSTRUCTIONS TO THE STUDENTS:
FOR USE OF EVALUATORS
 Read the Instructions Carefully ONLY
Before Writing Any Answer. Marks Marks
Question #
 Label Your Questions Clearly. Allotted Earned

 Complete the assignment and submit 1 4


on time using the university online 2 2
assignments portal, you will not be
allowed to submit it after the 3 2
designated due date
4 2
 Do all the assignment by yourself and
avoid all types of cheating, any 5 4
grounds of suspicion will lead to the
6 2
immediate suspension of the
assignment. 7 2

Subject Name: Computer Organization 8 2

Subject Code: CA325 Total 20

Class/s: CA171 & CA172

Assignment Due Date: 06/05/2020

Answer All the Questions


Page 1 of 3
FACULTY of Computer & IT
Computer Organization, April 2020
1. Consider that we have two implementations of the same instruction set architecture for a
program, Machine A which has a clock cycle time of 50 ns needs a CPI of 2.5 to run the
program, while Machine B which has a clock rate of 25 MHz need a CPI of 4.0 to run
the same program. Which machine is faster and by how much?
2. Discuss the philosophies behind the CISC and RISC architectures and their design
consequences in detail.
3. There are a number of questions that the Instruction Set Architecture (ISA) answers,
discuss them.
4. Illustrate when each of the following control instruction is appropriate to use:
a. Un conditional jump /branch
b. Conditional jump / branch
c. Call and return instructions
5. Consider a machine with three instruction classes and CPI measurements as follows:
Instruction CPI of the
Class Instruction Class
A 2
B 5
C 7
Suppose that we measured the code for a given program in two different compilers and
obtained the following data:

Instruction Counts
(In Millions)
Program A B C
Compiler 1 15 5 3
Compiler 2 25 2 2

Assume that the machine’s clock rate is 500 MHz.

A. Compute the Average CPI for each compiler


B. Calculate the CPU time of the program for each compiler

Page 2 of 3
FACULTY of Computer & IT
Computer Organization, April 2020
6. Discuss the following addressing modes. Use examples and diagrams for illustration.

a. Immediate addressing mode

b. Direct addressing mode

c. Memory indirect addressing mode

7. Discuss why assembly language remains necessary in some cases while high level

languages and compiler technology have witnessed great advances.

8. A computer has a memory unit with 32-bits, the instruction set consists of 128 different

operations. All instructions have an Opcode part and an address part. Each instruction

is stored in one cell of memory (instruction size is 32-bits).

a. How many bits are needed for the opcode?

b. How many bits are left for the address part of the instruction?

c. What is the memory size of this computer

Page 3 of 3

You might also like