Components of a Computer System

Similar documents
Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Introduction to computers

An Overview of the Computer System. Kafui A. Prebbie 24

CMSC 1513 Lecture 1.2

INTRODUCTION TO COMPUTERS

CSC 121 Computers and Scientific Thinking

What is the typical configuration of a computer sold today? 1-1

Zimmer CSCI /24/18. CHAPTER 1 Overview. COMPUTER Programmable devices that can store, retrieve, and process data.

Introduction To Computers: Hardware

Introduction To Computer Hardware. Hafijur Rahman

Introduction To Computer Hardware

Computers Are Your Future

Computer Organization

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Chapter One. Introduction to Computer System

Introduction to computers

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

Information Communications Technology (CE-ICT) 6 th Class

System Unit Components Chapter2

Sahalsoftware college. Welcome To understanding Basic Computer Concept

What's in a computer?

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

card slots CPU socket Monitor Computer case houses CPU (Central Processing Unit), CPU central power supply, DVD drive, etc processing unit Keyboard

Components of a personal computer

Introduction to computers

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

Chapter Two. Hardware Basics: Inside the Box

Introduction To Computers: Hardware and Software

LECTURE SCHEDULE 2. Units of Memory, Hardware, Software and Classification of Computers

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Management Information Systems OUTLINE OBJECTIVES. Information Systems: Computer Hardware. Dr. Shankar Sundaresan

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

lesson 3 Transforming Data into Information

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Intentionally Blank 0

Chapter 2. Prepared By: Humeyra Saracoglu

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Agenda Computer Hardware Input Devices Output Devices Secondary Storage Computer Software System Software Application Software Working with Windows

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Downloaded from various sources on the NET

About the Presentations

The Programming Process Summer 2010 Margaret Reid-Miller

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

What is Data Storage?

HARDWARE AND OPERATING SYSTEMS

Computer Organization

Memory Study Material

2011 Francisco Delgadillo

Computer Hardware. Lect 3: Input / System Unit/Output & Storage

Chapter 1: Why Program? Computers and Programming. Why Program?

Defining Computers. Defining Computers. Understanding Essential Computer Concepts

Main Parts of Personal Computer

Introduction to Computers

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

Computer Organization

CC411: Introduction To Microprocessors

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Day 3. Storage Devices + Types of Memory + Measuring Memory + Computer Performance

Introduction. Arizona State University 1

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

2016 P C Basics Page 1

Hardware & Input/Output

PC Basics Introduction to PCs

The Components of the System Unit

Storage. Chapter3 ITBIS105

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

KULLEĠĠ SAN BENEDITTU Secondary School, Kirkop

Lab Determining Data Storage Capacity

Computer Organization

Chapter 4 The Components of the System Unit

Computer Fundamentals

Question. Announcement. Computer Hardware. Definition of a Computer. Essential Parts. The Box (CPU) input/output device that processes information

Quiz on Ch.4 is at the end of Ch.4 slides

COMPUTER SYSTEMS. Section 1

INFS 214: Introduction to Computing

User. Application program. Interfaces. Operating system. Hardware

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

AN INTRODUCTION TO THE COMPUTER

Homeschool Enrichment. The System Unit: Processing & Memory

Topic 4: Storage Devices

What s inside your computer? Session 3. Peter Henderson

Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall

Chapter 1 Computer and Programming. By Zerihun Alemayehu

- Input hardware - Processing hardware - Storage hardware

National 5 Computing Science Software Design & Development

Introduction to Computers. Joslyn A. Smith

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

Chapter 5: Computer Systems Organization

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Computer Architecture and Assembly Language. Spring

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

Motithang Higher Secondary School Thimphu Thromde Mid Term Examination 2016 Subject: Computer Studies Full Marks: 100

(Computer Hardware, System Unit & its parts.) Lecture # By: M.Nadeem Akhtar. Lecturer. Department of CS & IT.

PARTS OF THE COMPUTER. 2nd ESO IES CAP DE LLEVANT

Computer Organization

Terminology, Types of Computers & Computer Hardware

5 Computer Organization

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Transcription:

Hardware Outline 1. Hardware Outline 2. What is a Computer?/Components of a Computer System 3. Hardware That Computers Typically Have 4. Hardware Components 5. Central Processing Unit (CPU) 6. Central Processing Unit 7. Storage (Primary & Secondary) 8. Main Memory 9. Bits, Bytes, Words 10. How Data Travel Between Memory & CPU 11. Loading Data from Main Memory into the CPU 12. Cache: Eliminating Speedbumps for the Bus 13. Secondary Storage 14. CDROM/DVDROM/Why Are Floppies So Expensive Per MB? 15. Input & Output Devices 16. Putting Bits Together 17. Powers of 2 18. Kilo, Mega, Giga, Tera, Peta 1

What is a Computer? "... [A] programmable electronic device that can store, retrieve and process data." (N. Dale & D. Orshalick, Introduction to PASCAL and Structured Design, D.C. Heath & Co., Lexington, MA, 1983, p. 2) compact disc ZIP Hello... Components of a Computer System COMPUTER SYSTEM HARDWARE Physical devices SOFTWARE Sets of instructions DON T PANIC! This discussion may be confusing at the moment; it will make more sense after you ve written a few programs. 2

Hardware That Computers Typically Have Central Processing Unit (CPU) Primary Storage Secondary Storage Input Devices Output Devices 3

Hardware Components HARDWARE CENTRAL PROCESSING UNIT Control Unit Arithmetic/ Logic Unit Registers Note: storage costs and speeds are based on available PC systems, Jan 2003. Prices, specs courtesy of: bestbuy.com buy.com cendyne.com creativelabs.com pricewatch.com toshiba.com STORAGE Primary Cache $1600/MB 80,214 MB/sec Main Memory $0.83/MB 4,096 MB/sec Secondary Hard Disk $0.0017/MB 100 MB/sec CD RW $0.0005/MB 7.6 MB/sec Zip Disk $0.036/MB 2.4 MB/sec Floppy Disk $0.10/MB 0.03 MB/sec etc Basic I/O Keyboard Mouse Monitor Printer etc INPUT/OUTPUT Networking Modem Internet Port etc Multimedia Speakers Amplifier CD/DVD Joystick Scanner etc 4

Central Processing Unit (CPU) The Central Processing Unit (CPU), also called the processor, is the brain of the computer. It has three main parts: the Control Unit, the Arithmetic/Logic Unit and Registers. The Control Unit decides what to do next; for example: load data from main memory into the registers (see below); perform an arithmetic or logical operation (see below); store data from the registers into main memory; choose among several possible courses of action (branch). The Arithmetic/Logic Unit (ALU) performs arithmetic & logical operations. Arithmetic operations: add, subtract, multiply, divide, etc. Logical operations: compare two numbers to see which is greater, check whether a true-false statement is true, etc. Registers are memory-like locations where data reside when they re being used right now; for example, the operands being used by the current arithmetic or logical operation, or the result of the arithmetic or logical operation that was just performed. CPU Examples: Intel Pentium 4/AMD Athlon XP (Windows PC) Intel Itanium (servers) Motorola PowerPC G4 (Macintosh) Hewlett-Packard Alpha EV68 (servers) You can see a picture of the exterior and innards of a Pentium 4 at: http://www6.tomshardware.com/cpu/02q1/020107/p42200-04.html 5

Load Next Instruction Load Data from Memory Add R03 = R03 + R63 R00 R01 R02 R03 R63 Compare Central Processing Unit Control Unit Increment Instruction Pointer Execute Instruction... Arithmetic/Logic Unit Multiply R02 = R00 * R01 Bit Shift... Find Data Addresses in Memory Store Result in Memory Divide R02 = R00 / R01 Bit Invert R00 < R01? R00 << R01 R03 = ~R01 Registers... The Control Unit makes decisions about what to do next; e.g., load data from memory, perform an arithmetic/logical operation, store data to memory, etc. The Arithmetic/Logical Unit performs operations on data that are in registers. The Registers are where operands must reside in order to be used in operations, and where the results of operations go before being stored in memory. Registers are VERY expensive, because they are etched directly into the CPU. Cache is also expensive, because it s also etched into the CPU, but it isn t directly connected to the Control Unit or Arithmetic/Logic Unit. Cache operates at speeds similar to registers, but cache is MUCH bigger (about 1,000 times as big). Memory is cheap, because it isn t part of the CPU, but it s much slower than cache. 6

Storage (Primary & Secondary) Primary Storage Primary storage is where data and instructions reside when they re being used by a program that s currently running. Primary storage typically is volatile: the data disappear when the power is turned off. Primary storage typically comes in two types: Cache memory is where data reside when a currently running program is going to use them very very soon. Cache is very fast (e.g., the same speed as the CPU). Cache is very expensive (e.g., $1600 per MB). Main memory (RAM) is where data reside when a currently running program is going to use them at some point during the run (whether soon or not). Main memory is slow compared to CPU speed (e.g., about 5-20% as fast as the CPU). Main memory is much cheaper than cache (e.g., 35 cents per MB). Secondary Storage Secondary storage is the place where data and instructions reside that will be used in the future. Secondary storage is not volatile: the data remain when the power is turned off. Secondary storage is much cheaper than primary storage (e.g., a fraction of a cent to several cents per MB). Examples: hard disk, CD, DVD, Zip disk, floppy, magnetic tape Most kinds are portable: you can pop the media (e.g., floppy disk, CD) out of the drive and carry it to another computer. 7

Main Memory Memory is made up of locations (also called cells). Each location has a unique integer address that never changes. Each location has a value (also called the contents ) that the CPU can get or change. Address 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31... 71 Lowest Address Location (Cell) Value (Contents) Highest Address e.g., 268,435,455 (256 MB) 0 1 2 3 4 5 6 7 8... We can think of memory as one contiguous line of cells. RAM: Random Access Memory Memory that the CPU can read from, write to and address arbitrarily (i.e., can read or write any location at any time, not just in a sequence). We often use Main Memory, Memory & RAM interchangeably. ROM: Read Only Memory Memory that the CPU can read from but not write to, and can address arbitrarily. 8

Bits, Bytes, Words Bit (Binary digit) Tiniest possible piece of memory Made of teeny tiny transistors wired together Has 2 possible values that we can think of in several ways: Low or High: Voltage into transistor Off or On: Conceptual description of transistor state False or True: Boolean value for symbolic logic 0 or 1: Integer value Bits aren t individually addressable: the CPU can t load from or store to an individual bit of memory. Byte: a package of 8 contiguous bits (typically) On most platforms (kinds of computers), it s the smallest addressable piece of memory: typically, the CPU can load from or store to an individual byte. Possible integer values: 0..255 or -128..127 (to be explained later) Can also represent a character (e.g., letter, digit, punctuation) Word: a package of 4 or 8 contiguous bytes (typically) On a few platforms (e.g., Cray J90), the smallest possible addressable piece of memory Standard size for storing a number (integer or real) Standard size for storing an address (special kind of integer) Kilobyte (KB): approximately 1,000 bytes Megabyte (MB): approximately 1,000,000 bytes Gigabyte (GB): approximately 1,000,000,000 bytes Terabyte (TB): approximately 1,000,000,000,000 bytes Petabyte (PB): approximately 1,000,000,000,000,000 bytes 9

How Data Travel Between Memory & CPU The bus is the connection from the CPU to main memory; all data travel along it. For now, we can think of the bus as a big wire connecting them. CPU ALU Control Registers Bus Main Memory 10

Loading Data from Main Memory into the CPU I want the contents of 09140980. Zzzzz... CPU Main Memory Bus Zzzzz... CPU putt putt putt... Load 09140980 Main Memory Bus CPU Yikes! Bonk! Load Main Memory 09140980 Bus There you go! CPU 75 Main Memory Bus I ll put it in register R05. Bonk! 75 CPU Zzzzz... Main Memory Bus 11

Cache: Eliminating Speedbumps for the Bus If a 3 GHz CPU can perform 6 billion operations per sec (134 GB/s), but its 533 MHz memory bus moves data at only 4 GB/sec, then moving data between the CPU and main memory is a bottleneck. Cache is a smaller memory that runs at the same speed as the CPU. If the data are in cache, then the CPU can access them more quickly. Cache is typically about 128,000 to 2 million bytes, while main memory is typically about 64 million to 4 billion bytes. CPU (3000 MHz) Cache (3000 MHz) Bottleneck Main Memory Bus (533 MHz) Rule of thumb for the relationship between speed, price and size: fast implies expensive implies small, slow implies cheap implies big. 12

Secondary Storage Nonvolatile: data don t disappear when power is turned off Much larger, much slower and much cheaper than main memory Most are portable: can be easily removed from your computer and taken to someone else s Medium Speed* Size* Media Can Port- Popular? Drive Media (MB/sec) (GB) Type write able? Cost Cost to it? ($) ($/MB) Cache Memory 80,214 0.0005 L2 Yes No Required $1600/MB (not secondary) (for comparison only) Main Memory 4,096 2 DDR Yes No Required $0.83/MB (not secondary) RAM (for comparison only) Hard Disk 100 250 Mag Yes No Required $0.0017/MB Zip Disk 2.4 0.25 Mag Yes Yes Yes $42 $0.036 CD-RW 7.6 0.8 Optic Yes Yes Yes $56 $0.0005 DVD-RW 5.3 4.7 Optic Yes Yes Not yet $300 $0.0005 Mag Tape 15 100 Mag Yes Yes No $2250 $0.0009 Floppy 0.03 0.0014 Mag Yes Yes Very $7 $0.10 Cassette «1 «0.001 Mag Yes Yes Historical Paper Tape «1 «0.001 Paper Once Yes Historical Punch Card «1 «0.001 Paper Once Yes Historical DVDROM 21.6 17 Optic No Yes Yes $30 CDROM 7.8 0.8 Optic No Yes Very $21 * Maximum among models commonly available for PCs Note: all numbers are approximate as of Jan 2003 (bestbuy.com, buy.com, cendyne.com, creativelabs.com, dell.com, pricewatch.com, storagetek.com, toshiba.com). Media Types Magnetic: always can be read; always can be written and rewritten multiple times; contents degrade relatively rapidly over time; can be erased by magnets Optical: always can be read; some can be written only once; some can be rewritten multiple times; contents degrade more slowly than magnetic media; can t be erased by magnets Paper: forget about it! 13

CDROM/DVDROM When a CD or DVD holds data instead of music or a movie, it acts very much like Read Only Memory (ROM): it can only be read from, but not written to; it s nonvolatile; it can be addressed essentially arbitrarily (it s not actually arbitrary, but it s so fast that it might as well be). Disadvantage of CDROM/DVDROM compared to ROM: CDROM and DVDROM are much slower than ROM. CDROM is 7.8 MB/sec (peak); DVDROM is 21.6 MB/sec. ROM is 4,096 MB/sec. Advantages of CDROM/DVDROM compared to ROM: CDROM and DVDROM are much cheaper than ROM. Blank CDs and blank DVDs are $0.0005 per MB. ROM is even more expensive than RAM (which is $0.83 per MB), because it has to be made special. CDROM and DVDROM can have arbitrary amount of storage (on many CDs or DVDs); ROM is limited to a few GB. Why Are Floppies So Expensive Per MB? CD-RWs cost only $0.0005 per MB, but floppy disks cost $0.10 per MB. Why? Well, CDs have much greater capacity than floppies (800 MB vs. 1.44 MB), and the costs of manufacturing the actual physical objects are similar. So, the cost of a floppy per MB is much higher. 14

Input & Output Devices Input Devices transfer data into computer (e.g., from a user into memory); for example: Keyboard Mouse Scanner Microphone Touchpad Joystick Output Devices transfer data out of computer (e.g., from memory to a user); for example: Monitor Printer Speakers We often say I/O as a shorthand for Input/Output. 15