60
Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Embed Size (px)

Citation preview

Page 1: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer ArchitectureSemester: III Credits: 6 (2+1)

Lecture 1

Page 2: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

All assignments are INDIVIDUAL! All assignments are INDIVIDUAL!

SEE University values academic integrity. Therefore all students must understand the meaning and consequences of cheating, plagiarism and other academic offences under the Code of Student Conduct and Disciplinary Procedures. 

Page 3: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Background Reading – Basic Texts

• 1. William Stallings: Computer Organization and Architecture – Designing for Performance (5/E 2001, or 6/E 2003), Prentice Hall

( course main text book ).

• 2. Andrew Tanenbaum : Structured Computer Organization, Prentice Hall, 1999.

(some parts)

• 3. John L. Hennessy, David A. Patterson: Computer Architecture: A Quantitave Approach, 3/E May, 2002.

(some tutorial exercises )

Page 4: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Internet Resources- Web site for book

• http://WilliamStallings.com/COA/COA7e.html—links to sites of interest—links to sites for courses that use the book—errata list for book—information on other books by W. Stallings

• http://WilliamStallings.com/StudentSupport.html—Math—How-to—Research resources—Miscellaneous

Page 5: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Internet Resources- Web sites to look for

• WWW Computer Architecture Home Page• CPU Info Center• ACM Special Interest Group on Computer

Architecture• IEEE Technical Committee on Computer

Architecture• Intel Technology Journal• www.intel.com• www.ibm.com• www.dec.com

Page 6: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Architecture

Computer Evolution and Performance

Page 7: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

What is Computer?What is Computer?

How does the computer

work?

Who cares? Let’sdo some cool anduseful stuff!

How do we create

Computer? What is Computer?

Page 8: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Evolution and Performance

• What is a Computer ?!

• Architecture & Organization !

• Structure & Function !

• Evolution & Performance !

Page 9: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

What is a Computer ?

• Historically, a computer was a job title, not a piece of equipment!

• Requirements of a computer:– Process data– Store data– Move data between the computer and the

outside world– Control the operation of the above

Page 10: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Evolution and Performance

• What is a Computer ?!

• Architecture & Organization !

• Structure & Function !

• Evolution & Performance !

Page 11: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

What is a Computer Architecture?

• Main purpose of computer architecture is to design computer with aim to fulfill users requests.

• Those aim can be achievable by intervening in:—Hardware level—Software level—User level

Page 12: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Architecture & Organization 1

• Architecture is those attributes visible to the programmer—Instruction set, number of bits used for data

representation, I/O mechanisms, addressing techniques.

—e.g. Is there a multiply instruction?

• Organization is how features are implemented—Control signals, interfaces, memory

technology.—e.g. Is there a hardware multiply unit or is it

done by repeated addition?

Page 13: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Architecture & Organization 2

• All Intel x86 family share the same basic architecture

• The IBM System/370 family share the same basic architecture

• Organization differs between different versions

Page 14: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Evolution and Performance

• What is a Computer ?!

• Architecture & Organization !

• Structure & Function !

• Evolution & Performance !

Page 15: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure & Function

• Structure is the way in which components relate to each other

• Function is the operation of individual components as part of the structure

Page 16: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Function

• All computer functions are:—Data processing—Data storage—Data movement—Control

Page 17: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Functional view

Page 18: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Function: Operations (1) Data movement

Page 19: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Function: Operations (2) Storage

Page 20: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Function: Operation (3) Processing from/to storage

Page 21: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Function: Operation (4) Processing from storage to I/O

Page 22: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure - Top Level

Page 23: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure - Top Level

Computer

Main Memory

InputOutput

SystemsInterconnection

Peripherals

Communicationlines

CentralProcessing Unit

Computer

Page 24: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure - The CPU

Computer Arithmeticand Login Unit

ControlUnit

Internal CPUInterconnection

Registers

CPU

I/O

Memory

SystemBus

CPU

Page 25: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure - The Control Unit

CPU

ControlMemory

Control Unit Registers and Decoders

SequencingLogin

ControlUnit

ALU

Registers

InternalBus

Control Unit

Page 26: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

The Abstract Levels of Modern Computing Systems

Page 27: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Evolution and Performance

• What is a Computer ?!

• Architecture & Organization !

• Structure & Function !

• Evolution & Performance !

Page 28: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Evolution and Performance

History of Computers:

• Mechanical Era (1600s-1940s)

• The Electronic Era (1940-Now)

Page 29: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Mechanical era summary:

• Mechanical computers were designed to reduce the time required for calculations and increase accuracy of the results

• Two drawbacks:

—Speed of operation limited by the inertia of moving parts (gears and pulleys)

—Cumbersome, unreliable, and expensive

Page 30: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

The Electronic Era:

• Generation 1 (1945 - 1958)

• Generation 2 (1958 - 1964)

• Generation 3 (1964 - 1974)

• Generation 4 (1974 - present)

• Generation 5 (? - ?)

Page 31: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 1 :

• ENIAC—Developed for calculating artillery firing tables—Designed by Mauchly and Echert of the

University of Pennsylvania—Generally regarded as the first electronic

computer– Colossus probably the first, but was classified until

recently

—BIG!– 18,000 tubes, 70,000 resistors– 10,000 capacitors, 6,000 switches– 30 x 50 feet, 140 kW of power

—Decimal number system used—Programmed by manually setting switches

Page 32: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 1 :

• IAS (Institute for Advanced Studies)—von Neumann and Goldstine—Took idea of ENIAC and developed concept of

storing a program in the memory—This architecture came to be known as the

“von Neumann” architecture and has been the basis for virtually every machine designed since then

—Features– Data and instructions (programs) are stored in a

single read-write memory– Memory contents are addressable by location,

regardless of the content itself– Sequential execution

Page 33: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

von Neumann/Turing

• Stored Program concept• Main memory storing programs and data• ALU operating on binary data• Control unit interpreting instructions from

memory and executing• Input and output equipment operated by

control unit• Princeton Institute for Advanced Studies

—IAS

• Completed 1952

Page 34: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure of von Neumann machine

Page 35: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure of von Neumann machine

IAS Memory Formats

Page 36: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

IAS - details

• 1000 x 40 bit words—Binary number—2 x 20 bit instructions

• Set of registers (storage in CPU)—Memory Buffer Register—Memory Address Register—Instruction Register—Instruction Buffer Register—Program Counter—Accumulator—Multiplier Quotient

Page 37: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Structure of IAS – detail

Page 38: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Commercial Computers

• 1947 - Eckert-Mauchly Computer Corporation

• UNIVAC I (Universal Automatic Computer)• US Bureau of Census 1950 calculations• Became part of Sperry-Rand Corporation• Late 1950s - UNIVAC II

—Faster—More memory

Page 39: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

IBM

• Punched-card processing equipment• 1953 - the 701

—IBM’s first stored program computer—Scientific calculations

• 1955 - the 702—Business applications

• Lead to 700/7000 series

Page 40: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 2 :

• Generation 2 (1958 - 1964)

— Technology change

— Transistors

— High level languages

— Floating point arithmetic

Page 41: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Transistors

• Replaced vacuum tubes• Smaller• Cheaper• Less heat dissipation• Solid State device• Made from Silicon (Sand)• Invented 1947 at Bell Labs• William Shockley et al.

Page 42: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Transistor Based Computers

• Second generation machines• NCR & RCA produced small transistor

machines• IBM 7000• DEC - 1957

—Produced PDP-1

Page 43: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 3 :

• Generation 3 (1964 - 1974)

— Introduction of integrated

— Semiconductor memory

— Microprogramming

— Multiprogramming

Page 44: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Microelectronics

• Literally - “small electronics”• A computer is made up of gates, memory

cells and interconnections• These can be manufactured on a

semiconductor• e.g. silicon wafer

Page 45: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 4 :

• Generation 4 (1974 - present)

— Large scale integration / VLSI

— Single board computers

Page 46: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Computer Generation 5 :

• Generation 5 (? - ?)

— VLSI / ULSI

— Computer communications networks

— Artificial intelligence

— Massively parallel machines

Page 47: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Generations of Computer

• Vacuum tube - 1946-1957• Transistor - 1958-1964• Small scale integration - 1965 on

—Up to 100 devices on a chip

• Medium scale integration - to 1971—100-3,000 devices on a chip

• Large scale integration - 1971-1977—3,000 - 100,000 devices on a chip

• Very large scale integration - 1978 to date—100,000 - 100,000,000 devices on a chip

• Ultra large scale integration—Over 100,000,000 devices on a chip

Page 48: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Summary of Generations

Page 49: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Moore’s Law

• Increased density of components on chip• Gordon Moore - cofounder of Intel• Number of transistors on a chip will double

every year• Since 1970’s development has slowed a little

—Number of transistors doubles every 18 months

• Cost of a chip has remained almost unchanged• Higher packing density means shorter electrical

paths, giving higher performance• Smaller size gives increased flexibility• Reduced power and cooling requirements• Fewer interconnections increases reliability

Page 50: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Growth in CPU Transistor Count

Page 51: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Pentium and PowerPC Evolution

• Pentium represents the results of decades of design effort on complex instructions set computers (CISCs). It incorporates the sophisticated design principles once found only on mainframes and supercomputers and servers as an excellent example of CISC design.

• The PowerPC is a direct descendant of the first RISC system, the IBM 801, and is one of the most powerful and best-designed RISC-based systems on market.

Page 52: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Intel

• 1971 - 4004 —First microprocessor—All CPU components on a single chip—4 bit

• Followed in 1972 by 8008—8 bit—Both designed for specific applications

• 1974 - 8080—Intel’s first general purpose microprocessor

Page 53: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Pentium Evolution (1)• 8080

—first general purpose microprocessor—8 bit data path—Used in first personal computer – Altair

• 8086—much more powerful—16 bit—instruction cache, prefetch few instructions—8088 (8 bit external bus) used in first IBM PC

• 80286—16 Mbyte memory addressable—up from 1Mb

• 80386—32 bit—Support for multitasking

Page 54: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Pentium Evolution (2)

• 80486—sophisticated powerful cache and instruction

pipelining—built in maths co-processor

• Pentium—Superscalar—Multiple instructions executed in parallel

• Pentium Pro—Increased superscalar organization—Aggressive register renaming—branch prediction—data flow analysis—speculative execution

Page 55: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Pentium Evolution (3)• Pentium II

—MMX technology—graphics, video & audio processing

• Pentium III—Additional floating point instructions for 3D graphics

• Pentium 4—Note Arabic rather than Roman numerals—Further floating point and multimedia

enhancements

• Itanium—64 bit (chapter 15)

• Itanium 2—Hardware enhancements to increase speed

• See Intel web pages for detailed inf. on process.

Page 56: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

PowerPC Evolution

Page 57: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Performance Mismatch

• Processor speed increased• Memory capacity increased• Memory speed lags behind processor

speed

Page 58: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

DRAM and Processor Characteristics

Page 59: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Solutions

• Increase number of bits retrieved at one time—Make DRAM “wider” rather than “deeper”

• Change DRAM interface—Cache

• Reduce frequency of memory access—More complex cache and cache on chip

• Increase interconnection bandwidth—High speed buses—Hierarchy of buses

Page 60: Computer Architecture Semester: III Credits: 6 (2+1) Lecture 1

Questions and comments!Questions and comments!