COMPUTER MEMORY SYSTEM Flashcards
What is a computer memory?
Computer memory refers to the electronic holding place for instructions and data where the processor can read quickly.
Describe and illustrate the memory hierarchy
- The memory is characterized on the basis of two key factors; capacity and access time.
- The lesser the access time, the faster is the speed of memory
- The computer uses a hierarchy of memory that is organized in a manner to enable the fastest speed and largest capacity of memory as shown in figure.
*See notes for pic
Describe each of the 5 parameters of memory
- Storage Capacity: It is representative of the size of the memory.
- The capacity of internal memory and main memory can be expressed in terms of number of words or bytes.
- Access Modes: A memory is comprised of various memory locations.
- The information from these memory locations can be accessed randomly, sequentially and directly.
- Access Time: The access time is the time required between the desired modes for a read or write operation till the data is made available or written at the desired location.
- Physical Characteristics: In this respect. the devices can be categorized into four main categories: electronic, magnetic, mechanical and optical.
- Permanence of Storage: Its permanence is high for future use in magnetic materials.
What are the two main categories of the memory
1.Primary Memory(Main Memory)
• The memory unit that communicates directly with the CPU is called main memory.
• The primary memory allows the computer to store data for immediate manipulation and to keep track of what is currently being processed.
• It is volatile in nature (biased to RAM), it means that when the power is turned off, the contents of the primary memory are lost forever.
• Divided into RAM and ROM
2.Secondary Memory (Auxiliary Memory/Storage
Devices)
• The secondary memory stores much larger amounts of data and information for extended periods of time.
• Data in secondary memory cannot be processed directly by the CPU, it must first be copied into primary storage i.e…, RAM.
• Secondary storage is used to store data and programs when they are not being processed.
• It is also non-volatile in nature.
• Due to this, the data remain in the secondary storage as long as it is not overwritten or deleted by the user.
• It is a permanent storage i.e., device.
Briefly describe RAM
It is also known as read/write memory, that allows CPU to read as well as write data and instructions into it.
• RAM is used for the temporary storage of input data, output data and intermediate results.
• RAM is a microchip implemented using semiconductors.
What are the two categories of RAM
i. Dynamic RAM (DRAM) It is made up of memory cells where each cell is composed of one capacitor and one transistor. DRAM must be refreshed continually to store information.
• The refresh operation occurs automatically thousands of times per second DRAM is slower, less-expensive and occupies less space on the computer’s motherboard.
ii. Static RAM (SRAM) It retains the data as long as power is provided to the memory chip.
• It needs not be ‘refreshed’ periodically. SRAM uses multiple transistors for each memory cell. It does not use capacitor.
• SRAM is often used as cache memory d
What is EDO DRAM
Extended Data Output Dynamic RAM (EDO DRAM) It is a type of RAM chip.
• It is used to improve the time to read content from memory and enhance the method of access.
Describe ROM
- It is also known as non-volatile memory or permanent storage.
- It does not lose its content when the power is switched off.
- ROM has only read capability, no write capability.
- ROM can have data and instructions written to it only one time.
- Once a ROM chip is programmed at the time of manufacturing, it cannot be reprogrammed or rewritten.
What are the categories of ROM
a. Programmable ROM (PROM) It is also non-volatile in nature. Once a PROM has been programmed, its contents can never be changed. It is a one-time programmable device. PROMs are manufactured blank and can be programmed at buffer, Final test or in system.
• These type of memories are found in video game consoles, mobile phones, implantable medical devices and high definition multimedia interfaces.
b. Erasable Programmable ROM (EPROM) It is similar to PROM, but it can be erased by exposure to strong ultraviolet light, then rewritten. So, it is also known as Ultraviolet Erasable Programmable ROM (UV EPROM).
c. Electrically Erasable Programmable ROM (EEPROM) It is similar to EPROM, but it can be erased electrically, then rewritten electrically and the burning process is reversible by exposure to electric pulses.
Describe the cache memory
(THIS IS ALSO SOMETIMES VIEWED AS A MAJOR TYPE OF MEMORY ON ITS OWN)
(Therefore having cache memory, primary/main memory and secondary memory)
• A CPU hardware cache is a smaller memory, located closer to the processor, that stores recently referenced data or instructions so that they can be quickly retrieved if needed again.
• By reducing costly reads and writes that access the slower main memory, caching has an enormous impact on the performance of a CPU.
• Cache memory is very expensive, so it is smaller in size.
• Generally. computers have cache memory of sizes 256 KB to 2 MB.
List some other memories affiliated with the main memory
• Flash Memory is a kind of semiconductor-based nonvolatile rewritable memory used in digital camera, mobile phone. Printer.
etc.
• Virtual Memory is a technique that allows the execution of processes that are not completely in main memory.
• One major advantage of this scheme is that programs can be larger than main memory.
• This technique frees programmers from the concerns of memory storage limitations.
• Buffer is a temporary physical storage used to hold data during execution of process from one place to another.
List some examples of Secondary memory devices
- Magnetic disks - Hard Disk Drive, Floppy Disk, Memory Stick
- Optical Disk – CD, DVD, Blue-ray disk
- Solid State Disks - Pen/Flash Drive
What are some of the ways in which the cache has been improved
The first caches were off-chip, or external.
• These were soon replaced by on-chip cache memories typically made from SRAM.
• To improve performance further, these on-chip caches were split into instruction and data partitions.
• Cache partitions led to the birth of multi-level cache hierarchies
• Where processor cores would have their own small, private cache (L1) that sat above a larger shared cache (L2), with some processors including a third cache level (L3) and occasionally a fourth (L4).
What is the principle of locality of reference and how does it relate to caching
- Caching works via the principle of locality of reference.
- Locality of reference refers to the tendency of a processor to access the same memory locations as it runs an application.
- Because these memory accesses are predictable, they can be exploited via caching
What are the subsets of locality
- Locality is typically divided into two subsets—temporal locality and spatial locality—and sometimes a third, known as algorithmic locality.
- Temporal locality refers to the reuse of specific data items within a short time frame
- Spatial locality refers to the tendency of data items that will be needed soon to reside in memory locations near or adjacent to items that are needed now.
- Algorithmic locality is the tendency of applications to perform operations on related data items though not in any short time period and despite the fact that the items are not near each other in memory