EEC170 Computer Architecture. Lecture 1: Introduction to Computer Architecture

Similar documents
Computer Architecture

ECE 468 Computer Architecture and Organization Lecture 1

CPS104 Computer Organization Lecture 1

EEM 486: Computer Architecture

CpE 442 Introduction To Computer Architecture Lecture 1

CPS104 Computer Organization Lecture 1. CPS104: Computer Organization. Meat of the Course. Robert Wagner

Computer Architecture = Instruction Set Architecture + Machine Organization +.. Overview

CMSC 611: Advanced Computer Architecture

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

ECE468 Computer Organization and Architecture. OS s Responsibilities

ECE 15B COMPUTER ORGANIZATION

CS152 Computer Architecture and Engineering Lecture 1. August 27, 1997 Dave Patterson (http.cs.berkeley.edu/~patterson)

CS430 - Computer Architecture William J. Taffe Fall 2002 using slides from. CS61C - Machine Structures Dave Patterson Fall 2000

Review: What is a Computer?

CS61C Machine Structures. Lecture 1 Introduction. 8/27/2006 John Wawrzynek (Warzneck)

CS61C Machine Structures. Lecture 1 Introduction. 8/25/2003 Brian Harvey. John Wawrzynek (Warznek) www-inst.eecs.berkeley.

Administrative matters. EEL-4713C Computer Architecture Lecture 1. Overview. What is this class about?

CS4200/5200. Lecture 1 Introduction. Dr. Xiaobo Zhou Department of Computer Science. UC. Colorado Springs. Compiler

EECE 321: Computer Organization

Computer Architecture = Instruction Set Architecture + Machine Organization +.. Overview

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

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

Computer Architecture s Changing Definition

Handouts. (CSC-3501) Lecture 1 (15 Jan 2008) Seung-Jong Park (Jay) Class information. Schedule (check online frequently)

14:332:331. Lecture 1

Computer Architecture

Computer Organization

CSE 141 Computer Architecture Spring Lecture 3 Instruction Set Architecute. Course Schedule. Announcements

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

ELEC 5200/6200. Computer Architecture & Design. Victor P. Nelson Broun 326

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

CS 152 Computer Architecture and Engineering Lecture 1 Single Cycle Design

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

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

Computer Architecture. Fall Dongkun Shin, SKKU

Lecture Topics. Announcements. Today: Single-Cycle Processors (P&H ) Next: continued. Milestone #3 (due 2/9) Milestone #4 (due 2/23)

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

CS61CL Machine Structures. Lec 5 Instruction Set Architecture

Intro to Math 230 Assembly Language Programming. Lecture # 01 01/15/08

Lecture 10: Simple Data Path

Chapter 4. The Processor

CS 3410: Intro to Computer System Organization and Programming

Computer Hardware Generations

UC Berkeley CS61C : Machine Structures

Chapter 4. The Processor

Lecture 3 Machine Language. Instructions: Instruction Execution cycle. Speaking computer before voice recognition interfaces

CSE Introduction to Computer Architecture. Jeff Brown

CSE : Introduction to Computer Architecture

Instruction Set Architecture. "Speaking with the computer"

CS3350B Computer Architecture Winter 2015

CS152 Computer Architecture and Engineering. Lecture 1 Introduction & MIPS Review Dave Patterson. www-inst.eecs.berkeley.

COMPUTER ORGANIZATION (CSE 2021)

3/12/2014. Single Cycle (Review) CSE 2021: Computer Organization. Single Cycle with Jump. Multi-Cycle Implementation. Why Multi-Cycle?

COMPUTER ORGANIZATION (CSE 2021)

CS 3410 Computer System Organization and Programming

CSEE 3827: Fundamentals of Computer Systems

Chapter 4. The Processor

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

CS 3410 Computer System Organization and Programming

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Computer Architecture. Introduction. Lynn Choi Korea University

EE382 Processor Design. Class Objectives

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

CS61C : Machine Structures

Processor (I) - datapath & control. Hwansoo Han

CMPSCI 201: Architecture and Assembly Language

Computer Architecture 2/26/01 Lecture #

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

Modern Computer Architecture (Processor Design) Prof. Dan Connors

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

ECE 486/586. Computer Architecture. Lecture # 7

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor.

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

The Processor: Datapath and Control. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Computer Architecture

Processor Architecture

Review of instruction set architectures

ECE 154A. Architecture. Dmitri Strukov

Pipelining. CSC Friday, November 6, 2015

CSE Introduction to Computer Architecture

EECS 151/251A Fall 2017 Digital Design and Integrated Circuits. Instructor: John Wawrzynek and Nicholas Weaver. Lecture 13 EE141

Reduced Instruction Set Computer

COMPUTER ORGANIZATION AND DESIGN. The Hardware/Software Interface. Chapter 4. The Processor: A Based on P&H

CS61C : Machine Structures

Topic Notes: MIPS Instruction Set Architecture

CPE300: Digital System Architecture and Design

ECE232: Hardware Organization and Design

What is this class all about?

CSE140: Components and Design Techniques for Digital Systems

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

MIPS Pipelining. Computer Organization Architectures for Embedded Computing. Wednesday 8 October 14

CPE300: Digital System Architecture and Design. Fall 2011 MW 17:30-18:45 CBC C316

Chapter 1 Introduction. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 4. The Processor

Computer Technology & Abstraction

ECE 2300 Digital Logic & Computer Organization. More Single Cycle Microprocessor

Multiple Issue ILP Processors. Summary of discussions

What is this class all about?

COMPUTER ORGANIZATION AND DESIGN

Anupam Gupta, Braydon Hall, Eugene Oh, Savanna Yee. Steve Jobs custom Apple I and other historic machines are on display at Seattle museum

Transcription:

EEC170 Computer Architecture Lecture 1: Introduction to Computer Architecture Soheil Ghiasi Electrical and Computer Engineering University of California, Davis Fall 2005 What is a Computer? It has memory to store data and programs. It has processing capability (control+datapath) It has an input/output mechanism Computer Processor Control brains Datapath brawn Program Data Memory (where (where programs, programs, data data live live when when running) running) Devices Input Output Keyboard, Mouse Disk (where programs, data live when not running) Display, Printer

Example Organization TI SuperSPARC tm TMS390Z50 in Sun SPARCstation20 SuperSPARC MBus Module Floating-point Unit Integer Unit L2 $ CC MBus DRAM Controller Inst Cache Ref MMU Bus Interface Data Cache Store Buffer L64852 MBus control M-S Adapter SBus SBus DMA SBus Cards SCSI Ethernet STDIO serial kbd mouse audio RTC Boot PROM Floppy Microprocessor Evolution Intel 4004 introduced 1971 Specs 4 bit datapath 256-byte ROM 32-bit RAM 10-bit shift register 2300 transistors Clock speed - 108 kilohertz, 60,000 operations/second 45 instructions

Pentium 4 Die Photo Specs: 42M transistors PIII: 26M 217 mm 2 PIII: 106 mm 2 L1 Execution Cache Buffer 12,000 Micro-Ops 8KB data cache 256KB L2$ Speed of Computer Technologies Epoch 1930 1940 1950 1960 1970 1980 1990 2000 2010 Technology Mechanical Relay Vacuum Tube Transistor Intergated Circuit Microprocessor Microprocessor Microprocessor Microprocessor, Quantum, Nano, Biological? Operations/sec 1 10 1,000 1,000,000 10,000,000 100,000,000 1,000,000,000 1,000,000,000,000 100,000,000,000,000?

Computer Technology - Dramatic Change! Processor 2X in speed every 1.5 years (since 85); 100X performance in last decade. Memory DRAM capacity: 2x / 2 years (since 96); 64x size improvement in last decade. Disk Capacity: 2X / 1 year (since 97) 250X size in last decade. Computer Technology => Dramatic Change State-of-the-art PC when you graduate: Processor clock speed: 12.0 GigaHertz Memory capacity: 10.0 GigaBytes Disk capacity: 10000 GigaBytes (10.0 TeraBytes) New unit! Giga => Tera Might not be the case! - Challenges to Moore s law

Technology Trends Moore s Law In 1965, Gordon Moore predicted that the number of transistors per chip would double every 18 months (1.5 years) Did Moore s prediction hold?

Side effects of Moore s Law Number of transistors shipped per year Side effects of Moore s Law Average transistor price per year

Side effects of Moore s Law Side effects of Moore s Law

Side effects of Moore s Law World-wide semiconductor revenues Side effects of Moore s Law What is the actual size of a modern wafer? Actual size of wafer today - 300 mm diameter, approx. 12 Moore s prediction Moore didn t get everything right

The Classic Computer Engineering Problem: How to physically implement computations? Where is Computer Architecture? Software Hardware Application (Netscape) Compiler Assembler Processor Memory Digital Design Circuit Design transistors Operating System (Windows 2K) Datapath & Control I/O system Instruction Set Architecture EEC170 * Coordination of many levels of abstraction

Levels of Representation High Level Language Program Compiler Assembly Language Program Assembler Machine Language Program temp = v[k]; v[k] = v[k+1]; v[k+1] = temp; lw $15, 0($2) lw $16, 4($2) sw $16, 0($2) sw $15, 4($2) 0000 1001 1100 0110 1010 1111 0101 1000 1010 1111 0101 1000 0000 1001 1100 0110 1100 0110 1010 1111 0101 1000 0000 1001 0101 1000 0000 1001 1100 0110 1010 1111 Computer Logic Control Signal Specification ALUOP[0:3] <= InstReg{9:12] & MASK EEC170 View

Instruction Set Interface software instruction set hardware -- Organization of Programmable Storage SOFTWARE -- Data Types & Data Structures: Encodings & Representations -- Instruction Formats -- Instruction (or Operation Code) Set -- Modes of Addressing and Accessing Data Items and Instructions -- Exceptional Conditions Computer Implementation Logic Designer's View ISA Level FUs & Interconnect -- Capabilities & Performance Characteristics of Principal Functional Units (e.g., Registers, ALU, Shifters, Logic Units,...) -- Ways in which these components are interconnected -- nature of information flows between components -- logic and means by which such information flow is controlled. Choreography of FUs to realize the ISA Register Transfer Level Description

Example ISAs (Instruction Set Architectures) Digital Alpha (v1, v3) 1992-97 HP PA-RISC (v1.1, v2.0) 1986-96 Sun Sparc (v8, v9) 1987-95 SGI MIPS (MIPS I, II, III, IV, V) 1986-96 Intel (8086,80286,80386, 1978-96 80486,Pentium, MMX,...) MIPS Instruction Set Architecture Instruction Categories Load/Store Computational Jump and Branch Floating Point - coprocessor Memory Management Special R0 - R31 PC HI LO 3 Instruction Formats: all 32 bits wide OP OP OP rs rt rd sa funct rs rt immediate jump target

Instruction Interpretation Cycle (Execution Cycle) Instruction Fetch Obtain instruction from program storage Instruction Decode Determine required actions and instruction size Operand Fetch Execute Locate and obtain operand data Compute result value or status Result Store Deposit results in storage for later use Next Instruction Determine successor instruction Measurement and Evaluation Design Architecture is an iterative process -- searching the space of possible designs -- at all levels of computer systems Analysis Creativity Cost / Performance Analysis Bad Ideas Good Ideas Mediocre Ideas

EEC170: So what's in it for me? Understanding of the inner-workings of modern computers, which is useful when programming them Understanding of trade-offs present at the hardware/software boundary Much of what used to be software can now be implemented in hardware. Insight into operations that are easy/hard to implement in hardware People who understand both hardware and software are in great demand Basis (and better understanding) for advanced courses Operating systems Compilers (EEC175) Graduate Computer Architecture (EEC270) High-performance parallel computing (EEC171) Participate in lecture, ask questions ECE154: Computer Architecture and Engineering Instructor: Soheil Ghiasi Office: 3171 Kemper Hall, my-first-name @ece.ucdavis.edu Office Hours: Thursday 3-5pm prefer questions after class, or in office hours rather than email (if possible) TA: Chris Giacomotto giacomoc AT-SIGN ucdavis.edu Office Hours Monday 4-6pm location: TBD Text: Computer Organization & Design: The Hardware / Software Interface (third edition) This one Not this one

About Me PhD: UCLA 2004 Joined UC-Davis in October 2004 Undergraduate Teaching: EEC180A-B, EEC170 Research: Computer in Embedded Applications (embedded systems) Course Logistics: On the Web Course web site URL http://www.ece.ucdavis.edu/~soheil/teaching/eec170-f05 On-line material lecture viewgraphs in PDF softcopies of handouts, homework, project description, etc. important announcements I ll assume that you check website daily - Make sure to reload Class mailing list

Class Format Published Schedule: Lecture: 2:10-3:30 Discussion: 3:30-4 Actual Schedule: Lecture and discussion are merged Two approx. 50 min lectures with 10 min break - 2:10-3:00-3:10-4:00 Occasional classes are entirely dedicated to problem solving, exam review and might be taught by the TA. Exams Midterm: Nov 9 th in Class Material Chapters 1-5 Final: 1:30pm Friday, December 16, 2005 Review meetings: the class before the exams Goal: test knowledge and reasoning rather than memory

Homework Assignments and Quiz (mini-project) All assignments are assigned on Wednesday Assignments due second following Friday at 5pm in EEC170 box - 2131 Kemper Hall Most weeks - Except for the first and thanksgiving week Grading Grade breakdown Homework Assignments 20% Quiz or mini-projects 10% Midterm Exam: 30% Final: 40% Cheating Don t do it

32 32 =>34 signex 2 2 34 32 Multiplicand Register 34-bit ALU Sub/Add 34 32 HI register (16x2 bits) 32 =>34 signex <<1 34 1 0 34x2 MUX 34 2 34 LoadMp Multi x2/x1 32 32 Result[HI] Result[LO] 32 ShiftAll LO register (16x2 bits) 2 LO[1:0] ENC[2] ENC[1] ENC[0] Control Logic 1 2 0 Course Problems TALK TO US, EARLY!!!!! WE ARE HERE TO HELP!!!! Can t make midterm or final Tell us early. The makeup exam will probably be an oral exam with the instructor. You don t want to try it unless you have to Late Homework Policy No late homework is accepted! Where are we going?? Single/multicycle Datapaths Extra 2 bits Input Multiplicand LoadHI ClearHI Input Multiplier LoadLO Prev LO[1] Booth Encoder Arithmetic "LO[0]" IFetchDcd Exec Mem WB IFetchDcd Exec Mem WB IFetchDcd Exec Mem WB 170 Fall 05 Performance 1000 µproc 60%/yr. CPU (2X/1.5yr) Moore s Law 100 Processor-Memory Performance Gap: (grows 50% / year) 10 DRAM 9%/yr. DRAM (2X/10 yrs) 1 198 0198 198 198 3198 4198 5198 6198 7198 8198 9199 0199 199 2199 3199 4199 5199 6199 7199 199 8 9200 Time Pipelining IFetchDcd Exec Mem WB Memory Systems I/O

Summary All computers consist of five components Processor: (1) datapath and (2) control (3) Memory (4) Input devices and (5) Output devices Moore s Law has fueled a dramatic change in computer technology Faster, cheaper computation Complicated computing machines Abstraction is the key to design increasingly complicated computing devices Reading Assignment Read chapter 1 Try to do some problems Review your EEC70 notes We will need them next time! Do not need to turn these in