Introduction To Memory and Key Characteristics of Memory
Introduction To Memory and Key Characteristics of Memory
Introduction To Memory and Key Characteristics of Memory
KEY CHARACTERISTICS OF
M E M O RY
• Introduction to Memory
– memory system is to provide the programmer
with a large storage capacity for programs and
data and to provide this information on demand
to the CPU in a timely fashion.
• Limiting factor:
– in determining how fast the CPU can execute
instructions is often the speed with which it can
fetch instructions and operands from memory.
• There are two types of memories that
communicate directly with the CPU:
– read/write random-access memory (RAM) and
– read-only memory (ROM)
• ROM:
– programmable logic device
– stored information is embedded in the solid-
state circuitry
– stored either during its manufacture or by
being programmed in later via electrical
impulses.
– Once the information has been stored in ROM,
it can be read but not altered.
• RAM:
– Random" refers to any piece of data can be
returned in a constant time, regardless of its
physical location and whether or not it is
related to the previous piece of data.
– RAM volatile types of memory (such as DRAM
memory modules), where the information is
lost after the power is switched off.
Memory Block Diagram
• A basic memory n Data Input Lines
system is shown here: n
• Location
– CPU • Performance
– Internal (main) – Access time
– External (secondary) – Cycle time
• Capacity – Transfer rate
– Word size • Physical type
– Number of words – Semiconductor
• Unit of Transfer – Magnetic surface
– Word – Optical
– Block • vii. Physical
• Access methods characteristics
– Sequential access – Volatile/non volatile
– Direct access – Erasable/non erasable
– Random access
– Associative access
Key Characteristics of Memory
• Location
– CPU -> in the form of CPU registers, which
are used by CPU as its local memory
– Internal (main)- main memory
– External (secondary) -> consists of peripheral
device, such as disk and tape that are
accessible to CPU via I/O controllers
CAPACITY
• Capacity
– Word size- number of bytes
– Number of words-also depends on the number of words in
memory.
– Total capacity of internal memory can be calculated as follows:
• Total memory= Number of words in memory * word length
• Number of words=2address bus width
KEY CHARACTERISTICS
OF MEMORY (CONT..)
• Unit of transfer
– Word
• For the internal memory, the unit of transfer is equal to the
number of data lines into and out of the main memory
module. This is equal to the one word length, but it may not
be. The common word lengths are 8,16,and 32 bits.
– Block
• For external memory, the data often transferred in much
longer units than a word, and these are referred to as Blocks.
ACCESS METHODS
– Random Access
• Each addressable location in the memory has unique,
physically wired- in addressing mechanism.
• The time to access a given location is independent of the
sequences of prior access and is constant.
• Thus any location can be selected at random and directly
addressed and accessed .
• The main memory systems are a random access.
– Associative access