Connecting with Computer Science, 2e Chapter 3 Computer Architecture.

Slides:



Advertisements
Similar presentations
Microcomputer Circuits Prof Jess UEAB 2007 Designing a Microprocessor Chapter 1.
Advertisements

The Central Processing Unit: What Goes on Inside the Computer.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
INTRODUCTION OF COMPUTER
CENTRAL PROCESSING UNIT
Connecting with Computer Science 2 Objectives Learn why you need to understand how computers work Learn what a CPU is, and what it is made of Learn how.
What Is A Computer System?
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 4 Gates and Circuits.
Computer Hardware Processing and Internal Memory.
Chapter 4 The Components of the System Unit
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
S3 Computer Literacy Computer Hardware. Overview of Computer Hardware Motherboard CPU RAM Harddisk CD-ROM Floppy Disk Display Card Sound Card LAN Card.
COMPONENTS OF THE SYSTEM UNIT
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
Connecting with Computer Science, 2e Chapter 3 Computer Architecture.
Lesson 3 — How a Computer Processes Data
Chapter 3 Computer Hard ware
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
Invitation to Computer Science 5th Edition
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
How a Computer Processes Data Computer Fundamentals.
Lesson 2 — How Does A Computer Process Data?
Objectives Overview Describe the various computer and mobile device cases and the contents they protect Describe multi-core processors, the components.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Memory and Storage Dr. Rebhi S. Baraka
Chapter 5 Computing Components Nell Dale John Lewis.
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.
General Concepts of Computer Organization Overview of Microcomputer.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
CSCI-100 Introduction to Computing Hardware Part I.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Electronic Analog Computer Dr. Amin Danial Asham by.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Kaaba Technosolutions Pvt Ltd1 Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components.
Computer Hardware – System Unit
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
Chapter 2.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
CPU Lesson 2.
Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips, adapter.
Computer Hardware – System Unit
Objectives Learn why you need to understand how computers work
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Edited by : Noor Alhareqi
Computer Organization
Edited by : Noor Alhareqi
Chapter 5: Computer Systems Organization
Five Key Computer Components
Chapter 5 Computer Organization
Digital Circuits and Logic
Presentation transcript:

Connecting with Computer Science, 2e Chapter 3 Computer Architecture

Connecting with Computer Science, 2e2 Objectives In this chapter you will: –Learn why you need to understand how computers work –Learn what a CPU is and what it’s made of –Learn how digital logic circuits are constructed –Learn the basic Boolean operators –Understand how basic logic gates operate and are used to build complex computer circuits –Learn the importance of Von Neumann architecture –Understand how a computer uses memory

Connecting with Computer Science, 2e3 Objectives (cont’d.) In this chapter you will (cont’d.): –Learn what a system bus is and what its purpose is –Understand the difference between memory and storage –Be able to describe basic input/output devices –Understand how a computer uses interrupts and polling

Connecting with Computer Science, 2e4 Why You Need to Know About…Computer Architecture Computer –Hardware designed to run software –Purpose is to accomplish desired tasks –Professionals need to understand logical connection between hardware and software Computer architecture –Organization of hardware components into a computer system

Connecting with Computer Science, 2e5 Inside the Box Computer system external view –Monitor –Keyboard and mouse –Computer case CPU (central processing unit) –Resides in case on main board, or motherboard –Computational center served by all other parts –Touch point for the study of computer architecture

Connecting with Computer Science, 2e6 Figure 3-2, Main board with labeled components Inside the Box (cont’d.) Courtesy of Intel Corporation

Connecting with Computer Science, 2e7 Table 3-1, Main board components Inside the Box (cont’d.)

Connecting with Computer Science, 2e8 The CPU CPU is the computer –Contains digital components that do processing Transistor –Fundamental component Electronic switch accommodates binary values Millions of transistors per chip Organized into a higher level called a circuit –Four basic functions Adding, decoding, shifting, and storing

Connecting with Computer Science, 2e9 The CPU (cont’d.) Four corresponding transistor circuits –Adder: adds, subtracts, multiplies, divides –Decoder: reacts to specific bit patterns –Shifter: moves bits to right or left –Flip-flop (latch): used to store memory bits

Connecting with Computer Science, 2e10 How Transistors Work Material composition –Silicon or germanium Logically organized into three parts –Emitter, collector, and base Transistor as electronic switch –Base used to turn current on and off Capacity to control current translates into capacity to manipulate binary values of 1 and 0 Size considerations –Typical transistor 130 nanometers wide (Pentium IV)

Connecting with Computer Science, 2e11 Figure 3-3, Transistors are used to build basic logic circuits, such as this circuit that reverses (NOTs) the input signal How Transistors Work (cont’d.)

Connecting with Computer Science, 2e12 Digital Logic Circuits Logic circuit –Next level of organization above transistor –Leverages switching function of transistor –Performs operations of Boolean algebra Boolean algebra –Functions relating binary input and output –Chief operators: AND, OR, NOT –Boolean variables: true (1) or false (0) –Boolean expressions Use Boolean operators and variables

Connecting with Computer Science, 2e13 Digital Logic Circuits (cont’d.) Truth tables –Convenient tabular representations of Boolean expressions –Column(s) represent inputs and output(s) –Rows correspond to each possible combination of inputs 2 n rows needed for n inputs (n is a positive integer) Example: two inputs require 2 2 = 4 rows

Connecting with Computer Science, 2e14 The Basic Boolean Operators AND operator –Takes two values as input (x and y) and generates one output (z) –Both inputs must be true (1) for output to be true (1) –Any other combination yields output of false (0) –Equivalent Boolean expression: xy = z

Connecting with Computer Science, 2e15 Figure 3-4, Truth table for the AND operator The Basic Boolean Operators (cont’d.) Copy editor: OK to use “The Basic Boolean Operators” though this appears before actual head? Copy editor: OK to use “The Basic Boolean Operators” though this appears before actual head?

Connecting with Computer Science, 2e16 The Basic Boolean Operators (cont’d.) OR operator –Takes two values as input (x and y) and generates one output (z) –Either input valued true (1) will cause output to be valued true (1) –When both inputs valued false (0), output will be valued false (0) –Equivalent Boolean expression: x + y = z

Connecting with Computer Science, 2e17 Figure 3-5, Truth table for the OR operator The Basic Boolean Operators (cont’d.)

Connecting with Computer Science, 2e18 The Basic Boolean Operators (cont’d.) NOT operator –Takes one value as input (x) and generates one output (z) –Reverses value of input When x = 1, z = 0 When x = 0, z = 1 –Equivalent Boolean expression: x = z or x = z

Connecting with Computer Science, 2e19 Figure 3-6, Truth table for the NOT operator The Basic Boolean Operators (cont’d.)

Digital Building Blocks Circuit hierarchy –Gates: transistor circuits that implement Boolean operators Can be grouped into more complex circuits carrying out computer tasks Reliability –Binary values are maintained with consistent voltage levels –Gate output is completely determined by input Six fundamental gates –AND, OR, NOT, NAND, NOR, XOR Connecting with Computer Science, 2e20

Digital Building Blocks (cont’d.) AND gate –Allows for two inputs and has one output –Truth table identical to that of AND Boolean operator OR gate –Allows for two inputs and has one output –Truth table identical to that of Boolean OR operator NOT gate –Allows for one input and one output –Truth table identical to Boolean NOT operator Connecting with Computer Science, 2e21

Connecting with Computer Science, 2e22 Digital Building Blocks (cont’d.) NAND gate –Reverses output of AND gate with NOT gate –Truth table output opposite that of AND gate NOR gate –Reverses output of OR gate with NOT gate –Truth table output opposite that of OR gate XOR gate –Truth table indicates output is 1 only when the inputs are different

Gate Behavior Predictability of gates –Output for given input derived from truth table Gates can be chained together to form more complex specialized circuits –Output of one gate is connected as input to another Example: 3-input AND gate from two 2-input AND gates Connecting with Computer Science, 2e23

Connecting with Computer Science, 2e24 Figure 3-13, Constructing a 3-input AND gate from two 2-input AND gates Gate Behavior (cont’d.)

Connecting with Computer Science, 2e25 Complex Circuits Four fundamental circuits of CPU –Adder, decoder, shifter, and flip-flop Adder –Adds two binary numbers –Inputs: two bits (x, y) to add and one carry-in (ci) –Outputs: sum bit(s) and one carry-out bit (co)

Connecting with Computer Science, 2e26 Figure 3-14, Truth table for adding 2 bits with carry-in and carry-out Complex Circuits (cont’d.)

Connecting with Computer Science, 2e27 Figure 3-15, Adder circuit Complex Circuits (cont’d.)

Connecting with Computer Science, 2e28 Complex Circuits (cont’d.) Decoder –Addresses memory and selects I/O devices –Given input pattern, output line is selected –Illustrate decoder with two inputs Has four possible outputs Truth table incorporates four basic truth tables

Connecting with Computer Science, 2e29 Figure 3-16, Decoder circuit with two input lines controlling four output lines Complex Circuits (cont’d.)

Connecting with Computer Science, 2e30 Complex Circuits (cont’d.) Flip-flop –Special form of latch circuit –Holds value at output even if input changes –Inputs: S (set) and R (reset) –Outputs: Q and Q –Ideal for bit storage Used for high-speed memory in CPU Static RAM (SRAM)

Connecting with Computer Science, 2e31 Figure 3-17, A basic SR (set and reset) flip-flop circuit implemented with NOR gates Complex Circuits (cont’d.)

Connecting with Computer Science, 2e32 Complex Circuits (cont’d.) Shifter –Supports math operations, such as multiplication and division –Function: shifts input bits to the left or right Figure 3-18, Inputs and outputs of a shifter circuit (1-bit right shift)

Connecting with Computer Science, 2e33 Complex Circuits (cont’d.) Other circuits: –Multiplexer –Parity generator –Counter Three-part-design process: –Construct truth table relating inputs and outputs –Build Boolean expression equivalent to truth table –Represent Boolean expression in a circuit diagram

Connecting with Computer Science, 2e34 Complex Circuits (cont’d.) Integrated circuits (ICs) –Whole logic circuits etched onto a single piece of semiconductor material –VLSI (Very Large-Scale Integration) chip Contains millions of transistors making up CPU circuits Can be etched onto a single piece of silicon not much bigger than a pencil eraser

Von Neumann Architecture Multipurpose machine with the following characteristics: –Binary instructions are processed sequentially by fetching an instruction and then executing –Instructions and data are stored in main memory system –Instruction execution carried out by CPU Control unit (CU) Arithmetic logic unit (ALU) Registers (small storage areas) –CPU has the capability to accept input from and provide output to external devices Connecting with Computer Science, 2e35

Connecting with Computer Science, 2e36 Figure 3-19, Von Neumann architecture Von Neumann Architecture (cont’d.)

Connecting with Computer Science, 2e37 Von Neumann Architecture (cont’d.) Breakdown of typical fetch-decode-execute cycle: –Control unit uses the address in program counter register to fetch an instruction from main memory –Instruction decoded –Any needed data is retrieved from memory and placed into other registers –ALU executes the instruction using data in registers, if necessary –Input or output operations required by the instruction are performed

Connecting with Computer Science, 2e38 Von Neumann Architecture (cont’d.) Crystal (system) clock synchronizes steps in instruction sequence –Computers measured by clock speed Example: Pentium IV speed = 3 GHz, processes 3 billion instruction cycles per second Trends in clock speed –Rising for 60 years

Connecting with Computer Science, 2e39 Buses Set of wires and rules facilitating data transfer –Components connected via system bus Bus wires divided into three separate signal groups –Control –Address –Data Modern bus standard –Peripheral Component Interconnect (PCI)

Connecting with Computer Science, 2e40 Peripheral Buses SCSI (Small Computer System Interface) –Connects different types of I/O devices to computer –Allows CPU to pass control to other devices (bus mastering)

Connecting with Computer Science, 2e41 Storage Family of components used to store programs and data Storage hierarchy –Primary memory –Secondary memory (mass storage)

Connecting with Computer Science, 2e42 Memory Two basic types: –ROM (read-only memory) Memory etched into chip Generally cannot be modified BIOS (basic input/output system) –RAM (random access memory) Allows direct memory reference Allows reading and writing Volatile CPU fetches program instructions from RAM

Connecting with Computer Science, 2e43 Memory (cont’d.) Types of RAM –DRAM (dynamic RAM) Made of circuits using one transistor per bit Needs to be constantly refreshed to maintain data –SRAM (static RAM) Made of flip-flop circuits Fastest memory type Used chiefly in registers and cache memory

Connecting with Computer Science, 2e44 Mass Storage Characteristics –Greater storage capacity than RAM or ROM –Uses devices such as hard drives or DVDs –Cheaper storage per megabyte –Available after power is turned off

Connecting with Computer Science, 2e45 Mass Storage (cont’d.) Hard drives –Most common form of mass storage –Magnetic metal platters store information Coating consists of magnetic particles Made of tracks, divided into sectors Platters spin at about 7200 RPM Read/write head moves horizontally across disk’s surface –Low cost-unit storage ratio relative to RAM –RAID (redundant array of independent disks)

Connecting with Computer Science, 2e46 Figure 3-20, Hard drive platters and read/write heads Mass Storage (cont’d.)

Connecting with Computer Science, 2e47 Mass Storage (cont’d.) Optical storage –CDs (compact discs) and DVDs (digital video discs) –Store data using optical (laser) technologies Pits burned into discs interpreted as binary data Data written to discs in continuous spiral Like hard disks, optical discs spin Read/write heads interface with disc surface

Connecting with Computer Science, 2e48 Mass Storage (cont’d.) Flash (thumb) drives –Portable storage that plugs into USB (universal serial bus) port –Replacing floppy drives –Use flash memory –Nonvolatile

Connecting with Computer Science, 2e49 Input/Output Systems Final component of Von Neumann architecture I/O devices –CPU fetches instructions and data from memory, and then executes the instructions –Computer’s connection to user

Connecting with Computer Science, 2e50 Input Devices Keyboard –Primary input device for most users –Connects to CPU through keyboard controller circuit and system bus –Keystrokes are translated into binary signals Mouse –Used in conjunction with keyboard –Senses movement and translates it into binary code Other devices exist

Connecting with Computer Science, 2e51 Output Devices Communication to outside world Monitors –Primary output device –CRTs (cathode ray tubes) Uses faster scanning techniques Quality based on resolution and refresh rate –LCD (liquid crystal display) Thinner and cooler than CRTs Uses transistors rather than electron beams Quality based on resolution and refresh rate

Connecting with Computer Science, 2e52 Output Devices (cont’d.) Printers –Important output device –Primary varieties: inkjet and laser printers –Quality measured by resolution (dots per inch) and speed (pages per minute) Sound cards –Fit into PCI expansion slot on main board –Used to digitize sound for storage –Also converts binary sound files into analog sounds

Connecting with Computer Science, 2e53 Interrupts and Polling CPU execution cycle equals processor’s clock speed Processing need determined by: –Polling: CPU interrogates I/O device –Interrupt handling: I/O device initiates request for service

Connecting with Computer Science, 2e54 Choosing the Best Computer Hardware No one size fits all –Circumstances drive selection process Factors –Machine objectives –Clock speed –Memory type –Bus speed –Hard drive speed

Connecting with Computer Science, 2e55 One Last Thought Stay current on new technologies –See where they fit into your existing understanding of computers To improve your skills, get a better understanding of how: –A computer works –The parts of a computer system interact

Summary CPU is the “real” computer Von Neumann architecture –Design template for modern machines Von Neumann machine components –Central processing unit –Memory (hierarchical organization) –Input/output devices System components are connected via buses Instruction cycle –Fetch-decode-execute Connecting with Computer Science, 2e56

Connecting with Computer Science, 2e57 Summary (cont’d.) Instructions are processed at clock speed Basic circuits –Adder, decoder, flip-flop, shifter Integrated circuits –Unite transistors and other components Logical circuit scheme is based on Boolean algebra Fundamental circuits (or gates) –AND, OR, NOT, NAND, NOR, XOR –Circuits are equivalently represented by truth tables and Boolean expressions