Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views4 pages

Assig1-452 qd8

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

CE2471-Computer Architecture and Assembly Language

Assignment- 1
Performance and Metrics

Student name: Number: Section:


Instructions:
• Each student should work alone.
• Solutions should be submitted via the blackboard.
• Submission deadline: 10-02-2024
• After the deadline, submissions will not be accepted.

True/False
The 1st commercial computer use mechanical calculator
The software tool which converts high level language to assembly is Assembler
For Reduced instruction set computer (RISC), simple instructions are used and each
instruction executes in one clock cycle
For Von Neumann architecture, the data and program are stored into separate
memories
Moore’s predicted that transistor counts would double every 2 years
The language can be understood directly by CPU is machine language.
Average clock cycles per instruction is IC
Performance is decreased when execution time is decreased
If the Clock cycle time increase, the clock will increase.
If a processor clock is rated as 1250 million cycles per second, then its clock period
is 1.25 * 10-10 sec.
Program execution time increase when the instruction count increase.
The components of a modern computer system are processor, input, output , machine
language
The processor consists of datapath and control unit.
Instruction set architecture is the Interface that the hardware provides to the low-
level software.
Elapsed time is the time spent processing a given job.

1
CE2471-Computer Architecture and Assembly Language

Questions
Q.1: answer the following questions.

1) The clock cycle time that equals 120 picoseconds (ps) is equal to…………….. in
millisecond (ms) and to ……………..in second (s).
2) The clock rate that equals 4.5 GHz is equal to……….….. in kHz, and to
………………in Hz.
3) Computer A has a 2.5GHz clock rate and 25 ms CPU time.
a. Calculate the clock cycle time?
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
b. Calculate the CPU clock cycle
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
4) Suppose you wish to run a program P with 5*106 instructions on a 500MHz machine
with a CPU time of 20ms.
Calculate the CPI.
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

5) Two processors, X and Y have clock frequencies of 3 GHz and 4 GHz respectively.
Suppose X can execute an instruction with an average of 1.5 steps and Y can execute
with an average of 2.5 steps. Considering the same IC, which processor is faster and by
how much?

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

2
CE2471-Computer Architecture and Assembly Language

Q.2 Consider two different processors, P1 and P2 executing a program having 5 billion
(5*10^9) instructions
- P1 has a 2.5 GHz clock rate and a CPI of 1.5.
- P2 has a 3.5 GHz clock rate and a CPI of 1.7.

1) Which processor is faster, and by how much?

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

2) We are trying to reduce the CPU time of P1 by 25% but this leads to an increase of 15%
in the CPI. What clock rate should we have to get this time reduction?

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

Q.3: The clock of the processor runs at 2 GHz. The following table gives the percentage for
each instruction class from a total number of instructions, as well as how many average cycles
the instructions take, for the different classes of instructions. The CPU time is exactly 22ms.

1) Calculate the total number of instructions.

…………………………………………………………………………………………………
…………………………………………………………………………………………………

3
CE2471-Computer Architecture and Assembly Language

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

2) The hardware expert says that if you double the number of registers, the clock cycle
time must be decreased by 20%. What would the new clock speed be ?

…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………
…………………………………………………………………………………………………

You might also like