Announcement Function ppt: download again

Slides:



Advertisements
Similar presentations
Computer Bits and Parts Parts of the computer system.
Advertisements

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.
Following Instructions: Principles of Computer Operation
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.
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.
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
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.
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.
CS 1428 Foundations of Computer Science I. Two Main Components  Hardware  Physical media that uses electrical current to process instructions.  Software.
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)
PARTS OF A COMPUTER 2 Hardware Computer Hardware is any of the physical parts of the computer you can touch. There are 4 categories: 1. Input Devices.
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.
Computer Architecture and Number Systems
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
Basic Computer Organization and Design
What Computers Can and Cannot Do
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.
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
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.
Announcement Tomorrow’s office hr: CANCELLED! Show work!!
Computer Basics/Algorithms
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
Computer Science I CSC 135.
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
Light Bot Solutions: an analysis
Chapter 5: Computer Systems Organization
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
Announcements How to save your work? Quiz solution 5/5/2019
A Top-Level View Of Computer Function And Interconnection
Announcements Survey feedback: summary Quiz: HW 7:
Computer Electronic device Accepts data - input
Today: to list: Syllabus change: Grade on-line
08/28/06 parts of the computer.
Chapter 4 The Von Neumann Model
Presentation transcript:

Announcement Function ppt: download again HW10: extension + extra credit Survey feedback Distribution, details in go-post Extra credit: (grading in general) How? Questions? Too much lecture, no break? Confusing lecture? Final Project: Software Design 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 from Winter 2011) © 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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) 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 ... 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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: 112 110 111 112 113 114 115 116 117 118 119 120 121 688,724 ADD 210,216,220 AND 414,418,720 OR ... 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE) 12

Instruction Execution: The Setup Run Instruction: 2200: Add 800, 428, 884 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Instruction Fetch: Get Some Work 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Instruction Decode: What To Do? 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Data Fetch: What’s The Input 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Instruction Execution: Just Do It 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Result Return: Put It Away 4 Future 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE) 19

Intel 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 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 1/1/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE) 21