ca the memory system

Upload: kings-lee

Post on 06-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 CA The Memory System

    1/31

    Fundamental of Computer Architecture

    By Panyayot Chaikan [email protected]

    240-208

    November 01, 2003

  • 8/3/2019 CA The Memory System

    2/31

    Chapter 4 - The Memory System 2240-208 Fundamental of Computer Architecture

    Chapter 4

    The Memory System

  • 8/3/2019 CA The Memory System

    3/31

    Chapter 4 - The Memory System 3240-208 Fundamental of Computer Architecture

    Connection of the memory to the CPU

    MAR

    MDR

    Memory

    Up to 2 addressablelocations

    k

    word length= n bitsCU

    k-bit address bus

    n-bit data bus

    Control lines

    Processor

  • 8/3/2019 CA The Memory System

    4/31

    Chapter 4 - The Memory System 4240-208 Fundamental of Computer Architecture

    Organization of bit cells in a memory chip

    From Figure 5.2 Page 296 of Computer Organization, Carl Hamacher, 5th

    edition, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    5/31

    Chapter 4 - The Memory System 5240-208 Fundamental of Computer Architecture

    Organization of a 1Kx1 memory chip

    From Figure 5.3 Page 297 of Computer Organization, Carl Hamacher, 5th edition, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    6/31

    Chapter 4 - The Memory System 6240-208 Fundamental of Computer Architecture

    Semiconductor Memories

    Nonvolatile memory

    ROM

    PROM

    EPROM

    EEPROM

    Flash memory

    Volatile memory

    SRAM

    DRAM

    Asynchronous

    DRAM

    FPM DRAM

    Synchronous

    SDRAM

    DDR SDRAM

    RDRAM

  • 8/3/2019 CA The Memory System

    7/31

    Chapter 4 - The Memory System 7240-208 Fundamental of Computer Architecture

    ROM

    ROM : Read Only Memory

    Programmed when manufacturing is in process.

    PROM : Programmable Read Only Memory

    Programmable by user only once

    Flexible and convenient compared to ROM

    Programmed by burning the fuse using high current

    pulse

  • 8/3/2019 CA The Memory System

    8/31

    Chapter 4 - The Memory System 8240-208 Fundamental of Computer Architecture

    A simple 4-word ROM

    From Figure 11-12 Page 298 of Microprocessors: principles and applications, Charles M.Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    9/31

    Chapter 4 - The Memory System 9240-208 Fundamental of Computer Architecture

    A simple 4-word ROM using MOS

    From Figure 11-13 Page 299 of Microprocessors: principles and applications, Charles M.Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    10/31

    Chapter 4 - The Memory System 10240-208 Fundamental of Computer Architecture

    EEPROM

    Electrically Erasable PROM

    No requirement of physically removed from the

    circuit for reprogramming

    Use special voltage level to erase data

    Any cell contents can be delete selectively

  • 8/3/2019 CA The Memory System

    11/31

    Chapter 4 - The Memory System 11240-208 Fundamental of Computer Architecture

    EPROM

    Reprogrammable

    Erased by UV light

    Example EPROM chips

    27C64 : 8KB

    27C128 : 16KB

    27C256 : 32KB

    27C512 : 64KB

  • 8/3/2019 CA The Memory System

    12/31

    Chapter 4 - The Memory System 12240-208 Fundamental of Computer Architecture

    EPROM 2764, 27128, 27256

    From Figure 11-15, Page 301 of Microprocessor : Principle and Application, Charles M. Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    13/31

    Chapter 4 - The Memory System 13240-208 Fundamental of Computer Architecture

    Flash Memory

    Electrically erasable

    Single cell can be read but can be written only an

    entire block of cells.

    Prior to writing, the previous of the block are

    erased.

    Suitable for used as solid state disk such as

    CompactFlash, MemoryStick, SD, MD etc.

  • 8/3/2019 CA The Memory System

    14/31

    Chapter 4 - The Memory System 14240-208 Fundamental of Computer Architecture

    SRAM cell

    Vsupply

    word line

    bit line

    b'

    bit line

    b

  • 8/3/2019 CA The Memory System

    15/31

    Chapter 4 - The Memory System 15240-208 Fundamental of Computer Architecture

    DRAM cell

    word line

    bit line

  • 8/3/2019 CA The Memory System

    16/31

    Chapter 4 - The Memory System 16240-208 Fundamental of Computer Architecture

    SRAM VS DRAM

    SRAM

    Very fast

    Very Expensive

    Used in Cache memory

    and CPU register

    DRAM

    Slower than SRAM

    Cheaper than SRAM

    Used in most computer

    as main memory

    Need to be refreshed

    periodically

  • 8/3/2019 CA The Memory System

    17/31

    Chapter 4 - The Memory System 17240-208 Fundamental of Computer Architecture

    DRAM: Multiplexed Row-Column addressing

    From Figure 11-7, Page 291 of Microprocessor : Principle and Application, Charles M. Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    18/31

    Chapter 4 - The Memory System 18240-208 Fundamental of Computer Architecture

    Reducing Address pins of IC chip

    RAS = Row Address Strobe

    CAS = Column Address Strobe

    DRAM: Multiplexed Row-Column addressing

  • 8/3/2019 CA The Memory System

    19/31

    Chapter 4 - The Memory System 19240-208 Fundamental of Computer Architecture

    Static RAM

    2Kx8 8Kx8

    From Figure 11-5, Page 289 of Microprocessor : Principle and Application, Charles M. Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    20/31

    Chapter 4 - The Memory System 20240-208 Fundamental of Computer Architecture

    Dynamic RAMchip: Example

    From Figure 11-6, Page 290 of Microprocessor : Principle and Application, Charles M. Gilmore, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    21/31

    Chapter 4 - The Memory System 21240-208 Fundamental of Computer Architecture

    Memory Module

    From www.oamao.com/Matos/ ordi/guide.htm

  • 8/3/2019 CA The Memory System

    22/31

    Chapter 4 - The Memory System 22240-208 Fundamental of Computer Architecture

    3 Types of RAM modules

    FROM http://www.buycomputermemory.com/computer-memory-types-and-memory-technology.html

  • 8/3/2019 CA The Memory System

    23/31

    Chapter 4 - The Memory System 23240-208 Fundamental of Computer Architecture

    Internal organization of a 2Mx8 DRAM

    From Figure 5.7 Page 300 of Computer Organization, Carl Hamacher, 5th

    edition, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    24/31

    Chapter 4 - The Memory System 24240-208 Fundamental of Computer Architecture

    SDRAM

    Synchronous DRAM

    Need clock signal for synchronize operation

    Can be used with clock speed 100 and 133 MHz

    Built in refresh circuitry

  • 8/3/2019 CA The Memory System

    25/31

    Chapter 4 - The Memory System 25240-208 Fundamental of Computer Architecture

    Structure of Synchronous DRAM

    From Figure 5.8 Page 302 of Computer Organization, Carl Hamacher, 5th

    edition, McGraw Hill pub.

  • 8/3/2019 CA The Memory System

    26/31

    Chapter 4 - The Memory System 26240-208 Fundamental of Computer Architecture

    Burst read of length 4 in an SDRAM

    From Figure 5.9 Page 303 of Computer Organization, Carl Hamacher, 5th

    edition, McGraw Hill pub.

    Row

    Col

    D0

  • 8/3/2019 CA The Memory System

    27/31

    Chapter 4 - The Memory System 27240-208 Fundamental of Computer Architecture

    The use of Memory controller

    Memory

    Memory

    Controller

    Row/ColumnaddressAddress

    data

    Processor

    Clock

    R/W

    CS

    CAS

    RASR/W

    Request

    Clock

  • 8/3/2019 CA The Memory System

    28/31

    Chapter 4 - The Memory System 28240-208 Fundamental of Computer Architecture

    The role of Memory controller

    Is the North-bridge chip in typical PC

    Activate/Deactivate signal RAS and CAS timing

    for DRAM

    Interposed between Processor and Memory

    Refresh DRAM if required

  • 8/3/2019 CA The Memory System

    29/31

    Chapter 4 - The Memory System 29240-208 Fundamental of Computer Architecture

    Memory organization in typical PC

    From http://www.via.com.tw/en/p4-series/pt800.jsp

  • 8/3/2019 CA The Memory System

    30/31

    Chapter 4 - The Memory System 30240-208 Fundamental of Computer Architecture

    Memory organization in typical PC

    From http://www.via.com.tw/en/p4-series/pt880.jsp

  • 8/3/2019 CA The Memory System

    31/31

    Chapter 4 - The Memory System 31240-208 Fundamental of Computer Architecture

    Memory hierarchy

    Processor

    Registers

    Cache L1

    Cache L2

    Mainmemory

    secondarystoragememory

    increasingsize

    increasingspeed

    increasingcost per bit