Chapter 4 Csa Summary
Chapter 4 Csa Summary
Refers to whether memory is internal and external to the computer Internal memory is often equated with main memory Processor requires its own local memory, in the form of registers Cache is another form of internal memory External memory consists of peripheral storage devices that are accessible to the processor via I/O controllers
2-CAPACITY
An obvious characteristic of memory is its capacity. Total number of bits that can be stored. For internal memory, this is typically expressed in terms of bytes (1 byte = 8 bits) or words. Common word lengths are 8, 16, and 32 bits. External memory capacity is typically expressed in terms of bytes.
3-Unit Of Transfer
-For internal memory the unit of transfer is equal to the number of electrical lines into and out of the memory module -Internal -External Usually a block which is much larger than a word Usually governed by data bus width
-Addressable unit Smallest location which can be uniquely addressed In some systems, this is the word. Relationship between length in bits A of an address and number N of addressable units is 2A = N
4- Access Method
Sequential access
Memory is organized into units of data called records
Direct access
Involves a shared read-write mechanism
Random access
Each addressable location in memory has a unique, physically wired-in addressing mechanism
Associative
A word is retrieved based on a portion of its contents rather than its address
The time to access a given location is independent of the sequence of prior accesses and is constant
Each location has its own addressing mechanism and retrieval time is constant independent of location or prior access patterns
Any location can be selected at random and directly addressed and accessed
5- Performance
6- Physical Types
-Volatile memory Information decays naturally or is lost when electrical power is switched off
-Nonvolatile memory Once recorded, information remains without deterioration until deliberately changed No electrical power is needed to retain information
-Nonerasable memory Cannot be altered, except by destroying the storage unit Semiconductor memory of this type is known as read-only memory (ROM)
7- Physical Characteristics
Volatility Erasable Power consumption
8- Organisation
Physical arrangement of bits into words Obvious arrangement not always used For example: interleaved
SRAM v DRAM
Both volatile Power needed to preserve data
Dynamic cell Simpler to build, smaller More dense Less expensive Needs refresh Larger memory units
Cache
Small amount of fast memory Intermediate buffer between normal main memory and CPU May be located on CPU chip or module
Direct mapping
Each block of main memory maps to only one cache line Address is in two parts Least Significant w bits identify unique word Most Significant s bits specify one memory block
Associative Mapping
A main memory block can load into any line of cache Memory address is interpreted as tag and word Tag uniquely identifies block of memory Every lines tag is examined for a match Cache searching gets expensive
:: Associative Mapping
Cache Replacement
When the address accessed by CPU is not in cache, access has to be made to main memory. Along with the required word, the entire block is transferred to cache But if cache is full, some existing cache memory is deleted to create space for the new entry.