Docsity

ROM: Read-only memory RAM, Exercises of Design

Partial preview of the text

Download ROM: Read-only memory RAM and more Exercises Design in PDF only on Docsity!

CMPE 310 Memory Memory Types^ Two basic types:^ Q^ ROM:^ Read-only memory^ Q^ RAM:^ Read-Write memoryFour commonly used memories:^ P^ ROM^ P^ Flash, EEPROM^ P^ Static RAM (SRAM)^ P^ Dynamic RAM (DRAM), SDRAM, RAMBUS, DDR RAMGeneric pin configuration:^ A

AA 0 1

N O^ O^0 Address connectionO^ N ... ... Output/Input-output connection

WriteWE ReadOESelectCS

CMPE 310 Memory Memory Chips^ The number of address pins is related to the number of

memory locations. Common sizes today are^

1K^ to^ 256M^ locations. Therefore, between 10 and 28 address pins are present.The data pins are typically^ bi-directional

in read-write memories. The number of data pins is related to the

size of the memory location

For example, an 8-bit wide (byte-wide) memory device has

^8 data pins. Catalog listing of^ 1K X 8^

indicate a byte addressable 8K bit memory with 10 addresspins. Each memory device has at least one

chip select^ (CS) or^ chip enable

(CE) or^ select^ (S) pin that enables the memory device.This enables read and/or write operations.If more than one are present, then all must be 0 in order to perform a read or write.

CMPE 310 Memory Memory ChipsROMs (cont):^ Q^ Flash, EEPROM

: Electrically Erasable Programmable ROM.Also called EAROM^ (Electrically Alterable ROM) and

NOVRAM^ (NOn-Volatile RAM).Writing is much slower than a normal RAM.Used to store setup information, e.g. video card, on computer systems.Can be used to replace EPROM for BIOS memory.

CMPE 310 Memory EPROMsIntel 2716 EPROM (2K X 8):^ A^7

241 VCCA 23 A 268 A 225 A 39 A 21 V 44 PPA 2053 CSA 1962 A^10 A 1871 PD/PGMA 17 O 8271607 O 16 Chip SelectO 906 O 1510 O 1 PWR Down^5 O 142 O 114 Prog Logic 13 GNDO 123 2K x 8 EPROM Pin(s) Function A-A Address 010 PD/PGMPower down/ProgramCSChip SelectO-O Outputs 07

Vis used to program the devicePP^ by applying 25V and pulsing PGMwhile holding CS high.Data Outputs^ CS Output PD/PGMBuffers^ YY-Gating^ Decoder^ X16,384^ DecoderCell Matrix^ Address Inputs

CMPE 310 Memory SRAMsTI TMS 4016 SRAM (2K X 8):^ Virtually identical to the EPROM with respect to the pinout.However, access time is faster (250ns).See the timing diagrams and data sheets in text.SRAMs used for^ caches

have access times as low as

10ns.

A^2417 VCCA^23 A^268 A^225 A^39 A^2144 WA^2053 GA^19 A^6210 A^18 S^71 A^17 DQ^807 DQ^16 DQ^90 TMS4016^6 DQ^1510 DQ^15 DQ^142 DQ^11413 GNDDQ^123 2K x 8 SRAM

Pin(s)^ FunctionA-A^ Address^010 DQ^ -DQ^ Data In/Data Out^07 S (CS)Chip SelectG (OE)Read Enable W (WE)^ Write Enable

CMPE 310 Memory DRAMsDRAM:^ SRAMs are limited in size (up to about 128K X 8).DRAMs are available in much larger sizes, e.g., 64M X 1.DRAMs MUST be refreshed (rewritten) every

2 to^4 ms Since they store their value on an integrated capacitor that loses charge over time.This refresh is performed by a special circuit in the DRAM which refreshes the entirememory.Refresh also occurs on a normal read or write.More on this later.The large storage capacity of DRAMs make it impractical to add the required numberof address pins.Instead, the address pins are

multiplexed.

CMPE 310 Memory DRAMs^ TI TMS4464 DRAM (64K X 4) Timing Diagram:RAS CAS^ Row CAS also performs the function of the chip select input.

Column^ Dont care AAAAAAA^0 8 1 9 2 10

A^ A^11

A^ A^ A^ A^ A^ A^ A^125 136 14 7

1A^ 1B^ 2A^ 2B^ 3A^ 3B^ 4A

4B^ 1A^

1B^ 2A^ 2B^ 3A^ 3B^ 4A^ 4BRAS

74157 (2-to-1MUX) AA^ A^ A^01 2

A^ AAA^4 5 6

1Y^ 2Y^ 3Y^ 4Y^

Address BUS S S^ 74157 (2-to-1MUX) 0: latch A to Y1: latch B to Y1Y^ 2Y^ 3Y^ 4Y Inputs to DRAM

CMPE 310 Memory DRAMs^ Larger DRAMs are available which are organized as

1M X 1 ,^ 4M X 1 ,^ 16M X 1

,^ 64M X 1,

256M X 1. DRAMs are typically placed on SIMM (Single In-line Memory Modules) boards.^ 30-pin^ SIMMs come in

1M X 8 ,^ 1M X 9^ (parity),

4M X 8 ,^ 4M X 9.

72-pin^ SIMMs come in^^1

/^2 /^3 /^8 / 16M X 32^ or^ 1M X 36

(parity). 5 10 15 20 25

NC^50 55 60 65

VSSVCC +

Addr^ RASW0-11^ DQ^ PD CAS0- 1-