computing components. 5-2 computer components consider the following ad page 116

37
Computing Components

Upload: cora-cooper

Post on 26-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computing Components. 5-2 Computer Components Consider the following ad Page 116

Computing Components

Page 2: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-2

Computer Components

• Consider the following ad

Page 116

Page 3: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-3

Sizes in Perspective

• Admiral Grace Murray Hopper – A coil of wire nearly 1,000 feet long

• Distance traveled by an electron along the wire in the space of a microsecond

– A short piece of wire• In the space of a nanosecond

– A bag containing grains of pepper• In the space of a picosecond

Page 4: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-4

Sizes in Perspective

Page 119

Page 5: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-5

History of Computers

Abacus invented in Babylonia in 3000BC

Adding machine by Blaise Pascal (1642)

Difference engine and the analytical engine by Charles Babbage (1842)

IBM first electromechanical computer (using relays) designed by Howard Aiken (1937) was based on punched cards. used to calculate tables of mathematical functions

Page 6: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-6

History of Computers

1st Generation Computers (1940s to early 1950s) – based on vacuum tubes technology. 1943 – ENIAC: first fully electronic computer, designed by

John Mauchly 1944 – Mark I: Howard Aiken 1946 – EDVAC: first stored program computers, designed by

John von Neumann

2nd Generation Computers (late 50s to early 60s) – based on transistors technology. more reliable, less expensive, low heat dissipation IBM 7000 series, DEC PDP-1

Page 7: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-7

History of Computers

3rd Generation Computers (late 60s to early 80s) – integrated circuits (IC). IBM 360 series, DEC PDP-8 IC – many transistors packed into single container

low prices, high packing density

4th Generation Computers (present day) LSI/VLSI small size, low-cost, large memory, ultra-fast PCs to

supercomputers

5th Generation Computers (future) massively parallel, large knowledge bases, intelligent Japan, Europe and US advanced research programs

Page 8: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-8

History of Computers

Web sites History of Computers

(http://www.comp.nus.edu.sg/~sf100/c1f7.htm) ACM Timeline of Computing History

(http://www.computer.org/computer/timeline) The Virtual Museum of Computing

(http://www.comlab.ox.ac.uk/archive/other/museums/computing.html)

IEEE Annals of the History of Computing (http://www.computer.org/annals/)

and others (surf the web)

Page 9: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-9

Application Areas

Scientific: weather forecasting, simulation, space-program. one of the earliest application areas. heavy computation but small amount of data.

Commercial: accounting, banking, inventory, sales. changes nature of business – information is money. high data throughput, simple calculations.

Manufacturing: numerical control, CAD/CAM, integration. graphics, interfacing, device-drivers, networks.

Page 10: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-10

Application Areas

Real-time & Control System: air-traffic control, aircraft,nuclear power station. real time, very fast, safety-critical.

Educational & Recreational CAI software, multi-media, games, Internet, World Wide

Web.

Telecommunication Network, SCV, Singapore One.

Page 11: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-11

Types of Computers

Supercomputers: very fast (Gflops) but expensive machine($10m), vector or

parallel processors, used in scientific applications and simulations.

Mainframes: fast (>10mips) but expensive ($1m), high-throughput, used

in large commercial organisations, support many concurrent users interactively.

Mini-computers: fast but affordable ($200k), used in medium-sized

organisations (e.g. SoC), support multiple users.

Page 12: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-12

Types of Computers

Workstations: affordable ($20k) and fast single-user systems (20 riscs

mips), good graphics capabilities, engineering, network-based computing.

Micro/Personal/Home Computers: cheap and affordable ($3k), transportable, home use, good

for games and as educational tool, word processing, suitable for small enterprise.

Page 13: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-13

Computer Configurations

Stand-alone computer system

Modem connection

Page 14: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-14

Computer Configurations

Terminals-host connections

Page 15: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-15

Computer Configurations

Network of computers

Page 16: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-16

Computers as Information Processors

Example: An automobile augments our power of locomotion.

A computer is a device capable of solving problems according to designed program. It simply augments our power of storage and speed of calculation.

Driver

Programmer

Page 17: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-17

Computers as Information Processors

Unlike previous inventions, computers are special because they are general-purpose. Could be used to perform a variety of tasks.

Computer = Hardware + Software. Hardware: physical components for computation/processing;

should be simple, fast, reliable. Software: set of instructions to perform tasks to

specifications; should be flexible, user-friendly, sophisticated.

Page 18: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-18

Computer as Information Processors

Computer are Information Processors

Data Units: 1 bit (binary digit): one of two values (0 or 1) 1 byte: 8-bits 1 word: 1, 2, or 4 bytes, or more (depends on ALU)

Computer system

Raw data

Processed information

Page 19: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-19

Basic Machine Hardware Architecture

Main Components: CPU (Central Processing Unit: controls devices and

processes data). Memory: stores programs and intermediate data. Input Devices: accept data from outside world. Output Devices: presents data to the outside world.

An analogy with Human Information Processors: CPU – brain’s reasoning powers Memory – brain’s memory Input Devices – eyes, ears, sensory sub-system Output Devices – mouth, hands, facial and body expressions

Page 20: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-20

Basic Machine Hardware Architecture

Monitor (Output)

Mouse and Keyboard (Input)

Headphone (Output)

Hardware box (has processor, memory, buses etc.)

Page 21: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-21

Basic Machine Hardware Architecture

Motherboard (Printed Circuit Board)

Processor

Slots for RAM chips

Network card and CRT card

Cage for mounting drives

Floppy disk drive and Hard disk drive

© above picture: Patterson and Hennessy

Page 22: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-22

Stored-Program Concept

Figure 5.1 The von Neumann architecture

Page 23: Computing Components. 5-2 Computer Components Consider the following ad Page 116

Memory

• Memory is a collection of cells, each with a unique physical address

Page 122

Page 24: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-24

Arithmetic/Logic Unit

• Performing basic arithmetic operations such as adding

• Performing logical operations such as AND, OR, and NOT

• Most modern ALUs have a small amount of special storage units called registers

Page 25: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-25

Input/Output Units

• An input unit is a device through which data and programs from the outside world are entered into the computer– Keyboard, the mouse, and scanning devices

• An output unit is a device through which results stored in the computer memory are made available to the outside world– Printers and video display terminals

Page 26: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-26

Control Unit

• Control unit is the organizing force in the computer

• There are two registers in the control unit– The instruction register (IR) contains the

instruction that is being executed– The program counter (PC) contains the

address of the next instruction to be executed

• ALU and the control unit called the Central Processing Unit, or CPU

Page 27: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-27

Flow of Information

• The parts are connected to one another by a collection of wires called a bus

Figure 5.2 Data flow through a von Neumann architecture

Page 28: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-28

The Fetch-Execute Cycle

• Fetch the next instruction

• Decode the instruction

• Get data if needed

• Execute the instruction

Page 29: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-29

Figure 5.3 The Fetch-Execute Cycle

Page 30: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-30

RAM and ROM

• RAM stands for Random Access Memory– Inherent in the idea of being able to access each

location is the ability to change the contents of each location

• ROM stands for Read Only Memory– The contents in locations in ROM cannot be changed

• RAM is volatile, ROM is not– This means that RAM does not retain its bit

configuration when the power is turned off, but ROM does

Page 31: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-31

Secondary Storage Devices

• Because most of main memory is volatile and limited, it is essential that there be other types of storage devices where programs and data can be stored when they are no longer being processed

• Secondary storage devices can be installed within the computer box at the factory or added later as needed

Page 32: Computing Components. 5-2 Computer Components Consider the following ad Page 116

Magnetic Tape

• The first truly mass auxiliary storage device was the magnetic tape drive

Figure 5.4 A magnetic tape

Page 33: Computing Components. 5-2 Computer Components Consider the following ad Page 116

Magnetic Disks

• A read/write head travels across a spinning magnetic disk, retrieving or recording data

Figure 5.5 The organization of a magnetic disk

Page 34: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-34

Compact Disks

• A CD drive uses a laser to read information stored optically on a plastic disk

• CD-ROM is Read-Only Memory

• DVD stands for Digital Versatile Disk

Page 35: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-35

Synchronous processing

• One approach to parallelism is to have multiple processors apply the same program to multiple data sets

Figure 5.6 Processors in a synchronous computing environment

Page 36: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-36

Pipelining

• Arranges processors in tandem, where each processor contributes one part to an overall computation

Figure 5.7 Processors in a pipeline

Page 37: Computing Components. 5-2 Computer Components Consider the following ad Page 116

5-37

Ethical Issues: Facial Recognition/Privacy

• An identity verification technique that matches the structure of a person’s face to his/her picture– Cameras scan the peaks and valleys of features

• An invasion of privacy?– Critics oppose both clandestine capture (the scanning

of faces without consent) and tracking (the use of this technology to monitor a person’s movement)