Welcome to Comp 411! Computer Organization and Design

Slides:



Advertisements
Similar presentations
L01 - Introduction 1 Comp411 – Fall /26/2009 Welcome to Comp 411! I thought this course was called “Computer Organization” David Macaulay 1) Course.
Advertisements

Chapter 1. Introduction This course is all about how computers work But what do we mean by a computer? –Different types: desktop, servers, embedded devices.
L01 - Introduction 1 Comp411 – Spring /10/2008 Welcome to Comp 411! I thought this course was called “Computer Organization” David Macaulay 1) Course.
Computer Organization: Introduction Spring 2006 Jen-Chang Liu ( )
1  1998 Morgan Kaufmann Publishers Lectures for 2nd Edition Note: these lectures are often supplemented with other materials and also problems from the.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
EET 4250: Chapter 1 Performance Measurement, Instruction Count & CPI Acknowledgements: Some slides and lecture notes for this course adapted from Prof.
1 Introduction to computers Overview l · Grading Policy »Cheating Rules (serious concern) »Examinations and Fixation of Timings »Quizzes »Homework Assignments.
CS3350B Computer Architecture Winter 2015 Introduction Marc Moreno Maza
Welcome to Comp 411! Computer Organization and Design
Chapter 1 Sections 1.1 – 1.3 Dr. Iyad F. Jafar Introduction.
Introduction to Computer Architecture SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING SUMMER 2015 RAMYAR SAEEDI.
1 CS/COE0447 Computer Organization & Assembly Language Course Intro and CH
Morgan Kaufmann Publishers Computer Abstractions and Technology
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Chapter 1 CSF 2009 Computer Abstractions and Technology.
Flash Cards Computer Technology.
1 Computer Systems. 2 Introduction – What is a Computer? This course is all about how computers work What do computer and computer system mean to you?
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
CS/ECE 3330 Computer Architecture Kim Hazelwood Fall 2009.
An overview of Computer System
Computer Organization and Design Computer Abstractions and Technology
Chapter 1 — Computer Abstractions and Technology — 1 The Computer Revolution Progress in computer technology – Underpinned by Moore’s Law Makes novel applications.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Computer Organization & Assembly Language © by DR. M. Amer.
1 ECE3055 Computer Architecture and Operating Systems Lecture 1 Introduction Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
Abstraction And Technology 1 Comp 411 – Fall /28/06 Computer Abstractions and Technology 1. Layer Cakes 2. Computers are translators 3. Switches.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Chapter 1 — Computer Abstractions and Technology — 1 Below Your Program Application software – Written in high-level language System software – Compiler:
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Welcome to Comp 411! Computer Organization and Design Montek Singh Jan 11, 2016 Lecture 1 1.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO CS 219 Computer Organization.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 2 Computer Organization.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
Computer Organization Yasser F. O. Mohammad 1. 2 Lecture 1: Introduction Today’s topics:  Why computer organization is important  Logistics  Modern.
Introduction Computer Organization Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
1 Lesson 1 Computers and Computer Systems Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface ARM Edition Chapter 1 Computer Abstractions and Technology.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology.
Computer Architecture & Operations I
Welcome to Comp 411! Computer Organization and Design
Computer Architecture and Organization
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers Computer Abstractions and Technology
Computer Architecture & Operations I
Morgan Kaufmann Publishers Computer Architecture
CSE 410, Spring 2006 Computer Systems
Morgan Kaufmann Publishers Computer Abstractions and Technology
COSC 3406: Computer Organization
COMPUTER ORGANZIATION AND ASSEMBLY LANGUAGE
Architecture & Organization 1
Welcome to COMP 411 Don Porter.
COSC 3406: Computer Organization
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers
Architecture & Organization 1
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Morgan Kaufmann Publishers Computer Abstractions and Technology
Presentation transcript:

Welcome to Comp 411! Computer Organization and Design David Macaulay Montek Singh Wed, Aug 19, 2015 Lecture 1

Topics for today Course Objectives Course Mechanics What is Information? Computer Abstractions

Course Objectives What You Will Learn: How programs are translated into the machine language And how the hardware executes them The hardware/software interface What determines program performance And how it can be improved How hardware designers improve performance

Required Textbooks Computer Organization and Design: The Hardware/Software Interface Patterson and Hennessy 5th ed., Oct 2013 ISBN 9780124077263 C Programming Language Kernighan and Ritchie 2nd ed. [paperback], Apr 1988 ISBN 978-0131103627 possibly other options – I will announce

Credits Some of these slides were developed by Leonard McMillan and adapted by Gary Bishop and me. Some slides and other materials are from the book publisher.

Course Mechanics Grading: 5-7 Homework Assignments: 25% 10-12 Lab Assignments: 25% Quizzes: 15% Midterm + Final Exams: 35%

Course Mechanics Policies: Problem Sets: Honor Code: Lecture Notes: Will be distributed on the web. You will typically have 1 week to do them, but sometimes more or less time. Honor Code: The honor code is in effect for all homework, labs, exams etc. Please review the policy on the course website. Lecture Notes: 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.

Late Policy Late homework will be penalized All scores count 25% penalty if one class late 50% penalty if two classes late Zero credit afterward No exceptions for foreseeable events Religious/cultural holidays Family reunions Most athletic/club commitments Plan ahead! For serious medical or other issues etc. Will need proof/permission from somebody higher up But, even if the work is (really) late, please turn it in! All scores count No dropping of lowest scores

Late Policy Late labs will be penalized All scores count But: everyone gets 7 “free late days” Afterward: lose 1 point (out of 100) for every late day or fraction of day But, even if the work is (really) late, please turn it in! All scores count No dropping of lowest scores

Discussion Board Please post questions (even private ones to instructor) on the discussion board on PIAZZA https://piazza.com/unc/fall2015/comp411/home Linked from course website

Prerequisites COMP401: 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!

Detailed Syllabus See course website

How NOT to do well in this course BIG mistakes Skipping lectures Not reading the book (only reviewing lecture slides) Not spending enough time to do homework Start early. Many problem sets are too hard to attempt the night before. Not asking questions in class Not discuss concepts with other students But all work handed in must be your own (see Honor Code) Looking up solutions from earlier semesters = cheating. Not worth it.

Comp 411: Course Website Linked from http://www.cs.unc.edu/~montek/

Introductions Who am I? Who are you? Why take this course? by year by major Why take this course? let’s hear from you

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)

Where do you find computers today? Besides on your desk, or in your lap, of course! Let’s hear from you! How have computers revolutionized life in the 21st century? Automobiles Mobile phones, PDAs, games Massive distributed projects: e.g., human genome project World Wide Web Search engines What has fueled progress in computer technology? Moore’s Law

Computers Everywhere The computers we are used to Desktops Laptops Servers Network-based “Cloud computers” Embedded processors Hidden as components inside: cars, phones, toasters, irons, wristwatches, happy-meal toys

Portable gadgets dominate! Morgan Kaufmann Publishers April 21, 2017 FIGURE 1.1 The number of cell phones, personal computers, and televisions manufactured per year between 1997 and 2007. (We have television data only from 2004.) More than a billion new cell phones were shipped in 2006. Cell phones sales exceeded PCs by only a factor of 1.4 in 1997, but the ratio grew to 4.5 in 2007. The total number in use in 2004 is estimated to be about 2.0B televisions, 1.8B cell phones, and 0.8B PCs. As the world population was about 6.4B in 2004, there were approximately one PC, 2.2 cell phones, and 2.5 televisions for every eight people on the planet. A 2006 survey of U.S. families found that they owned on average 12 gadgets, including three TVs, 2 PCs, and other devices such as game consoles, MP3 players, and cell phones. Copyright © 2009 Elsevier, Inc. All rights reserved. Chapter 1 — Computer Abstractions and Technology

Goal 2: Power of Abstraction What is abstraction? Define a function, develop a robust implementation, and then put a box around it. Why is abstraction useful? enables us to create unfathomable machines called computers imagine a billion --- 1,000,000,000

Abstraction is key to building systems with >1G components Module: 8-16 / IC 100K devices Circuit Board: 8 / system 1-2G devices Integrated Circuit: 8-16 / PCB 0.25M-16M devices Cell: 1K-10K / Module 16-64 devices Personal Computer: Hardware & Software Scheme for representing information MOSFET ="transistor" ="device" Gate: 2-8 / Cell 8 devices

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, $6 sll $8, $8, 4 CPU Module ALU A B Cells A B CO CI S FA Gates Transistors

Understanding Performance Morgan Kaufmann Publishers April 21, 2017 Algorithm Determines number of operations executed Programming language, compiler, architecture Determine number of machine instructions executed per operation Processor and memory system Determine how fast instructions are executed I/O system (including OS) Determines how fast I/O operations are executed Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Below Your Program Morgan Kaufmann Publishers April 21, 2017 Application software Written in high-level language System software Compiler: translates HLL code to machine code Operating System: service code Handling input/output Managing memory and storage Scheduling tasks & sharing resources Hardware Processor, memory, I/O controllers Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Levels of Program Code Morgan Kaufmann Publishers April 21, 2017 High-level language Level of abstraction closer to problem domain Provides for productivity and portability Assembly language Textual representation of instructions Hardware representation Binary digits (bits) Encoded instructions and data Chapter 1 — Computer Abstractions and Technology

Components of a Computer Morgan Kaufmann Publishers Components of a Computer April 21, 2017 Same components for all kinds of computer Desktop, server, embedded Input/output includes User-interface devices Display, keyboard, mouse Storage devices Hard disk, CD/DVD, flash Network adapters For communicating with other computers The BIG Picture Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Anatomy of a Computer April 21, 2017 Output device Network cable Input device Input device Chapter 1 — Computer Abstractions and Technology — 27 Chapter 1 — Computer Abstractions and Technology

Example: Laptop as today’s desktop Morgan Kaufmann Publishers April 21, 2017 FIGURE 1.5 A desktop computer. The liquid crystal display (LCD) screen is the primary output device, and the keyboard and mouse are the primary input devices. On the right side is an Ethernet cable that connected the laptop to the network and the Web. The lap top contains the processor, memory, and additional I/O devices. This system is a Macbook Pro 15" laptop connected to an external display. Copyright © 2009 Elsevier, Inc. All rights reserved. Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Anatomy of a Mouse April 21, 2017 Optical mouse LED illuminates desktop Small low-res camera Basic image processor Looks for x, y movement Buttons & wheel Supersedes roller-ball mechanical mouse Chapter 1 — Computer Abstractions and Technology — 2929 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Touchscreen Morgan Kaufmann Publishers April 21, 2017 PostPC device Supersedes keyboard and mouse Resistive and Capacitive types Most tablets, smart phones use capacitive Capacitive allows multiple touches simultaneously Chapter 1 — Computer Abstractions and Technology

Through the Looking Glass Morgan Kaufmann Publishers Through the Looking Glass April 21, 2017 LCD screen: picture elements (pixels) Mirrors content of frame buffer memory Chapter 1 — Computer Abstractions and Technology — 3131 Chapter 1 — Computer Abstractions and Technology

Displays Cathode Ray Tube (CRT) Liquid Crystal Displays (LCDs) The "last vacuum tube” Now nearing extinction Liquid Crystal Displays (LCDs)

Opening the Box: Laptop Morgan Kaufmann Publishers April 21, 2017 Chapter 1 — Computer Abstractions and Technology

Opening the Box: Tablet Morgan Kaufmann Publishers April 21, 2017 Capacitive multitouch LCD screen 3.8 V, 25 Watt-hour battery Computer board Chapter 1 — Computer Abstractions and Technology

Issues for Modern Computers Energy/Power consumption has become a major challenge It is now perhaps the limiting factor in most processors http://www.hotchips.org/ Courtesy Troubador

Under the Covers Input Output Memory Processing Datapath Control

Morgan Kaufmann Publishers A Safe Place for Data Morgan Kaufmann Publishers April 21, 2017 Volatile main memory Loses instructions and data when power off Non-volatile secondary memory Magnetic disk Flash memory Optical disk (CDROM, DVD) Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Networks April 21, 2017 Communication and resource sharing Local area network (LAN): Ethernet Within a building Wide area network (WAN): the Internet Wireless network: WiFi, Bluetooth Chapter 1 — Computer Abstractions and Technology — 3838 Chapter 1 — Computer Abstractions and Technology

Morgan Kaufmann Publishers Technology Trends Morgan Kaufmann Publishers April 21, 2017 Electronics technology continues to evolve Increased capacity and performance Reduced cost DRAM capacity Year Technology Relative performance/cost 1951 Vacuum tube 1 1965 Transistor 35 1975 Integrated circuit (IC) 900 1995 Very large scale IC (VLSI) 2,400,000 2013 Ultra large scale IC 250,000,000,000 Chapter 1 — Computer Abstractions and Technology

Inside the Processor: Intel Intel® Pentium® Core 2 Duo Extreme processor The hottest chip you can get???

Inside the Processor: Apple Morgan Kaufmann Publishers Inside the Processor: Apple April 21, 2017 Apple A5 Chapter 1 — Computer Abstractions and Technology — 41 Chapter 1 — Computer Abstractions and Technology

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??

Implementation Technology Common Links? A controllable switch Computers are wires and switches open closed open control

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.

Mosfet (under polysilicon gate) Chips Silicon Wafers IBM photomicrograph Metal 2 M1/M2 via Metal 1 Polysilicon Diffusion Mosfet (under polysilicon gate)

Next Lecture Computer Performance First Lab: Fri, Aug 21 How to measure performance How to compare performance First Lab: Fri, Aug 21