Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.

Slides:



Advertisements
Similar presentations
Storage Devices.
Advertisements

Computer Basics Whats that thingamagige?. Parts of a computer.
COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
What Is A Computer System?
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
5 Computer Organization
TEE COURSE GRADE 10 MODULE 7 - PC HARDWARE Memory and Storage Devices
CANETE, Jivan Ray GOMEZ, Edgar Jr. JITO, Louisan Veth.
Storage device.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Computer Systems I’m ONLY a machine! Standard Grade Revision.
Chapter 3 Computer Hard ware
 Memory Memory  Types of Memory Types of Memory  Memory Representation Memory Representation  Random Access Memory Random Access Memory  Read Only.
Learning Targets Identify the external parts of the computer Identify examples of input devices Identify examples of output devices Define basic computer.
Introduction to Computing: Lecture 4
HARDWARE: CPU & STORAGE How to Buy a Multimedia Computer System.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computing and the Web Computer Hardware Components.
Lecture No 11 Storage Devices
TheTeacher Computing Data Storage Computing. TheTeacher Computing Primary Storage One of the fundamental properties of a computer is that it can store.
Chidambaranathan C.M SRM University,Haryana. Memory:- As the word implies “memory” means the place where we have to store any thing, this is very essential.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Chapter 2 part 2. Computer Processing Speeds Milliseconds - thousands of a second Microseconds - millionths of a second Nanoseconds - billionths of a.
CIM101 : Introduction to computer Lecture 3 Memory.
Chapter 5 Computing Components Nell Dale John Lewis.
1 Introduction to Computers By Masseta ICT Dept. Mzumbe University.
2.1 Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
© 2011 Pearson Education, publishing as Addison-Wesley Chapter 1: Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science.
Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.
CSCI-100 Introduction to Computing Hardware Part I.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Allow computers to store programs and information for use at a later date Storage Devices.
Storage of Data Instructions and data are held in main memory which is divided into millions of addressable storage.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
COMPURT ORGANAZTION CHAPTER 5. Computer Organization We can divide the parts that make up a computer into 3 subsystems : 1. Central processing unit (CPU).
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Storage devices 1. Storage Storage device : stores data and programs permanently its retained after the power is turned off. The most common type of storage.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
CH (5) Computer Organization
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH (5) Computer Organization CPIT 201.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
MEMORY BYTES. MEMORY BYTES MEMORY MEMORY OUR Internal External.
Information Technology
Chapter 2: Computer-System Structures
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
introduction to computer
IT 0213: INTRODUCTION TO COMPTER ARCHITECTURE LECTURE 2
Introduction to Computers
Introduction to Computers
Computer Organization
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
Secondary Storage Devices
Computer Organization
Introduction to Computers
Chapter 5: Computer Systems Organization
Chapter 5 Computer Organization
Presentation transcript:

Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from memory in groups of bits called words. –The number of bits that can be stored in one CPU register in a computer.

Figure 5-3 Main memory

Address Space Although programmers use a name to identify a word, at the hardware level, each word is identified by an address. Address space - –The total number of uniquely identifiable locations in memory. –For example: a memory with 64KB and a word size of 1 byte has an address space that range from 0 to

Table 5.1 Memory units Unit Unit KB -kilobyte MB -megabyte GB -gigabyte TB -terabyte PB -petabyte EB -exabyte Exact Number of bytes Exact Number of bytes bytes 2 20 bytes 2 30 bytes 2 40 bytes 2 50 bytes 2 60 bytes Approximation Approximation bytes 10 6 bytes 10 9 bytes bytes bytes bytes

Address as Bit Pattern Because computers operate by storing numbers as bit patterns, the address itself is also represented as a bit pattern. If a computer has N words of memory, you need an unsigned integer of size log 2 N bits to refer to each memory location. Memory addresses are defined using unsigned binary integers. Note:

Example 1 A computer has 32 MB (megabytes) of memory. How many bits are needed to address any single byte in memory? Solution The memory address space is 32 MB, or 2 25 (2 5 x 2 20 ). This means you need log or 25 bits, to address each byte.

Example 2 A computer has 128 MB of memory. Each word in this computer is 8 bytes. How many bits are needed to address any single word in memory? Solution The memory address space is 128 MB, which means However, each word is 8 (2 3 ) bytes, which means that you have 2 24 words. This means you need log or 24 bits, to address each word.

Memory Types RAM (Random Access Memory) –Volatile –R/W by user –Two categories: DRAM(Dynamic RAM) –Refresh –used in most PCs SRAM(Static RAM) –No refresh –faster 、 more reliable –more expensive –often used only as a memory cache

Memory Types ROM (Read Only Memory) –Nonvolatile –Written by manufacture –Hold the booting program –Categories: ROM PROM(Programmable ROM)- Write once by user EPROM(Erasable PROM)- physical removal and reinstallation by special device EEPROM(Electronically EPROM)- without being removed from computer

Figure 5-4 Memory hierarchy SpeedSpaceCost Secondary Memory

Cache Memory Figure 5-5 Cache memory at any time contains a copy of a portion of main memory. 1.CPU checks the cache 2.If exist, copy the word, otherwise 1)access main memory and copy a block of memory starting with the desired word. 2)CPU accesses cache and copies the word.

Cache It is very probable that the CPU, in next cycle, needs to access the words following the first word. The existence of the cache speeds processing rule Most computers typically spend 80% of the time accessing only 20% of the data. Same data are accessed over and over again.

Input/Output Subsystem I/O subsystem allows a computer to –Communicate with the outside world –Store programs and data even when the power is off.

Nonstorage devices allows the CPU/memory to communicate with the outside world Keyboard – provides input Monitor –display output –Echoes the input typed on the keyboard Printer

Storage devices can store large amount of information to be retrieved at a later time. Cheaper than main memory Nonvolatile Auxiliary storage device (Secondary memory) Categories: –Magnetic –optical

Magnetic Storage devices Use magnetization to store bits of data If a spot is magnetized  1 If a spot is not magnetized  0 Magnetic Disk –Random access device Magnetic Tape –Sequential access device

Figure 5-6 Physical layout of a magnetic disk Performance depends on several factors  Rotational speed  Seek time – the time to move the R/W head to desired track  Transfer time – the time to move data from the disk to the CPU/Memory

Figure 5-7 Surface organization of a disk Each surface is divided into tracks Each track is divided into sectors Sector- the smallest storage area that can be accessed at one time. Block- can be stored in one or more sectors and retrieved together.

Figure 5-8 Mechanical configuration of a tape

Surface organization of a tape Sequential access Slower Cheaper Backup large amount of data 9 vertical spots  8 bits of information  1 bit for error detection Figure 5-9

Optical Storage devices Use light (laser) to store and retrieve data. CD-ROM(Compact disc read-only memory) –Same technology as CD CD-R (Compact disc recordable) –WORM(Write Once, Read Many) CD-RW (Compact disc rewritable) –Also called Erasable optical disc DVD(Digital Versatile Disc) –Higher capacity

Memory hierarchy Secondary Memory SpeedSpaceCost Hard disk Floppy disk (Diskette) Flash memory CD-R/CD-RW/DVD Magnetic tape

Connecting CPU and memory using three buses Data bus- # of wires depends on the size of the word. Address bus- # of wires depends on the address space of memory. Control bus- # of wires depends on the total number of control commands a computer needs. Figure 5-14

Connecting I/O devices The CPU and memory are electronic devices. The I/O devices are eletromechanical, magnetic, or optical devices. –Much slower speed –Need for an intermediary- I/O controller (or interface) Serial controller- only one wire connection to the device Parallel controller- several connections to the device

Figure 5-15 Connecting I/O devices to the buses

SCSI controller SCSI(Small Computer System Interface)  Parallel (8/16/32 bits)  Daisy chained connection  Unique ID for each device Figure 5-16

Figure 5-17 FireWire controller IEEE 1394 (iLink)  serial  High speed up to 50MB/sec (400Mbps)  Daisy-chain/Tree connection  1394b (800Mbps)

USB controller Figure 5-18 USB(Universal Serial Bus)  serial  1.0 (12 Mbps)  2.0 (480 Mbps)

Addressing I/O devices The CPU use the same bus to R/W memory and I/O devices.  The only difference is the instruction. Two methods to handle the addressing of I/O devices –Isolated I/O –Memory-Mapped I/O

Figure 5-19 Isolated I/O addressing Different instructions The I/O addresses can overlap with memory addresses without any ambiguity because the instruction itself is different.

Figure 5-20 Memory-mapped I/O addressing Same instructions The CPU treats each register in the I/O controller as a word in memory. Adv. – smaller # of instructions Disadv. – part of the address space allocated for I/O

Program Execution General–purpose computers use a set of instructions called a program to process data. Both the program and the data are stored in memory. The CPU uses repeating machine cycles to execute instructions in the program, one by one. A simplified cycle consists of: 1.Fetch 2.Decode 3.Execute

Figure 5-21 Steps of a cycle