Advanced Computer Architecture

Similar documents
B649 Graduate Computer Architecture. Lec 1 - Introduction

CS654 Advanced Computer Architecture. Lec 1 - Introduction

MOTIVATION. B649 Parallel Architectures and Programming

CS654 Advanced Computer Architecture. Lec 2 - Introduction

Computer Architecture

Technology. Giorgio Richelli

Instruction Set Principles. (Appendix B)

Lecture 1: Introduction

Lecture - 4. Measurement. Dr. Soner Onder CS 4431 Michigan Technological University 9/29/2009 1

Computer Architecture Lecture 1: Fundamentals of Quantitative Design and Analysis (Chapter 1)

CS61CL Machine Structures. Lec 5 Instruction Set Architecture

EECS 252 Graduate Computer Architecture. Lec 1 - Introduction

Computing Devices Then EECS 252 Graduate Computer Architecture

Introduction to Computer Architecture II

Computer Architecture. R. Poss

Computer Architecture. The Language of the Machine

Instructor Information

Q1: /30 Q2: /25 Q3: /45. Total: /100

Computer Architecture. MIPS Instruction Set Architecture

EE282 Computer Architecture. Lecture 1: What is Computer Architecture?

CSE 502 Graduate Computer Architecture

CS252 S05 1. Outline. CSCI 211 Computer System Architecture. Déjà vu all over again? Sea Change in Chip Design. Processor is the new transistor?

Performance! (1/latency)! 1000! 100! 10! Capacity Access Time Cost. CPU Registers 100s Bytes <10s ns. Cache K Bytes ns 1-0.

CS654 Advanced Computer Architecture. Lec 3 - Introduction

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA

EN2910A: Advanced Computer Architecture Topic 02: Review of classical concepts

Introduction to Multicore architecture. Tao Zhang Oct. 21, 2010

ISA and RISCV. CASS 2018 Lavanya Ramapantulu

Who am I? Computing Systems Today. Computing Devices Then. EECS 252 Graduate Computer Architecture Lecture 1. Introduction January 18 th 2012

The MIPS Instruction Set Architecture

Who am I? Computing Systems Today. Computing Devices Then. EECS 252 Graduate Computer Architecture Lecture 1. Introduction January 20 th 2010

MIPS Instruction Set

Computer Systems Architecture Spring 2016

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA MIPS ISA. In a CPU. (vonneumann) Processor Organization

Computer Systems Laboratory Sungkyunkwan University

CSE 502 Graduate Computer Architecture

CS 61C: Great Ideas in Computer Architecture Intro to Assembly Language, MIPS Intro

101 Assembly. ENGR 3410 Computer Architecture Mark L. Chang Fall 2009

Reduced Instruction Set Computer (RISC)

Reduced Instruction Set Computer (RISC)

Review: Performance Latency vs. Throughput. Time (seconds/program) is performance measure Instructions Clock cycles Seconds.

CSE 502 Graduate Computer Architecture

EE282H: Computer Architecture and Organization. EE282H: Computer Architecture and Organization -- Course Overview

Processor. Han Wang CS3410, Spring 2012 Computer Science Cornell University. See P&H Chapter , 4.1 4

CPU Pipelining Issues

Lecture Topics. Announcements. Today: The MIPS ISA (P&H ) Next: continued. Milestone #1 (due 1/26) Milestone #2 (due 2/2)

ECE 154A. Architecture. Dmitri Strukov

CISC 662 Graduate Computer Architecture Lecture 16 - Cache and virtual memory review

Modern Computer Architecture

Programming the processor

Anne Bracy CS 3410 Computer Science Cornell University. See P&H Chapter: , , Appendix B

Advanced Computer Architecture Week 1: Introduction. ECE 154B Dmitri Strukov

ECE410 Design Project Spring 2013 Design and Characterization of a CMOS 8-bit pipelined Microprocessor Data Path

Review of instruction set architectures

CS 352H Computer Systems Architecture Exam #1 - Prof. Keckler October 11, 2007

ECE 2035 Programming HW/SW Systems Fall problems, 7 pages Exam Two 23 October 2013

INSTRUCTION SET COMPARISONS

Concocting an Instruction Set

EEM 486: Computer Architecture. Lecture 2. MIPS Instruction Set Architecture

Lecture 1: Introduction

TSK3000A - Generic Instructions

Question 0. Do not turn this page until you have received the signal to start. (Please fill out the identification section above) Good Luck!

How What When Why CSC3501 FALL07 CSC3501 FALL07. Louisiana State University 1- Introduction - 1. Louisiana State University 1- Introduction - 2

ECE 2035 Programming HW/SW Systems Fall problems, 6 pages Exam One 19 September 2012

CS 351 Exam 2 Mon. 11/2/2015

Fundamentals of Computer Design

Administrivia. CMSC 411 Computer Systems Architecture Lecture 8 Basic Pipelining, cont., & Memory Hierarchy. SPEC92 benchmarks

Computer Architecture

Advanced Computer Architecture

Computer Architecture Experiment

Pipelining, Instruction Level Parallelism and Memory in Processors. Advanced Topics ICOM 4215 Computer Architecture and Organization Fall 2010

ENCM 369 Winter 2013: Reference Material for Midterm #2 page 1 of 5

ECE 2300 Digital Logic & Computer Organization. Caches

ECE 2035 Programming HW/SW Systems Spring problems, 6 pages Exam One 4 February Your Name (please print clearly)

Performance, Power, Die Yield. CS301 Prof Szajda

ECE Exam I February 19 th, :00 pm 4:25pm

Implementing an Instruction Set

CS 61C: Great Ideas in Computer Architecture Intro to Assembly Language, MIPS Intro

Midterm. Sticker winners: if you got >= 50 / 67

Multiple Issue ILP Processors. Summary of discussions

ECE 475/CS 416 Computer Architecture - Introduction. Today s Agenda. Edward Suh Computer Systems Laboratory

EE108B Lecture 3. MIPS Assembly Language II

Course web site: teaching/courses/car. Piazza discussion forum:

MIPS Reference Guide

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture)

Reminder: tutorials start next week!

Concocting an Instruction Set

Project Part A: Single Cycle Processor

A General-Purpose Computer The von Neumann Model. Concocting an Instruction Set. Meaning of an Instruction. Anatomy of an Instruction

CS 4200/5200 Computer Architecture I

MIPS Assembly Programming

The Processor: Instruction-Level Parallelism

EE108B Lecture 2 MIPS Assembly Language I. Christos Kozyrakis Stanford University

UC Berkeley CS61C : Machine Structures

ICS 233 COMPUTER ARCHITECTURE. MIPS Processor Design Multicycle Implementation

Instruction Set Architecture of. MIPS Processor. MIPS Processor. MIPS Registers (continued) MIPS Registers

Lecture Topics. Principle #1: Exploit Parallelism ECE 486/586. Computer Architecture. Lecture # 5. Key Principles of Computer Architecture

UC Berkeley CS61C : Machine Structures

Lecture 4: Instruction Set Architectures. Review: latency vs. throughput

Assembly Programming

Transcription:

ECE 563 Advanced Computer Architecture Fall 2010 Lecture 1: Introduction 563 L01.1 Fall 2010

Computing Devices Then 563 L01.2 EDSAC, University of Cambridge, UK, 1949 (The first practical stored program electronic computer) Fall 2010

Computing Devices Now Sensor Nets Smart phones Set-top boxes Laptops Games Servers Routers Automobiles 563 L01.3 Robots Supercomputers Fall 2010

What is Computer Architecture? Application Physics Gap too large to bridge in one step (but there are exceptions, e.g. magnetic compass) In its broadest definition, computer architecture is the design of the abstraction layers that allow us to implement information processing applications efficiently using available manufacturing technologies. 563 L01.4 Fall 2010

Abstraction Layers in Modern Systems Original domain of the computer architect ( 50s- 80s) Application Algorithm Programming Language Operating System/Virtual Machine Instruction Set Architecture (ISA) Microarchitecture Gates/Register-Transfer Level (RTL) Circuits Devices Physics Parallel computing, security, Domain of recent computer architecture ( 90s) Reliability, power, Reinvigoration of computer architecture, mid-2000s onward. 563 L01.5 Fall 2010

ECE563 Executive Summary The processor you built What you ll understand after taking the class Also, the technology behind chip-scale multiprocessors 563 L01.6 Fall 2010

The End of the Uniprocessor Era Single biggest change in the history of computing systems 563 L01.7 Fall 2010

Conventional Wisdom in Computer Architecture Old Conventional Wisdom: Power is free, Transistors expensive New Conventional Wisdom: Power wall Power expensive, Transistors free (Can put more on chip than can afford to turn on) Old CW: Sufficient increasing Instruction-Level Parallelism via compilers, innovation (Out-of-order, speculation, VLIW, ) New CW: ILP wall law of diminishing returns on more HW for ILP Old CW: Multiplies are slow, Memory access is fast New CW: Memory wall Memory slow, multiplies fast (200 clock cycles to DRAM memory, 4 clocks for multiply) Old CW: Uniprocessor performance 2X / 1.5 yrs New CW: Power Wall + ILP Wall + Memory Wall = Brick Wall Uniprocessor performance now 2X / 5(?) yrs Sea change in chip design: multiple cores (2X processors per chip / ~ 2 years) - More, simpler processors are more power efficient 563 L01.8 Fall 2010

Uniprocessor Performance 10000 From Hennessy and Patterson, Computer Architecture: A Quantitative Approach, 4th edition, October, 2006??%/year Performance (vs. VAX-11/780) 1000 100 10 25%/year 52%/year 1 1978 1980 1982 1984 1986 1988 1990 1992 1994 1996 1998 2000 2002 2004 2006 VAX : 25%/year 1978 to 1986 (technology driven) RISC + x86: 52%/year 1986 to 2002 (driven by architectural and organizational innovations) RISC + x86: 20%/year 2002 to present (hitting the wall right now!!) 563 L01.9 Fall 2010

Sea Change in Chip Design Intel 4004 (1971): 4-bit processor, 2312 transistors, 0.4 MHz, 10 micron PMOS, 11 mm 2 chip RISC II (1983): 32-bit, 5 stage pipeline, 40,760 transistors, 3 MHz, 3 micron NMOS, 60 mm 2 chip 125 mm 2 chip, 0.065 micron CMOS = 2312 RISC II+FPU+Icache+Dcache RISC II shrinks to ~ 0.02 mm 2 at 65 nm Caches via DRAM or 1 transistor SRAM? Processor is the new transistor? 563 L01.10 Fall 2010

Déjà vu all over again? Multiprocessors imminent in 1970s, 80s, 90s, today s processors are nearing an impasse as technologies approach the speed of light.. David Mitchell, The Transputer: The Time Is Now (1989) Transputer was premature Custom multiprocessors tried to beat uniprocessors Procrastination rewarded: 2X seq. perf. / 1.5 years We are dedicating all of our future product development to multicore designs. This is a sea change in computing Paul Otellini, President, Intel (2004) Difference is all microprocessor companies have switched to multiprocessors (AMD, Intel, IBM, Sun; all new Apples 2+ CPUs) Procrastination penalized: 2X sequential perf. / 5 yrs Biggest programming challenge: from 1 to 2 CPUs 563 L01.11 Fall 2010

Problems with Sea Change Algorithms, Programming Languages, Compilers, Operating Systems, Architectures, Libraries, not ready to supply Thread-Level Parallelism or Data- Level Parallelism for 1000 CPUs / chip, Architectures not ready for 1000 CPUs / chip Unlike Instruction-Level Parallelism, cannot be solved by computer architects and compiler writers alone, but also cannot be solved without participation of architects This class (and 4th Edition of textbook Computer Architecture: A Quantitative Approach) explores shift from Instruction-Level Parallelism to Thread-Level Parallelism / Data-Level Parallelism 563 L01.12 Fall 2010

Instruction Set Architecture: Critical Interface software instruction set hardware Properties of a good abstraction Lasts through many generations (portability) Used in many different ways (generality) Provides convenient functionality to higher levels Permits an efficient implementation at lower levels 563 L01.13 Fall 2010

Instruction Set Architecture... the attributes of a [computing] system as seen by the programmer, i.e. the conceptual structure and functional behavior, as distinct from the organization of the data flows and controls the logic design, and the physical implementation. Amdahl, Blaauw, and Brooks, 1964 -- Organization of Programmable Storage -- Data Types & Data Structures: Encodings & Representations -- Instruction Formats -- Instruction (or Operation Code) Set SOFTWARE -- Modes of Addressing and Accessing Data Items and Instructions -- Exceptional Conditions 563 L01.14 Fall 2010

Example: MIPS (32-bit architecture) r0 r1 r31 PC lo hi 0 Arithmetic logical Programmable storage 2^32 x bytes 31 x 32-bit GPRs (R0=0) 32 x 32-bit FP regs (paired DP) HI, LO, PC Data types? Format? Addressing Modes? Add, AddU, Sub, SubU, And, Or, Xor, Nor, SLT, SLTU, AddI, AddIU, SLTI, SLTIU, AndI, OrI, XorI, LUI SLL, SRL, SRA, SLLV, SRLV, SRAV Memory Access LB, LBU, LH, LHU, LW, LWL,LWR SB, SH, SW, SWL, SWR Control 32-bit instructions on word boundary J, JAL, JR, JALR BEq, BNE, BLEZ,BGTZ,BLTZ,BGEZ,BLTZAL,BGEZAL 563 L01.15 Fall 2010

ISA vs. Computer Architecture Old definition of computer architecture = instruction set design Other aspects of computer design called implementation Insinuates implementation is uninteresting or less challenging Our view is computer architecture >> ISA Architect s job much more than instruction set design; technical hurdles today more challenging than those in instruction set design Organization and hardware Since instruction set design is not where action is, some conclude computer architecture (using old definition) is not where action is We disagree on conclusion Agree that ISA is not where action is (ISA in CA:AQA 4/e appendix) 563 L01.16 Fall 2010

Computer Architecture is an Integrated Approach What really matters is the functioning of the complete system hardware, runtime system, compiler, operating system, and application In networking, this is called the End to End argument Computer architecture is not just about transistors, individual instructions, or particular implementations E.g., Original RISC projects replaced complex instructions with a compiler + simple instructions 563 L01.17 Fall 2010

Computer Architecture is Design and Analysis Design Architecture is an iterative process: Searching the space of possible designs At all levels of computer systems Analysis Creativity Cost / Performance Analysis Good Ideas Mediocre Ideas Bad Ideas 563 L01.18 Fall 2010

New Trends Trends in Technology IC logic technology - Transistor density increases by about 35% a year; die size increases from 10% to 20% a year DRAM capacity increases about 40% per year Disk density increases 60%, 100%, or 30% per year Network technology Performance Trends: Bandwidth over Latency dependability 563 L01.19 Fall 2010

ECE 563 Administrivia Instructor: Prof. Yanyong Zhang, yyzhang@ece Office: 518 Core Office Hours: by email appt Lectures: W, 6:40-9:20PM SEC 207 Text: Computer Architecture: A Quantitative Approach, 4th Edition (Oct, 2006) Web page: http://www.ece.rutgers.edu/~yyzhang/fall10 and sakai Slides adopted from Berkeley s CompArch class (The same class from many schools adopt the same notes.) First reading assignment: Chapter 1 and Appendices A&B (should be review for most people) 563 L01.20 Fall 2010

Typical Class format Bring questions to class 10-Minute Review 90-Minute Lecture 5-Minute Administrative Matters 15-Minute Break 60-minute paper discussion 563 L01.21 Fall 2010

Course Focus Understanding the design techniques, machine structures, technology factors, evaluation methods that will determine the form of computers in 21st Century Applications Technology Parallelism Computer Architecture: Organization Hardware/Software Boundary Programming Languages Interface Design (ISA) Compilers Operating Systems Measurement & Evaluation History 563 L01.22 Fall 2010

Class Objective Computer architecture is at a crossroads Institutionalization and renaissance Power, dependability, multi CPU vs. 1 CPU performance Mix of lecture vs. discussion Depends on how well reading is done before class Goal is to learn how to do good systems research Learn a lot from looking at good work in the past At commit point, you may chose to pursue your own new idea instead. 563 L01.23 Fall 2010

Research Paper Reading As graduate students, you are now researchers Most information of importance to you will be in research papers Ability to rapidly scan and understand research papers is key to your success So: you will read papers in this course 2 papers per week Quick 1/2 page summary per paper Students take turns to lead the discussion in class (the instructor will pick leading students) Important supplement to book. Papers will be posted on web page 563 L01.24 Fall 2010

Coping with ECE563 Review: Appendix A, B, C; ECE 331 home page, maybe Computer Organization and Design (COD) 3/e Chapters 1 to 8 of COD if never took prerequisite If took a class, be sure COD Chapters 2, 6, 7 are familiar 563 L01.25 Fall 2010

Grading Midterm Exam: 30% Paper Summaries: 15% Class Participation: 5% Term Project: 50% (work in pairs or maybe threes) Transition from undergrad to grad student pick topic (more on this later) discuss (at least!) 3 times with instructor give oral presentation written report in conference paper format 3 weeks work full time for 2 people Opportunity to do research in the small to help make transition from good student to research colleague Possibility for conference/workshop submission 563 L01.26 Fall 2010

What Computer Architecture brings to Table Other fields often borrow ideas from architecture Quantitative Principles of Design 1. Take Advantage of Parallelism 2. Principle of Locality 3. Focus on the Common Case 4. Amdahl s Law 5. The Processor Performance Equation Careful, quantitative comparisons Define, quantify, and summarize relative performance Define and quantify relative cost Define and quantify dependability Define and quantify power Culture of anticipating and exploiting advances in technology Culture of well-defined interfaces that are carefully implemented and thoroughly checked 563 L01.27 Fall 2010

1) Taking Advantage of Parallelism Increasing throughput of server computer via multiple processors or multiple disks Detailed HW design Carry lookahead adders uses parallelism to speed up computing sums from linear to logarithmic in number of bits per operand Multiple memory banks searched in parallel in set-associative caches Pipelining: overlap instruction execution to reduce the total time to complete an instruction sequence. Not every instruction depends on immediate predecessor executing instructions completely/partially in parallel possible Classic 5-stage pipeline: 1) Instruction Fetch (Ifetch), 2) Register Read (Reg), 3) Execute (ALU), 4) Data Memory Access (Dmem), 5) Register Write (Reg) 563 L01.28 Fall 2010

Pipelined Instruction Execution Time (clock cycles) I n s t r. Cycle 1 Cycle 2 Cycle 3 Cycle 4 Cycle 5 Cycle 6 Cycle 7 Ifetch Reg Ifetch ALU Reg DMem ALU Reg DMem Reg O r d e r Ifetch Reg Ifetch ALU Reg DMem ALU Reg DMem Reg 563 L01.29 Fall 2010

Limits to pipelining Hazards prevent next instruction from executing during its designated clock cycle Structural hazards: attempt to use the same hardware to do two different things at once Data hazards: Instruction depends on result of prior instruction still in the pipeline Control hazards: Caused by delay between the fetching of instructions and decisions about changes in control flow (branches and jumps). Time (clock cycles) I n s t r. Ifetch Reg Ifetch ALU Reg Ifetch DMem ALU Reg Reg DMem ALU Reg DMem Reg O r d e r Ifetch Reg ALU DMem Reg 563 L01.30 Fall 2010

2) The Principle of Locality The Principle of Locality: Program access a relatively small portion of the address space at any instant of time. Two Different Types of Locality: Temporal Locality (Locality in Time): If an item is referenced, it will tend to be referenced again soon (e.g., loops, reuse) Spatial Locality (Locality in Space): If an item is referenced, items whose addresses are close by tend to be referenced soon (e.g., straight-line code, array access) Last 30 years, HW relied on locality for memory perf. P $ MEM 563 L01.31 Fall 2010

Capacity Access Time Cost Levels of the Memory Hierarchy CPU Registers 100s Bytes 300 500 ps (0.3-0.5 ns) L1 and L2 Cache 10s-100s K Bytes ~1 ns - ~10 ns $1000s/ GByte Main Memory G Bytes 80ns- 200ns ~ $100/ GByte Disk 10s T Bytes, 10 ms (10,000,000 ns) ~ $1 / GByte Tape infinite sec-min ~$1 / GByte Registers L1 Cache Memory Disk Tape Instr. Operands Blocks L2 Cache Blocks Pages Files Staging Xfer Unit prog./compiler 1-8 bytes cache cntl 32-64 bytes cache cntl 64-128 bytes OS 4K-8K bytes user/operator Mbytes 563 L01.32 Fall 2010 Upper Level faster Larger Lower Level

3) Focus on the Common Case Common sense guides computer design Since we re engineering, common sense is valuable In making a design trade-off, favor the frequent case over the infrequent case E.g., Instruction fetch and decode unit used more frequently than multiplier, so optimize it 1st E.g., If database server has 50 disks / processor, storage dependability dominates system dependability, so optimize it 1st Frequent case is often simpler and can be done faster than the infrequent case E.g., overflow is rare when adding 2 numbers, so improve performance by optimizing more common case of no overflow May slow down overflow, but overall performance improved by optimizing for the normal case What is frequent case and how much performance improved by making case faster => Amdahl s Law 563 L01.33 Fall 2010

4) Amdahl s Law ExTimenew ExTimeold 1 Fractionenhanced Fraction enhanced Speedup enhanced Speedup overall ExTime ExTime old new 1 Fraction enhanced 1 Fraction Speedup enhanced enhanced Best you could ever hope to do: Speedup maximum 1 1 - Fraction enhanced 563 L01.34 Fall 2010

5) Processor performance equation CPI Iron Law of Performance inst count Cycle time CPU time Program = Seconds = Instructions x Cycles x Seconds Program Program Instruction Cycle Inst Count CPI Clock Rate X Compiler X (X) Inst. Set. X X Organization X X Technology X 563 L01.35 Fall 2010

What s a Clock Cycle? Latch or register combinational logic Old days: 10+ levels of gates Today: determined by numerous time-of-flight issues + gate delays clock propagation, wire lengths, repeaters 16-24 FO4 common (roughly 8-12 classic gate delays) 563 L01.36 Fall 2010

And in conclusion Computer Architecture >> instruction sets Computer Architecture skill sets are different 5 Quantitative principles of design Quantitative approach to design Solid interfaces that really work Technology tracking and anticipation Computer Science at the crossroads from sequential to parallel computing Salvation requires innovation in many fields, including computer architecture Read Chapter 1, then Appendix A&B! 563 L01.37 Fall 2010