What Computers Can and Cannot Do

Slides:



Advertisements
Similar presentations
Chapter 9 Principles of Computer Operations. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Describe.
Advertisements

Computer Hardware Preview the exam questions. RAM SECONDARY STORAGE CPU.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Introduction to Computer Systems
Chapter 0 Introduction to Computing
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Elements of the Computer (How a processor works)
Chapter 9_1 Following Instructions: Principles of Computer Operation.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
6. The CPU and Memory Chapt. 7.
CPU Registers PC Arith Logic Unit Bus Interface I/O Bridge System bus Memory bus Main Memory USB Controller Graphics Adapter Disk Controller I/O Bus Mouse.
Following Instructions: Principles of Computer Operation
Schedule Wrap up chapter 3 Chapter 9 Wednesday: Friday:
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Principles of Computer Operations Following Instructions lawrence snyder.
Chapter 9 Principles of Computer Operations. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Computer pioneers.
Lesson 3 — How a Computer Processes Data
Chapter 3 Computer Hard ware
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 9 Following Instructions: Principles of Computer Operation.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS1100 Dr. Zhizhang Shen Chapter 9: How does a.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
Chapter 9 Principles of Computer Operations. Computer pioneers.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Intro to Computers Computer Apps 1.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Remember Back To The Lightbot.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
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.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Input and Processing Chapter 2 - Computers- Understanding Technology.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
Systems Architecture Keywords Fetch Execute Cycle
Chapter 9: Principle of Computer Operation
Jeopardy-CH 4 System Unit INPUT OUTPUT Storage Processing Q $100
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 The Von Neumann Model
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!!
The fetch-execute cycle
CSCE Fall 2013 Prof. Jennifer L. Welch.
CSCE 121: Simple Computer Model Spring 2015
Introduction to Computers
Chapter 5: Computer Systems Organization
Announcement Function ppt: download again
Chapter 4 The Von Neumann Model
CSCE Fall 2012 Prof. Jennifer L. Welch.
Unit 1.1 System Architecture Lesson 2
Hardware Organization
Computer Concept and Practice
Basic components Instruction processing
Information Representation: Machine Instructions
Sec (2.3) Program Execution.
08/28/06 parts of the computer.
Presentation transcript:

What Computers Can and Cannot Do Computers deterministically perform instructions No creativity, intuition, etc.

The Fetch/Execute Cycle “Instruction Execution Engine” Fetch/Execute Cycle Fetch next instruction Decode Gather needed data Perform op Save result Repeat

A Five-Step Cycle Ops repeat forever

Anatomy of a Computer All computers have Memory, Control unit, Arithmetic/logic unit (ALU), Input unit, and Output unit

Principal Subsystems of a Computer

1. Memory Memory Code and data Sequence of cells to hold bytes

1. Memory Addresses Values Finite capacity 0 to 232 – 1 (32-bit CPU)

Byte-Size Memory Location Discrete locations are shown as 1B boxes

Byte-Size Memory Location Location can store 8-bits ASCII character Number (how big?) Block of four bytes is word

Random Access Memory Random access memory (RAM) Order and time of access Measured in MB or GB

2. Control Unit Control unit Circuitry handles Fetch/Execute Cycle Typical machine instruction ADD 4000, 2000, 2080

2. Control Unit ADD 4000, 2000, 2080 Sums all three #s? OP Dest, Src1, Src2

Illustration of a single instruction

3. Arithmetic/Logic Unit (ALU) ALU does math Uses logic gates (AND, OR, NOT) +, -, *, /, etc.

4. And 5. Input and Output Units Info => computer Output Info => User Useless without

The Peripherals Peripherals connect to I/O ports Not considered part of computer Encode or decode info b/w computer and physical world

The Peripherals Keyboard Monitor Encodes keystrokes Monitor Decodes memory Peripherals handle physical part of operation

Portable Memory & Hard Drives Storage peripherals can do both I/O USB memory Hard disks/drives

Hard Disk Hard disk stores programs and data Large capacity relative to RAM Slow relative to RAM Programs/data must reside in RAM for use

A Device Driver for Every Peripheral Most peripheral devices are “dumb” Need drivers Video card, monitor Printer Mouse, keyboard

The Program Counter: The PC's PC Program counter (PC) Maintains address of next instr. Instr Fetch (IF) Instr. = MEM[PC] PC = PC + 4

Branch and Jump Instructions Next instr. may not come after previous Instr. may change PC Jump Branch

Instruction Interpretation Process of executing a program is instruction interpretation Our language => computer language

The Fetch/Execute Cycle A five-step cycle: Instruction Fetch (IF) Instruction Decode (ID) Data Fetch (DF) / Operand Fetch (OF) Instruction Execution (EX) Result Return (RR) / Write Result (WR) / Store (ST)

ADD 800, 428, 884

Instruction Fetch (IF) Instr = MEM[PC] PC is 2200 Control Unit (CU) holds instr. Bits of instr are decoded PC updated

IF ADD 800, 428, 884

Instruction Decode (ID) Decoder Determines op to perform Sets up ALU Determines operand addresses Sources Destination Passes to data fetch stage

ID + ADD 800 428 884

Data Fetch (DF) Read data from memory SRC1 = MEM[SRC_ADDR1]

DF 42 12

Instruction Execution (EX) Performs op indicated by ID RES = SRC1 OP SRC2 Result held in ALU

EX 54

Write Result (WR) Writes result to memory MEM[DST_ADDR] = RES Cycle begins again

RR 54