Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

Similar documents
Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

Discussion of exam problems

The Fetch-Execute Cycle

Quiz on Ch.4 is at the end of Ch.4 slides

CS 140 Introduction to Computing & Computer Technology. Computing Components

Chapter 5 Computing Components

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Intentionally Blank 0

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

1. True or False? For tasks like Web surfing, sufficient memory can make up for a slow processor.

Introduction To Computer Hardware. Hafijur Rahman

FUNCTIONS OF COMPONENTS OF A PERSONAL COMPUTER

Computer Organization

Computer Organization

Components of a personal computer

Chapter One. Introduction to Computer System

Technology in Action. Chapter Topics. Participation Question. Participation Question. Participation Question 8/8/11

MEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.

Memory Study Material

Chapter 6 Part 1 Understanding Hardware

About the Presentations

What is the typical configuration of a computer sold today? 1-1

TODAY AND TOMORROW. Storage CHAPTER

The personal computer system uses the following hardware device types -

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Computers Are Your Future

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

INFS 214: Introduction to Computing

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Computer Organization: A Programmer's Perspective

Introduction to computers

Elementary Computing CSC M. Cheng, Computer Science 1

CSC1201 Computer Applications. Budditha Hettige Department of Computer Science

Discovering Computers 2008

HARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 3, 2015

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

CMSC 1513 Lecture 1.2

User. Application program. Interfaces. Operating system. Hardware

Computer Organization

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

Chapter 5: Computer Systems Organization

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

Computers Are Your Future

General Computing Concepts. Coding and Representation. General Computing Concepts. Computing Concepts: Review

Dec Hex Bin ORG ; ZERO. Introduction To Computing

CS 201 The Memory Hierarchy. Gerson Robboy Portland State University

Computer System Architecture

What is Data Storage?

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

lesson 3 Transforming Data into Information

Storage Technologies and the Memory Hierarchy

Flagship entertainment notebook with real wide screen and Blu-ray Disc drive

Storage. Chapter3 ITBIS105

Introduction to the Personal Computer

Chapter 6A. Describing Storage Devices. Describing Storage Devices. Types of Storage Devices. Store data when computer is off Two processes

Unit 2: Technology Systems. Computer and technology systems

CS1004: Intro to CS in Java, Spring 2005

CS 261 Fall Mike Lam, Professor. Memory

Topic 4: Storage Devices

INTRODUCTION TO COMPUTERS

SYSTEM BUS AND MOCROPROCESSORS HISTORY

Computer Basics PC-100

Sahalsoftware college. Welcome To understanding Basic Computer Concept

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

CS429: Computer Organization and Architecture

CS429: Computer Organization and Architecture

Foundations of Computer Systems

Advanced Topics In Hardware

Discovering Computers Fundamentals, 2011 Edition. Living in a Digital World

UNIT 2 Data Center Environment

Components of a Computer System

Chapter I The System Unit

Information Science 1

Computer Hardware 2. Type of Computers. User Point of View. The Motherboard. Inside. Content

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

Buying a PC? Consider the following Before Buying A New Computer or Laptop:

Objectives Overview. Chapter 7 Types of Storage. Instructor: M. Imran Khalil. MSc-IT 1st semester Fall Discovering Computers 2012

Introduction. Computer System Organization. Languages, Levels, Virtual Machines. A multilevel machine. Sarjana Magister Program

COSC 122 Computer Fluency. Computer Organization. Dr. Ramon Lawrence University of British Columbia Okanagan

History. 3rd Generation- Integrated Circuits, Transistors (Integrated Circuit form) for Memory ( memory is now volatile), Terminal/Keyboard for I/O

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

The Memory Hierarchy /18-213/15-513: Introduction to Computer Systems 11 th Lecture, October 3, Today s Instructor: Phil Gibbons

Computers Are Your Future

FACTFILE: GCE DIGITAL TECHNOLOGY

CIT 668: System Architecture. Computer Systems Architecture

Computer Organization and Assembly Language (CS-506)

CENG3420 Lecture 08: Memory Organization

Technology in Action

Introduction to computers

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

Full file at

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

Computer Systems. Memory Hierarchy. Han, Hwansoo

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

Transcription:

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder 1

Reg. A Reg. B Reg. Sum 2

Chapter 5 Computing Components Yet another layer of abstraction! Components Circuits Gates Transistors

5.1 Individual Computer Components Consider the following ad: Insatavialion 640 Laptop Exceptional Performance and Portability! It s just a madeup example! 4

5 What does all this jargon mean? Intel Core 2 Duo (2.66GHz/1066Mhz FSB/6MB cache) 4GB Shared Dual Channel DDR2 at 800 MHz 500 GB SATA Hard Drive at 5400RPM 15.6 High Definition (1080p) LED Backlit LCD Display (1366 x 768) 8X Slot Load DL DVD+/- RW Drive 14.8 W X 1.2 H X10.1 D, 5.6 lbs. 512 MB ATI Mobility Radeon Graphics 85 WHr Lithium Ion Battery Be patient! You don't know them now, but you will get used to them. (2) USB 2.0, HDMI, 15-Pin VGA, Ethernet 10/100/1000 IEEE 1394 Firewire, Express Card, Audio line-in, line-out, mic-in

Multipliers When referring to computer memory, mega does not mean one million! (but it s still close to that) 6

Decimal vs. binary multipliers 1000 = 10 3 1,000,000 = 10 6 1,000,000,000 = 10 9 1024 = 2 10 1024*1024 = 2 20 1024*1024*1024 = 2 30 Rule: For memory capacities, the multipliers are binary, for everything else (speed, frequency, pixels, etc.) they are decimal 7

Decimal vs. binary multipliers examples What is the meaning of: 1.5 TB hard-disk 54 Mbps wireless Ethernet 6 GB of RAM 8 Mega-pixel camera 3.2 GHz CPU 8

Intel Core 2 Duo (2.66GHz/1066Mhz, FSB/6MB cache) 9

QUIZ: A CPU chip is rated 2.5 GHz. What is the duration of one clock cycle? Use appropriate units! 10

QUIZ: A CPU chip is rated 3.44 GHz. What is the duration of one clock cycle? Use appropriate units! 11

5.2 Stored-Program Concept The von Neumann (a.k.a. Princeton) architecture is based on two fundamental ideas: 1. Instructions and data are the same, so they are stored in the same circuit (memory) 2. Information processing is different from information storage, so they are performed in different circuits (CPU, memory) 12

Not in text Are there any other architectures? The Harvard architecture is based on two fundamental ideas: 1. Instructions and data are not the same, so they are stored in separate circuits (memories) 2. Information processing is different from information storage, so they are performed in different circuits (CPU, memory) Image source: http://www.mikroe.com/chapters/view/74/pic-basic-book-chapter-1-world-of-microcontrollers/ 13

QUIZ: Which of the diagrams depicts a von Neumann architecture? 14

QUIZ: Which of the diagrams depicts a von Neumann architecture? 15

EOL 1 QUIZ: Hardware layers Connect each hardware item to the layer it belongs to: mouse XOR Intel 8008 NTE 2996 MOSFET MUX motherboard full adder SR latch Components Circuits Gates Transistors

QUIZ: A CPU chip is rated 3.33 GHz. What is the duration of one clock cycle? Use appropriate units! 17

von Neumann architecture 1. Instructions and data are the same, so they are stored in the same circuit (memory) 2. Information processing is different from information storage, so they are performed in different circuits (CPU, memory) 18

Memory 19

Which hardware layer does memory belong to? Components Circuits Gates Transistors Image sources: http://www.mypcmobile.com/memory.php http://www.imagener.com/top-six-photo-enlargement-tips 20

Memory Memory = A collection of cells, each with a unique physical address Both addresses and contents are in Binary (or hex) Cells can be bits, nibbles, bytes, words

QUIZ: Memory The address and contents of a memory cell are the following, in hex: 89AB FC Translate them into decimal and binary.

Memory Addressability = the # of bits in each cell What is the addressability of the memory pictured? Today, most computers memories are byteaddressable

QUIZ 1. How many bytes of memory are in the memory pictured? 2. Express the result using the appropriate multiplier.

QUIZ How many bits does the address have in this memory? What is the addressability? 0x789ABCDE 0x789A

The von Neumann architecture 26

ALU basic arithmetic operations such as add, subtract, increment, decrement, change sign, multiply, integer division logical operations such as AND, OR, XOR, NOT 27

The ALU also has a few very fast storage units called registers The information in a register can be processed quickly (in one CLK cycle), w/o waiting for a lengthy (~10 ns) memory transfer. Figure source: http://www10.edacafe.com/book/ 28

The von Neumann architecture 29

Input/Output devices Input device A device through which data and programs from the outside world are entered into the computer; Can you name three? Output device A device through which results stored in the computer memory are made available to the outside world Can you name three? 30

The von Neumann architecture 31

Control Unit It is the organizing force in the computer Implements the fetch-execute cycle Includes two important registers: Instruction register (IR) Contains the instruction that is being executed Program counter (PC) Contains the address of the next instruction to be executed ALU + Control Unit = CPU 32

Flow of Information Bus = A set of wires that connect all major units in a computer Data flow through a von Neumann architecture 33

Flow of Information Bus = A set of wires that connect all major units in a computer Data flow through a von Neumann architecture How can we tell that it s a vn architecture? 34

Flow of Information Bus = A set of wires that connect all major units in a computer Is there another kind of memory? 35

FSB and BSB Cache Back-side Bus (BSB) Front-side Bus (FSB) 36

Find the info about bus and cache in the ad! 37

The Fetch-Execute Cycle Fetch the next instruction Decode the instruction Get data (if needed) Execute the instruction Remember: In a vn machine, both instructions and data are stored in the same memory! Why is it called a cycle? 38

The Fetch-Execute Cycle 39

To do in notebook for next time Answer end-of-chapter questions 25 28 40

QUIZ: A CPU chip is rated 2.75 GHz. What is the duration of one clock cycle? Use appropriate units! 41

QUIZ: Computer Components Explain in your own words the functions of the following components: ALU Control Unit Input device Memory Cache 42

What do the acronyms FSB and BSB stand for? Compare and contrast them. 43

What do the acronyms FSB and BSB stand for? Compare and contrast them. 44

RAM and ROM The memory used for the (main) memory unit of a computer is of 2 types: RAM and ROM Both can be accessed directly, i.e. in constant time, by providing a memory address. Both can be read. However

RAM and ROM Random Access Memory (RAM): can be changed (written) is volatile Read Only Memory (ROM): cannot be changed (written) is not volatile Take this with a grain of salt

Secondary Storage Devices Name a few Why is it necessary to have secondary storage devices? 47

Secondary Storage Devices Why is it necessary to have them? Saving data when computer is off Volume Mass storage Portability Reliability (backups) Modularity (add as you go) 48

Magnetic Tape The first truly mass auxiliary storage device was the magnetic tape drive Tape drives have a major problem; can you spot it? Figure 5.4 A magnetic tape

The first high-volume auxiliary storage device was the magnetic tape drive 1964 2013 Image sources: http://museum.ipsj.or.jp/en/computer/device/magnetic_tape/0003.html http://www.computerhistory.org/revolution/memory-storage/8/258/1025 http://wodumedia.com/large-hadron-collider-ready-to-restart/ 1993

Magnetic Disk - HDD Platter Amount of information (bits, bytes) is the same on all tracks Disc rotates at the same angular velocity no matter which track is being read same transfer rate on all tracks! Tracks near center are more densely packed with information

QUIZ: HDD A HDD has 512 Bytes/sector, 256 sectors/track, and 10 platters. The diameter of each platter is 10 cm, and each track is 1 mm wide. Calculate the total capacity of the drive in MB. Use binary Mega!

QUIZ: HDD A HDD has 512 Bytes/sector, 256 sectors/track, and 10 platters. The diameter of each platter is 100mm, and each track is 1mm wide. Calculate the total capacity of the drive in MB. Use binary Mega! 125 MB

Seek time Time it takes for read/write head to be over right track Latency Time it takes for sector to be in position under R/W head Access time = Seek time + latency Transfer rate (e.g. 100 MB/s) 54

QUIZ: HDD The arm of a HDD moves at an average velocity of 40 m/s. The platter diameter is 100 mm. What are the minimum and maximum possible seek times? Calculate the average seek time. 55

QUIZ: HDD The arm of a HDD moves at an average velocity of 40 m/s. The platter diameter is 100 mm. What are the minimum and maximum possible seek times? Calculate the average seek time. 1.25 ms 56

QUIZ: HDD The spindle of a HDD rotates at 7200 RPM. What are the minimum and maximum possible latencies? Calculate the average latency. 57

QUIZ: HDD The spindle of a HDD rotates at 7200 RPM. What are the minimum and maximum possible latencies? Calculate the average latency. 4.16 ms 58

QUIZ: HDD If the previous 2 quizzes refer to the same HDD, what is its average access time? 59

QUIZ: HDD If the previous 2 quizzes refer to the same HDD, what is its average access time? 4.16 ms + 1.25 ms = 5.41 ms EOL3 60

QUIZ: HDD A file is on the HDD, on 15 consecutive blocks of the same track. Each block stores 4 KB. The average seek time is 10 ms, and the average latency is 5 ms. Once the first block is under the head, data is transferred at a rate of 50 MB/s. Calculate the total time needed to transfer the file. 61

QUIZ: HDD A file is on the HDD, on 15 consecutive blocks of the same track. Each block stores 4 KB. The average seek time is 10 ms, and the average latency is 5 ms. Once the first block is under the head, data is transferred at a rate of 50 MB/s. Calculate the total time needed to transfer the file. 16.23 ms 62

Magnetic Disks - Removable Floppy disks (Why "floppy"?) Year when they first became commercially available: 1969 (8-inch) 1976 (5¼-inch) 80-500 KB 87 KB-1.2 MB 1982 (3½-inch) 1.44 MB 63

Magnetic Disks - Removable Zip disks Iomega, 1994 100 MB, 250 MB, 750 MB 64

Flash memory IBM 1998 Nonvolatile! Can be erased and rewritten But there s a rub: Flash Endurance No moving parts! Thumb drives Solid State Drives (SSD) 65

Your turn! Calculate the cost per gigabyte for HDD and SDD Source: www.newegg.com October 2013 66

Optical Disks CD (600 MB) A compact disk that uses a laser to read information stored optically on a plastic disk; data is evenly distributed around track CD-ROM read-only memory CD-DA digital audio CD-WORM or CD-R user can write once, read many times CD-RAM or CD-RW user can both write and read many times DVD (4.7 GB) Digital Versatile Disk, used for storing audio and video DL = dual layer 8.5 GB Blu-Ray (25 GB) DL = dual layer 50 GB 67

Your turn! How many songs can be stored on each type of optical disk? CD (600 MB) DVD (4.7 GB) Blu-Ray (25 GB) Hint: The average MP3 file is 4 MB. 68

Interesting difference between magnetic and optical disks: Unlike magnetic disks, data on optical disks is uniformly packed per sector length. Tracks near the center have less data than tracks near the periphery. To ensure a uniform transfer rate, the rotation speed changes as the read/write head moves in and out! 69

Your turn! Track A on a DVD has a diameter of 40 mm, and track B has a diameter of 80 mm. When data is being read from track A, the rotation speed is 1000 RPM. When data is being read from track B, the rotation speed is: A. 2000 RPM B. 1000 RPM C. 500 RPM D. None of the above 70

Read and take notes: Touch Screens 71

5.3 Embedded Systems Computers that are dedicated to perform a narrow range of functions as part of a larger system. Every computer that is not a PC How many embedded systems do you think are in this room? 72

Embedded systems are everywhere today! communications automotive military medical consumer/home machine control (CNC) robotics entertainment Source: http://www.gosphero.com/ Source: www/ethio-civility.com 73

5.4 Parallel Architectures One approach to parallelism is to have multiple processors apply the same program to multiple data sets, i.e. Synchronous processing Figure 5.8 Processors in a synchronous computing environment 74

Synchronous processing Example: GPU programming GPU was invented by NVIDIA in 1999 75 Image source: http://tatourian.com/2013/09/03/nvidia-gpu-architecture-cuda-programming-environment/

Pipelining Arranges processors in tandem, where each processor contributes one part to an overall computation Figure 5.9 Processors in a pipeline 76

77 Washer-dryer analogy

78 Train analogy

QUIZ Pipelining A computer pipeline has 3 stages, as shown above. Each stage takes 8 ms to execute, and each instruction must go sequentially through all 3 stages. A program has 5 instructions. Calculate how long it takes to run it: without pipelining with pipelining 79

QUIZ Pipelining 80

QUIZ Pipelining Can you come up with a formula for N stages? (Assume the # of instructions is large) 81

Shared Memory Parallel Processor Communicate through shared memory Figure 5.10 Shared memory configuration of processors 82

To do in notebook for next time: Read pp.130-137 of our text and take notes Answer end-of-chapter questions 29-36, 39-43 Homework: 49, 54, 56, 63, 64 Thought Questions 3, 4 Due Wed., Oct.21 at beginning of class 83