CH (5) Computer Organization

Slides:



Advertisements
Similar presentations
Introduction to Computers Section 4A. home Decimal Number System Called base 10 because 10 symbols are available.
Advertisements

COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
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.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
MODULE 5: Introduction to Memory system
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
5 Computer Organization
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
BLOCK DIAGRAM OF COMPUTER
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
The Components of the system unit Created By: N.AlJaffan Modified By:S.Abudawood Chapter 4.
Chapter 3 Computer Hard ware
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
 Memory Memory  Types of Memory Types of Memory  Memory Representation Memory Representation  Random Access Memory Random Access Memory  Read Only.
Computer Processing of Data
Introduction to Computing: Lecture 4
Input/OUTPUT [I/O Module structure].
Discovering Computers 2012: Chapter 4
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.
What is a computer ?  A computer is an electronic device that can accept data and instruction, process them or store them for later retrieval, and sometimes.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
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.
CIM101 : Introduction to computer Lecture 3 Memory.
Chapter 5 Computing Components Nell Dale John Lewis.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
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.
Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Primary Storage Primary storage is the storage that is directly available to the CPU. It is also known as: Main Memory Main Memory Direct Access Storage.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Computer Organization. The Five Hardware Units General purpose computers use the "Von Neumann" architecture Also referred to as "stored program" architecture.
©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).
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
Chapter 2.
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),
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH (5) Computer Organization CPIT 201.
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
Chapter 2 content Basic organization of computer What is motherboard
introduction to computer
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Memory chips Memory chips have two main properties that determine their application, storage capacity (size) and access time(speed). A memory chip contains.
Electronics Technology
Introduction to Computers
Computer Organization
Computer Organization
Introduction to Computers
Chapter 5: Computer Systems Organization
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 5 Computer Organization
Hardware Organization
Presentation transcript:

CH (5) Computer Organization CPIT 201 Introduction to Computing CH (5) Computer Organization

input/output subsystem. We can divide the parts that make up a computer into three broad categories or subsystem: the central processing unit (CPU), the main memory and the input/output subsystem. Computer hardware (subsystems)

5-1 Central Processing Unit The central processing unit (CPU) performs operations on data. In most architectures it has three parts: An arithmetic logic unit (ALU) A control unit A set of registers, fast storage locations.

The arithmetic logic unit (ALU) Performs logic, shift, and arithmetic operations on data Registers Registers are fast stand-alone storage locations that hold data temporarily. Multiple registers are needed to facilitate the operation of the CPU. Data registers Instruction register Program counter

The Control Unit The third part of any CPU is the control unit. The control unit controls the operation of each subsystem. Controlling is achieved through signals sent from the control unit to other subsystems.

5-2 Main Memory Main memory is the second major subsystem in a computer. It consists of a collection of storage locations, each with a unique identifier, called an address. Data is transferred to and from memory in groups of bits called words. A word can be a group of 8 bits, 16 bits, 32 bits or 64 bits (and growing). If the word is 8 bits, it is referred to as a byte. The term “byte” is so common in computer science that sometimes a 16-bit word is referred to as a 2-byte word, or a 32-bit word is referred to as a 4-byte word.

Main memory

Address Space To access a word in memory requires an identifier. Although programmers use a name to identify a word (or a collection of words), at the hardware level each word is identified by an address. The total number of uniquely identifiable locations in memory is called the address space. For example, a memory with 64 kilobytes and a word size of 1 byte has an address space that ranges from 0 to 65,535.

Memory addresses are defined using unsigned binary integers.

Example 5.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 225 (25 × 220). This means that we need log2 225, or 25 bits, to address each byte. Example 5.2 A computer has 128 MB of memory. Each word in this computer is eight bytes. How many bits are needed to address any single word in memory? Solution The memory address space is 128 MB, which means 227. However, each word is eight (23) bytes, which means that we have 224 words. This means that we need log2 224, or 24 bits, to address each word.

Memory Types Random access memory (RAM) Read-only memory (ROM) Two main types of memory exist: RAM and ROM. Random access memory (RAM) Static RAM (SRAM) Dynamic RAM (DRAM) Read-only memory (ROM) Programmable read-only memory (PROM). Erasable programmable read-only memory (EPROM). Electrically erasable programmable read-only memory (EEPROM).

Memory hierarchy Computer users need a lot of memory, especially memory that is very fast and inexpensive. This demand is not always possible to satisfy—very fast memory is usually not cheap. A compromise needs to be made. The solution is hierarchical levels of memory.

Cache Memory Cache memory is faster than main memory, but slower than the CPU and its registers. Cache memory, which is normally small in size, is placed between the CPU and main memory.

5-3 Input/Output Subsystem The third major subsystem in a computer is the collection of devices referred to as the input/output (I/O) subsystem. This subsystem allows a computer to communicate with the outside world and to store programs and data even when the power is off. Input/output devices can be divided into two broad categories: non-storage and storage devices.

Non-storage devices Non-storage devices allow the CPU/memory to communicate with the outside world, but they cannot store information. Keyboard and Monitor Printer

Storage devices Storage devices, although classified as I/O devices, can store large amounts of information to be retrieved at a later time. They are cheaper than main memory, and their contents are nonvolatile—that is, not erased when the power is turned off. They are sometimes referred to as auxiliary storage devices. We can categorize them as either magnetic or optical.

A magnetic disk

A magnetic tape

Creation and use of CD-ROMs

CD-ROM format

Making a CD-R

Making a CD-RW

5-4 Subsystem Interconnection The previous sections outlined the characteristics of the three subsystems (CPU, main memory, and I/O) in a stand-alone computer. In this section, we explore how these three subsystems are interconnected. The interconnection plays an important role because information needs to be exchanged between the three subsystems.

Connecting CPU and Memory The CPU and memory are normally connected by three groups of connections, each called a bus: data bus, address bus and control bus. Connecting CPU and memory using three buses

Connecting I/O devices I/O devices cannot be connected directly to the buses that connect the CPU and memory, because the nature of I/O devices is different from the nature of CPU and memory. I/O devices are electromechanical, magnetic, or optical devices, whereas the CPU and memory are electronic devices. I/O devices also operate at a much slower speed than the CPU/memory. There is a need for some sort of intermediary to handle this difference. Input/output devices are therefore attached to the buses through input/output controllers or interfaces. There is one specific controller for each input/output device.

Connecting I/O devices to the buses

SCSI controller

FireWire controller

USB controller

Addressing input/output devices The CPU usually uses the same bus to read data from or write data to main memory and I/O device. The only difference is the instruction. If the instruction refers to a word in main memory, data transfer is between main memory and the CPU. If the instruction identifies an I/O device, data transfer is between the I/O device and the CPU. There are two methods for handling the addressing of I/O devices: isolated I/O and memory-mapped I/O.

Isolated I/O addressing

Memory-mapped I/O addressing