Ch1. Fundamentals of Computer Design 3. Principles (5)

Slides:



Advertisements
Similar presentations
COMP375 Computer Architecture and Organization Senior Review.
Advertisements

CMSC 611: Advanced Computer Architecture Cache Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from.
CIS 570 Advanced Computer Systems University of Massachusetts Dartmouth Instructor: Dr. Michael Geiger Fall 2008 Lecture 1: Fundamentals of Computer Design.
CMPE 421 Parallel Computer Architecture MEMORY SYSTEM.
Ch1. Fundamentals of Computer Design 3. Principles (5) ECE562/468 Advanced Computer Architecture Prof. Honggang Wang ECE Department University of Massachusetts.
Computer Organization and Architecture 18 th March, 2008.
Mary Jane Irwin ( ) [Adapted from Computer Organization and Design,
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Sep 5, 2005 Lecture 2.
Now, Review of Memory Hierarchy
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon, Oct 31, 2005 Topic: Memory Hierarchy Design (HP3 Ch. 5) (Caches, Main Memory and.
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Nov. 3, 2003 Topic: Memory Hierarchy Design (HP3 Ch. 5) (Caches, Main Memory and.
Computer ArchitectureFall 2007 © October 24nd, 2007 Majd F. Sakr CS-447– Computer Architecture.
1 Roman Japanese Chinese (compute in hex?). 2 COMP 206: Computer Architecture and Implementation Montek Singh Thu, Jan 22, 2009 Lecture 3: Quantitative.
ECE 232 L27.Virtual.1 Adapted from Patterson 97 ©UCBCopyright 1998 Morgan Kaufmann Publishers ECE 232 Hardware Organization and Design Lecture 27 Virtual.
Computer ArchitectureFall 2007 © November 7th, 2007 Majd F. Sakr CS-447– Computer Architecture.
L18 – Memory Hierarchy 1 Comp 411 – Fall /30/2009 Memory Hierarchy Memory Flavors Principle of Locality Program Traces Memory Hierarchies Associativity.
Memory: PerformanceCSCE430/830 Memory Hierarchy: Performance CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine)
Introduction to Computer Architecture SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING SUMMER 2015 RAMYAR SAEEDI.
1 Instant replay  The semester was split into roughly four parts. —The 1st quarter covered instruction set architectures—the connection between software.
Ch2. Instruction-Level Parallelism & Its Exploitation 2. Dynamic Scheduling ECE562/468 Advanced Computer Architecture Prof. Honggang Wang ECE Department.
CMPE 421 Parallel Computer Architecture
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Lecture 5 Review of Memory Hierarchy (Appendix C in textbook)
CS 5513: Computer Architecture Lecture 1: Introduction Daniel A. Jiménez The University of Texas at San Antonio
CS1104 – Computer Organization PART 2: Computer Architecture Lecture 12 Overview and Concluding Remarks.
Computer Architecture Lec 1 - Introduction. 01/19/10Lec 01-intro 2 Outline Computer Science at a Crossroads Computer Architecture v. Instruction Set Arch.
Computer Architecture Lec 1: Introduction Dr. Eng. Amr T. Abdel-Hamid CSEN 601 Spring 2011 Computer Architecture Text book slides: Computer Architec ture:
EEL5708/Bölöni Lec 4.1 Fall 2004 September 10, 2004 Lotzi Bölöni EEL 5708 High Performance Computer Architecture Review: Memory Hierarchy.
CS5222 Advanced Computer Architecture Part 3: VLIW Architecture
ECE 456 Computer Architecture Lecture #14 – CPU (III) Instruction Cycle & Pipelining Instructor: Dr. Honggang Wang Fall 2013.
CS.305 Computer Architecture Enhancing Performance with Pipelining Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CS 3853/3851: Computer Architecture Lecture 1: Introduction Daniel A. Jiménez The University of Texas at San Antonio
Morgan Kaufmann Publishers
1 chapter 1 Computer Architecture and Design ECE4480/5480 Computer Architecture and Design Department of Electrical and Computer Engineering University.
1 Chapter Seven. 2 Users want large and fast memories! SRAM access times are ns at cost of $100 to $250 per Mbyte. DRAM access times are ns.
Performance Performance
1 Introduction Outline Computer Science at a Crossroads Computer Architecture v. Instruction Set Arch. What Computer Architecture brings to table.
1 Chapter Seven. 2 Users want large and fast memories! SRAM access times are ns at cost of $100 to $250 per Mbyte. DRAM access times are ns.
For each of these, where could the data be and how would we find it? TLB hit – cache or physical memory TLB miss – cache, memory, or disk Virtual memory.
Summary of caches: The Principle of Locality: –Program likely to access a relatively small portion of the address space at any instant of time. Temporal.
1 Chapter Seven. 2 SRAM: –value is stored on a pair of inverting gates –very fast but takes up more space than DRAM (4 to 6 transistors) DRAM: –value.
Jan. 5, 2000Systems Architecture II1 Machine Organization (CS 570) Lecture 2: Performance Evaluation and Benchmarking * Jeremy R. Johnson Wed. Oct. 4,
CMSC 611: Advanced Computer Architecture Pipelining Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Overview of microcomputer structure and operation
Ch2. Instruction-Level Parallelism & Its Exploitation 2. Dynamic Scheduling ECE562/468 Advanced Computer Architecture Prof. Honggang Wang ECE Department.
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
Yu-Lun Kuo Computer Sciences and Information Engineering
ECE 4100/6100 Advanced Computer Architecture Lecture 1 Performance
Defining Performance Which airplane has the best performance?
The Goal: illusion of large, fast, cheap memory
Chinese (compute in hex?)
CSCE 614 Computer Architecture Lec 1 - Introduction
CMSC 611: Advanced Computer Architecture
Instant replay The semester was split into roughly four parts.
UNIT I OVERVIEW & INSTRUCTIONS
Lec 3 – Memory Hierarchy Review
Chapter 1 Fundamentals of Computer Design
CS2100 Computer Organisation
CSE 520 Advanced Computer Architecture Lec 2 - Introduction
Rose Liu Electrical Engineering and Computer Sciences
CMSC 611: Advanced Computer Architecture
T Computer Architecture, Autumn 2005
Guest Lecturer TA: Shreyas Chand
CS-447– Computer Architecture Lecture 20 Cache Memories
Overview Prof. Eric Rotenberg
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
CPE 631 Lecture 04: Review of the ABC of Caches
Cache Memory and Performance
Presentation transcript:

Ch1. Fundamentals of Computer Design 3. Principles (5) ECE562/468 Advanced Computer Architecture Prof. Honggang Wang Ch1. Fundamentals of Computer Design 3. Principles (5) ECE Department University of Massachusetts Dartmouth 285 Old Westport Rd. North Dartmouth, MA 02747-2300 Slides based on the PowerPoint Presentations created by David Patterson as part of the Instructor Resources for the textbook by Hennessy & Patterson Updated by Honggang Wang. CS252 S05

Administrative Issues (02/04/2016) Xing - Fall09 Administrative Issues (02/04/2016) Project team set-up due Thursday, Feb. 11 Each group has 3-4 group members Two types of groups: ECE 468 and ECE 562 If you registered ECE 468, you only can join ECE 468 group If you registered ECE 562, you only can join ECE 562 group Your group leader must send me an email about your group information by 02/11 If you missed the first week class, go to the course website for syllabus and 1st lecture. My office hours: T./TH. 11 am-12:45 pm, Fri. 1:00-1:30 pm www.faculty.umassd.edu/honggang.wang/teaching.html Background Review Lecture

Review of Lecture #2 In the #2 lecture, we covered the Xing - Fall09 Review of Lecture #2 In the #2 lecture, we covered the Careful, quantitative comparisons: Performance Compute Mean Benchmark

Comp. Arch. is an Integrated Approach What really matters is the functioning of the complete system hardware, runtime system, compiler, operating system, and application 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 CS252 S05

Computer Architecture is Design & Analysis Architecture is an iterative process: Searching the space of possible designs At all levels of computer systems Creativity Cost / Performance Analysis Good Ideas Mediocre Ideas Bad Ideas CS252 S05

Measurement & Evaluation Our ECE 562/468 Focus Understanding the design techniques, machine structures, technology factors, evaluation methods that will determine the form of computers in 21st Century Parallelism Technology Programming Languages Applications Interface Design (ISA) Computer Architecture: • Organization • Hardware/Software Boundary Compilers Operating Measurement & Evaluation History Systems CS252 S05

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) CS252 S05

Pipelined Instruction Execution Time (clock cycles) Reg ALU DMem Ifetch Cycle 1 Cycle 2 Cycle 3 Cycle 4 Cycle 6 Cycle 7 Cycle 5 CS252 S05

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. O r d e Reg ALU DMem Ifetch Reg ALU DMem Ifetch Reg ALU DMem Ifetch Reg ALU DMem Ifetch CS252 S05

2) 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., array access) Last 30 years, HW relied on locality for memory performance. P MEM $ CS252 S05

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

3) Focus on the Common Case Common sense guides computer design Since its 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 CS252 S05

4) Amdahl’s Law Amdahl’s law sates that the performance improvement to be gained from using some faster mode of execution is limited by the fraction of the items the faster mode can be used. Best you could ever hope to do: the law of diminishing returns CS252 S05

Amdahl’s Law example New CPU 10X faster I/O bound server, so 60% time waiting for I/O Apparently, its human nature to be attracted by 10X faster, vs. keeping in perspective its just 1.6X faster CS252 S05

5) Processor performance equation The Iron Law CPI 5) Processor performance equation The Iron Law inst count Cycle time CPU time = Seconds = Instructions x Cycles x Seconds Program Program Instruction Cycle Inst Count CPI Clock Rate Program X Compiler X (X) Inst. Set. X X Organization X X Technology X CS252 S05

Two Examples: Amdahl’s Law [p.40] Iron Law [43] Measurements FP: 25%, 4 CPI where FPSQR: 2%, 20 CPI others: 1.33 CPI Two Alternatives FPSQR: decrease to 2 CPI FP: decrease to 2.5 CPI Winner: FP Same speedup Two Alternatives FPSQR: 20%, 10X FP: 50%, 1.6X Winner: FP Q1: What is the difference ? CS252 S05

Summary Computer Architecture >> instruction sets Computer Architecture skill sets are different 5 Quantitative principles of design Quantitative approach to design Technology tracking and anticipation Computing at the crossroads from sequential to parallel computing Salvation requires innovation in many fields, including computer architecture

Next Topics Things To Do Find your partners for the class project Xing - Fall09 Next Topics Ch2. Instruction-Level Parallelism & Its Exploitation Things To Do Find your partners for the class project Feb. 11, Thursday (email me the team information) Check out the class website about lecture notes reading assignments Homework 1 assignment http://www.faculty.umassd.edu/honggang.wang/ece562_web/assignment.html