Docsity

Interfacing Input Output Devices-Computer Architecture and Assembly Language-Assignment Solution, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
Assignment No. 04
Solution File
Due Date:
Your assignment must be uploaded/submitted before or on 25Th June 2012.
Uploading instructions:
Please view the Assignment Submission Process document provided to you by the
Virtual University for uploading assignments.
Assignment should be in .doc format.
Save your assignment with your ID (e.g. bx020200786.doc).
Assignment submission through email is highly discouraged.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment file is corrupted.
The assignment is copied.
Note:
Your answer must follow the below given specifications. You will be assigned zero
marks if you do not follow these instructions.
Font style: “Times New Roman”
Font color: “Black”
Font size: “12”
Bold for heading only.
Font in Italic is not allowed at all.
No formatting or bullets are allowed to use.
docsity.com
pf3

Partial preview of the text

Download Interfacing Input Output Devices-Computer Architecture and Assembly Language-Assignment Solution and more Exercises Computer Architecture and Organization in PDF only on Docsity!

Assignment No. 04

Solution File

Due Date:

Your assignment must be uploaded/submitted before or on 25 Th^ June 2012.

Uploading instructions:

Please view the Assignment Submission Process document provided to you by the Virtual University for uploading assignments.

 Assignment should be in .doc format.  Save your assignment with your ID (e.g. bx020200786.doc).  Assignment submission through email is highly discouraged.

Rules for Marking:

It should be clear that your assignment will not get any credit if:  The assignment is submitted after due date.  The submitted assignment file is corrupted.  The assignment is copied. Note: Your answer must follow the below given specifications. You will be assigned zero marks if you do not follow these instructions.  Font style: “Times New Roman”  Font color: “Black”  Font size: “12”  Bold for heading only.  Font in Italic is not allowed at all.  No formatting or bullets are allowed to use.

Q1 Marks = 15

Assume that three I/O devices are connected to a 16-bit, 100 MIPS CPU. The first device is a hard drive with a maximum transfer rate of 2MB/sec. It has a half word (16-bit) bus. The second device is a floppy drive with a transfer rate of 10KB/sec over 8-bit bus, and the third device is a keyboard that must be polled 25 times per second. Assuming that the polling operation requires 40 instructions for each I/O device, determine the percentage of CPU time required to poll each device and also state what you infer after calculating these percentages.

Solution

The hard drive can transfer 2MB/sec or 1024 K half words (16-bit)every second.

1MB = 1024 K Bytes We have to convert this value in to 32 bit word 1 byte = 8 bits 1 half word = 16 bits 1 byte = 1/2 word

1024 K bytes = 1024/2 k words 1024 K bytes = 512 K half words

We can say

1MB=512K half words

So

2MB=1024K half words

Thus, this hard drive should be polled using at least this rate.

Using 1K=2^10, the number of CPU instructions required would be

1024 x 2^10 x 40 = 41943040 instructions per second.