Top Banner
1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January 17, 2003 Kathryn S McKinley Professor of Computer Science University of Texas at Austin [email protected] CS352 Spring 2010 Lecture 2 2 The simple view All a computer does is Store and move data Communicate with the external world Do these two things conditionally According to a recipe specified by a programmer
10

CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

Jan 31, 2018

Download

Documents

vankiet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

1

CS352 Spring 2010 Lecture 1 1

CS 352: Computer Systems Architecture

Lecture 1: What is Computer Architecture?

January 17, 2003

Kathryn S McKinley Professor of Computer Science University of Texas at Austin

[email protected]

CS352 Spring 2010 Lecture 2 2

The simple view

All a computer does is –  Store and move data –  Communicate with the external world –  Do these two things conditionally –  According to a recipe specified by a programmer

Page 2: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

2

CS352 Spring 2010 Lecture 1 3

Questions we will address in this course

•  How do we separate software from hardware? –  So that new computers can run old software

•  How is computer hardware organized? –  Processor, Memory, I/O, etc.

•  How is the processor organized? Why?

•  How do we measure and improve computer performance?

•  How do we think about parallelism? –  Doing more than one thing at once

CS352 Spring 2010 Lecture 1 4

Logistics Lectures T/Th 9:30-11am, NOA 1.126 Instructor Prof. Kathryn S McKinley,

Office Hours: Tu 1:30-2:30 & by appointment TA Renee St. Amant

Office Hours: M,W 1:30-2:30 Grading

Final Exam 1 15% Midterm Exam 2 15% each Homework ~7 20% Quizzes ~10 10% Project 1 25%

Ethics If you cheat, you fail

Text Patterson & Hennessy, Computer Organization and Design (Fourth Edition). Including CD.

Page 3: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

3

CS352 Spring 2010 Lecture 1 5

CS352 Online

URL: www.cs.utexas.edu/users/mckinley/352

email list: [email protected] mandatory: send email with your name

and email to [email protected]

Computer Architecture Seminar Series: www.cs.utexas.edu/users/cart/arch

CS352 Spring 2010 Lecture 1 6

CS352 Topics

•  What is a computer system? •  Technology Trends •  Computer Performance •  Instruction set architectures •  Pipelining •  Modern pipelined architectures

–  Dynamic ILP machines –  Static ILP machines

•  Cache memory systems •  Virtual memory •  Multiprocessors •  Computer system implementation

Page 4: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

4

CS352 Spring 2010 Lecture 1 7

Specification

Program

ISA (Instruction Set Architecture)

Microarchitecture

Logic

Transistors

Physics/Chemistry

compute the fibonacci sequence for(i=2; i<100; i++) { a[i] = a[i-1]+a[i-2];}

load r1, a[i]; add r2, r2, r1;

regi

ster

s

A

B

S

F

G

D

S

G

S

D

What is a Computer System?

CS352 Spring 2010 Lecture 1 8

What is Computer Architecture?

Technology

Applications Computer Architect

Interfaces

Machine Organization

Measurement & Evaluation

ISA

AP

I

Link

I/O

Cha

n

Regs

IR

Page 5: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

5

CS352 Spring 2010 Lecture 1 9

Intel 4004 - 1971

•  The first microprocessor

•  2,300 transistors •  108 KHz •  10µm process

CS352 Spring 2010 Lecture 1 10

Some Recent Chips!

NVidia - GeForce 6800 •  2006 •  222 million transistors •  400 MHz •  0.13µm process

IBM Cell •  2008 •  8 vector processors + 1 PPC •  4 GHz •  90nm process

Intel Pentium IV •  1 CPU 2005 •  42 million

transistors •  4 GHz •  0.13µm process •  Fits ~15,000

4004s!

Intel i7 •  4 CPUs 2008 •  731 million transistors •  3 GHz •  0.045µm (45nm)

process •  Fits ~300,000 4004s Intel- Larabee •  2009 •  1.7 billion transistors •  1 GHz •  45nm process

Page 6: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

6

UTCS Lecture 1 11

Many kinds of systems and applications

•  Personal: –  Desktop, Laptop –  Cell phone / PDA –  Game machine

•  Server: –  Web servers –  Transaction processing

•  Engineering/Scientific: –  Weather simulation –  Drug design

•  Embedded Control: –  Anti-lock brake system –  Microwave oven

UTCS Lecture 1 12

What is an “interface”

•  Interfaces are visible, Implementations are not –  Same interface can have multiple implementations –  We allow performance (time behavior) to change!

•  Example interfaces: –  Ethernet connector / protocol –  X86 Instruction Set Architecture (ISA) –  Operating System Application Program Interface (API) –  C/Java language

•  Examples that are NOT interfaces –  Power connector for cell phone charger

•  Good interfaces are simple

Page 7: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

7

CS352 Spring 2010 Lecture 1 13

Instruction-Set Architecture (ISA)

•  Software impact –  support OS functions

•  restart instructions •  memory relocation and protection

–  a good compiler target •  simple •  orthogonal

–  dense •  Hardware impact

–  admits efficient implementation •  across multiple hardware

generations –  admits parallel implementation

•  no ‘serial’ bottlenecks •  Abstraction without interpretation

OP R1 R2 R3 imm

OP R1 M1 im2 R2 M2

R3 M3 im2 ...

Hardware/Software Interface

CS352 Spring 2010 Lecture 1 14

System-Level Organization •  Design at the level of

processors, memories, and interconnect.

•  More important to application performance than CPU design

•  Feeds and speeds –  constrained by inter-connect

pin count, module pin count, and signaling rates

•  System balance –  for a particular application

•  Driven by –  performance/cost goals –  available components (cost/

perf) –  technology constraints

P

SW

800MHz 4-way Issue

16Bytes x 200MHz

I/O

M M M M

Disk

Net

Display

Page 8: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

8

CS352 Spring 2010 Lecture 1 15

Microarchitecture

•  Register-transfer-level (RTL) design

•  Implements the ISA •  Exploit capabilities of technology

–  locality and concurrency •  Iterative process

–  generate proposed architecture –  estimate cost –  measure performance

•  Emphasis is on overcoming sequential nature of programs –  deep pipelining –  multiple issue –  dynamic scheduling –  branch prediction/speculation –  speculative parallelism

Regs

Instr. Cache

IR

PC

B

A

C

CS352 Spring 2010 Lecture 1 16

The Architecture Process

New concepts created

Estimate Cost &

Performance Sort

Good ideas Mediocre ideas Bad ideas

Page 9: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

9

CS352 Spring 2010 Lecture 1 17

Performance Measurement and Evaluation

Many Dimensions to Performance •  CPU execution time

–  by instruction or sequence •  floating point •  integer •  branch performance

•  Cache bandwidth •  Main memory bandwidth •  I/O performance

–  bandwidth –  seeks –  pixels or polygons per second

•  Relative importance depends on applications

P

$

M

CS352 Spring 2010 Lecture 1 18

Evaluation Tools

•  Benchmarks, traces, & mixes –  macrobenchmarks & suites

•  application execution time –  microbenchmarks

•  measure one aspect of performance

–  traces •  replay recorded accesses •  cache, branch, register

•  Simulation at many levels –  ISA, cycle accurate, RTL, gate,

circuit •  trade fidelity for simulation rate

•  Area and delay estimation •  Analysis

–  e.g., queuing theory

MOVE 39% BR 20% LOAD 20% STORE 10% ALU 11%

LD 5EA3 ST 31FF …. LD 1EA2 ….

Page 10: CS 352: Computer Systems Architecture Lecture 1: What · PDF file1 CS352 Spring 2010 Lecture 1 1 CS 352: Computer Systems Architecture Lecture 1: What is Computer Architecture? January

10

UTCS Lecture 1 19

Don’t forget the simple view

All a computer does is –  Store and move data –  Communicate with the external world –  Do these two things conditionally –  According to a recipe specified by a programmer

It’s complex because –  We want it to be fast –  We want it to be reliable and secure –  We want it to be simple to use –  It must obey the laws of physics

CS352 Spring 2010 Lecture 1 20

Next Time

•  Basic computer elements –  transistors, wires, memory

•  How chips are made •  Technology trends

•  Reading assignment –  P&H Chapter 1.1—3, 1.7-9

•  More on transistors (optional) –  http://en.wikipedia.org/wiki/Transistor