Microprocessors_lecture11,12predicted
Microprocessors_lecture11,12predicted
Lecture 11
•The memory of a computer system normally consists of one
or more PC boards that are connected to the system bus.
1. Cost.
2. Capacity.
3. Speed.
4. Power consumption.
5. Reliability.
❖For static memory devices, a cell is commonly implemented using six MOS
transistors.
❖Information is stored according to the states of transistors Q1 and Q2. This
cross-coupled transistor pair is such that when one transistor is on, the other
is off, and vice versa.
❖A 1 is assigned to the state that exists when Q2 is on and Q1 is off, and a 0 is
assigned to the opposite state.
❖The transistors Q3 and Q4 serve as resistors and Q5 and Q6 act as enable
gates.
❖During a write operation, first the cell is selected by raising the voltage level on the
select line. When this is done, transistors Q5 and Q6 act as short circuits, so that
the Read/Write 1 line is applied to the gate of Q2 and the Read/Write 0 line is
applied to the gate of Q1.
❖To write a 1 into the cell a 1 is placed on Read/Write 1 and a 0 is placed on
Read/Write 0 .
❖This causes Q2 to be turned on and Q1 to be turned off.
❖On the other hand, if a 0 is to be written into the cell, a 1 is placed on Read/Write 0
and a 0 is placed on Read/Write 1.
❖In either case, once they are set the states of Q1 and Q2 will remain
unchanged until the next write operation.
❖The cell can be read simply by applying a voltage to the select line. When this
is done, the state of Q1, is applied to Read/Write 0 and the state of Q2 is
applied to Read/Write 1.
❖A 4K x 8 memory device array which is constructed from 1K x 1 devices
is shown in the following figure.
❖If a chip is enabled, a read or write operation will proceed as specified by R/W
control input.
❖The read/write signal will not be recognized and the output is forced into a
high-impedance state.
❖This allows the data outputs of several memory chips to be directly tied
together so that 2K x 8, 4K x 8; and so on, memories can be constructed from
columns of 1K X 1 chips with each column contributing one bit of the data
byte.
❖When this is done, the bit being output not only depends on the signals on the
address lines, but also depends on receive the chip enable signal.
❖Each row in the array is connected to a row enable line and the row enable
lines are activated by higher-order address bits which for this example are
bits A11 and A10.
❖When a row is selected each device in the row will input or output a bit
according to the signals on the A9-A0 lines.
❖ Because each cell in a static RAM device must contain several transistors,
each device generally contains fewer cells than a dynamic RAM chip of
comparable design.
❖ Also, they tend to use more power since one of the two cross-coupled
transistors is always on, thus consuming power continuously.
❖The major advantage of static RAM is that it does not need to be refreshed.
❖The most important timing parameter to be considered in choosing a
memory device is the access time.
❖The maximum time delay from an address input to a data output is longer
than the delay between a chip enable and a data output, and consequently
the former timing figure is normally considered to be the access time.
❖The access time for commonly used MOS RAMs varies from 50 to 500 ns.
❖For a read operation, once the output data are valid, the address input
cannot be changed immediately to start another read operation.
❖ This is because the device needs a certain amount of time, called read
recovery time, to complete its internal operations before the next memory
operation
❖The sum of the access time and read recovery time is the memory read
cycle time.
❖ This is the time needed between the start of a read operation and the start
of the next memory cycle.
❖The memory write cycle time can be similarly defined and may be different
from the read cycle time.
❖Figure 10-7(a) illustrates the timing of a-memory read cycle.
❖The address is applied at point A, which is the beginning of the read cycle,
and must be held stable during the entire cycle.
❖In order to reduce the aceess time, the chip enable Input should be applied
before point B .
❖ The data output becomes valid after point C and remains valid as long as
the address and chip enable inputs hold. The R/W control input is not shown
in the timing diagram for the read cycle, but should remain high throughout
the entire cycle.
2. Dynamic RAM (DRAM)
ACOE255
DYNAMIC RAM DEVICES