Presentation is loading. Please wait.

Presentation is loading. Please wait.

CEG3420 L1 Intro.1 Copyright (C) 1998 UCB CEG3420 Computer Design Lecture 1 Philip Leong.

Similar presentations


Presentation on theme: "CEG3420 L1 Intro.1 Copyright (C) 1998 UCB CEG3420 Computer Design Lecture 1 Philip Leong."— Presentation transcript:

1 CEG3420 L1 Intro.1 Copyright (C) 1998 UCB CEG3420 Computer Design Lecture 1 Philip Leong

2 CEG3420 L1 Intro.2 Copyright (C) 1998 UCB Overview °Course Style, Philosophy and Structure °Intro to Computer Architecture

3 CEG3420 L1 Intro.3 Copyright (C) 1998 UCB Course Administration °Instructor:Philip Leong(phwl) °TA: Hiu Yung Wong(hywong2) Norris Leong(mpleong) °Tuts:W5 (MMW703) °WWW: °Text:Computer Organization and Design: The Hardware/Software Interface, Second Edition, Patterson and Hennessy Q: Need 2nd Edition? yes! >> 50% text changed, all exercises changed all examples modernized, new sections,...

4 CEG3420 L1 Intro.4 Copyright (C) 1998 UCB Lecture notes °Available on CEG3420 Page °Courtesy of University of California at Berkeley’s CS152 Course (http://oheo.eecs.berkeley.edu:80/cs152/)

5 CEG3420 L1 Intro.5 Copyright (C) 1998 UCB Objectives °This is a course in Computer Design and at the end of the course, students should understand  how modern computer systems work  how to design a computer & how design decisions affect cost and performance.  how to measure performance

6 CEG3420 L1 Intro.6 Copyright (C) 1998 UCB Tutorials °These will be posted on the CEG3420 WWW site each week. °Tutorial solutions must be handed to the tutor in the tutorial session of the week following the tutorial unless otherwise specified

7 CEG3420 L1 Intro.7 Copyright (C) 1998 UCB Grading °Grade breakdown Final exam: 50% (combined) Midterm :25% Assignments :20% Tutorials:5% °Anything late: -20% per day

8 CEG3420 L1 Intro.8 Copyright (C) 1998 UCB Cheating °What is cheating? Studying together in groups is encouraged Work must be your own Common examples of cheating: running out of time on a assignment and then pick up output, take homework from box and copy, person asks to borrow solution “just to take a look”, copying an exam question, … °Any cases, (however small or large) will be forwarded to CS&E disciplinary committee

9 CEG3420 L1 Intro.9 Copyright (C) 1998 UCB Project °Two projects will be completed in this course Software simulator for a subset of the MIPS instruction set -after completing this project you should really understand how the instruction set works logically Design of a RISC microprocessor -after completing this project you should understand how to implement it in hardware -you can be creative and develop as simple/complex processor as you like °Done in groups of two

10 CEG3420 L1 Intro.10 Copyright (C) 1998 UCB Things We Hope You Will Learn from CEG3420 °Keep it simple and make it work Fully test everything individually and then together Retest everything whenever you make any changes Last minute changes are big “no-nos” °Planning is very important: Promise what you can deliver; deliver more than you promise Murphy’s Law: things DO break at the last minute -Don’t make your plan based on the best case scenarios -Freeze you design and don’t make last minute changes °Never give up! It is not over until you give up.

11 CEG3420 L1 Intro.11 Copyright (C) 1998 UCB Assumed knowledge °Basic machine structure processor, memory, I/O °Read and write basic C programs °Read and write in an assembly language not necessarily MIPs which will be covered in the course °Logic design logical equations, schematic diagrams, FSMs, components

12 CEG3420 L1 Intro.12 Copyright (C) 1998 UCB Levels of Representation (Review) High Level Language Program Assembly Language Program Machine Language Program Control Signal Specification Compiler Assembler Machine Interpretation 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) °°°° ALUOP[0:3] <= InstReg[9:11] & MASK

13 CEG3420 L1 Intro.13 Copyright (C) 1998 UCB What is “Computer Architecture” Computer Architecture = Instruction Set Architecture + Machine Organization

14 CEG3420 L1 Intro.14 Copyright (C) 1998 UCB Instruction Set Architecture (subset of Computer Arch.)... 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, Blaaw, and Brooks, 1964SOFTWARE -- Organization of Programmable Storage -- Data Types & Data Structures: Encodings & Representations -- Instruction Set -- Instruction Formats -- Modes of Addressing and Accessing Data Items and Instructions -- Exceptional Conditions

15 CEG3420 L1 Intro.15 Copyright (C) 1998 UCB The Instruction Set: a Critical Interface instruction set software hardware

16 CEG3420 L1 Intro.16 Copyright (C) 1998 UCB Example ISAs (Instruction Set Architectures) °Digital Alpha(v1, v3) °HP PA-RISC(v1.1, v2.0) °Sun Sparc(v8, v9) °SGI MIPS(MIPS I, II, III, IV, V) °Intel(8086,80286,80386, ,Pentium, MMX,...)

17 CEG3420 L1 Intro.17 Copyright (C) 1998 UCB MIPS R3000 Instruction Set Architecture (Summary) °Instruction Categories Load/Store Computational Jump and Branch Floating Point -coprocessor Memory Management Special R0 - R31 PC HI LO OP rs rt rdsafunct rs rt immediate jump target 3 Instruction Formats: all 32 bits wide Registers

18 CEG3420 L1 Intro.18 Copyright (C) 1998 UCB Organization 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 °Information flows between components °Logic and means by which such information flow is controlled. °Choreography of FUs to realize the ISA °Register Transfer Level (RTL) Description

19 CEG3420 L1 Intro.19 Copyright (C) 1998 UCB Example Organization °TI SuperSPARC tm TMS390Z50 in Sun SPARCstation20 Floating-point Unit Integer Unit Inst Cache Ref MMU Data Cache Store Buffer Bus Interface SuperSPARC L2 $ CC MBus Module MBus L64852 MBus control M-S Adapter SBus DRAM Controller SBus DMA SCSI Ethernet STDIO serial kbd mouse audio RTC Boot PROM Floppy SBus Cards

20 CEG3420 L1 Intro.20 Copyright (C) 1998 UCB What is “Computer Architecture”? I/O systemInstr. Set Proc. Compiler Operating System Application Digital Design Circuit Design Instruction Set Architecture Firmware °Coordination of many levels of abstraction °Under a rapidly changing set of forces °Design, Measurement, and Evaluation Datapath & Control Layout

21 CEG3420 L1 Intro.21 Copyright (C) 1998 UCB Forces on Computer Architecture Computer Architecture Technology Programming Languages Operating Systems History Applications (A = F / M) Constraints e.g. cost, energy

22 CEG3420 L1 Intro.22 Copyright (C) 1998 UCB Technology => dramatic change °Processor logic capacity: about 30% per year clock rate: about 20% per year °Memory DRAM capacity: about 60% per year (4x every 3 years) Memory speed: about 10% per year Cost per bit: improves about 25% per year °Disk capacity: about 60% per year

23 CEG3420 L1 Intro.23 Copyright (C) 1998 UCB VLSI commercial IC technology extrapolations

24 CEG3420 L1 Intro.24 Copyright (C) 1998 UCB Technology °In ~1985 the single-chip processor (32-bit) and the single-board computer emerged => workstations, personal computers, multiprocessors have been riding this wave since °In the timeframe, these may well look like mainframes compared single-chip computer (maybe 2 chips) DRAM YearSize Kb Kb Mb Mb Mb Mb Mb Gb Microprocessor Logic DensityDRAM chip capacity

25 CEG3420 L1 Intro.25 Copyright (C) 1998 UCB Performance Trends Microprocessors Minicomputers Mainframes Supercomputers 1995 Year Log of Performance

26 CEG3420 L1 Intro.26 Copyright (C) 1998 UCB Processor Performance (SPEC) RISC introduction Did RISC win the technology battle and lose the market war? performance now improves ­ 50% per year (2x every 1.5 years)

27 CEG3420 L1 Intro.27 Copyright (C) 1998 UCB Measurement and Evaluation Architecture is an iterative process -- searching the space of possible designs -- at all levels of computer systems -- constraints of energy, cost (=area) and performance Good Ideas Mediocre Ideas Bad Ideas Cost / Performance Analysis Design Analysis Creativity

28 CEG3420 L1 Intro.28 Copyright (C) 1998 UCB CEG3420: Course Content Computer Architecture and Engineering Instruction Set DesignComputer Organization InterfacesHardware Components Compiler/System ViewLogic Designer’s View ­“Building Architect”­“Construction Engineer”

29 CEG3420 L1 Intro.29 Copyright (C) 1998 UCB CEG3420: So what's in it for me? °In-depth understanding of the inner-workings of modern computers, their evolution, and trade-offs present at the hardware/software boundary. Insight into fast/slow operations that are easy/hard to implementation hardware °Experience with the design process in the context of a large complex (hardware) design. Functional Spec --> Control & Datapath --> Physical implementation Modern CAD tools °Designer's "Conceptual" toolbox.

30 CEG3420 L1 Intro.30 Copyright (C) 1998 UCB Conceptual tool box? °Evaluation Techniques °Levels of translation (e.g., Compilation) °Levels of Interpretation (e.g., Microprogramming) °Hierarchy (e.g, registers, cache, mem,disk,tape) °Pipelining and Parallelism °Static / Dynamic Scheduling °Indirection and Address Translation °Synchronous and Asynchronous Control Transfer °Timing, Clocking, and Latching °CAD Programs, Hardware Description Languages, Simulation °Physical Building Blocks (e.g., CLA) °Understanding Technology Trends

31 Summary °All computers consist of five components Processor: (1) datapath and (2) control (3) Memory (4) Input devices and (5) Output devices °Not all “memory” are created equally Cache: fast (expensive) memory are placed closer to the processor Main memory: less expensive memory--we can have more °Interfaces are where the problems are - between functional units and between the computer and the outside world °Need to design against constraints of performance, power, area and cost

32 CEG3420 L1 Intro.32 Copyright (C) 1998 UCB Summary: Computer System Components Proc Caches Busses Memory I/O Devices: Controllers adapters Disks Displays Keyboards Networks °All have interfaces & organizations


Download ppt "CEG3420 L1 Intro.1 Copyright (C) 1998 UCB CEG3420 Computer Design Lecture 1 Philip Leong."

Similar presentations


Ads by Google