1 of 38

William Stallings �Computer Organization �and Architecture�10th Edition

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

2 of 38

Chapter 5

Internal Memory

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

​

​

​

​

​

+

3 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

4 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Table 5.1

Semiconductor Memory Types

5 of 38

Dynamic RAM (DRAM)

  • RAM technology is divided into two technologies:
    • Dynamic RAM (DRAM)
    • Static RAM (SRAM)
    • DRAM
      • Made with cells that store data as charge on capacitors
      • Presence or absence of charge in a capacitor is interpreted as a binary 1 or 0
      • Requires periodic charge refreshing to maintain data storage
      • The term dynamic refers to tendency of the stored charge to leak away, even with power continuously applied

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

6 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

7 of 38

Static RAM (SRAM)

    • Digital device that uses the same logic elements used in the processor
    • Binary values are stored using traditional flip-flop logic gate configurations
    • Will hold its data as long as power is supplied to it

​

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

8 of 38

SRAM versus DRAM

  • Both volatile
    • Power must be continuously supplied to the memory to preserve the bit values
  • Dynamic cell
    • Simpler to build, smaller
    • More dense (smaller cells = more cells per unit area)
    • Less expensive
    • Requires the supporting refresh circuitry
    • Tend to be favored for large memory requirements
    • Used for main memory
  • Static
    • Faster
    • Used for cache memory (both on and off chip)

​

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

SRAM

DRAM

+

9 of 38

Read Only Memory (ROM)

  • Contains a permanent pattern of data that cannot be changed or added to
  • No power source is required to maintain the bit values in memory
  • Data or program is permanently in main memory and never needs to be loaded from a secondary storage device
  • Data is actually wired into the chip as part of the fabrication process
    • Disadvantages of this:
      • No room for error, if one bit is wrong the whole batch of ROMs must be thrown out
      • Data insertion step includes a relatively large fixed cost

​

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

10 of 38

Programmable ROM (PROM)

  • Less expensive alternative
  • Nonvolatile and may be written into only once
  • Writing process is performed electrically and may be performed by supplier or customer at a time later than the original chip fabrication
  • Special equipment is required for the writing process
  • Provides flexibility and convenience
  • Attractive for high volume production runs

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

11 of 38

Read-Mostly Memory

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

EPROM

Erasable programmable read-only memory

Erasure process can be performed repeatedly

More expensive than PROM but it has the advantage of the multiple update capability

EEPROM

Electrically erasable programmable read-only memory

Can be written into at any time without erasing prior contents

Combines the advantage of non-volatility with the flexibility of being updatable in place

More expensive than EPROM

Flash Memory

Intermediate between EPROM and EEPROM in both cost and functionality

Uses an electrical erasing technology, does not provide byte-level erasure

Microchip is organized so that a section of memory cells are erased in a single action or “flash”

12 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

13 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

14 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

15 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

16 of 38

Interleaved Memory

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Composed of a collection of DRAM chips

Grouped together to form a memory bank

Each bank is independently able to service a memory read or write request

K banks can service K requests simultaneously, increasing memory read or write rates by a factor of K

If consecutive words of memory are stored in different banks, the transfer of a block of memory is speeded up

17 of 38

Error Correction

  • Hard Failure
    • Permanent physical defect
    • Memory cell or cells affected cannot reliably store data but become stuck at 0 or 1 or switch erratically between 0 and 1
    • Can be caused by:
      • Harsh environmental abuse
      • Manufacturing defects
      • Wear
  • Soft Error
    • Random, non-destructive event that alters the contents of one or more memory cells
    • No permanent damage to memory
    • Can be caused by:
      • Power supply problems
      • Alpha particles

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

18 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

19 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

20 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Table 5.2

Increase in Word Length with Error Correction

21 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

22 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

23 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

24 of 38

Advanced DRAM Organization

    • One of the most critical system bottlenecks when using high-performance processors is the interface to main internal memory
    • The traditional DRAM chip is constrained both by its internal architecture and by its interface to the processor’s memory bus
    • A number of enhancements to the basic DRAM architecture have been explored
      • The schemes that currently dominate the market are SDRAM and DDR-DRAM

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

SDRAM

​

RDRAM

​

​

DDR-DRAM

​

+

25 of 38

Synchronous DRAM (SDRAM)

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

One of the most widely used forms of DRAM

Exchanges data with the processor synchronized to an external clock signal and running at the full speed of the processor/memory bus without imposing wait states

With synchronous access the DRAM moves data in and out under control of the system clock

    • The processor or other master issues the instruction and address information which is latched by the DRAM
    • The DRAM then responds after a set number of clock cycles
    • Meanwhile the master can safely do other tasks while the SDRAM is processing

26 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

27 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Table 5.3

SDRAM

Pin

Assignments

28 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

29 of 38

Double Data Rate SDRAM �(DDR SDRAM)

  • Developed by the JEDEC Solid State Technology Association (Electronic Industries Alliance’s semiconductor-engineering-standardization body)
  • Numerous companies make DDR chips, which are widely used in desktop computers and servers
  • DDR achieves higher data rates in three ways:
    • First, the data transfer is synchronized to both the rising and falling edge of the clock, rather than just the rising edge
    • Second, DDR uses higher clock rate on the bus to increase the transfer rate
    • Third, a buffering scheme is used

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

30 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

Table 5.4

DDR Characteristics

31 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

32 of 38

Flash Memory

  • Used both for internal memory and external memory applications
  • First introduced in the mid-1980’s
  • Is intermediate between EPROM and EEPROM in both cost and functionality
  • Uses an electrical erasing technology like EEPROM
  • It is possible to erase just blocks of memory rather than an entire chip
  • Gets its name because the microchip is organized so that a section of memory cells are erased in a single action
  • Does not provide byte-level erasure
  • Uses only one transistor per bit so it achieves the high density of EPROM

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+

33 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

34 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

35 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

36 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

37 of 38

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

38 of 38

Summary

  • Semiconductor main memory
    • Organization
    • DRAM and SRAM
    • Types of ROM
    • Chip logic
    • Chip packaging
    • Module organization
    • Interleaved memory
  • Error correction
    • DDR DRAM
    • Synchronous DRAM
    • DDR SDRAM
    • Flash memory
    • Operation
    • NOR and NAND flash memory
    • Newer nonvolatile solid-state memory technologies

​

​

Chapter 5

​

Internal

Memory

© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

+