CS501 Assignment 3 Solution and Discussion

Assignment No. 03
Semester: Fall 2019
Advance Computer Architecture – CS501
Total Marks: 20
Due Date: 20-01-2020
Please carefully read the following instructions before attempting assignment
Objective of Assignment
Objective of this assignment is to increase the learning capabilities of the students about:
• Interrupt Driven I/O
• CPU Polling for I/O
• Direct Memory Access

Rules for Assignment
It should be clear that your assignment will get credit only if:
• The assignment is submitted before or on the due date.
• The submitted assignment file is not corrupted or damaged.
• The assignment is not copied (from another student or internet).

Uploading Instructions
Read the following instructions carefully before uploading assignment:
• Upload/Submit assignment in your VULMS assignment interface.
• No assignment will be accepted through email.
• Your assignment must be with .doc extension. (Any other format will not be accepted)

NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard. Moreover, keep checking announcements section.

For any query, feel free to email at:
[email protected]

Thank You
Question # 01 08 Marks
Suppose a 160GB hard drive is connected to computer system having a 32-bit Pentium-3 processor which is operating at a frequency of 500 MHz. The system employs DMA as I/O interface for data transfer. Before the data can be transferred using DMA, the processor needs the DMA controller to be set-up which requires 3000 clock cycles. Then, for each data transfer, additional 1000 clock cycles are required to handle interrupt. The hard drive transfers data using data blocks of 64 KB each at data transfer rate of 40 MB/s. Considering the given scenario, answer the following questions. What will be the total CPU time required to transfer the file using DMA?

Question # 02 12 Marks
Assume a 64-bit processor operating at 600 MIPS having following devices attached to it:

• A hard drive with a transfer rate of 8 MB/s.
• A mouse which is required to be polled 30 times/seconds.
• An optical drive connected through a 32-bit data bus with a transfer rate of 2MB/sec.

The processor employs polling technique to select the device to perform I/O operations where each polling operation requires 400 instructions. Determine the percentage of CPU time required to poll each of three devices.

Best of Luck

CS501 Assignment No. 3 Solution Fall 2020

Q. 1 Ans :
cfbcf352-7131-4090-a679-94c13b2f1e69-image.png 1ea230d9-a835-4f6c-81a5-0c177a859dfc-image.png 94bfc59a-be61-4cf0-9c3f-dff7a458980e-image.png
Q. 2 Ans :

752ba7ac-f984-4d68-954b-bd19f8e9c110-image.png 4f9ca442-f002-40fa-890d-660d75d26e57-image.png 7827ccd5-1f76-4103-ad9d-115f1b6d76bf-image.png b1736635-cae0-46a6-b949-3c1255afde3d-image.png 918ec0b1-c22c-4925-b21a-4c94aeb480f5-image.png

Log in to reply