Professional Documents
Culture Documents
05 Internal Memory
05 Internal Memory
Internal Memory
Computer Memory Overview
• The memory is that part of computer where programs and data are
stored. Basically the concept is the following:
• Bits
– The basic unit of memory is the binary digit called a bit. A bit may
contain a 0 or 1. It is the simplest possible unit
• Memory addresses
– Byte: 8-bits
Computer Memory ......
– Bytes are grouped into words. The significance of word is that most
instruction operate on entire word. A computer with a 32bit/word
has 4 bytes/word
• Byte ordering
– The former system, where the numbering begin at the “big” (i.e,
high-order) end is called a big endian computer, such as the SPARC
or the big IBM mainframes. In contras it is a little endian computer,
such as the Intel family using right-to-left numbering for the
representation of a 32 bit computer.
Characteristics of Computer Memory
• Capacity: the amount of information that can be contained in a memory unit -- usually in
terms of words or bytes
• Memory word: the natural unit of organization in the memory, typically the number of
bits used to represent a number
• Addressable unit: the fundamental data element size that can be addressed in the memory
-- typically either the word size or individual bytes
• Unit of transfer: The number of data elements transferred at a time – usually bits in main
memory and blocks in secondary memory
• Transfer rate: Rate at which data is transferred to/from the memory device
• Access time:
– For RAM, the time to address the unit and perform the transfer
– For non-random access memory, the time to position the R/W head over the desired location
• Memory cycle time: Access time plus any other time required before a second access can
be started
• Access technique: how are memory contents accessed
Memory Access Methods
• Random access:
– Locations can be accessed in any order and all access times are
the same
Random-access
Read-write memory Electrically, byte-level Electrically Volatile
memory (RAM)
Read-only
Masks
memory (ROM)
Read-only memory Not possible
Programmable
ROM (PROM)
Erasable PROM
UV light, chip-level
(EPROM) Nonvolatile
Electrically
• Charges leak
• Simpler construction
Dynamic RAM is made with cells that store data as
• Smaller per bit
charge on capacitors.
• Less expensive
• Essentially analogue
– Level of charge determines value
Dynamic RAM Structure
Fig. Typical
DRAM
DRAM is an analoge device
structure for
an individual
cell that
stores one bit
DRAM Operation
• Address line is active when bit read or written
– Transistor switch closed (current flows)
• Write
– Voltage to bit line
• High for 1 low for 0
– Then signal address line
• Transfers charge to capacitor
• Read
– Address line selected
• transistor turns on
– Charge from capacitor fed via bit line to sense amplifier
• Compares with reference value to determine 0 or 1
– Capacitor charge must be restored
Static RAM
• Bits stored as on/off switches- traditional flip-flop logic gate configuration
• More expensive
• Faster
• Cache
In contrast, SRAM is a digital
• Digital
device, using same logic
– Uses flip-flops elements used in the processor
Stating RAM Structure
– Microprogramming
– Library subroutines
– Function tables
ROM Cont…
• The advantage of ROM is that the data or program is
permanently in main memory and need never be loaded from a
secondary storage device.
• ROM is created like any other IC chip, with the data actually
wired into the chip as part of the fabrication process.
– 2. There is no room for error; if one bit is wrong, the whole batch of ROM must be
thrown out.
Types of ROM
• ROM
• Written during manufacture
– Very expensive for small runs; is attractive for high
volume production runs.
• Programmable (once)
– PROM
– Writing is performed electronically; may be done by
supplier or customer
– Needs special equipment to program
– For small number of ROMs
Types of ROM Cont…
• Read “mostly” 3 common forms
– Erasable Programmable (EPROM)
• Erased by UV
• Multiple update capability
– Flash memory
• Erase whole memory electrically
– Flash memory in detail
• Another semiconductor ROM
• Hard Failure
• Soft Error
– Random, non-destructive
• RAM finds data (CPU waits in conventional DRAM)(delay, the DRAM performs various
internal functions, such as activating the high capacitance of the row and column lines,
sensing the data, and routing the data out through the output buffers. The processor must
simply wait through this delay, slowing system performance.
• Since SDRAM moves data in time with system clock, CPU knows when data will be ready
• CPU does not have to wait, it can do something else
• Burst mode allows SDRAM to set up stream of data and fire it out in block – this eliminate the
address setup time
• DDR-SDRAM =Double-Data Rate Synchronous DRAM
– sends data twice per clock cycle (leading & trailing edge)
– But SDRAM can only send once per clock
RAMBUS
• Adopted by Intel for Pentium & Itanium
Chapter 6
External Memory
Types of External Memory
• Magnetic Disk
– Is foundation of external memory
– RAID (Redundant Array of Independent Disk)
– Removable
• Optical
– CD-ROM
– CD-Recordable (CD-R)
– CD-R/W
– DVD
• Magnetic Tape
Magnetic Disk
• Disk substrate coated with magnetizable material (iron oxide…rust)
• The glass substrate has a number of benefits, including the following Increases
reliability
– Improvement in the uniformity of the magnetic film surface to increase disk
reliability
Zones farther from the center contain more bits (more sectors)
• Sealed unit
• Increase speed
– Multiple data requests probably not on same disk
• Large stripes