Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cps-104 Intro.1 ©GK Spring 1999 CPS104 Computer Organization Lecture 1 January 14, 1999 Gershon Kedem Slides available on:

Similar presentations


Presentation on theme: "Cps-104 Intro.1 ©GK Spring 1999 CPS104 Computer Organization Lecture 1 January 14, 1999 Gershon Kedem Slides available on:"— Presentation transcript:

1 cps-104 Intro.1 ©GK Spring 1999 CPS104 Computer Organization Lecture 1 January 14, 1999 Gershon Kedem Slides available on: http://kedem.cs.duke.edu/cps104/Lectures.html

2 cps-104 Intro.2 ©GK Spring 1999 CPS104: Computer Organization Instructor:Gershon Kedem Office: LSRC D342, 660-6555 kedem@cs.duke.edu Office Hours: Tue. & Thur., 3:30 - 4:30pm or by appt. TA: Zheng (Eric) Zhang Office: Room 03 North Bld. Office Hours: Mon. 3:30-4:30, Thur. 1:00-2:00, or by appt. UTAs:Tanner Mueller, David E. Shifren, Joseph Tate, Corey Miller, Brijal Padia, (Iris Liu ?) Text: Computer Organization & Design: The Hardware / Software Interface ( 2nd edition ). Web page: http://kedem.cs.duke.edu/cps104/ Newsgroup: duke.cs.cps104

3 cps-104 Intro.3 ©GK Spring 1999 Course Outline: 1.Introduction to Computer Organization.  What is in the box.  Integer and Floating point representation.  Basic data structures. 2.Instruction Set Architecture.  The MIPS Processor.  Assembly level programming.  Instructions and data types representations.  Addressing, procedure calls and Exceptions.  Linking & Loading. 3.Digital Logic:  Introduction: Digital Gates and Boolean Algebra.  Arithmetic and Logic circuits,  Other Functional Units  Flip-flops, Registers and Tristate drivers

4 cps-104 Intro.4 ©GK Spring 1999 Course Outline (continue) : 4.Single Cycle Per Instruction Processor.  The Datapath.  Executing Instructions  Control 5.Interrupts. 6.The Memory Hierarchy.  Cache Memory.  Virtual Memory and Paging. 7.I/O Devices.  I/O storage devices.  I/O buses and arbitration  LANs and WANs. 8.Advanced processors:  Pipelined Processor.  Super-Scalar processor. 9.Advanced Computer Architecture. (If there is time).  Fast Interconnects  Parallel Machines

5 cps-104 Intro.5 ©GK Spring 1999 Grading Grade breakdown  Midterm Exam: 18%  Final Exam:32%  Homework Assignments50% Late homework policy:  No sad stories!  No “cooperation” on homework (Unless specified in the assignment).  10% reduction for each day late.  No credit after the homework was graded and handed back. Grades posted on home page:  Password protected Access  Written/email request for changes to grades.

6 cps-104 Intro.6 ©GK Spring 1999 Homework-0 Send me (kedem@cs.duke.edu) email message with: your name, year, major and a short description of your computer science / Engineering background. Readings: Chapter-1, next time we start on data representations (Chapter-4).

7 cps-104 Intro.7 ©GK Spring 1999 Course Problems Can’t make midterm  Tell us early and we will schedule alternate time Forgot to turn in homework/ Dog ate the computer, network down…..  I do not accept excuses!  If you have a legitimate problem. Talk to me early, email me a reminder. What is cheating?  Studying together in groups is encouraged  All written work must be your own. Programs that are substantially the same as others will receive a grade of 0!  Common examples of cheating: running out of time on a assignment and then pick up someone else's output,, person asks to borrow solution “just to take a look”, copying an exam question,...

8 cps-104 Intro.8 ©GK Spring 1999 What You Will Learn The basic operation of a computer  primitive operations (instructions)  arithmetic  instruction sequencing and processing  memory  input/output  etc. Understand the relationship between abstractions  interface design  high-level program to control signals (SW -> HW) Software performance depends on understanding underlying HW

9 cps-104 Intro.9 ©GK Spring 1999 CPS104: Course Overview Computer Design Instruction Set Design ° Machine Language ° Compiler View ° "Computer Architecture" ° "Instruction Set Processor" "Building Architect" Computer Hardware Design ° Machine Implementation\ ° Logic Designer's View ° "Processor Architecture" ° "Computer Organization" “Construction Engineer” Few people design computers! Very few design instruction sets! Many people design computer components. Very many people are concerned with computer function, in detail.

10 cps-104 Intro.10 ©GK Spring 1999 The Big Picture What is inside a computer? How does it execute my program? ?

11 cps-104 Intro.11 ©GK Spring 1999 The Big Picture Control Datapath Memory Processor/CPU Input Output The Five Classic Components of a Computer

12 cps-104 Intro.12 ©GK Spring 1999 I/O Bus Memory Bus Processor Cache Main Memory Disk Controller Disk Graphics Controller Network Interface Graphics Network interrupts System Organization I/O Bridge Core Chip Set

13 cps-104 Intro.13 ©GK Spring 1999 What is Computer Architecture? Coordination of levels of abstraction I/O systemCPU Compiler Operating System Application Digital Design Circuit Design Under a set of rapidly changing Forces Instruction Set Architecture, Memory, I/O Firmware Memory Software Hardware Interface Between HW and SW

14 cps-104 Intro.14 ©GK Spring 1999 Levels of Representation 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) 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

15 cps-104 Intro.15 ©GK Spring 1999 Forces on Computer Architecture Computer Architecture Technology Programming Languages Operating Systems History Applications (A = F / M)

16 cps-104 Intro.16 ©GK Spring 1999 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, Blaaw, and Brooks, 1964 SOFTWARE -- Organization of Programmable Storage -- Data Types & Data Structures: Encoding & Representations -- Instruction Formats -- Instruction (or Operation Code) Set -- Modes of Addressing and Accessing Data Items and Instructions -- Exceptional Conditions

17 cps-104 Intro.17 ©GK Spring 1999 instruction set software hardware Instruction Set Interface Interface imp 1 imp 2 imp 3 use time

18 cps-104 Intro.18 ©GK Spring 1999 MIPS I Instruction Set Architecture Instruction Categories  Load/Store  Computational  Jump and Branch  Floating Point  Memory Management  Special R0 - R31 PC HI LO OP rs rt rdsafunct rs rt immediate jump target 3 Instruction Formats: all 32 bits wide

19 cps-104 Intro.19 ©GK Spring 1999 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 -- 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

20 cps-104 Intro.20 ©GK Spring 1999 Execution Cycle Instruction Fetch Instruction Decode Operand Fetch Execute Result Store Next Instruction Obtain instruction from program storage Determine required actions and instruction size Locate and obtain operand data Compute result value or status Deposit results in storage for later use Determine successor instruction

21 cps-104 Intro.21 ©GK Spring 1999 Processor Performance 1000 1200 19971996199519941993199219911990198919881987 Copyright 1998 Morgan Kaufmann Publishers, Inc. All Rights Reserved

22 cps-104 Intro.22 ©GK Spring 1999 Performance Trends Year Performance 0.1 1 10 100 1000 19651970197519801985199019952000 Microprocessors Minicomputers Mainframes Supercomputers

23 cps-104 Intro.23 ©GK Spring 1999 Memory: 4x every 3 years Technology: Microprocessor Logic Density

24 cps-104 Intro.24 ©GK Spring 1999 Processor Module External Cache DatapathRegisters Internal Cache Control Processor Processor and Caches To main memory

25 cps-104 Intro.25 ©GK Spring 1999 Memory Controller Memory Bus SIMM Slot 0SIMM Slot 1SIMM Slot 2SIMM Slot 3 SIMM Slot 4 SIMM Slot 5SIMM Slot 6SIMM Slot 7 DRAM SIMM DRAM Memory

26 cps-104 Intro.26 ©GK Spring 1999 Summary Goal Understand basic operation of a computer Why? Software performance is affected/determined by HW capabilities Future Computer Architects (Processor or System)

27 cps-104 Intro.27 ©GK Spring 1999 Summary (Continued) Agenda Map “high-level” software to instructions Instructions are composed of hardware primitives  how to use them  how to implement them  why a particular primitive Memory for storing instructions and data  Main memory  Caches  interaction with operating system Input/Output

28 cps-104 Intro.28 ©GK Spring 1999 Summary (Continued) All computers consist of five components  Processor: (1) datapath and (2) control  (3) Memory  (4) Input devices and (5) Output devices Not all “memory” created equally  Cache: fast (expensive, small) memory close to the processor  Main memory: slower, cheaper, larger memory farther from processor Input and output (I/O) devices has the messiest organization  Wide range of speed: graphics vs. keyboard  Wide range of requirements: speed, standard, cost... etc.

29 cps-104 Intro.29 ©GK Spring 1999 Next Time Data Representations Reading Chapter 4.1-4.3, 4.8 pages 275-280 Read Chapter 1, Skim 2 Start reading Chapter 3


Download ppt "Cps-104 Intro.1 ©GK Spring 1999 CPS104 Computer Organization Lecture 1 January 14, 1999 Gershon Kedem Slides available on:"

Similar presentations


Ads by Google