Docsity

Computer Memory Interface and Types: SRAM vs DRAM - Prof. Edward Bosworth, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
Computer Memory and Its Interface to the CPU
The CPU interfaces to computer memory, using two registers and at least
two control signals.
MAR the Memory Address Register
this contains the address of the referenced word in memory
MBR the Memory Buffer Register
this contains data read from the referenced word in memory or written to it
Control Signals
These activate the memory and indicate whether it is to be read or written.
Two popular sets are RD (read) and CS (chip select)
CS RD Action
0 0 No Action
Memory is Idle
0 1
1 0 Memory is Written
1 1 Memory is Read
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Computer Memory Interface and Types: SRAM vs DRAM - Prof. Edward Bosworth and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Computer Memory and Its Interface to the CPU

The CPU interfaces to computer memory, using two registers and at least

two control signals.

MAR the Memory Address Register

this contains the address of the referenced word in memory

MBR the Memory Buffer Register

this contains data read from the referenced word in memory or written to it

Control Signals

These activate the memory and indicate whether it is to be read or written.

Two popular sets are RD (read) and CS (chip select)

CS RD Action

0 0 No Action

Memory is Idle 0 1

1 0 Memory is Written

1 1 Memory is Read

Memory Timings

Memory timings are based on two measures:

Memory Access Time this is defined in terms of the CPU reading memory.

It is the time between the address becoming stable in

the MAR and the data being stable in the MBR.

Memory Cycle Time this is defined in terms of the CPU writing to memory.

It is the minimum time between two independent writes

to memory. This was important for older technologies,

especially magnetic core memory, but is still used.

In modern computers, memory times are given as clock rates for the memory bus. For

example, one might hear of a 200 MHz memory. This indicates that something can

happen every 5 nanoseconds.

If a memory has its speed quoted as a clock rate, then it must be the new form called

SDRAM (Synchronous Dynamic RAM). We discuss that at the end of this lecture.

Tri–State Buffers On Output

Many devices that output to a common bus do so through a tri–state buffer.

When active the tri–state copies its input to its output.

When not active, the tri–state is an “open connection”, not transmitting anything.

Tri–state buffers come in a number of varieties. The one shown above is probably

the only one we shall use, but we mention the inverting buffer for completeness.

The inverting buffer at left is equivalent to the circuit at right.

The Linear View of Memory

Memory may be viewed as a linear array, for example a byte–addressable memory

byte memory [N] ; // Addresses 0 .. (N – 1)

This is a perfectly good logical view, it just does not correspond to reality.

Managing Pin-Outs

Consider now the two–dimensional memory mentioned above. What pins are needed?

Pin Count

Address Lines 22 Address Lines 11

Row/Column 0 Row/Column 2

Power & Ground 2 Power & Ground 2

Data 1 Data 1

Control 3 Control 3

Total 28 Total 19

Separate row and column addresses require two cycles to specify the address.

Four–Megabyte Memory

Do we have a single four–megabyte chip or eight four–megabit memory chips?

One common solution is to have bit–oriented chips. This facilitates the

two–dimensional addressing discussed above.

For applications in which data integrity is especially important, one might add a ninth

chip to hold the parity bit. This reflects the experience that faults, when they occur, will

be localized in one chip.

Parity provides a mechanism to detect, but not correct, single bit errors.

Correction of single bit errors requires twelve memory chips. This scheme will

also detect all two–bit errors.

Faster Memory Chips

We can use the “2 dimensional” array approach, discussed earlier, to create a faster

memory. This is done by adding a SRAM (Static RAM) buffer onto the chip. Consider

the 4Mb (four megabit) chip discussed earlier, now with a 2Kb SRAM buffer.

In a modern scenario for reading the chip, a Row Address is passed to the chip, followed

by a number of column addresses. When the row address is received, the entire row is

copied into the SRAM buffer. Subsequent column reads come from that buffer.

SDRAM (Synchronous DRAM)

Synchronous Dynamic Random Access Memory

In SDRAM , the memory transfers take place on a timing dictated by the memory bus

clock rate. This memory bus clock is always based on the system clock.

Suppose a 2 GHz system clock. It can easily generate the following memory bus clock

rates: 1GHz, 500 MHz, 250MHz, 125MHz, etc. Other rates are also possible.

In “plain” SDRAM, the transfers all take place on the rising edge of the memory bus

clock. In DDR SDRAM (Double Data Rate Synchronous DRAM), the transfers take

place on both the rising and falling clock edges.