Computer Architecture Today (I)

Similar documents
Computer Architecture

Computer Architecture Lecture 2: Fundamental Concepts and ISA. Prof. Onur Mutlu Carnegie Mellon University Spring 2014, 1/15/2014

Computer Architecture Lecture 2: Fundamental Concepts and ISA. Prof. Onur Mutlu Carnegie Mellon University Spring 2015, 1/14/2014

Computer Architecture: Multi-Core Processors: Why? Prof. Onur Mutlu Carnegie Mellon University

Computer Architecture: Multi-Core Processors: Why? Onur Mutlu & Seth Copen Goldstein Carnegie Mellon University 9/11/13

Precise Exceptions and Out-of-Order Execution. Samira Khan

CMSC Computer Architecture Lecture 2: ISA. Prof. Yanjing Li Department of Computer Science University of Chicago

Lecture 4: ISA Tradeoffs (Continued) and Single-Cycle Microarchitectures

Computer Architecture Lecture 12: Out-of-Order Execution (Dynamic Instruction Scheduling)

Computer Architecture is...??? CSE 240A -- Principles of Computer Architecture. Computer Architecture is...??? Computer Architecture is...???

15-740/ Computer Architecture Lecture 1: Intro, Principles, Tradeoffs. Prof. Onur Mutlu Carnegie Mellon University

Computer Architecture

CSE Introduction to Computer Architecture. Jeff Brown

Computer Architecture Lecture 14: Out-of-Order Execution. Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 2/18/2013

Computer Architecture Lecture 15: Load/Store Handling and Data Flow. Prof. Onur Mutlu Carnegie Mellon University Spring 2014, 2/21/2014

Computer Architecture

Computer Architecture!

Computer Architecture!

Fundamentals of Computer Design

Computer Architecture: Out-of-Order Execution II. Prof. Onur Mutlu Carnegie Mellon University

15-740/ Computer Architecture Lecture 4: Pipelining. Prof. Onur Mutlu Carnegie Mellon University

Alternate definition: Instruction Set Architecture (ISA) What is Computer Architecture? Computer Organization. Computer structure: Von Neumann model

Computer Architecture Lecture 3: ISA Tradeoffs. Prof. Onur Mutlu Carnegie Mellon University Spring 2014, 1/17/2014

Computer Architecture

Machine Language CS 3330 Samira Khan

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

COSC 6385 Computer Architecture - Thread Level Parallelism (I)

Computer Architecture!

Computer Organization + DIGITAL DESIGN

What is Computer Architecture? CSE Introduction to Computer Architecture. Why do I care? Which is faster? Allan Snavely

Fundamentals of Computers Design

Control Hazards. Branch Prediction

Processor Architecture

Typical Processor Execution Cycle

Architecture I. Computer Systems Laboratory Sungkyunkwan University

CSE Introduction to Computer Architecture

15-740/ Computer Architecture Lecture 7: Pipelining. Prof. Onur Mutlu Carnegie Mellon University Fall 2011, 9/26/2011

Processor Architecture. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Advanced Processor Architecture. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Evolution of ISAs. Instruction set architectures have changed over computer generations with changes in the

Fundamentals of Computer Design

Computer Architecture = CS/ECE 552: Introduction to Computer Architecture. 552 In Context. Why Study Computer Architecture?

COMPUTER ORGANIZATION AND DESI

Advanced Processor Architecture

Computer Architecture. Fall Dongkun Shin, SKKU

Math 230 Assembly Programming (AKA Computer Organization) Spring MIPS Intro

15-740/ Computer Architecture Lecture 10: Out-of-Order Execution. Prof. Onur Mutlu Carnegie Mellon University Fall 2011, 10/3/2011

MIPS Instruction Set Architecture (1)

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Advanced Computer Architecture

Computer Architecture Lecture 13: State Maintenance and Recovery. Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 2/15/2013

Chapter 2: Instructions How we talk to the computer

Computer Architecture Computer Architecture. Computer Architecture. What is Computer Architecture? Grading

Announcement. Computer Architecture (CSC-3501) Lecture 25 (24 April 2008) Chapter 9 Objectives. 9.2 RISC Machines

Computer Architecture

CC312: Computer Organization

Lecture 1: Introduction

CISC 360. Computer Architecture. Seth Morecraft Course Web Site:

Design of Digital Circuits Lecture 13: Multi-Cycle Microarch. Prof. Onur Mutlu ETH Zurich Spring April 2017

Computer Systems Architecture Spring 2016

ECE 468 Computer Architecture and Organization Lecture 1

Computer Organization and Design, 5th Edition: The Hardware/Software Interface

What is Computer Architecture?

General Purpose Processors

Computer Architecture: Dataflow/Systolic Arrays

CpE 442 Introduction To Computer Architecture Lecture 1

Lec 25: Parallel Processors. Announcements

Computer Architecture

Chapter 2. OS Overview

omputer Design Concept adao Nakamura

15-740/ Computer Architecture Lecture 8: Issues in Out-of-order Execution. Prof. Onur Mutlu Carnegie Mellon University

Multi-core Programming Evolution

Reader's Guide Outline of the Book A Roadmap For Readers and Instructors Why Study Computer Organization and Architecture Internet and Web Resources

Chapter 7. Microarchitecture. Copyright 2013 Elsevier Inc. All rights reserved.

15-740/ Computer Architecture Lecture 22: Superscalar Processing (II) Prof. Onur Mutlu Carnegie Mellon University

Computer Architecture

Announcements HW1 is due on this Friday (Sept 12th) Appendix A is very helpful to HW1. Check out system calls

Topics/Assignments. Class 10: Big Picture. What s Coming Next? Perspectives. So Far Mostly Programmer Perspective. Where are We? Where are We Going?

Computer Architecture

Multithreading: Exploiting Thread-Level Parallelism within a Processor

IT 252 Computer Organization and Architecture. Introduction. Chia-Chi Teng

Computer Organization & Assembly Language Programming

Computer Architecture

CMSC22200 Computer Architecture Lecture 8: Out-of-Order Execution. Prof. Yanjing Li University of Chicago

Computer Systems Laboratory Sungkyunkwan University

Computer Organization and Design THE HARDWARE/SOFTWARE INTERFACE

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Real instruction set architectures. Part 2: a representative sample

Computer Architecture s Changing Definition

Computer Systems Architecture

15-740/ Computer Architecture Lecture 12: Issues in OoO Execution. Prof. Onur Mutlu Carnegie Mellon University Fall 2011, 10/7/2011

CS311 Lecture: CPU Implementation: The Register Transfer Level, the Register Set, Data Paths, and the ALU

ECE 486/586. Computer Architecture. Lecture # 7

Instruction Set Architecture. "Speaking with the computer"

Chapter 13 Reduced Instruction Set Computers

ECE/CS 552: Introduction To Computer Architecture 1

Chapter 4. The Processor Designing the datapath

Instruction Set Architectures. Part 1

Instruction Set And Architectural Features Of A Modern Risc Processor

WinARM - Simulating Advanced RISC Machine Architecture. Shuqiang Zhang

Transcription:

Fundamental Concepts and ISA Computer Architecture Today (I) Today is a very exciting time to study computer architecture Industry is in a large paradigm shift (to multi-core and beyond) many different potential system designs possible Many difficult problems motivating and caused by the shift Power/energy constraints Complexity of design à multi-core? Difficulties in technology scaling à new technologies? Memory wall/gap Reliability wall/issues Programmability wall/problem No clear, definitive answers to these problems 2 1

Computer Architecture Today (II) These problems affect all parts of the computing stack if we do not change the way we design systems Problem Algorithm Program/Language User Runtime System (VM, OS, MM) ISA Microarchitecture Logic Circuits Electrons No clear, definitive answers to these problems 3 Computer Architecture Today (III) You can revolutionize the way computers are built, if you understand both the hardware and the software (and change each accordingly) You can invent new paradigms for computation, communication, and storage 4 2

but, first Let s understand the fundamentals You can change the world only if you understand it well enough Especially the past and present dominant paradigms And, their advantages and shortcomings -- tradeoffs 5 What is A Computer? Three key components Computation Communication Storage (memory) 6 3

What is A Computer? Three components Processing control (sequencing) datapath Memory (program and data) I/O 7 The Von Neumann Model/Architecture Also called stored program computer (instructions in memory). Two key properties: Stored program Instructions stored in a linear memory array Memory is unified between instructions and data The interpretation of a stored value depends on the control signals When is a value interpreted as an instruction? Sequential instruction processing One instruction processed (fetched, executed, and completed) at a time Program counter (instruction pointer) identifies the current instr. Program counter is advanced sequentially except for control transfer instructions 8 4

The Von-Neumann Model (of a Computer) 9 Aside: ISA-level Tradeoff: Instruction Pointer Do we need an instruction pointer in the ISA? Yes: Control-driven, sequential execution An instruction is executed when the IP points to it IP automatically changes sequentially (except for control flow instructions) No: Data-driven, parallel execution An instruction is executed when all its operand values are available (data flow) Tradeoffs: MANY high-level ones Ease of programming (for average programmers)? Ease of compilation? Performance: Extraction of parallelism? Hardware complexity? 10 5

ISA vs. Microarchitecture Level Tradeoff Tradeoff (control vs. data-driven execution) can be made at the microarchitecture level ISA: Specifies how the programmer sees instructions to be executed Programmer sees a sequential, control-flow execution order Microarchitecture: How the underlying implementation actually executes instructions Microarchitecture can execute instructions in any order as long as it obeys the semantics specified by the ISA when making the instruction results visible to software Programmer should see the order specified by the ISA 11 The Von-Neumann Model All major instruction set architectures today use this model x86, ARM, MIPS, SPARC, Alpha, POWER Underneath (at the microarchitecture level), the execution model of almost all implementations (or, microarchitectures) is very different Pipelined instruction execution: Intel 80486 uarch Multiple instructions at a time: Intel Pentium uarch Out-of-order execution: Intel Pentium Pro uarch Separate instruction and data caches But, what happens underneath that is not consistent with the von Neumann model is not exposed to software Difference between ISA and microarchitecture 12 6

What is Computer Architecture? ISA+implementation definition: The science and art of designing, selecting, and interconnecting hardware components and designing the hardware/software interface to create a computing system that meets functional, performance, energy consumption, cost, and other specific goals. Traditional (only ISA) definition: The term architecture is used here to describe the attributes of a system as seen by the programmer, i.e., the conceptual structure and functional behavior as distinct from the organization of the dataflow and controls, the logic design, and the physical implementation. Gene Amdahl, IBM Journal of R&D, April 1964 13 ISA vs. Microarchitecture ISA Agreed upon interface between software and hardware SW/compiler assumes, HW promises What the software writer needs to know to write and debug system/user programs Microarchitecture Specific implementation of an ISA Not visible to the software Microprocessor ISA, uarch, circuits Architecture = ISA + microarchitecture Problem Algorithm Program ISA Microarchitecture Circuits Electrons 14 7

ISA vs. Microarchitecture What is part of ISA vs. Uarch? Gas pedal: interface for acceleration Internals of the engine: implement acceleration Implementation (uarch) can be various as long as it satisfies the specification (ISA) Add instruction vs. Adder implementation Bit serial, ripple carry, carry lookahead adders are all part of microarchitecture x86 ISA has many implementations: 286, 386, 486, Pentium, Pentium Pro, Pentium 4, Core, Microarchitecture usually changes faster than ISA Few ISAs (x86, ARM, SPARC, MIPS, Alpha) but many uarchs Why? 15 ISA Instructions Opcodes, Addressing Modes, Data Types Instruction Types and Formats Registers, Condition Codes Memory Address space, Addressability, Alignment Virtual memory management Call, Interrupt/Exception Handling Access Control, Priority/Privilege I/O: memory-mapped vs. instr. Task/thread Management Power and Thermal Management Multi-threading support, Multiprocessor support 16 8

Microarchitecture Implementation of the ISA under specific design constraints and goals Anything done in hardware without exposure to software Pipelining In-order versus out-of-order instruction execution Memory access scheduling policy Speculative execution Superscalar processing (multiple instruction issue?) Clock gating Caching? Levels, size, associativity, replacement policy Prefetching? Voltage/frequency scaling? Error correction? 17 9