1 Memory Hierarchy The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through.

Slides:



Advertisements
Similar presentations
MEMORY popo.
Advertisements

Figure (a) 8 * 8 array (b) 16 * 8 array.
Computer Organization and Architecture
M. Mateen Yaqoob The University of Lahore Spring 2014.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 1.
Chapter 12 Memory Organization
Memory Basics. 8-1 Memory definitions Memory is a collection of cells capable of storing binary information. Two types of memory: –Random-Access Memory.
Cache Memory Locality of reference: It is observed that when a program refers to memory, the access to memory for data as well as code are confined to.
University of the Sulaimani (UOS)
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Department of Information Technology,
Dr. Bernard Chen Ph.D. University of Central Arkansas
Characteristics of Computer Memory
Overview Memory definitions Random Access Memory (RAM)
Memory Organization.
Computer Organization and Architecture
Memory Key component of a computer system is its memory system to store programs and data. ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides12.ppt.
Data Storage Technology
Characteristics of Computer Memory
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
CH05 Internal Memory Computer Memory System Overview Semiconductor Main Memory Cache Memory Pentium II and PowerPC Cache Organizations Advanced DRAM Organization.
MANINDER KAUR RAM and ROM Chips 24-Nov
EKT 221 Digital Electronics II
Physical Memory By Gregory Marshall. MEMORY HIERARCHY.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Memory Systems Architecture and Hierarchical Memory Systems
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory Hierarchy.
EKT 221 : Digital 2 Memory Basics
CACHE MEMORY Cache memory, also called CPU memory, is random access memory (RAM) that a computer microprocessor can access more quickly than it can access.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Memory and Storage Dr. Rebhi S. Baraka
Computer Architecture Memory organization. Types of Memory Cache Memory Serves as a buffer for frequently accessed data Small  High Cost RAM (Main Memory)
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
MEMORY ORGANIZATION - Memory hierarchy - Main memory - Auxiliary memory - Cache memory.
Lecture#15. Cache Function The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that.
COMPURT ORGANAZTION CHAPTER 5. Computer Organization We can divide the parts that make up a computer into 3 subsystems : 1. Central processing unit (CPU).
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010
Memory Devices 1. Memory concepts 2. RAMs 3. ROMs 4. Memory expansion & address decoding applications 5. Magnetic and Optical Storage.
A memory is just like a human brain. It is used to store data and instructions. Computer memory is the storage space in computer where data is to be processed.
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Cache Memory.
Components of Computer. Memory Unit Most important part of the computer Used to store data and instructions that are currently in use Main memory consists.
Introduction to Computer System
Computer Organization
MEMORY.
Module IV Memory Organization.
The Central Processing Unit
Dr. Bernard Chen Ph.D. University of Central Arkansas
Memory chips Memory chips have two main properties that determine their application, storage capacity (size) and access time(speed). A memory chip contains.
COMPUTER ORGANISATION AND ARCHITECTURE
MICROPROCESSOR MEMORY ORGANIZATION
Module IV Memory Organization.
William Stallings Computer Organization and Architecture 7th Edition
Computer Memory BY- Dinesh Lohiya.
MICROPROCESSOR MEMORY ORGANIZATION
Chap. 12 Memory Organization
Memory Basics Chapter 8.
Cache Memory.
Memory Organization.
MICROPROCESSOR MEMORY ORGANIZATION
Memory Basics Chapter 7.
Chapter 5 Computer Organization
Cache Memory and Performance
Presentation transcript:

1 Memory Hierarchy The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through an I/O processor A special very-high-speed memory called cache is used to increase the speed of processing by making current programs and data available to the CPU at a rapid rate

2 Memory Hierarchy CPU logic is usually faster than main memory access time, with the result that processing speed is limited primarily by the speed of main memory The cache is used for storing segments of programs currently being executed in the CPU and temporary data frequently needed in the present calculations The typical access time ratio between cache and main memory is about 1to7 Auxiliary memory access time is usually 1000 times that of main memory

3 Main Memory Most of the main memory in a general purpose computer is made up of RAM integrated circuits chips, but a portion of the memory may be constructed with ROM chips RAM– Random Access memory In tegated RAM are available in two possible operating modes, Static and Dynamic ROM– Read Only memory

4 Random-Access Memory (RAM) Static RAM (SRAM) Each cell stores bit with a six-transistor circuit. Retains value indefinitely, as long as it is kept powered. Relatively insensitive to disturbances such as electrical noise. Faster and more expensive than DRAM. Dynamic RAM (DRAM) Each cell stores bit with a capacitor and transistor. Value must be refreshed every ms. Sensitive to disturbances. Slower and cheaper than SRAM.

5 ROM ROM is used for storing programs that are PERMENTLY resident in the computer and for tables of constants that do not change in value once the production of the computer is completed The ROM portion of main memory is needed for storing an initial program called bootstrap loader, witch is to start the computer software operating when power is turned off

6 Main Memory A RAM chip is better suited for communication with the CPU if it has one or more control inputs that select the chip when needed The Block diagram of a RAM chip is shown next slide, the capacity of the memory is 128 words of 8 bits (one byte) per word

7 RAM

8 ROM

9 Memory Address Map Memory Address Map is a pictorial representation of assigned address space for each chip in the system To demonstrate an example, assume that a computer system needs 512 bytes of RAM and 512 bytes of ROM The RAM have 128 byte and need seven address lines, where the ROM have 512 bytes and need 9 address lines

10 Memory Address Map

11 Memory Address Map The hexadecimal address assigns a range of hexadecimal equivalent address for each chip Line 8 and 9 represent four distinct binary combination to specify which RAM we chose When line 10 is 0, CPU selects a RAM. And when it’s 1, it selects the ROM

12

13 Cache memory If the active portions of the program and data are placed in a fast small memory, the average memory access time can be reduced, Thus reducing the total execution time of the program Such a fast small memory is referred to as cache memory The cache is the fastest component in the memory hierarchy and approaches the speed of CPU component

14 Cache memory When CPU needs to access memory, the cache is examined If the word is found in the cache, it is read from the fast memory If the word addressed by the CPU is not found in the cache, the main memory is accessed to read the word

15 Cache memory The performance of cache memory is frequently measured in terms of a quantity called hit ratio When the CPU refers to memory and finds the word in cache, it is said to produce a hit Otherwise, it is a miss Hit ratio = hit / (hit+miss)

16 Cache memory The basic characteristic of cache memory is its fast access time, Therefore, very little or no time must be wasted when searching the words in the cache The transformation of data from main memory to cache memory is referred to as a mapping process, there are three types of mapping: Associative mapping Direct mapping Set-associative mapping

17 Cache memory To help understand the mapping procedure, we have the following example:

18 Direct Mapping Associative memory is expensive compared to RAM In general case, there are 2^k words in cache memory and 2^n words in main memory (in our case, k=9, n=15) The n bit memory address is divided into two fields: k-bits for the index and n-k bits for the tag field

19 Direct Mapping

20 Direct Mapping