Computer Organization

Similar documents
5 Computer Organization

Computer Organization

5 Computer Organization

Computer Organization

Technology in Action. Chapter Topics. Participation Question. Participation Question. Participation Question 8/8/11

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

TODAY AND TOMORROW. Storage CHAPTER

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

Chapter 5: Computer Systems Organization

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

What is the typical configuration of a computer sold today? 1-1

UNIT 2 Data Center Environment

OS And Hardware. Computer Hardware Review PROCESSORS. CPU Registers. CPU Registers 02/04/2013

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Memory Study Material

Computers Are Your Future

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

Computer Organization and Assembly Language (CS-506)

Computer Architecture and Assembly Language. Spring

CSC 553 Operating Systems

Chapter One. Introduction to Computer System

3rd Slide Set Operating Systems

Chapter 1 Computer System Overview

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

Components of a personal computer

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.

I/O Devices. Chapter 5 Input/Output. Memory-Mapped I/O (2) Memory-Mapped I/O (1) Interrupts Revisited. Direct Memory Access (DMA) 11/26/2013

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

Computer System Overview OPERATING SYSTEM TOP-LEVEL COMPONENTS. Simplified view: Operating Systems. Slide 1. Slide /S2. Slide 2.

Chapter 6A. Describing Storage Devices. Describing Storage Devices. Types of Storage Devices. Store data when computer is off Two processes

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

SYSTEM BUS AND MOCROPROCESSORS HISTORY

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

lesson 3 Transforming Data into Information

CMSC 1513 Lecture 1.2

Introduction to Microprocessor

Chapter 5 Computing Components

The Host Environment. Module 2.1. Copyright 2006 EMC Corporation. Do not Copy - All Rights Reserved. The Host Environment - 1

Components of a Computer System

FUNCTIONS OF COMPONENTS OF A PERSONAL COMPUTER

- Input hardware - Processing hardware - Storage hardware

Computer Architecture CS 355 Busses & I/O System

Computer Hardware 2. Type of Computers. User Point of View. The Motherboard. Inside. Content

Main Parts of Personal Computer

Computer System Architecture

Computer System Overview

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

COMPUTER SYSTEMS ORGANIZATION

Discovering Computers 2008

General Items: Reading Materials: Miscellaneous: Lecture 9 / Chapter 7 COSC1300/ITSC 1401/BCIS /19/2004 ? H ? T

Topic 4: Storage Devices

Information Science 1

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

1. True or False? For tasks like Web surfing, sufficient memory can make up for a slow processor.

The Fetch-Execute Cycle

What is Data Storage?

Q1. Describe C.P.U and its subunits with the help of diagram?

An Overview of the Computer System. Kafui A. Prebbie 24

Computers in Business: Concepts in Hardware and Software

Introduction to the Personal Computer

Quiz on Ch.4 is at the end of Ch.4 slides

Chapter 1: Introduction to Computers and Programming

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

Introduction To Computer Hardware

Question. Announcement. Computer Hardware. Definition of a Computer. Essential Parts. The Box (CPU) input/output device that processes information

Computer Organization ECE514. Chapter 5 Input/Output (9hrs)

THE MICROCOMPUTER SYSTEM CHAPTER - 2

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

Notes - Computer Hardware Basics

MEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.

CC411: Introduction To Microprocessors

Storage. How does volatility compare? What is a storage device and a storage medium? Today s standard disk is 3.5 wide

A+ Certification Guide. Chapter 12 Storage Devices

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

vinodsrivastava.wordpress.com

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

Input output and memory devices

CMPUT101 Introduction to Computing - Summer 2002

Today we will learn about:

Last class: Today: Course administration OS definition, some history. Background on Computer Architecture

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

Lecture 1 Introduction (Chapter 1 of Textbook)

About the Presentations

Eastern Mediterranean University School of Computing and Technology INPUT / OUTPUT

Computer Organization

MICROPROCESSOR MEMORY ORGANIZATION

Chapter 2. Working with Disks and Other Removable Media

INFS 214: Introduction to Computing

CSE Opera+ng System Principles

FY04: jennifer george. Course Information

Chapter 1: Why Program? Computers and Programming. Why Program?

Chapter 02: Computer Organization Functional units and components in a computer organization Part 3 Bus Structures

Chapter 4 The Components of the System Unit

Transcription:

Chapter 5 Computer Organization Figure 5-1 Computer hardware :: Review Figure 5-2 CPU :: Review CPU:: Review Registers are fast stand-alone storage locations that hold data temporarily Data Registers Instructional Registers Program Counter Control Unit Main Memory :: Review Figure 5-3 Main memory :: Review Main memory is a collection of storage locations, each with a unique identifier called the address Word a group of 8, 16,32, 64 bits Address space the total number of uniquely identifiable locations in memory 1

Memory Types :: Review Figure 5-4 Memory hierarchy :: Review RAM (random access memory): write and read, volatile; ROM (read only memory): content is written by manufacturer, it s nonvolatile; OBJECTIVES Reading Understand how each input/output device works. Understand the systems used to connect different components together. Understand the program execution and machine cycles. Ch5: 5.1, 5.2, 5.3 (skip magnetic tape, skim through the process of creation for CD-R, CD-RW), 5.4 (p 83-85), 5.5 (87-89) Continued on the next slide Input/Output 5.3 Non-storage devices: keyboard and monitor, printer Storage devices: magnetic or optical; cheaper than main memory and nonvolatile INPUT / OUTPUT 2

Magnetic Storage Devices Figure 5-6 Physical layout of a magnetic disk Magnetic storage devices use magnetization to store bits of data (magnetized 1, not magnetized - 0); Magnetic disk is one or more disks stacked on top of each other; The disks are coated with magnetic film; Information is stored and retrieved using read/write head for each surface on disk; Figure 5-7 Surface organization of a disk Optical Storage Devices Optical storage devices use light to store and retrieve data Devices that use this technology include CD-ROM, CD-Rs, CD-RWs and DVDs The CD-ROM is read using a low-power laser beam coming from the computer drive Low-power laser beam passes in front of the simulated pits and lands For a land, the beam reaches the reflective layer and is reflected For a simulated pit, the spot is opaque and not reflected Figure 5-10 Creation and use of CD-ROM Figure 5-11 CD-ROM format 3

Table 5.2 CD-ROM speeds DVD Speed ------------ 1x 2x 4x 6x 8x 12x 16x 24x 32x 40x Data Rate ------------------------ 153,600 bytes per second 307,200 bytes per second 614,400 bytes per second 921,600 bytes per second 1,228,800 bytes per second 1,843,200 bytes per second 2,457,600 bytes per second 3,688,400 bytes per second 4,915,200 bytes per second 6,144,000 bytes per second Approximation ------------ 150 KB/s 300 KB/s 600 KB/s 900 KB/s 1.2 MB/s 1.8 MB/s 2.4 MB/s 3.6 MB/s 4.8 MB/s 6 MB/s The capacity of CD-ROM is about 650-750 Mb; it s insufficient to store the data; The latest optical memory storage device is DVD (digital versatile disc); It uses the similar technology with some differences: the pits are smaller (0.4 microns), the tracks are closer to each other; the beam is red instead of infrared, DVD uses one or two recording layers, and it can be single-sided or double-sided Table 5.3 DVD capacities Feature --------------------------------- single-sided, single-layer single-sided, dual-layer double-sided, single-layer double-sided, dual-layer Capacity ------------ 4.7 GB 8.5 GB 9.4 GB 17 GB 5.4 SUBSYSTEM INTERCONNECTION Figure 5-14 Connecting CPU and memory using three buses Buses Data bus: several wires, each for 1 bit, number of wires depends upon the size of the word, e.g. if the word is 32 bits you need 32 wires; Address bus: allows access to the particular word in memory, the number of wires depends on the address space of memory (if the memory has 2 n words, the address bus needs to carry n bits at a time); Control bus: communication between CPU and memory, number or wires used in the control bus depends on the total number of control commands a computer needs (if a computer has 2 m control actions, you need m wires) 4

Connecting I/O devices I/O devices can not be connected directly to the buses; I/O devices are electromechanical, whereas the CPU and memory are electronic devices; I/O devices operate at much slower speed than CPU/memory; Thus, I/O devices are attached to the buses using input/output controllers; There is one specific controller for each input/output device A controller can be a serial or parallel device Parallel controller has several connections to the device, whereas serial has only one wire connection to the device. Figure 5-15 Connecting I/O devices to the buses Controllers Figure 5-16 SCSI controller SCSI (small computer system interface), has parallel interface, uses 8, 16 or 32 wires; FireWire has high-speed serial interface that transfers data in packets, achieving a transfer rate of up to 50 MB/sec; USB (universal serial bus) is used to connect slower devices like keyboard and mouse. It can transfer up to 1.5 MB/sec. It has 4-wire bus, two carry power to the device. Figure 5-17 FireWire controller Figure 5-18 USB controller 5

Figure 5-21 Steps of a cycle 5.5 PROGRAM EXECUTION Program Execution Fetch: control unit orders the system to copy the next instruction into the instruction register in the CPU; after copying the program counter is incremented to refer to the next instruction in memory; Decode: instruction gets decoded by the control unit, the result of this decode step is binary code for some operation that the system will perform; Execute: after the instruction is decoded, the control unit sends the task order to a component in the CPU. E.g. CPU can tell ALU to add two numbers. Figure 5-22 register before execution Figure 5-23.a Figure 5-23.b 6

Figure 5-23.c Figure 5-23.d Input/Output Operation Summary We need to transfer data from I/O devices to the CPU and memory; I/O devices are slow comparing to CPU, thus they must be synchronized somehow; There are three methods that have been created to do that: programmed I/O, interrupt-driven I/O, and direct memory access (DMA). A computer has three subsystems: the CPU, main memory, and the input/output subsystem The CPU performs operations on data and has an ALU, a control unit, and a set of registers The ALU performs arithmetic and logical operations The registers are stand-alone storage devices that hold data temporarily The control unit oversees operations in a computer Main memory is a collection of storage locations Summary Summary RAM provides the bulk of the memory in a computer The input/output subsystem is a collection of devices that allow a computer to communicate with the outside world The keyboard, monitor and printer are examples of nonstorage devices A magnetic disk is a storage device with each disk on the stack divided into tracks and sectors CD-R is an optical storage device in which the user burns the data onto the disk. The data cannot be erased. CD-RW: the data can be erased and rewritten multiple times. A DVD is a high-capacity optical storage device A data bus, an address bus and a control bus connect the CPU and memory A controller handles the I/O operations between the CPU/memory and much slower I/O devices Most popular controllers: SCSI, FireWire, USB To run an instruction in a program, the CPU first fetches the instruction, decodes it and then executes it There are three methods to synchronize the CPU with the I/O device: programmed I/O, interrupt-driven I/O and DMA 7