0% found this document useful (0 votes)
364 views6 pages

COA ASSIGNMENT 1 - Answers

This document contains an assignment with 10 questions related to computer organization and architecture. It includes questions about calculating speedup between computers, determining clock cycle times, estimating execution times based on clock frequency and CPI, comparing performance of different processors, determining effective memory addresses, and calculating speedup between an old and new machine. The questions require analyzing factors like clock rate, CPI, number of instructions, and clock cycles to solve for values like execution time and performance.

Uploaded by

Padmanaban M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
364 views6 pages

COA ASSIGNMENT 1 - Answers

This document contains an assignment with 10 questions related to computer organization and architecture. It includes questions about calculating speedup between computers, determining clock cycle times, estimating execution times based on clock frequency and CPI, comparing performance of different processors, determining effective memory addresses, and calculating speedup between an old and new machine. The questions require analyzing factors like clock rate, CPI, number of instructions, and clock cycles to solve for values like execution time and performance.

Uploaded by

Padmanaban M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PANIMALAR ENGINEERING COLLEGE

DEPARTMENT OF INFORMATION TECHNOLOGY


21IT1303 – COMPUTER ORGANIZATION AND ARCHITECTURE
ASSIGNMENT – I ANSWERS

SUBMISSION DATE: 7.9.2022

1. If computer A runs a program in 10 seconds and computer B runs the same program in 25
seconds, how much faster is A than B?

2. What is the clock cycle time of a machine whose frequency is 1 GHz?

Solution:

3. A machine has a CPI of 3, and a single program requires 20 instructions to execute. What will
be the execution time if the clock frequency of the machine is 1 GHz?

Solution:

4. Computer A runs a program in 12 seconds with a 3 GHz clock. We have to design a computer
B such that it can run the same program with in 9 seconds. Determine the clock rate for
computer B. Assume that due to increase in clock rate, CPU design of computer B is affected
and it requires 1.2 times as many clock cycles as computer A for execution this program.

5. Let us assume that two computers use same instruction set architecture. Computer A has a
clock cycle time of 250 ps and a CPI of 2.0 for some program and computer B has a clock
cycle time of 500 ps and a CPI of 1.2 for the same program. Which computer is faster for this
program and by how much?
6. The table (a) shows the two code sequences with number of instructions of different
instruction classes within each code sequence respectively. The instruction are classified as A,
B and C according to the CPI as shown in table (b). From the given information,
(i)Determine which code sequence executes the most instructions.
(ii)Determine which code sequence will execute quickly.
(iii)Determine the CPI for each code sequence.
7. Consider three different processors P1, P2 and P3 executing the same instruction set. P1 has a
3 GHz clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0 and P4 has a
4 GHz clock rate and a CPI of 2.2.
(a)Which processor has the highest performance expressed in instructions per second?
(b)If the processors each execute a program in 10 seconds, find the number of cycles ad the
number of instructions in each processor.

Solution : a) P2 has the highest performance


8. Registers R1 and R2 of a computer contain the decimal values 1200 and 2400 respectively.
What is the effective address of the memory operand in each of the following instructions?
(a)Load 20 (R1), R5
(b) Add – (R2), R5
(c) Move 3000, R5
(d) Sub (R1) +, R5
Solution:
Instruction Effective Address
Load 20 (R1), R5 1200 + 20 = 1220
Add – (R2), R5 2400 – 1 = 2399
Move 3000, R5 3000
Sub (R1) +, R5 1200 + 1 = 1201
9. A new machine runs 10 times faster than before. What is the speedup of the new machine
over the old machine?

Solution:

10. Consider a machine with a clock frequency of 2.5 GHz executing 3000 instructions with an
average CPI of 3. Suppose we use a new compiler on the same program for which the new
instruction count is 6000, and a new CPI is 1.5, running on a faster machine with a clock rate
of 3 GHz. What will be the speedup achieved?

Solution:

You might also like