
1bb8d90cd20c1c3f0b78ece21725d6a4.ppt
- Количество слайдов: 33
Welcome to Comp 411! I thought this course was called “Computer Organization” 1) Course Mechanics 2) Course Objectives 3) What is Information? 4) Computer Abstractions David Macaulay Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 1
Meet the Crew… Instructor: Montek Singh (FB 234 Brooks Bldg. ) Office Hours: TBA TA: Book: John Hansen (to be confirmed Fri) Patterson & Hennessy Computer Organization & Design 3 rd Edition, revised printing, June 2007 ISBN: 978 -0123706065 Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 2
Credits These slides were developed by Leonard Mc. Millan and adapted by Gary Bishop and me. Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 3
Course Mechanics Grading: Best (N-2) of N problem sets (N will be 8 to 10) 2 Quizzes Final Exam 40% 30% • Problem sets will be distributed on the web and are due back on the date indicated before the lecture begins. Usually you will have one week to complete each set, but occasionally you may have more or less time. • Late problem sets will not be accepted, but the lowest two problem-set scores will be dropped. • I will attempt to make Lecture Slides, Problem Sets, and other course materials available on the web either before class, or soon after, on the day they are given. Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 4
Prerequisites • COMP 401: Foundations of Programming – This is a hard prerequisite – You may be able to substitute another programming course, but please first talk to me! • You need to know at least the following concepts: – – – basic data types: integers, characters, Boolean, etc. basic arithmetic operators and expressions “if-then-else” constructs, and “while”/“for” loops function and procedure calls basic Boolean operators (AND, OR, XOR, etc. ) • If you don’t know many of the above concepts, please talk to me! Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 5
How to do well in this course • Attend lectures (stay awake!) • Read the book! – Big mistake = only reviewing lecture slides • Do all homework – Start early. Many problem sets are too hard to attempt the night before. • Ask questions in class • Discuss with other students – But all work handed must be your own (see Honor Code on class web). • Remember: Use all materials from this semester only – Much of the material (lecture slides, problem sets, etc. ) has changed – Looking up solutions from earlier semesters = cheating. Not worth it. Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 6
Comp 411: Course Website http: //www. cs. unc. edu/~montek/teaching/fall-08 Will be updated later this week with more information Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 7
Who I am Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 8
Who are you? By year? By major? Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 9
Goal 1: Demystify Computers Strangely, most people (even some computer scientists) are afraid of computers. We are only afraid of things we do not understand! I do not fear computers. I fear the lack of them. - Isaac Asimov (1920 - 1992) Fear is the main source of superstition, and one of the main sources of cruelty. To conquer fear is the beginning of wisdom. - Bertrand Russell (1872 – 1970) Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 10
Computers Everywhere The computers we are used to Desktops Laptops Embedded processors Cars Mobile phones Toasters, irons, wristwatches, happy-meal toys Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 11
Goal 2: Power of Abstraction Define a function, develop a robust implementation, and then put a box around it. Abstraction enables us to create unfathomable machines called computers. Why do we need ABSTRACTION… Imagine a billion --- 1, 000, 000 Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 12
The key to building systems with >1 G components Personal Computer: Hardware & Software MOSFET =“transistor” =“device” Scheme for representing information Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 13
Our Plan of Attack… Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 14
A Computer System What is a computer system? Where does it start? Where does it end? Compiler for (i = 0; i < 3; i++) m += i*i; Assembler and Linker addi $8, $6 sll $8, 4 CPU Module Cells ALU A CO CI B FA S Gates Transistors Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 15
Computer Layer Cake Applications Systems software Shared libraries Operating System Hardware – the bare metal Computers are digital Chameleons Apps Systems S/W Libraries Operating System Hardware Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 16
Under the Covers Input Output Storage Processing Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 17
Under the Covers Input Output Storage Processing Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 18
Under the Covers Cathode Ray Tube (CRT) Input Output Storage Processing The “last vacuum tube” Now nearing extinction Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 19
Under the Covers Input Output Storage Processing Liquid Crystal Displays (LCDs) Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 20
Under the Covers Input Output Storage Processing Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 21
Under the Covers Input Output Storage Processing Datapath Control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 22
Under the Covers Input Output Storage Processing Datapath Control Intel® Pentium® Core 2 Duo Extreme processor The hottest chip you can get? ? ? Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 23
Issues for Modern Computers GHz Clock speeds Multiple Instructions per clock cycle Multi-core Memory Wall I/O bottlenecks Power Dissipation Implementation technology changes Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 24
Implementation Technology Relays Vacuum Tubes Transistors Integrated Circuits Gate-level integration Medium Scale Integration (PALs) Large Scale Integration (Processing unit on a chip) Today (Multiple CPUs on a chip) Nanotubes? ? Quantum-Effect Devices? ? Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 25
Implementation Technology Common Links? A controllable switch Computers are wires and switches open closed control Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 26
Chips Silicon Wafers Chip manufactures build many copies of the same circuit onto a single wafer. Only a certain percentage of the chips will work; those that work will run at different speeds. The yield decreases as the size of the chips increases and the feature size decreases. Wafers are processed by automated fabrication lines. To minimize the chance of contaminants ruining a process step, great care is taken to maintain a meticulously clean environment. Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 27
Chips Silicon Wafers Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 28
What is “Computation”? Computation is about “processing information” - Transforming information from one form to another Deriving new information from old Finding information associated with a given input “Computation” describes the motion of information through time “Communication” describes the motion of through space Comp 411 – Fall 2008 8/19/2008 information L 01 - Introduction 29
What is “Information”? “ 10 Problem sets, 2 quizzes, and a final!” information, n. Knowledge communicated or received concerning a particular fact or circumstance. Carolina won again. Tell me something new… A Computer Scientist’s Definition: Information resolves uncertainty. Information is simply that which cannot be predicted. The less predictable a message is, the more information it conveys! Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 30
Real-World Information Why do unexpected messages get allocated the biggest headlines? … because they carry the most information. Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 31
What Does A Computer Process? • A Toaster processes bread and bagels • A Blender processes smoothies and margaritas • What does a computer process? – Information – Bits • What is the mapping from information to bits? Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 32
Next Lecture Computer Representations How do computers represent: Text? Numbers? Everything else? Comp 411 – Fall 2008 8/19/2008 L 01 - Introduction 33