www.vustudents.ning.com

# CS501 ASSIGNMENT NO. 5, DISCUSSION AND SOLUTION( DUE DATE: 3RD JULY, 2013)

Plz Discuss this assignment

 Assignment No. 05 Semester: Spring 2013 CS501: Advanced Computer Architecture Total Marks: 20 Due Date:  03-07-13 Instructions Please read the following instructions carefully before assignment submission. It should be clear that your assignment will not get any credit if: The assignment is submitted after the due date. The submitted assignment does not open or file is corrupt. The assignment is found to be copied from the internet. The assignment is found to be copied from other student. The assignment submitted is not according to required file format (.doc). Objective The objective of this assignment is: To assess your overall understanding of Computer Architecture and Organization To assess your overall understanding of Computer processing To assess your overall understanding of DMA, Polling and interrupts Note: The assignment should be in .doc format. Assignment .05 covers lecture 25-31. You can also consult reference books for help. Students are advised to submit their assignment as early as possible in order to avoid any sort of inconvenience like Load shedding etc.

Question No 1:
(10 marks)

Suppose we have a benchmark that executes in 100 seconds of elapsed time, where 90 seconds is CPU time and the rest is I/O (Input/output) time. If CPU time improves by 50% per year for the next five years but I/O time doesn’t improve, how much faster will our program run at the end of five years?

You are required to calculate the CPU improved performance and improved elapsed time.

 After n years CPU/ time I/O time Elapsed time % I/O time 0 (Current Year) 1 2 3 4 5

NOTE: Theoretical answer will not be considered

______________________________________________________________________

Question No 2:                                                                                                      (4 marks)

Consider a 20 MIPS (Microprocessor without Interlocked Pipeline Stages) processor with several input devices attached to it, each running at 1000 characters per second. Assume that it takes 17 instructions to handle an interrupt. If the hardware interrupt response takes 1msec, what is the maximum number of devices that can be handled simultaneously?

NOTE: Theoretical answer will not be considered

______________________________________________________________________

Question No 3:                                                                                                        (6 Marks)

Scenarios discussion:

If we want the lowest latency for an I/O operation to a single I/O device; while in terms of lowest impact on processor utilization from a single I/O device then what will be the orders/arrangements of Interrupt driven, DMA(Direct Memory Access) and polling in both scenarios? Explain reasons.

NOTE: Give answer within 3-5 lines. Otherwise answer will not be considered.

______________________________________________________________________

GOOD LUCK J

Views: 8051

Attachments:

### Replies to This Discussion

phr sy asimnt aa gi ktna khapaati hy VU

wht ll be the formula to calculate CPU time, I/O time, Elapsed Time???

see page 233  (example )for question no 1

2nd question is on page 312

page no. 233

line no. 2 me 129 aur 149 kesy aaty hian, plz solve kr k bata den,

thanks

agr ksi k pass cs501 ki recommended book he, to waha se search krny ki koshish karen, ho sakta he koi idea mil jay

sallam to all

don't worry, friends

i have solved Q#1 and 2

typing baqi he, kal apko solution mil jay ga,

but ap 3rd question ka solution hal kro,,,

hmmm....

Q#2 k liay jo example ha pg # 312 wo to same to same assignment ki trah ha to kia hmain b same to same wohe likhna ha ????

Zubair bro your calculation for Q # 1 is wrong.

50% increment in CPU time mean we have to multiply 1.5 with CPU time for each year while i search out formula for elapsed time that is,

Elapsed Time = CPU time + I/O time

hasnat sb
abi me ne Q#1 ka solution send ni kya, kal kron, ga
rough me ne kr lya he, ap 3rd swal ka solution talash kro,

Consider a 20 MIPS (Microprocessor without Interlocked Pipeline Stages) processor

underlined words are not in handout example for q#2
does it make any difference???

### Lecture 32 - Department of Computer Science and Engineering

See this link to solve Q no. 1

1

2

3

4

5

## Latest Activity

+ IFRAH ANSAR liked ++❤MQ++A❤❤❤'s discussion Manzir mahya thy
8 minutes ago
+ IFRAH ANSAR liked ++❤MQ++A❤❤❤'s discussion Meri pasnd bohut lajawab hoti hai
8 minutes ago
+ IFRAH ANSAR liked ++❤MQ++A❤❤❤'s discussion Manzir mahya thy
8 minutes ago
++❤MQ++A❤❤❤ posted discussions
20 minutes ago
++❤MQ++A❤❤❤ liked ++❤MQ++A❤❤❤'s discussion Mard jbh
29 minutes ago

### CS431 Assignment 1 Solution Spring 2021 || Wireless Communication || 100% Correct Solution

29 minutes ago
Asad waqas joined + M.Tariq Malik's group

### CS431 Wireless Communication

31 minutes ago
Asad waqas added a discussion to the group CS407 Routing and Switching

38 minutes ago