Compsci 001 12.1 Today’s topics l Binary Numbers  Brookshear 1.1-1.6 l Computer Architecture  Notes from David A. Patterson and John L. Hennessy, Computer.

Slides:



Advertisements
Similar presentations
CMPE 421 Parallel Computer Architecture MEMORY SYSTEM.
Advertisements

CpE442 Intro. To Computer Architecture CpE 442 Introduction To Computer Architecture Lecture 1 Instructor: H. H. Ammar These slides are based on the lecture.
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
EEM 486 EEM 486: Computer Architecture Lecture 1 Course Introduction and the Five Components of a Computer.
1  1998 Morgan Kaufmann Publishers Chapter Seven Large and Fast: Exploiting Memory Hierarchy.
The Logic Machine We looked at programming at the high level and at the low level. The question now is: How can a physical computer be built to run a program?
1 Foundations of Software Design Lecture 1: Course Overview Intro to Binary and Boolean Marti Hearst SIMS, University of California at Berkeley.
Computer ArchitectureFall 2007 © November 7th, 2007 Majd F. Sakr CS-447– Computer Architecture.
ECE 232 L2 Basics.1 Adapted from Patterson 97 ©UCBCopyright 1998 Morgan Kaufmann Publishers ECE 232 Hardware Organization and Design Lecture 2 Computer.
1  2004 Morgan Kaufmann Publishers Lectures for 3rd Edition Note: these lectures are often supplemented with other materials and also problems from the.
CS / Schlesinger Lec1.1 1/20/99©UCB Spring 1999 Computer Architecture Lecture 1 Introduction and Five Components of a Computer Spring, 1999 Arie Schlesinger.
1 CSE SUNY New Paltz Chapter 1 Introduction CSE-45432Introduction to Computer Architecture Dr. Izadi.
1  2004 Morgan Kaufmann Publishers Chapter Seven.
1 SRAM: –value is stored on a pair of inverting gates –very fast but takes up more space than DRAM (4 to 6 transistors) DRAM: –value is stored as a charge.
ECE 232 L1 Intro.1 Adapted from Patterson 97 ©UCBCopyright 1998 Morgan Kaufmann Publishers ECE 232 Hardware Organization and Design Lecture 1 Introduction.
MIS 175 Spring Learning Objectives When you finish this chapter, you will: –Recognize major components of an electronic computer. –Understand how.
CENG311 Computer Architecture Kayhan Erciyes. CS231 Assembly language and Digital Circuits Instructor:Kayhan Erciyes Office:
CpE442 Intro. To Computer Architecture CpE 442 Introduction To Computer Architecture Lecture 1 Instructor: H. H. Ammar These slides are based on the lecture.
Compsci Today’s topics l Performance & Computer Architecture  Notes from David A. Patterson and John L. Hennessy, Computer Organization and Design:
Summary: Computer System Components Proc Caches Busses Memory I/O Devices: Controllers adapters Disks Displays Keyboards Networks.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Von Neumann Architecture & Terminology & Performance Week 3.
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
Wilhelm Schickhard (1623) Astronomer and mathematician Automatically add, subtract, multiply, and divide Blaise Pascal (1642) Mathematician Mass produced.
Cs 152 L1 Intro.1 Patterson Fall 97 ©UCB What is “Computer Architecture” Computer Architecture = Instruction Set Architecture + Machine Organization.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Compsci Today’s topics l Operating Systems  Brookshear, Chapter 3  Slides from Kevin Wayne’s COS 126 course l Performance & Computer Architecture.
International Technology University CEN 951 Computer Architecture Lecture 2 Five Components of a Computer.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Computer Organization and Design Computer Abstractions and Technology
Computer Architecture Mehran Rezaei
Cps-104 Intro.1 ©GK Spring 1999 CPS104 Computer Organization Lecture 1 January 14, 1999 Gershon Kedem Slides available on:
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Computer Architecture And Organization UNIT-II General System Architecture.
Computer Organization & Assembly Language © by DR. M. Amer.
Computer Architecture CPSC 350
EEL 4713/EEL 5764 Computer Architecture Spring Semester 2004 Instructor: Dr. Shonda Walker Required Textbook: Computer Organization & Design, by Patterson.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Computer Architecture Lec 06: Computer Architecture Introduction.
1 chapter 1 Computer Architecture and Design ECE4480/5480 Computer Architecture and Design Department of Electrical and Computer Engineering University.
1 Chapter Seven CACHE MEMORY AND VIRTUAL MEMORY. 2 SRAM: –value is stored on a pair of inverting gates –very fast but takes up more space than DRAM (4.
Succeeding with Technology Chapter 2 Hardware Designed to Meet the Need The Digital Revolution Integrated Circuits and Processing Storage Input, Output,
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO CS 219 Computer Organization.
1  1998 Morgan Kaufmann Publishers Chapter Seven.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 2 Computer Organization.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Compsci Today’s topics l Operating Systems  Brookshear, Chapter 3  Great Ideas, Chapter 10  Slides from Kevin Wayne’s COS 126 course l Performance.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
1 Chapter Seven. 2 SRAM: –value is stored on a pair of inverting gates –very fast but takes up more space than DRAM (4 to 6 transistors) DRAM: –value.
Cs 152 L1 Intro.1 Patterson Fall 97 ©UCB CS152 Computer Architecture and Engineering Lecture 1 August 27, 1997 Dave Patterson (http.cs.berkeley.edu/~patterson)
Computer Architecture Opening Yu-Lun Kuo 郭育倫 Department of Computer Science and Information Engineering Tunghai University Taichung, 40704, Taiwan R.O.C.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
Computer Organization IS F242. Course Objective It aims at understanding and appreciating the computing system’s functional components, their characteristics,
Compsci Today’s topics l Operating Systems  Brookshear, Chapter 3  Great Ideas, Chapter 10  Slides from Kevin Wayne’s COS 126 course l Performance.
CS4100: 計算機結構 Course Outline 國立清華大學資訊工程學系 九十九年度第二學期.
History of Computers and Performance David Monismith Jan. 14, 2015 Based on notes from Dr. Bill Siever and from the Patterson and Hennessy Text.
Computer Architecture Furkan Rabee
Computer Architecture and Number Systems
Computer Organization and Architecture Lecture 1 : Introduction
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Memory COMPUTER ARCHITECTURE
Computer Architecture CSCE 350
Digital Logic Structures Logic gates & Boolean logic
T Computer Architecture, Autumn 2005
Chapter 1 Introduction.
COMS 361 Computer Organization
Digital Circuits and Logic
Chapter 4 The Von Neumann Model
Presentation transcript:

Compsci Today’s topics l Binary Numbers  Brookshear l Computer Architecture  Notes from David A. Patterson and John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, Morgan Kaufmann,  l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Operating Systems Brookshear  Security GI, 11 & Brookshear 3.7

Compsci Digital Computers l What are computers made up of?  Lowest level of abstraction: atoms  Higher level: transistors l Transistors  Invented in 1951 at Bell Labs  An electronic switch  Building block for all modern electronics  Transistors are packaged as Integrated Circuits (ICs)  40 million transistors in 1 IC

Compsci Binary Digits (Bits) l Yes or No l On or Off l One or Zero l

Compsci More on binary l Byte  A sequence of bits  8 bits = 1 byte  2 bytes = 1 word (sometimes 4 or 8 bytes) l Powers of two l How do binary numbers work?

Compsci Decimal (Base 10) Numbers l Each digit in a decimal number is chosen from ten symbols: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } l The position (right to left) of each digit represents a power of ten. l Example: Consider the decimal number   position: = 2     10 0

Compsci Binary (Base 2) Numbers l Each digit in a binary number is chosen from two symbols: { 0, 1 } l The position (right to left) of each digit represents a power of two. l Example: Convert binary number 1101 to decimal   position: = 1     2 0 =1     1= = 13

Compsci Powers of Two DecimalBinaryPower of

Compsci Famous Powers of Two Images from

Compsci Other Number Systems Images from

Compsci Binary Addition Images from Also: = 1 with a carry of 1

Compsci Adding Binary Numbers l = ( 1    2 0 ) + ( 1   2 0 ) = ( 1    1 ) + ( 1   1 ) l Add like terms: There is one 4, one 2, one 1 = 1    1 = 111

Compsci Adding Binary Numbers 1 1  carry l = ( 1    2 0 ) + (1    2 0 ) = ( 1    1 ) + (1    1 ) l Add like terms: There are two 4s, two 2s, one 1 = 2    1 = 1     1 = 1101 l BinaryNumber Applet

Compsci Converting Decimal to Binary Decimal Binary   conversion   0 = 0  = 1  = 1   = 2+1 = 1   = 1    = 4+1 = 1    = 4+2 = 1    = = 1    = 1     2 0

Compsci Converting Decimal to Binary l Repeated division by two until the quotient is zero l Example: Convert decimal number 54 to binary  1  0  1  0 Binary representation of 54 is remainder

Compsci Converting Decimal to Binary l 1 32 = 0 plus 1 thirty-two l 6 8s = 1 32 plus 1 sixteen l 3 16s = 3 16 plus 0 eights l 13 4s = 6 8s plus 1 four l 27 2s = 13 4s plus 1 two l 54 = 27 2s plus 0 ones  1  0  1  0 l Subtracting highest power of two l 1s in positions 5,4,2, = = = = 0 

Compsci Problems l Convert to decimal representation l Add the binary numbers and and express their sum in binary representation l Convert 77 to binary representation

Compsci Solutions l Convert to decimal representation = 1        2 0 = 1        1 = = 88 l Add the binary numbers and and express their sum in binary representation

Compsci Solutions l Convert 77 to binary representation  1  0  1  0  1 Binary representation of 77 is

Compsci Boolean Logic l AND, OR, NOT, NOR, NAND, XOR l Each operator has a set of rules for combining two binary inputs  These rules are defined in a Truth Table  (This term is from the field of Logic) l Each implemented in an electronic device called a gate  Gates operate on inputs of 0’s and 1’s  These are more basic than operations like addition  Gates are used to build up circuits that Compute addition, subtraction, etc Store values to be used later Translate values from one format to another

Compsci Truth Tables Images from

Compsci The Big Picture Control Datapath Memory Processor Input Output l Since 1946 all computers have had 5 components  The Von Neumann Machine l What is computer architecture? Computer Architecture = Machine Organization + Instruction Set Architecture +...

Compsci Fetch, Decode, Execute Cycle l Computer instructions are stored (as bits) in memory l A program’s execution is a loop  Fetch instruction from memory  Decode instruction  Execute instruction l Cycle time  Measured in hertz (cycles per second)  2 GHz processor can execute this cycle up to 2 billion times a second  Not all cycles are the same though…

Compsci Organization Logic Designer's View ISA Level FUs & Interconnect l Capabilities & Performance Characteristics of Principal Functional Units (Fus)  (e.g., Registers, ALU, Shifters, Logic Units,...) l Ways in which these components are interconnected l Information flows between components l Logic and means by which such information flow is controlled. l Choreography of FUs to realize the ISA

Compsci Memory bottleneck l CPU can execute dozens of instruction in the time it takes to retrieve one item from memory l Solution: Memory Hierarchy  Use fast memory  Registers  Cache memory  Rule: small memory is fast, large memory is small

Compsci What is Realtime? l Response time  Panic How to tell “I am still computing” Progress bar l Flicker  Fusion frequency l Update rate vs. refresh rate  Movie film standards (24 fps projected at 48 fps) l Interactive media  Interactive vs. non-interactive graphics computer games vs. movies animation tools vs. animation  Interactivity  real-time systems system must respond to user inputs without any perceptible delay (A Primary Challenge in VR)

Compsci A great idea in computer science l Temporal locality  Programs tend to access data that has been accessed recently (i.e. close in time ) l Spatial locality  Programs tend to access data at an address near recently referenced data (i.e. close in space ) l Useful in graphics and virtual reality as well  Realistic images require significant computational power  Don’t need to represent distant objects as well l Efficient distributed systems rely on locality  Memory access time increases over a network  Want to acess data on local machine

Compsci 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, 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

Compsci The Instruction Set: a Critical Interface instruction set software hardware l What is an example of an Instruction Set architecture?

Compsci Forces on Computer Architecture Computer Architecture Technology Programming Languages Operating Systems History Applications Cleverness

Compsci Technology l In ~1985 the single-chip processor (32-bit) and the single-board computer emerged  => workstations, personal computers, multiprocessors have been riding this wave since l Now, we have multicore processors DRAM YearSize Kb Kb Mb Mb Mb Mb Mb Gb Gb Microprocessor Logic DensityDRAM chip capacity

Compsci Technology => dramatic change l Processor  logic capacity: about 30% per year  clock rate: about 20% per year l 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 l Disk  capacity: about 60% per year  Total use of data: 100% per 9 months! l Network Bandwidth  Bandwidth increasing more than 100% per year!

Compsci Performance Trends Microprocessors Minicomputers Mainframes Supercomputers 1995 Year Log of Performance

Compsci Laws? l Define each of the following. What has its effect been on the advancement of computing technology?  Moore’s Law  Amdahl’s Law  Metcalfe’s Law