Announcement Tomorrow’s office hr: CANCELLED! Show work!!

Slides:



Advertisements
Similar presentations
Computer Hardware 4 Main Types.
Advertisements

Computer Bits and Parts Parts of the computer system.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
1 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Midterm 2 Review INFO/CSE 100, Fall 2006.
Introduction to Computer Systems
Chapter 0 Introduction to Computing
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Chapter 9_2 Following Instructions: Principles of Computer Operation.
1. By the end of this lecture you should be able … To describe in general terms how computers function To describe the fetch-execute cycle To explain.
Elements of the Computer (How a processor works)
Chapter 9_1 Following Instructions: Principles of Computer Operation.
6. The CPU and Memory Chapt. 7.
The Computer Processor
Following Instructions: Principles of Computer Operation
Storage units. We need Storage Units to save our data.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Fluency with Information Technology Katherine Deibel, Fluency in Information Technology 1 INFO100 and CSE100 Katherine Deibel.
Fluency with Information Technology Katherine Deibel, Fluency in Information Technology 1 INFO100 and CSE100 Katherine Deibel.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
Chapter 9 Following Instructions: Principles of Computer Operation.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 9 Principles of Computer Operations. Computer pioneers.
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.
1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Remember Back To The Lightbot.
5-1 Computer Components Consider the following ad.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
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.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 15, 2004 Lecture Number: 10.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Computer Architecture2  Computers are comprised of three things  The physical computer  The operating system  The user and programs running on the.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Announcements Chapter 9 for today Chapter 11 was for Wednesday No clickers today Guest speaker on Monday Ian King from the Living Computer Museum 2/19/2016.
Hardwired Control Department of Computer Engineering, M.S.P.V.L Polytechnic College, Pavoorchatram. A Presentation On.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 5: Computer Systems Organization Invitation to Computer Science,
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Computer Architecture and Number Systems
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
What Computers Can and Cannot Do
Control Unit Operation
Learning Objectives Explain what a software stack represents and how it is used Describe how the Fetch/Execute Cycle works, listing the five steps Understand.
More Devices: Control (Making Choices)
Introduction of microprocessor
Computer Architecture
Following Instructions: Principles of Computer Operation
Introduction to Computers
Review As binary, what is /20/2018
08/28/06 parts of the computer.
Computer Basics/Algorithms
PARTS OF THE COMPUTER.
Introduction to Computers
Computer Basics/Algorithms
INFO/CSE 100, Spring 2005 Fluency in Information Technology
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Announcements Mid-Term Exam!! Quiz 5 Again + Quiz 6 Exercise 5
Chapter 5: Computer Systems Organization
Announcement Function ppt: download again
The Stored Program Computer
Announcements How to save your work? Quiz solution 5/5/2019
08/28/06 parts of the computer.
Chapter 4 The Von Neumann Model
Presentation transcript:

Announcement Tomorrow’s office hr: CANCELLED! Show work!! Email me for appointment!! PLEASE! Show work!! Quiz-7 and 8? 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Instruction Execution is … Simple, Even A Computer Can Do It Remember Back To The Lightbot Instruction Execution is … Simple, Even A Computer Can Do It Kelvin Sung University of Washington, Bothell (* Use/Modification with permission based on Larry Snyder’s CSE120) © Lawrence Snyder 2004

Recall Lightbot … Our first discussion of Lightbot noted that the instructions were formed of composite operations … Today … we see that computer’s instructions are, too 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Computers ... Deterministically execute instructions to process information “Deterministically” means that when a computer chooses the next instruction to perform it is required by its construction to execute a specific instruction based only on the program and input it is given Computers have no free will and they are not cruel 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 4

Fetch/Execute Cycle Computer = instruction execution engine The fetch/execute cycle is the process that executes instructions The computer internal parts implement this cycle Instruction Fetch (IF) Instruction Decode (ID) Data Fetch (DF) Instruction Execution (EX) Result Return (RR) 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 5

Anatomy of a Computer The Hard Disk is the a-device Memory Output ALU Control Input Mouse Keyboard Scanner Hard Disk Floppy Disk Monitor Printer Speakers The Hard Disk is the a-device 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 6

Memory ... Programs and their data must be in the memory while they are running Memory Output ALU Control Input Memory locations memory addresses 1 2 3 4 5 6 7 8 9 10 11 G o D a w g s ! ! ... memory contents byte=8 bits Groups of four bytes are a word 1 1 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 7

Control Fetch/Execute cycle is hardwired in computer’s Memory Output ALU Control Input Fetch/Execute cycle is hardwired in computer’s control; it’s the “engine” The instructions executed have the form ADDB 20, 10, 16 Put in memory location 20 the contents of memory location 10 + contents of memory location 16 6 10 11 12 13 14 15 16 17 18 19 20 ... 21 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 8

Indirect Data Reference Instructions tell where the data is, not what the data is … contents change One instruction has many effects ADDB 20, 10, 16 10 11 12 13 14 15 16 17 18 19 20 21 8 7 15 ... 10 11 12 13 14 15 16 17 18 19 20 21 60 -55 5 ... 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 9

ALU Arithmetic/Logic Unit does the actual computing Memory Output ALU Control Input Arithmetic/Logic Unit does the actual computing Each type of data has its own separate instructions ADDB : add bytes ADDBU : add bytes unsigned ADDH : add half words ADDHU : add halves unsigned ADD : add words ADDU : add words unsigned ADDS : add short decimal numbers ADDD : add long decimal numbers Most computers have only about a 100-150 instructions hard wired 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 10

Input/Output Input units bring data Memory Output ALU Control Input Input units bring data to memory from outside world; output units send data to outside world from memory Most peripheral devices are “dumb” meaning that the processor assists in their operation Disks are memory devices because they can output information and input it back again 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 11

The PC’s PC The program counter (PC) tells where the next instruction comes from Instructions are a word long, so add 4 to the PC to find the next instruction Program Counter: 2200 2198 2199 2200 2201 2201 2203 2204 2205 2206 2207 2208 688,724 ADD 800, 428, 884 AND 414,418,720 OR ... 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 12

Instruction Execution: The Setup Run Instruction: 2200: Add 800, 428, 884 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Instruction Fetch: Get Some Work 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Instruction Decode: What To Do? 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Data Fetch: What’s The Input 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Instruction Execution: Just Do It 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Result Return: Put It Away 4 Future 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE)

Clocks Run The Engine The rate a computer “spins around” the Fetch/Execute cycle is controlled by it’s clock Current clocks run 2-3 GHz In principle, the computer should do one instruction per cycle, but often it fails to Modern processors try to do more than one instruction per cycle, and often succeed Clock rate is not a good indicator of speed 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 19

Intel 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 20

Summary Fetch/execute cycle runs instructions 5 steps to interpret machine instructions Programs must be in the memory Data is moved in and out of memory Instructions, data are represented in binary 9/20/2018 Kelvin Sung (Use/modify with permission from © 2010-2012 Larry Snyder, CSE) 21