Level 2: The Hardware World Chapters 4 and 5 (topics of other cs courses)

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

Chapter 5: Computer Systems Organization

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Invitation to Computer Science, C++ Version, Third Edition

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

CS1004: Intro to CS in Java, Spring 2005

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

Chapter 5 12/2/2013. Objectives. Computer Systems Organization. Objectives. Objectives (continued) Introduction. INVITATION TO Computer Science 1

Von Neumann Architecture

8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics

CS 101, Mock Computer Architecture

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

COURSE DESCRIPTION. CS 232 Course Title Computer Organization. Course Coordinators

Data Manipulation. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

Ceng 111 Fall 2015 Week 5b

Computer Architecture (part 2)

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Switching to AQA from Edexcel

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.

CMPUT 101 with Solutions Quiz 2 (50 minutes) August 7, 2002

The Von Neumann Architecture Odds and Ends. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

Computer Architecture

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 7, 2003

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Systems Architecture

Computer Organization and Levels of Abstraction

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

CMPUT 101 with Solutions Quiz 2 (50 minutes) November 16, 2000

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 01, SPRING 2013

CMPUT101 Introduction to Computing - Summer 2002

CMPUT101 Introduction to Computing - Summer 2002

Information Science 1

Update on logistics ECS 15

Diskrečioji matematika

Switching to AQA from OCR

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

Computer Organization

VON NEUMANN ARCHITECTURE. VON NEUMANN ARCHITECTURE IB DP Computer science Standard Level ICS3U

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

Lecture 10: Floating Point, Digital Design

Computer Organization and Levels of Abstraction

5 Computer Organization

Why Study Assembly Language?

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Introduction. Datapath Basics

Lecture 10: Floating Point, Digital Design

Computer Organization + DIGITAL DESIGN

CS 140 Introduction to Computing & Computer Technology. Computing Components

Single cycle MIPS data path without Forwarding, Control, or Hazard Unit

Computers in Engineering COMP 208. Computer Structure. Computer Architecture. Computer Structure Michael A. Hawker

School of Computer Science

Machine Architecture. or what s in the box? Lectures 2 & 3. Prof Leslie Smith. ITNP23 - Autumn 2014 Lectures 2&3, Slide 1

Chapter 4. Computer Organization

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

CS101 Lecture 25: The Machinery of Computation: Computer Architecture. John Magee 29 July 2013 Some material copyright Jones and Bartlett

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

AS/A Level Computing Syllabus 2011

EET2411 DIGITAL ELECTRONICS. A device or electrical circuit used to store a single bit (0 or 1) Ex. FF.

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

Computer Architecture Review CS 595

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

Chapter 6: An Introduction to System Software and Virtual Machines

Ms. Minerva A. Lagarde

Introduction to Computers - Chapter 4

CS Computer Architecture

Computer Architecture and Data Manipulation. Von Neumann Architecture

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

Dec Hex Bin ORG ; ZERO. Introduction To Computing

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

CS 261 Fall Mike Lam, Professor. CPU architecture

Machine Architecture and Number Systems


ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Computer Architecture Review. ICS332 - Spring 2016 Operating Systems

Introduction to Computer Science. Homework 1

IB Computer Science Topic.2-

Homeschool Enrichment. The System Unit: Processing & Memory

Fundamentals of Programming Session 1

Chapter 2: Data Manipulation

MICROCONTROLLERS 8051

Overview of Computer Organization. Chapter 1 S. Dandamudi

Chapter 2: Data Manipulation

5 Computer Organization

CS 24: INTRODUCTION TO. Spring 2015 Lecture 2 COMPUTING SYSTEMS

CS 31: Intro to Systems Digital Logic

Introduction to Computer Systems and Operating Systems

2.2 THE MARIE Instruction Set Architecture

Overview of Computer Organization. Outline

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Computer Organization

Chapter 2: Data Manipulation. Copyright 2015 Pearson Education, Inc.

COS 140: Foundations of Computer Science

Computer Organization

SECONDARY SCHOOL, L-IMRIEĦEL HALF YEARLY EXAMINATIONS 2016/2017

Computer Architecture and Assembly Language. Spring

Transcription:

Level 2: The Hardware World Chapters 4 and 5 (topics of other cs courses) Invitation to Computer Science, Java Version, Third Edition Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition 1

Introduction Chapter 4 focuses on hardware design (also called logic design) How to represent and store information inside a computer How to use the principles of symbolic logic to design gates How to use gates to construct circuits that perform operations such as adding and comparing numbers, and fetching instructions Invitation to Computer Science, Java Version, Third Edition 3 The Binary Numbering System A computer s internal storage techniques are different from the way people represent information in daily lives Information inside a digital computer is stored as a collection of binary data Invitation to Computer Science, Java Version, Third Edition 4 2

Binary Representation of Numeric and Textual Information Binary numbering system Base-2 Built from ones and zeros Each position is a power of 2 1101 = 1 x 2 3 + 1 x 2 2 + 0 x 2 1 + 1 x 2 0 Decimal numbering system Base-10 Each position is a power of 10 3052 = 3 x 10 3 + 0 x 10 2 + 5 x 10 1 + 2 x 10 0 Invitation to Computer Science, Java Version, Third Edition 5 Figure 4.2 Binary-to-Decimal Conversion Table Invitation to Computer Science, Java Version, Third Edition 6 3

Figure 4.5 Digitization of an Analog Signal such as sound (a) Sampling the Original Signal (b) Recreating the Signal from the Sampled Values Invitation to Computer Science, Java Version, Third Edition 7 Figure 4.11 Simplified Model of a Transistor Invitation to Computer Science, Java Version, Third Edition 9 4

Boolean Logic and Gates: Boolean Logic Boolean logic describes operations on true/false values True/false maps easily onto bistable environment Boolean logic operations on electronic signals can be built out of transistors and other electronic devices Invitation to Computer Science, Java Version, Third Edition 10 Figure 4.15 The Three Basic Gates and Their Symbols Invitation to Computer Science, Java Version, Third Edition 11 5

Figure 4.19 Diagram of a Typical Computer Circuit Invitation to Computer Science, Java Version, Third Edition 12 Figure 4.22 One-Bit Compare-for-Equality Circuit Invitation to Computer Science, Java Version, Third Edition 13 6

Figure 4.28 A Two-Input Multiplexor Circuit Invitation to Computer Science, Java Version, Third Edition 14 Figure 4.29 A 2-to-4 Decoder Circuit Invitation to Computer Science, Java Version, Third Edition 15 7

Summary Digital computers use binary representations of data: numbers, text, multimedia Binary values create a bistable environment, making computers reliable Boolean logic maps easily onto electronic hardware Circuits are constructed using Boolean expressions as an abstraction Computational and control circuits can be built from Boolean gates Invitation to Computer Science, Java Version, Third Edition 16 Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition 8

Introduction Computer organization examines the computer as a collection of interacting functional units Functional units may be built out of the circuits already studied Higher level of abstraction assists in understanding by reducing complexity Invitation to Computer Science, Java Version, Third Edition 19 Figure 5.1 The Concept of Abstraction Invitation to Computer Science, Java Version, Third Edition 20 9

The Components of a Computer System Von Neumann architecture has four functional units Memory Input/Output Arithmetic/Logic unit Control unit Sequential execution of instructions Stored program concept Invitation to Computer Science, Java Version, Third Edition 21 Figure 5.2 Components of the Von Neumann Architecture Invitation to Computer Science, Java Version, Third Edition 22 10

Memory and Cache Information stored and fetched from memory subsystem Random access memory maps addresses to memory locations Cache memory keeps values currently in use in faster memory to speed access times Invitation to Computer Science, Java Version, Third Edition 23 Figure 5.3 Structure of Random Access Memory Invitation to Computer Science, Java Version, Third Edition 24 11

Input/Output and Mass Storage Communication with outside world and external data storage Human interfaces: Monitor, keyboard, mouse Archival storage: Not dependent on constant power External devices vary tremendously from each other Invitation to Computer Science, Java Version, Third Edition 27 Figure 5.8 Overall Organization of a Typical Disk Invitation to Computer Science, Java Version, Third Edition 28 12

Input/Output and Mass Storage (continued) I/O controller Intermediary between central processor and I/O devices Processor sends request and data, then goes on with its work I/O controller interrupts processor when request is complete Invitation to Computer Science, Java Version, Third Edition 29 The Arithmetic/Logic Unit Actual computations are performed Primitive operation circuits Arithmetic (ADD) Comparison (CE) Logic (AND) Data inputs and results stored in registers Multiplexor selects desired output Invitation to Computer Science, Java Version, Third Edition 32 13

The Control Unit Manages stored program execution Task Fetch from memory the next instruction to be executed Decode it: Determine what is to be done Execute it: Issue appropriate command to ALU, memory, and I/O controllers Invitation to Computer Science, Java Version, Third Edition 35 Machine Language Instructions Can be decoded and executed by control unit Parts of instructions Operation code (op code) Unique unsigned-integer code assigned to each machine language operation Address fields Memory addresses of the values on which operation will work Invitation to Computer Science, Java Version, Third Edition 36 14

Figure 5.14 Typical Machine Language Instruction Format For example, add x, y, where the op code for add is 9 (decimal) x and y correspond to memory address of 99 and 100 Will have machine language instruction of 00001001 0000000001100011 0000000001100100 Invitation to Computer Science, Java Version, Third Edition 37 Putting All the Pieces Together the Von Neumann Architecture Subsystems connected by a bus Bus: Wires that permit data transfer among them At this level, ignore the details of circuits that perform these tasks: Abstraction! Computer repeats fetch-decode-execute cycle indefinitely Invitation to Computer Science, Java Version, Third Edition 39 15

Figure 5.18 The Organization of a Von Neumann Computer Invitation to Computer Science, Java Version, Third Edition 40 Non-Von Neumann Architectures Physical limitations on speed of Von Neumann computers Non-Von Neumann architectures explored to bypass these limitations Parallel computing architectures can provide improvements; multiple operations occur at the same time Invitation to Computer Science, Java Version, Third Edition 41 16

Non-Von Neumann Architectures (continued) SIMD architecture Single instruction/multiple data Multiple processors running in parallel All processors execute same operation at one time Each processor operates on its own data Suitable for vector operations Invitation to Computer Science, Java Version, Third Edition 42 Figure 5.21 A SIMD Parallel Processing System Invitation to Computer Science, Java Version, Third Edition 43 17

Non-Von Neumann Architectures (continued) MIMD architecture Multiple instruction/multiple data Multiple processors running in parallel Each processor performs its own operations on its own data Processors communicate with each other Invitation to Computer Science, Java Version, Third Edition 44 Figure 5.22 Model of MIMD Parallel Processing Invitation to Computer Science, Java Version, Third Edition 45 18

Summary Computer organization examines different subsystems of a computer: memory, input/output, arithmetic/logic unit, and control unit Machine language gives codes for each primitive instruction the computer can perform and its arguments Von Neumann machine: Sequential execution of a stored program Parallel computers improve speed by doing multiple tasks at one time Invitation to Computer Science, Java Version, Third Edition 46 Summary of Level 2 Focus on how to design and build computer systems Chapter 4 Binary codes Transistors Gates Circuits Invitation to Computer Science, Java Version, Third Edition 47 19

Summary of Level 2 (continued) Chapter 5 Von Neumann architecture Shortcomings of the sequential model of computing Parallel computers Invitation to Computer Science, Java Version, Third Edition 48 20