Professional Documents
Culture Documents
1 s2.0 0141933179901418 Main
1 s2.0 0141933179901418 Main
systems
In this series of articles Alan Clements describes the characteristics of
memory components, their timing diagrams and the address decoding
circuits which link memory components to a microprocessor's address bus
T
technology, are available in several configurations. As
semiconductor technology develops new memory chips with
greater capacities appear. This has the effect of reducing the Row select
price of the o!der chips of lower capacity. In Table 1 several
static RAM chips are described in terms of the number of
Bit line
bits per chip, the arrangement of the data as words x bits
per word, the number of pins, the access time and the Figure 2. Dynamic memory storage cell
power dissipation.
Some chips have a common data input/output To perform a refresh cycle, additional logic is usually
arrangement while others have separate input and output necessary to multiplex the address lines between the CPU
pins. A few chips have a power down facility which allows address bus and the refresh address counter, which must
the data to be retained if the power supply voltage falls to cycle through the 64 row addresses. Further logic is
not less than 2.4 V. Such an arrangement enables batteries required to synchronize the refresh operation with the CPU,
to provide the relatively low power needed to retain the either by slowing down or halting the CPU in a DMA type
memory data during a temporary power failure. The operation or by executing a refresh cycle whenever the CPU
TMS4046 and TMS4047 chips take power conservation is not using the system bus. If tile memory refresh cyc!e
during power down one step further. These chips have two d o e s n o t involve the CPU, it is said to be transparent because
power supply pins, one for the address decoding, control the dynamic memory appears to the CPU as static memory.
and buffer circuits, and one for the memory array itself. Just as there is a wide range of static memory chips,
Under power down or stand-by conditions only the power dynamic memory chips are available in a variety of formats.
supply to the memory array is required at Vcc ~ 2.4 V. Popular dynamic memory sizes are 4k x 1 and 16k x '1
This reduces the power dissipation from 250 mW when and the 64k x 1 chip is now becoming available. Because
active to 12 mW when powered down. much of the cost of a memory component is in the pack-
The majority of memory chips have a single enable or aging rather than the silicon chip itself, there has been a
chip select input. This is used to switch on the three state tendency to put 4k and 16k dynamic memory chips in
data buffers in a read cycle and to permit data to be stored 16-pin DIL packages. Such a small package cannot accom-
in the chip in a write cycle. The MC6810 is an unusual modate all the address lines necessary to access a given
memory component because it has six chip select inputs, memory cell To get round this difficulty, the address lines
four of which are active low and two active high. This chip are multiplexed between the row and column addresses of
has been designed to be used in circumstances where the any memory cell. Two new pins are required to implement
read/write memory requirements are low and memory the address multiplexing. These are the row address strobe
decoding circuits can be omitted by using the high order (RAS) and the column address strobe (CAS), which are used
address lines (Als, A14 • •. etc.) to select the RAM. The to indicate that the address pins hold the address of a row
subject of address decoding is dealt with in detail in the and a column of a cell in the memory array respectively.
second article in this series. The block diagram of a typical 4k dynamic RAM, the
2104A, is given in Figure 3.
D Y N A M I C RANDOM ACCESS MEMORY A particular problem associated with dynamic memories
The dynamic memory cell uses a single transistor to store is that of power supplies. Not only do many dynamic RAMs
data in the form of a charge on a capacitor. Figure 2 require three separate power supplies (12 V, 5 V and -5 V)
illustrates this basic simplicity. Because the charge on the but the current requirements are transitory. The average
capacitor gradually leaks away, any data stored will be lost power consumed by a dynamic RAM is much lower than that
after several milliseconds. Most dynamic memory chips have of a corresponding static RAM. However, during a memory
a guaranteed data retention period of 2 ms. In order to avoid access cycle (read/write/refresh) the current requirement of
loss of data the charge on the capacitor must periodically be a dynamic RAM may increase by 60 mA in 5 - 1 0 ns. This
restored by rewriting the data into the memory cell in an :urrent transient corresponds to a current demand increasino
operation known as refreshing. at the rate of more than six million amps per second. A wel,
The majority of dynamic RAMs have been constructed so designed dynamic memory system requires careful attention
that the memory refresh operation is relatively easy. The to the layout of the memory printed circuit board and the
dynamic memory chip is arranged as an array of rows and selection and positioning of decoupling capacitors.
columns, so that a typical 4k chip has 64 rows and 64 Dynamic memory components are best suited to large
columns. It is not necessary to refresh each memory cell memory systems where they are much more cost effective
individually; a whole row of memory cells is refreshed in a because of their cost, package count, average power
single operation (refresh cycle). A typical memory refresh consumption and access time. (Static RAMs can be
cycle involves little more than a pseudo read cycle, i.e. a obtained with access times lower than dynamic RAMs,
read operation is executed while the chip is deselected. but commonly available dynamic RAMs are often faster
p- fype substrate
, o.,)
p/,.~. . . . . ; .... I
vaid
stringent demands on the timing arrangements.
In Figure 6 the timing diagram of the address bus appears
Address VIH~
VrL Address as two parallel lines which cross over at points A and B. The
Chip VIH
select
g
VlL
--~~ use of two parallel lines is a convention which means that
the logic levels may be either high or low. In the case of the
address bus, it is highly probable that some address lines are
in the logical one state while others are in the logical zero
Data VIH state.
output V~L I
It is not the actual state of the address bus that is of
interest, but the time at which the contents of the address
bus become stable for the duration of the current memory
Figure 6. Read cycle timing diagram of the TMS40L45
static RAM access cycle. At point A in Figure 6 the contents of the
address bus have bcome stable, and this point is used as a
of a new address is the cause and the output of new data is reference for some of the timing measurements. Because
the effect. Anyone contemplating connecting a particular logic transitions are never instantaneous, it is usual to
memory chip to a microprocessor system bus must first represent a change of state by a sloping line, and to mark
determine whether the timing requirements of the micro- the point (or points) from which measurements are made.
processor and memory are compatible. In most areas of digital electronics the reference points are
taken as 10% and 90% of the upper logic level~ Sometimes
Read cycle timing diagram the reference levels are taken as VIL and VIH on inputs, and
VOL and VOH on outputs.
AF! symbols and abbreviations in Figure 6, which shows the Between points A and B the address bus contains the
timing diagram for the read cycle of a TMS40L45 static address of the location in the RAM which is to be read.
RAM, are those used by Texas Instruments in their own
During this time the address must not ch.ange. The
literature. The values of the parameters defined in Figure 6 difference between points B and B' is that at B the
are listed in Table 2 for the 450 ns version of the RAM. contents of the address bus have started to change to the
It is most unfortunate that semiconductor manufacturers new values which will be used in the next cycle. It is not
use their own individual terminology in describing their until point B' that the new contents of the address bus
products: it is often a tedious task-to match up the timing become valid once more. The time between point A and
diagram of manufacturer A's microprocessor with the B' is the cycle time for a read operation, and is quoted as a
timing diagram of manufacturer B's peripheral. minimum of 450 ns. That is, a microprocessor must not
The specification of the TMS40L45 describes it as a initiate a second read cycle until at least 450 ns after the
fully static RAM requiring no clocks or timing strobe. This start of the current read cycle. The TMS40L45 has a R/W
is an important feature because some memory components input which does not appear in its read cycle timing
diagram. It must therefore be assumed that the R/W input
Table 2. Timing parameters of the TMS40L45 to the RAM is in the logical one state for the entire
duration of the read cycle.
Symbol Parameter Value (ns) Consider now the data o u t p u t of the TMS40L45. Up to
rain max point E, the contents of the data bus are represented as a
single line midway between the two logic levels. This
t c (rd) read cycle time 450 convention signifies that the data bus is floated, or in the
high impedance state. The internal data bus drivers of the
ta(s) access time from chip select 120 TMS40L45 are in the high impedance state until point E,
tpvz,5 output disable time after chip select high 100 which occurs t a (S) s after point C, at which the chip select
output data valid after address change 10 input becomes active. The time between points A and E is
tpvx
ta(A)s , and is the time taken from the point at which the
ta(A) access time from address valid 450 contents of the aci(tress bus are first stable to the time at
tc(wr) write cycle time 450 which the contents of the data bus first contain valid data.
ts. (A) address set up time 0 This time is quoted as having a maximum value of 450 ns.
That is, the data should be valid no later than 450 ns after
tw(W) write pulse width 200 the start of a read cycle. _
th(A) address hold time 20 The chip select input S , must make its active low
transition at least ta(S) s before the output data is required.
ts. (S) chip select set up time 200
The timing diagram says nothing about the relationship
tsu(D) data set up time 200 between point C and point A. This implies that S- can
th(D) data hold time O~ assume its active low state at any time, as long as the ta(S )
reqQirement is satisfied. This is a consequence of the static
until ta(A ) s after the address has become stable (point A). • _J°
At the ei~d of the read cycle, point B, the contents of the v,. L /F
address bus are in the process of changing to their new
values. Because the memory dOes'not respond instantly to
Input VIH /
changes on the address bus, the contents of the data bus are data ViE y/',///////S///'//"~Data validH ~
still valid until point F, which occurs not less than tpvxs
after point B. This is often called the guaranteed data hold
Figure 7. Write cycle timing diagram of the TMS40L45
time of the memory. After point F, the data bus drivers
static RAM
are still in the low impedance state, but the data is no
longer valid. This situation is often indicated by shading the
region between the two logic levels.
At point D the chip select input makes its low to high Start of cycle [_ tcycle = IO00ns
transition, signalling that the chip's data bus drivers can
\
. . . . .
matter how many times a read cycle takes place , but ifW Data from 2OV.~,~'~
=-7
goes low when the contents of the address bus or data bus memory O.8V~-- i Data valid
Memory ddto
output
miTT~8@
d
data is on the data bus no later than 530 ns (the maximum
value of the peripheral read access time tacc) after the
contents of the address bus have become stable. Of course, Figure 10. Read cycle timing diagram of the MC6800 CPU
the data at the input terminals to the CPU will not be valid related to the TMS40L45 static RAM