Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Tenth Edition. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

Similar documents
Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

The Central Processing Unit:

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Discovering Computers Living in a Digital World

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

CPU Organization and Assembly Language

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Number Representation

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Solution for Homework 2

MICROPROCESSOR AND MICROCOMPUTER BASICS

Memory Systems. Static Random Access Memory (SRAM) Cell

Chapter 2 Logic Gates and Introduction to Computer Architecture

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Programming Logic controllers

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

Chapter 4: Computer Codes

Computer Organization. and Instruction Execution. August 22

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

Introduction to Computer Architecture Concepts

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

CHAPTER 7: The CPU and Memory

The string of digits in the binary number system represents the quantity

Computer Science 281 Binary and Hexadecimal Review

Computer Systems Design and Architecture by V. Heuring and H. Jordan

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

Count the Dots Binary Numbers

Block diagram of typical laptop/desktop

Storing Measurement Data

STUDY GUIDE CHAPTER 1

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

CSCI 4717 Computer Architecture. Function. Data Storage. Data Processing. Data movement to a peripheral. Data Movement

İSTANBUL AYDIN UNIVERSITY

Understanding Digital Components

Introduction to Microprocessors

OC By Arsene Fansi T. POLIMI

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Basic Concepts of Information Technology (IT)

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Chapter 5 Instructor's Manual

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

Base Conversion written by Cathy Saxton

Data Storage 3.1. Foundations of Computer Science Cengage Learning

Instruction Set Architecture (ISA)

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Tenth Edition. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

Chapter 1: Digital Systems and Binary Numbers

Binary Numbers. Binary Octal Hexadecimal

2011, The McGraw-Hill Companies, Inc. Chapter 3

Introducción. Diseño de sistemas digitales.1

What's in a computer?

LSN 2 Computer Processors

Memory is implemented as an array of electronic switches

This lesson can be adapted to the grade level by the presenter. Decide the level of content and activities as appropriate.

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

(Refer Slide Time: 00:01:16 min)

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.

Microprocessor or Microcontroller?

Introduction to Information System Layers and Hardware. Introduction to Information System Components Chapter 1 Part 1 of 4 CA M S Mehta, FCA

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Computer Systems Structure Main Memory Organization

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Generations of the computer. processors.

Multiple Choice Questions(Computer)

Technical Support Bulletin Nr.18 Modbus Tips

Counting in base 10, 2 and 16

CPEN Digital Logic Design Binary Systems

Overview. CPU Manufacturers. Current Intel and AMD Offerings

Let s put together a Manual Processor

Microprocessor & Assembly Language

Achieving Nanosecond Latency Between Applications with IPC Shared Memory Messaging

Main Memory & Backing Store. Main memory backing storage devices

Chap-02, Hardware and Software. Hardware Model

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

1 PERSONAL COMPUTERS

Introduction to Computers and Programming

EE282 Computer Architecture and Organization Midterm Exam February 13, (Total Time = 120 minutes, Total Points = 100)

Section 1.4 Place Value Systems of Numeration in Other Bases

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)

Central Processing Unit (CPU)

NUMBER SYSTEMS. William Stallings

ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6)

The Answer to the 14 Most Frequently Asked Modbus Questions

Introduction to RISC Processor. ni logic Pvt. Ltd., Pune

HOMEWORK # 2 SOLUTIO

1 Computer hardware. Peripheral Bus device "B" Peripheral device. controller. Memory. Central Processing Unit (CPU)

=

Chapter 8 Memory Units

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Unit 4: Performance & Benchmarking. Performance Metrics. This Unit. CIS 501: Computer Architecture. Performance: Latency vs.

Transcription:

Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Tenth Edition Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

Technology in Action Technology in Focus: Under the Hood Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall

Switches Computer system Can be viewed as an enormous collection of on/off switches Are combined in different ways to perform addition, subtraction, and move data around Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 2

Switches Electrical Switches Computers only understand two states of existence Binary language consists of two numbers: 1 or 0 Electrical switches are devices that can be switched between 1 and 0 signifying On and Off Computers are built from a huge collection Lock of electrical switches Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 3

Switches Vacuum Tubes Earliest generation of computers used vacuum tubes as switches Allow or block flow of electrical current Take up a large amount of space Produce heat and burn out frequently Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 4

Switches Vacuum Tubes (cont.) Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 5

Switches Transistors Transistors are electrical switches built of layers of material called semiconductors Semiconductors can be controlled to conduct or insulate Silicon is used to make transistors Smaller and faster than vacuum tubes Produced less heat, could be switched quickly, and were less expensive Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 6

Switches Integrated Circuits Tiny regions of semiconductor material Support huge number of transistors No more than ¼ inch in size Billions of transistors can fit on an integrated circuit CPUs are microprocessor chips Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 7

Number Systems The Base-10 Number System Number system is an organized plan for representing a number Base 10 uses 10 digits (0 9) To represent a number, you break it down into groups of ones, tens, hundreds, etc. (6,000) + (900) + (50) + (4) = 6,954 10 3 10 2 10 1 10 0 1,000s place 100s place 10s place 1s place 6 * 1,000 + 9 * 100 + 5 * 10 + 4 * 1 Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 8

Number Systems The Base-2 (or Binary) Number System Base 2 or binary uses two digits (0 or 1) Describes value as sum of powers of 2: 1, 2, 4, 8, 16, 32, 64, and so on (8) + (0) + (2) + (1) = 11 2 3 2 2 2 1 2 0 8s place 4s place 2s place 1s place 1 0 1 1 Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 9

Number Systems Representing Integers Base-10 system Whole number is represented as the sum of the powers of 10 Binary system Whole number is represented as the sum of the powers of 2 Windows 8 Scientific Calculator supports conversion between decimal (base 10) and binary (base 2) Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 10

Number Systems Hexadecimal Notation Hexadecimal notation is used to avoid working with long strings of 1s and 0s Base 16 uses 16 digits (0 9 and A F) A equals 10, B equals 11, etc. Easier for computer scientists to use 43 than 1000011 Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 11

Number Systems Representing Characters: ASCII American Standard Code for Information Interchange (ASCII) represents each letter or character as 8-bit binary code Each binary digit is called a bit 8 binary digits (or bits) create one byte Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 12

Number Systems Representing Characters: Unicode ASCII can use only 256 codes Unicode uses 16 bits and can represent nearly 1,115,000 code points Currently assigns more than 96,000 unique character symbols Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 13

Number Systems Representing Characters: Unicode (cont.) First 128 characters of Unicode are identical to ASCII Unicode can represent alphabets of all modern and historic languages Will probably replace ASCII as standard Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 14

Number Systems Representing Decimal Numbers IEEE established floating-point standard Describes how numbers with fractional parts should be represented in binary Uses a 32-bit system First digit indicates whether number is positive or negative Next 8 bits store magnitude (hundreds, millions, etc.) Remaining 23 bits store value of number Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 15

Number Systems Interpretation Positive and negative integers can be stored using signed integer notation Decimal numbers are stored according to the IEEE floating-point standard Letters and symbols are stored according to the ASCII code or Unicode Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 16

How the CPU Works Machine cycle refers to a series of general steps a CPU performs Fetch Decode Execute Store Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 17

How the CPU Works The Control Unit Manages switches inside the CPU Remembers Sequence of processing stages How switches are set for each stage With each beat of system clock, control unit moves each switch to correct on/off setting and performs work of that stage Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 18

How the CPU Works The System Clock Moves CPU from one stage of the machine cycle to the next Acts as a metronome, keeping a steady beat or tick Ticks, known as the clock cycle, set the pace Pace, known as clock speed, is measured in hertz (Hz) Today s speed is measured in gigahertz (GHz), 1 billion clock ticks per second Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 19

How the CPU Works Stage 1: The Fetch Stage Data and program instructions are stored in various areas of computer system Program or data is moved to RAM from hard drive As instructions are needed, they are moved from RAM into registers Storage areas located on CPU Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 20

Stage 1: The Fetch Stage (cont.) Cache Memory - Small blocks of memory located directly on and next to CPU chip Stores recent or frequently used instructions Faster access than RAM Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 21

Stage 1: The Fetch Stage (cont.) Cache Memory (cont.) Level 1 Searched if next instruction is not in CPU register Built onto the CPU Stores commands that have just been used Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 22

Stage 1: The Fetch Stage (cont.) Cache Memory (cont.) Level 2 Searched if instruction is not in Level 1 Located on CPU or chip next to CPU Level 3 Checks only if instruction is not in Level 1 or Level 2 Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 23

How the CPU Works Stage 2: The Decode Stage CPU s control unit decodes a program s instructions into commands Instruction set The collection of commands a CPU can execute Written in assembly language Assembly language is translated into binary code Machine Language long strings of binary code Copyright 20143 Pearson Education, Inc. Publishing as Prentice Hall 24

How the CPU Works Stage 3: The Execute Stage Arithmetic logic unit (ALU) Mathematical operations Addition Subtraction Multiplication Division Test comparisons of values (<, >, =) Logical OR, AND, and NOT operations Word size is number of bits worked with at a time Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 25

How the CPU Works Stage 4: The Store Stage Results produced by the ALU are stored in the registers Instruction explains which register to use When entire instruction is completed, the next instruction will be fetched The fetch-decode-execute-store cycle begins again Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 26

Making CPUs Even Faster Building a faster CPU is not easy Must consider time it will take to design, manufacture, and test the processor To create a CPU for release in 36 months, it must perform at least twice as fast as what is currently available Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 27

Making CPUs Even Faster (cont.) Manufacturers can increase CPU performance in several ways Pipelining Specialized, faster instructions Multiple independent processing paths inside the CPU Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 28

Making CPUs Even Faster Pipelining CPU works on more than one stage or instruction at a time Boosts CPU performance Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 29

Making CPUs Even Faster Specialized Multimedia Instructions New processors incorporate multimedia instructions into the basic instruction set Multimedia-specific instructions work to accelerate video and audio processing New instructions work to allow the CPU to deliver faster data protection Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 30

Making CPUs Even Faster Multiple Processing Efforts Many high-end server systems use a large number of processors Multicore processing Quad-core processors have four separate parallel processing paths Six- and eight-core processors are available Parallel processing uses multiple computers to work on portion of same problem simultaneously Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall 31

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright 2014 Pearson Education, Inc. Publishing as Prentice Hall