Exercise 2 - Assignment 2
Exercise 2 - Assignment 2
Exercise 2 - Assignment 2
Class: SE17C01
ID: DE170008
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:
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:
a, 5MHz => 1/(5*106) (s) = 0.2*10-6 (s)
Because it takes three bus clock cycles per DMA cycle
0.2*10-6*3=0.6*10-6(s)
b, => The data rate: 1/(0.6*10-6) B = 1.67MB/s
c, A transfer of byte takes: 0.2*10-6*(3+2)=10-6 (s)
=> The data rate: 1/(10-6) B =1MB/s
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: