0% found this document useful (0 votes)
19 views

Exercise 2 - Assignment 2

The document contains questions and answers about computer memory and I/O. It discusses memory organization, disk drive parameters, DMA timing, and comparing programmed I/O versus DMA transfer rates.

Uploaded by

duongtnade170393
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Exercise 2 - Assignment 2

The document contains questions and answers about computer memory and I/O. It discusses memory organization, disk drive parameters, DMA timing, and comparing programmed I/O versus DMA transfer rates.

Uploaded by

duongtnade170393
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name:

Class:
ID:
5.4 Figure 5.6 indicates how to construct a module of chips that can store 1 MByte
based on a group of four 256-Kbyte chips. Let’s say this module of chips is
packaged as a single 1-Mbyte chip, where the word size is 1 byte. Give a high-
level chip diagram of how to construct an 8-Mbyte computer memory using eight
1-Mbyte chips. Be sure to show the address lines in your diagram and what the
address lines are used for.
Answer:

5.6 The memory of a particular microcomputer is built from 64K * 1 DRAMs.


According to the data sheet, the cell array of the DRAM is organized into 256
rows. Each row must be refreshed at least once every 4 ms. Suppose we refresh the
memory on a strictly periodic basis.
a. What is the time period between successive refresh requests?
b. How long a refresh address counter do we need?
Answer:
6.3 Consider a magnetic disk drive with 8 surfaces, 512 tracks per surface, and 64
sectors per track. Sector size is 1 kB. The average seek time is 8 ms, the track-to-
track access time is 1.5 ms, and the drive rotates at 3600 rpm. Successive tracks in
a cylinder can be read without head movement.
a. What is the disk capacity?
b. What is the average access time? Assume this file is stored in successive sectors
and tracks of successive cylinders, starting at sector 0, track 0, of cylinder i.
c. Estimate the time required to transfer a 5-MB file.
d. What is the burst transfer rate?
Answer:

6.4 Consider a single-platter disk with the following parameters: rotation speed:
7200 rpm; number of tracks on one side of platter: 30,000; number of sectors per
track: 600; seek time: one ms for every hundred tracks traversed. Let the disk
receive a request to access a random sector on a random track and assume the disk
head starts at track 0.
a. What is the average seek time?
b. What is the average rotational latency?
c. What is the transfer time for a sector?
d. What is the total average time to satisfy a request?
Answer:
7.14 Examination of the timing diagram of the 8237A indicates that once a block
transfer begins, it takes three bus clock cycles per DMA cycle. During the DMA
cycle, the 8237A transfers one byte of information between memory and I/O
device. a. Suppose we clock the 8237A at a rate of 5 MHz. How long does it take
to transfer one byte?
b. What would be the maximum attainable data transfer rate?
c. Assume that the memory is not fast enough and we have to insert two wait states
per DMA cycle. What will be the actual data transfer rate?
Answer:

7.18 A computer consists of a processor and an I/O device D connected to main


memory M via a shared bus with a data bus width of one word. The processor can
execute a maximum of 106 instructions per second. An average instruction
requires five machine cycles, three of which use the memory bus. A memory read
or write operation uses one machine cycle. Suppose that the processor is
continuously executing “background” programs that require 95% of its instruction
execution rate but not any I/O instructions. Assume that one processor cycle equals
one bus cycle. Now suppose the I/O device is to be used to transfer very large
blocks of data between M and D.
a. If programmed I/O is used and each one-word I/O transfer requires the processor
to execute two instructions, estimate the maximum I/O data-transfer rate, in words
per second, possible through D.
b. Estimate the same rate if DMA is used.
Answer:

You might also like