RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write...

24
RAM (RANDOM ACCESS MEMORY)

Transcript of RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write...

Page 1: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

RAM(RANDOM ACCESS MEMORY)

Page 2: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

DEFINITION:•A RAM is a volatile chip memory in which both read and write operations can be performed.•A memory unit is a collection of storage cell together with associated circuits needed to transfer information .•It is also called Read-Write Memory(RWM)

THE RAM FAMILY:•It has n-address input lines to access 2^n memory locations and m-data lines to write/read data from/to memory.•The n bit address is placed in Memory Address Register(MAR) to select one of the 2^n memory location•The control signal is used to enable the read and write operations•When read signal is asserted, then the data from memory location gets selected by n-bit address then placed in Memory Buffer Register which is a m-bit register.

Page 3: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

BLOCK DIAGRAM:

. . . .

RAMARRAY

MAR

MBR

ADDRESS n-BITS

01

2^n-1

m-DATA LINES

D0- Dm-1

READ

WRITE

Page 4: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

THE RAM FAMILY:

RAM

BIPOLAR MOS

STATICSTATIC RAM

DYNAMIC RAM

Page 5: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

TYPES OF RAM

•Semiconductor RAMs may be static or dynamic.•Static RAM uses bipolar or MOS flip flops.•Dynamic RAMs MOSFETS and capacitors which store data.

Page 6: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

STATIC RAM

A Static RAM contains an array of flip flop ,one for each stored bit.Data written in the flip flop remains as long as the dc power is maintained.The capacity of RAM varies from 64 bits to 1 mega bit.

Page 7: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

STATIC RAM CELL:

The cells is selected by HIGH value on the ROW and COLUMN lines.The input data bit(1 or 0) is written into the cell by setting the flip flop for a 1 and resetting the flip flop for a 0 when READ/WRITE line is LOW.When the READ/WRITE line is HIGH, the flip flop is unaffected.Then the stored data is gated to the DATA OUT line.

Page 8: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

LOGIC DIAGRAM

&

&

S

R

COLUMN

ROW

DATA IN

READ/WRITE

DATA OUT

Page 9: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

The flip flops in the static memory cell can be constructed using a)Bipolar junction transistor b)MOSFETs

BIPOLAR STATIC RAM:•IT consits of two transistors Q1,Q2 that are cross coupled to form a flip flop.•Here the each transistor has three emitters ,viz 1)row select input 2)column select input 3)write input

Page 10: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

MOS STATIC RAM:•Here there are four transistors Q1,Q2,Q3,Q4.•Out of which Q1 and Q2 acts like switches while Q3 and Q4 acts like active load resistor.

•To select the cell ,both the ROW and COLUMN select must be held HIGH.•When selected , a data bit can be stored in the cell or the content of the cell can be read.•If either ROW or COLUMN select lines is LOW then the memory cell is disabled.

•The transistor Q1 conducts and Q2 remains in cut off

Page 11: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

BASIC STRUCTURE OF A STATIC RAM

•RAM has address inputs,data inputs,and a READ/WRITE CONTROL.•When READ/WRITE is HIGH and chip select(cs) is LOW, four data bits from the selected address appears on the data output.•When READ/WRITE is LOW ,the four data bits that are applied to the data inputs are stored at the selected address.

Page 12: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

LOGIC DIAGRAM FOR A 256*4 STATIC RAM

A0A1A2A3A4A5A6A7

D1D2D3D4

R/W

EN

Y1Y2Y3Y4

ADDRESS INPUT

DATA INPUT

DATA OUTPUT

256 X 4

STATIC RAM

Page 13: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

A 1024 bit device with a 256 x 4 organisation implies that there are 256 rows and 4 columns.Here the memory cell are arranged in an array of 32 x 32 matrix.

OPERATION:•IT has eight input lines(A0 – A7)•Five of the eight address lines (A0 through A4) are decoded by the ROW decoder to select one of the 32 rows.•The remaining 3 address lines (A5 through A7) are used by the COLUMNdecoder to select 4 of 32 columns.•In READ mode , the output buffer are enabled and the four bit from the selected memory location appears on the output(Y1,Y2,Y3,Y4)•In WRITE mode, the input data buffer are enabled and the four bit are routed through input data selector for storage.•During READ and WRITE the CHIP SELECT that is the enable must be LOW.

Page 14: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

32 x 32 memory cell array

ROW DECODER

R/W

CS

A0 – A7

INPUT BUFFER

OUTPUT COLUMN DECODER

D4 – D1

Y4 Y3 Y2 Y1BASIS STRUCTURE OF 256 X 4 STATIC RAM

Page 15: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

STATIC RAM IC’S

IC 7489-64 BIT STATIC RAM:•IT is arranged as 16 words of 4 bit each.•Data can be written into the memory with the help of data inputs by giving an address to the SELECT input and holding both the enable and write LOW.•Data can be read from any memory location by giving the address to the SELECT input and holding the enable LOW while the write enable HIGH.ADVANTAGES:The operation is straight forward and hence easy to understand.

Page 16: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

PIN DIAGRAM:

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

B C D D4 S4 D3

S3

ME WE D1 S1 D2 S2

SELECT MEMORY DATA SENSE DATA SENSE GNDINPUT A ENABLE INPUT 1 OUTPUT 1 INPUT 2 OUTPUT 2

VCC SELECT INPUTS DATA SENSE DATA SENSE INPUT 4 OUTPUT 4 INPUT 3 OUTPUT 3

Page 17: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

IC 21114 – 4K BIT STATIC RAM:

•It is a 4096 cell organised as 1024 x 4 bit available in a single pin ic.•The ic uses n-channel silicon gate MOS transistor in a static arrangement.•The CS line allows selection of the expznded memory size.•The WE selects b/w READ and WRITE operations.•The 4 data pins acts as input lines on a WRITE operation, and as output line on a READ operation

Page 18: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

PIN CONFIGURATION:

1

2

4

5

6

7

8

9

3

10

11

12

13

14

15

16

17

18

VCC

A7

A8

A9

Y1

Y2

Y3

Y4

WE

A6

A5

A4

A3

A0

A1

A2

CS

GND

IC 2114 RAM

Page 19: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

TMS 4016 2 KB-STATIC MOS RAM:

It is byte organised static RAM.There are eleven address inputs to select 2048 locations.The data in (DY1 through DY8) are bidirectional terminals.These terminals provide both data input during WRITE OPRATION and data output during READ operation.

Page 20: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

TRUTH TABLE OF TMS 4016:

WR CS RD DY1-DY8 MODE

0 0 X DATA INPUT

WRITE

1 0 0 DATA OUTPUT

READ

X 1 X HIGH IMPEDANCE

DEVICE DISABLED

1 0 1 HIGH IMPEDANCE

OUTPUT DISABLED

Page 21: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

DYNAMIC RAM:

The Dynamic Random Access Memory (DRAM) is the lowest cost,high density, RAM available.It can store binary information in the form of electric charges on the capacitors.Data that is stored as charge in the capacitors must be recharged as many number of times as possible in order to retain the stored charges.DRAM makes use of MOS capacitors as memory cell instead of flip flops

ADVANTAGES:

1. Very large memory array can be constructed at a lower cost.2. It offers reduced power consumption and larger storage capacity.

DISADVANTAGES:3. MOS capacitor cannot hold the stored charge over an extended period of time.4. It has to be refreshed every few seconds.5. The circuit becomes complex.

Page 22: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

Dynamic MOS RAM cell:

A DRAM consists of arrray of memory cells.in this type of cell ,the transistor acts as a switchThe memory cell requires READ and WRITE gatin to operate the cell.

Storage capacitor

row/control line

Column/sense lines

Page 23: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

PSEUDO STATIC RAM (PSRAM):

•IT is a dynamic RAM with a built in refresh logic.•It can be used even as a static RAM because no external refreshing circuit is required •When it is performing internal refresh it cannot be accessed for read and write operation.

Page 24: RAM (RANDOM ACCESS MEMORY). DEFINITION: A RAM is a volatile chip memory in which both read and write operations can be performed. A memory unit is a collection.

ADVANTAGES:

1) Operating speed is faster2) MOS memories are more economical than

magnetic core for small systems3) Power dissipation is very low4) Read out of RAM does not affect the contents

stored.