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

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

Chapter 5: Computer Systems Organization

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

CS1004: Intro to CS in Java, Spring 2005

Level 2: The Hardware World Chapters 4 and 5 (topics of other cs courses)

Computer Architecture (part 2)

Chapter 5 12/2/2013. Objectives. Computer Systems Organization. Objectives. Objectives (continued) Introduction. INVITATION TO Computer Science 1

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

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

CMPUT101 Introduction to Computing - Summer 2002

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

CMPUT101 Introduction to Computing - Summer 2002

Computer Architecture and Assembly Language. Spring

Computer Organization

Computer Organization

5 Computer Organization

Data Manipulation. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

UNIT 2 Data Center Environment

CMPUT 101 with Solutions Quiz 2 (50 minutes) August 7, 2002

Computer Organization

Chapter One. Introduction to Computer System

Computer Architecture 2/26/01 Lecture #

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 7, 2003

5 Computer Organization

Machine Architecture. or what s in the box? Lectures 2 & 3. Prof Leslie Smith. ITNP23 - Autumn 2014 Lectures 2&3, Slide 1

Chapter 2 Data Manipulation

Chapter 5 Computing Components

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Information Science 1

Computer Organization and Assembly Language (CS-506)

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

Chapter 1 Computer System Overview

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.

CSC 553 Operating Systems

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS

CS 101, Mock Computer Architecture

Ceng 111 Fall 2015 Week 5b

User. Application program. Interfaces. Operating system. Hardware

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

Fundamentals of Programming Session 1

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

CS 140 Introduction to Computing & Computer Technology. Computing Components

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 16, 2000

Components of a personal computer

Chapter 6: An Introduction to System Software and Virtual Machines

Computers in Engineering COMP 208. Computer Structure. Computer Architecture. Computer Structure Michael A. Hawker

Computer Organization and Assembly Language

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

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

BASIC COMPUTER ORGANIZATION. Operating System Concepts 8 th Edition

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

Basic Computer Architecture

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

History. 3rd Generation- Integrated Circuits, Transistors (Integrated Circuit form) for Memory ( memory is now volatile), Terminal/Keyboard for I/O

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

x86 Architectures; Assembly Language Basics of Assembly language for the x86 and x86_64 architectures

PESIT Bangalore South Campus

Computer Systems Organization

Dec Hex Bin ORG ; ZERO. Introduction To Computing

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

Introduction to Microprocessor

Computer Organization and Programming

RISC (Reduced Instruction Set Computer)

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

COMPUTER STRUCTURE AND ORGANIZATION

Computers in Business: Concepts in Hardware and Software

Chapter 08: The Memory System. Lesson 01: Basic Concepts

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

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

Computer-System Organization (cont.)

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

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.

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

Outline. elements and behavior executing programs. developing programs use as a calculator converting strings to numbers

Chapter 1: Introduction to Computers and Programming

CC411: Introduction To Microprocessors

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

CS Part III 1 Dr. Rajesh Subramanyan, 2005

Computer Architecture

The Modern Computer. Exploring Computer Science

Instruction Register. Instruction Decoder. Control Unit (Combinational Circuit) Control Signals (These signals go to register) The bus and the ALU

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

COSC 122 Computer Fluency. Computer Organization. Dr. Ramon Lawrence University of British Columbia Okanagan

Chapter 4. Computer Organization

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

Introduction to Computer Systems and Operating Systems

Three-box Model: These three boxes need interconnecting (usually done by wiring known as a bus. 1. Processor CPU e.g. Pentium 4 2.

Computer Architecture

Computer and Hardware Architecture I. Benny Thörnberg Associate Professor in Electronics

Elementary Computing CSC M. Cheng, Computer Science 1

YEAR 11 COMPUTING TIME: 1h 45min. Marking Scheme

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

AS/A Level Computing Syllabus 2011

Unit objective. Unit Introduction UNIT - I. In this unit you will be introduced to :

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Transcription:

A Review of Chapter 5 and Chapter 6

Chapter 5 Computer Systems Organization Von Neumann Architecture 4 Components Memory Input/output ALU Control Unit Two major features Stored program concept Sequential execution of instructions

Memory Functional unit of a computer that stores and retrieves the instructions and the data being executed RAM ROM Information is prerecorded during manufacture

Memory

Memory

Memory

Cache Memory Memory access is much slower than processing Faster memory is too expensive to use for all memory cells Locality principle Once a value is used, it is likely to be used again Small size, fast memory just for values currently/recently in use to balance the speed of memory and processor

Input/Output Unit Communication with outside world and external data storage Human interfaces Monitor, keyboard, mouse, printer Mass storage systems floppy disks flash memory hard disks CDs DVDs floppy disks, flash memory, hard disks, CDs, DVDs, and streaming tapes

Two type of storage Devices Volatile storage RAM Nonvolatile storage Mass storage devices such as disks and tapes

Three types of access method for storage devices Random access Unique address for each unit Equal access time for each unit RAM Direct access Unique address for each unit access time for each unit not the same Hard disks, floppy disks, CDs, DVDs Sequential access No unique address for each unit Information stored sequentially Tapes

Access time for Direct Access Storage devices Seek time time needed to position the read/write head over the correct track Latency (After finishing seeking,) time for the beginning of the desired sector to rotate under the read/write head Transfer time time for the entire sector to pass under the read/write head and have its contents read into or written from memory

I/O controller Intermediary between central processor and I/O devices Processor sends request and data, then goes on with its work I/O controller interrupts processor when request is complete

The Arithmetic/Logic Unit Subsystem that performs mathematical and logical operations such as addition, subtraction, and comparison for equality Components Registers interconnections between components ALU circuitry

Register Storage cell that holds the operands of an arithmetic operation and holds its result Features do not have a numeric memory address but are accessed by a special register designator Can be accessed much more quickly than regular memory cells Used for specific purposes

ALU process Values for operations copied into ALU s input register locations All circuits compute results for those inputs Multiplexor selects the one desired result from all values Result value copied to desired result register

Control Unit Manages stored program execution Task Fetch from memory the next instruction to be executed Decode it: Determine what is to be done Execute it: Issue appropriate command to ALU, pp p, memory, and I/O controllers

Parts of control unit Links to other subsystems Instruction decoder circuit Two special registers Program counter (PC) Stores the memory address of the next instruction to be executed Instruction register (IR) Stores the code for the current instruction

Putting All the Pieces Together the Von Neumann Architecture Program execution phases Fth Fetch, decode, d and execute l Von Neumann cycle The repetition of the fetch/decode/execute phase

Fetch Phase

Decode Phase

Execute Phase (of ADD X)

Chapter 6 An Introduction to System Software and Virtual Machines System software Assembly language and Assembler e Operating system

System software collection of computer programs that manage the resources of a computer and facilitate access to those resources Virtual machine Set of services and resources created by the system software and seen by the user

Types of System software

Assembly language and Assembler Source program An assembly language program Object program A machine language program Assembler Translates a source program into a corresponding object program

The Translation/Loading/Execution Process

Writing assembly language program The sturcture

Translation and Loading Before a source program can be run, an assembler and a loader must be invoked Assembler Translates a symbolic assembly language program into machine language Loader Reads instructions from the object file and stores j them into memory for execution

Translation and Loading Assembler tasks Convert symbolic op codes to binary Convert symbolic addresses to binary Perform assembler services requested by the pseudo-ops ops Put translated instructions into a file for future use

Operating System Five most important responsibilities of the operating system User interface management Program scheduling and activation Control of access to system and files Efficient resource allocation Deadlock detection and error detection

Deadlock There is a set of programs, each of which is waiting for an event to occur before it may proceed, but that event can be caused only by another waiting program in the set. How to handle deadlocks? Two examples