Chapter 4. Computer Organization

Similar documents
Computer Organization

Computer Organization

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

Chapter 5: Computer Systems Organization

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

Computer Architecture and Organization (CS-507)

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 3, 2015

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

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

Computer Architecture Review CS 595

Introduction to CPU architecture using the M6800 microprocessor

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

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

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

Computer Architecture (part 2)

Chapter 4 The Von Neumann Model

AS/A Level Computing Syllabus 2011

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

Running Applications

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

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Chapter 4 The Von Neumann Model

The Stored Program Computer

Top-Level View of Computer Organization

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

Control unit. Input/output devices provide a means for us to make use of a computer system. Computer System. Computer.

Chapter 4 The Von Neumann Model

Computer Architecture 2/26/01 Lecture #

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

CMPUT101 Introduction to Computing - Summer 2002

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

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

Information Science 1

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

CPU Structure and Function

Introduction to Computer Engineering. CS/ECE 252 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin Madison

UNIT- 5. Chapter 12 Processor Structure and Function

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

CPU Structure and Function

What Operating Systems Do An operating system is a program hardware that manages the computer provides a basis for application programs acts as an int

Department of Computer Science and Engineering CS6303-COMPUTER ARCHITECTURE UNIT-I OVERVIEW AND INSTRUCTIONS PART A

Teaching London Computing

Part I Overview Chapter 1: Introduction

Computer Architecture and Assembly Language. Spring


Computer Architecture

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

Computer Organization

Computer System Overview

Basic Computer Architecture

William Stallings Computer Organization and Architecture. Chapter 11 CPU Structure and Function

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

1. Fundamental Concepts

General purpose registers These are memory units within the CPU designed to hold temporary data.

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

Digital System Design Using Verilog. - Processing Unit Design

There are four registers involved in the fetch cycle: MAR, MBR, PC, and IR.

QUESTION BANK UNIT-I. 4. With a neat diagram explain Von Neumann computer architecture

COSC121: Computer Systems: Review

Chapter 05: Basic Processing Units Control Unit Design. Lesson 15: Microinstructions

Micro-Operations. execution of a sequence of steps, i.e., cycles

ADVANCED COMPUTER ARCHITECTURE TWO MARKS WITH ANSWERS

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

CSCI-375 Operating Systems

CS 333 Introduction to Operating Systems. Class 1 - Introduction to OS-related Hardware and Software

William Stallings Computer Organization and Architecture

CMPUT101 Introduction to Computing - Summer 2002

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

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

Chapter 02: Computer Organization. Lesson 02: Functional units and components in a computer organization- Part 1: Processor

The Institution of Engineers - Sri Lanka

Systems Architecture

Where Does The Cpu Store The Address Of The

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

Controller Implementation--Part II

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

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

1/16/17. Computer Programs and Processes. PHYSICAL: damage from either tampering, misuse, theft of equipment, or any combination of these

Module 5 - CPU Design

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

LC-3 Architecture. (Ch4 ish material)

Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

William Stallings Computer Organization and Architecture 10 th Edition Pearson Education, Inc., Hoboken, NJ. All rights reserved.

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (3 rd Week)

Chapter 3 - Top Level View of Computer Function

EE 3170 Microcontroller Applications

CS 101, Mock Computer Architecture

Input / Output. School of Computer Science G51CSA

Computer Systems Organization

Blog -

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

Computer Organization

FACTFILE: GCE DIGITAL TECHNOLOGY

CS 333 Introduction to Operating Systems. Class 1 - Introduction to OS-related Hardware and Software

Year 12 Computer Science Learning Cycle 2 Overview

Chapter 2 Data Manipulation

IB Computer Science Topic.2-

Organisasi Sistem Komputer

UNIT:2 BASIC COMPUTER ORGANIZATION AND DESIGN

Transcription:

Chapter 4 Computer Organization

Von Neumann Concept Stored program concept General purpose computational device driven by internally stored program Data and instructions look same i.e. binary Operation being executed determined by HOW we look at the sequence of bits Fetch Decode Execute View bits as instruction Data might be fetched as a result of execution CS 3204 - Arthur 2

Von Neumann Architecture CPU ALU Control Unit I/O Buses Memory Unit Devices CS 3204 - Arthur 3

Von Neumann Machine Architecture CPU = ALU + Cntrl Unit ALU + Instruction set + Arithmetic & Logic - Functional Unit -Registers + Intermediate storage Cntrl Unit -fetch -decode -execute ALU Buses Address Bus / Data Bus wires over which Instr / data is transferred from memory to ALU Von Neumann Bottleneck CS 3204 - Arthur 4

CPU: ALU Component Assumes instruction format: OP code, LHO, RHO Instruction / data fetched & placed in register Instruction / data retrieved by functional unit & executed Results placed back in registers Control Unit sequences the operations CS 3204 - Arthur 5

CPU: Control Unit Component PC => Program Counter IR => Instruction Register Von Neumann Execution Cycle Fetch Unit Get instruction at location pointed to by PC and place in IR Decode Unit Determine which instruction & signal hardware that implements it Execute Unit Hardware for instruction execution (could cause more data fetches) CS 3204 - Arthur 6

Fetch Execute cycle Decode(IR) Fetch CS 3204 - Arthur 7

OS boot-up How does the system boot up? Bootstrap loader OS Application CS 3204 - Arthur 8

A Bootstrap Loader The power-up sequence load PC, FIXED_LOC Address of BS Loader Where FIXED_LOC addresses the bootstrap loader (in ROM). The bootstrap loader has the form: load R1, =0 loop: load R2, = LENGTH_OF_TARGET read R1, FIXED_DISK_ADDRESS store R1, [FIXED_DEST, R1] incr R1 bleq R1, R2, loop br FIXED_DEST Reads OS in Branches to OS Fetch Decode Execute CS 3204 - Arthur 9

Memory Unit Memory Unit CS 3204 - Arthur 10

Memory Unit Memory Unit contains Memory Instructions & Data MAR (Memory Address Register) MDR (Memory Data register) CMD (Command Register) Get instruction at location pointed to by PC and place in IR CS 3204 - Arthur 11

Memory Access Read from Memory MAR MemAddr CMD Read OP (from IR) Execute MDR Mem[ MAR ] Write to Memory MAR MemAddr CMD Write OP (from IR) Execute Mem[ MAR ] MDR CS 3204 - Arthur 12

Device & Device Controller Device & Device Controller In OS Device Driver Device Controller Device Interfaces CS 3204 - Arthur 13

Device Controller-Software Relationship Bus Device driver PCI SCSI Standard Interface CS 3204 - Arthur 14

Device Controller Interface Driver interrogated these to check status of device Driver places command if status Done Interface to driver CS 3204 - Arthur 15

Device Controller Device controller is a processor and allows 2 parts of the process to proceed concurrently Program Controller write Prints info CS 3204 - Arthur 16

Device Driver Interface OS could provide higher level operations to application than the one Driver presents to it Interface presented by Driver to Application program thru OS Controller/Driver Interface Controller/Device Interface Terminal Printer Disk CS 3204 - Arthur 17

How do interrupts factor in? Scenario (1) Program: while device_flag busy {} => Busy wait - consumes CPU cycles Scenario (2) Program: while (Flag!= write) { sleep( X ) } =>If write available while program sleeping - inefficient CS 3204 - Arthur 18

How do interrupts factor in? Scenario (3) Program: issues write Driver: Suspend program until write is completed, then program is unsuspended This is Interrupt-driven CS 3204 - Arthur 19

Interrupts Driven Service Request Process is suspended only if driver/controller/device cannot service request If a process is suspended, then, when the suspended process service request can be honored Device interrupts CPU OS takes over OS examines interrupts OS un-suspends the process Interrupts Eliminate busy wait Minimizes idle time CS 3204 - Arthur 20

Interrupts Interrupt Handler in OS: disables interrupts : : Interrupt processed : : enables interrupts What if multiple devices (or 2 nd device) sends interrupt while the OS is handling prior interrupt? If priority of 2nd interrupt higher than 1st then 1st interrupt suspended 2 nd interrupt handled Resumption of handling 1st interrupt CS 3204 - Arthur 21