1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Advertisements

Chapter 9 Principles of Computer Operations. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Describe.
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.
Chapter 9_3 Following Instructions: Principles of Computer Operation.
Chapter 5: Computer Systems Organization Invitation to Computer Science, C++ Version, Third Edition Added to by S. Steinfadt - Spring 2005 Additional source.
Chapter 1. Introduction This course is all about how computers work But what do we mean by a computer? –Different types: desktop, servers, embedded devices.
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.
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Chapter 9_1 Following Instructions: Principles of Computer Operation.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
3.1Introduction to CPU Central processing unit etched on silicon chip called microprocessor Contain tens of millions of tiny transistors Key components:
Unit 3: Hardware Components & Software Concepts
COMPONENTS OF THE SYSTEM UNIT
Following Instructions: Principles of Computer Operation
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.
Computer Basics An overview of computer hardware ICT Tools: Computer Basics.
Copyright Jim Martin Computers Inside and Out Dr Jim Martin
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.
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.
Introduction to Computing: Lecture 4
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.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Remember Back To The Lightbot.
General Concepts of Computer Organization Overview of Microcomputer.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Basic Vocabulary
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Succeeding with Technology Chapter 2 Hardware Designed to Meet the Need The Digital Revolution Integrated Circuits and Processing Storage Input, Output,
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 Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
CPU Lesson 2.
Computer Operations Part 2.
Chapter 9: Principle of Computer Operation
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.
Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips, adapter.
Edited by : Noor Alhareqi
Following Instructions: Principles of Computer Operation
Review As binary, what is /20/2018
Announcement Tomorrow’s office hr: CANCELLED! Show work!!
Computer Basics/Algorithms
Lecture 3 The Hardware.
Edited by : Noor Alhareqi
Edited by : Noor Alhareqi
3.1 Introduction to CPU Central processing unit etched on silicon chip called microprocessor Contain tens of millions of tiny transistors Key components:
Computer Basics/Algorithms
INFO/CSE 100, Spring 2005 Fluency in Information Technology
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Chapter 5: Computer Systems Organization
Announcement Function ppt: download again
Logical Computer System
Edited by : Noor Alhareqi
Black Boxes and Abstraction or A quick run through how computers work
Chapter 4 The Von Neumann Model
Presentation transcript:

1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004

2 Echoes of Project 1? Understandably, Martha Stewart has a few things occupying her that might keep her away from a Newsweek photo shoot. But that didn't keep the news magazine from throwing her on the cover and proclaiming she'll exit prison "thinner, wealthier and ready for prime time" along with a photo (illustration) to match.throwing her Photo editors cropped her head onto a model's slimmer body to create the visual effect, which even the New York Post knows is an ethical black hole (err, maybe they don't). A footnote does appear on page three with the credits: "Cover: Photo illustration by Michael Elins... head shot by Marc Bryan-Brown."

3 Integrated Circuits Integrated circuits (ICs) are the power source of the information revolution When computers were made of discrete parts, wires of every transistor (3), capacitor (2), resistor (2), etc. had to be hand-connected Labor intensive, expensive, error prone, unreliable, cumbersome, … even with robots! Integrated circuits solved that by 2 ideas Integration -- circuits built as a unit from like parts Photolithography -- printing process to make chips

4 Intel Pentium Processor

5 Photolithography Consider process for depositing wires Mask Photoresist Silicon Ultraviolet Light Aluminum

6 Remove Resist Etch away changed-by- light resist Etch away remaining resist The cost of the circuit is not related to complexity

7 R4400 NEC/MIPS Processor

8 Semiconductors Silicon, a semiconductor -- sometimes it conducts and sometimes it doesn’t It’s possible to control when semiconductors do and don’t conduct Ex.: Use control to test Mars AND rover Send “yes” signal on wire Make semiconductor conduct if “Mars” is found Detect presence/absence of “yes” Make semiconductor conduct if “rover” is found Compute by controlling conducting

9 Field Effect Charged objects are familiar -- use a nylon comb on a dry day A charged field can control whether a semiconductor conducts or not The charge of the control wire (gate) is key Neutral gate, channel doesn’t conduct Charged gate, channel conducts A transistor has 3 wires Channel Gate

10 MIPS R10000 Processor Notice that wires cross over other wires...

11 MOS Transistors The field effect idea is implemented in metal-oxide-semiconductor transistors Wire Gate Insulator Channel Cross section view View from above Silicon

12 Operation The two cases: the gate is neutral or the gate is charged Wire Gate Channel Notice key points of integrated circuits: Constructed as a unit of compatible parts Fabricated in layers by photolithography Wire Gate Channel Charged gate attracts electrons to channel

13 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

14 Fetch/Execute Cycle Computer = instruction execution engine The fetch/execute cycle is the process that executes instructions Instruction Fetch (IF) Instruction Decode (ID) Data Fetch (DF) Instruction Execution (EX) Result Return (RR)

15 Anatomy of a Computer MemoryOutput ALUControlInput Mouse Keyboard Scanner Hard Disk Floppy Disk Monitor Printer Speakers The Hard Disk is the  -device

16 Memory... Programs and their data must be in the memory while they are running 0 G 1 o 2 L 3 o 4 b 5 o 6 s 7 ! 8 ! byte=8 bits memory addresses Memory locations memory contents Groups of four bytes are a word

17 Control The Fetch/Execute cycle is hardwired into the computer’s control, i.e. it is the actual “engine” The instructions executed have the form ADDB 10, 16, Put in memory location 20 the contents of memory location 10 + contents of memory location 16

18 Indirect Data Reference Instructions tell where the data is, not what the data is … contents change One instruction has many effects ADDB 10, 16,

19 ALU The Arithmetic/Logic Unit does the actual computation Most computers have only about a instructions hard wired Each type of data has its own separate instructions ADDB : add bytesADDBU: add bytes unsigned ADDH: add half wordsADDHU: add halves unsigned ADD: add wordsADDU: add words unsigned ADDS: add short decimal numbers ADDD: add long decimal numbers

20 Input/Output 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

21 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 ADD 210,216,220AND 414,418,720 Program Counter: 112 OR688,724

22 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

23 Summary Semiconductors make Info Revolution  Semiconductors properties... Fields controls when semiconductor conducts On/off of conductors allows us to compute 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