Computer Architecture and Data Manipulation Chapter 3.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Microprocessors. Von Neumann architecture Data and instructions in single read/write memory Contents of memory addressable by location, independent of.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Computer Science: An Overview Tenth Edition by J. Glenn Brookshear Chapter.
Processor Technology and Architecture
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Lecture 14: Review Intro to IT COSC1078 Introduction to Information Technology Lecture 14 Revision and Review James Harland
Data Manipulation Computer System consists of the following parts:
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Chapter 2.2 Machine Language.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
Intro to CS Chapt 2 Data Manipualtion 1 Data Manipulation How is data manipulated inside a computer? –How is data input? –How is it stored? –How is it.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Invitation to Computer Science 5th Edition
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets.
Data Manipulation, Communication and Architecture Fall 2012.
Data manipulation, Part one Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Invitation to Computer Science 6th Edition Chapter 5 Computer Systems Organization.
Ch. 2 Data Manipulation 4 The central processing unit. 4 The stored-program concept. 4 Program execution. 4 Other architectures. 4 Arithmetic/logic instructions.
Chapter 2 Data Manipulation Yonsei University 1 st Semester, 2015 Sanghyun Park.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation. © 2005 Pearson Addison-Wesley. All rights reserved 2-2 Chapter 2: Data Manipulation 2.1 Computer Architecture 2.2 Machine.
Data Manipulation CSC Overview  Computer Architecture  Machine Language  Computer Architecture  Machine Language.
Copyright © 2015 Pearson Education, Inc. Chapter 2: Data Manipulation.
Computer Science/Ch.3 Data Manipulation 3-1 Chapter 3 Data Manipulation.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture 2 nd year (computer and Information Sc.)
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Data Manipulation Brookshear, J.G. (2012) Computer Science: an Overview.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Dale & Lewis Chapter 5 Computing components
Overview von Neumann Architecture Computer component Computer function
Von Neumann Computers Article Authors: Rudolf Eigenman & David Lilja
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2: Data Manipulation
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
Chapter 5: Computer Systems Organization Invitation to Computer Science,
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
© 2015 Pearson Education Limited 2015 Quiz in last 15 minutes Midterm 1 is next Sunday Assignment 1 due today at 4pm Assignment 2 will be up today; due.
CS Introduction to Information Engineering
Chapter 2: Data Manipulation
Chapter 2: Data Manipulation
5 - How Computers Calculate - the ALU
CS149D Elements of Computer Science
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Chapter 2: Data Manipulation
Chapter 5: Computer Systems Organization
Chapter 2: Data Manipulation
Chapter 2: Data Manipulation
Presentation transcript:

Computer Architecture and Data Manipulation Chapter 3

Von Neumann Architecture Today’s stored-program computers have the following characteristics: – Three hardware systems: A central processing unit (CPU) – Arithmetic and Logic Unit (ALU) – Control Unit – Registers A main memory system An I/O system – The capacity to carry out sequential instruction processing. – A single data path between the CPU and main memory.

CPU and main memory connected via a bus

Stored Program Concept A program can be encoded as bit patterns and stored in main memory. From there, the CPU can then extract the instructions and execute them. In turn, the program to be executed can be altered easily.

Terminology Machine instruction: An instruction (or command) encoded as a bit pattern recognizable by the CPU Machine language: The set of all instructions recognized by a machine

Machine Language Philosophies Reduced Instruction Set Computing (RISC) – Few, simple, efficient, and fast instructions – Examples: PowerPC from Apple/IBM/Motorola and SPARC from Sun Microsystems Complex Instruction Set Computing (CISC) – Many, convenient, and powerful instructions – Example: Pentium from Intel

Machine Instruction Types Data Transfer: copy data from one location to another Arithmetic/Logic: use existing bit patterns to compute a new bit patterns Control: direct the execution of the program

Example - Adding values stored in memory

Example - Dividing values stored in memory

Program Execution Controlled by two special-purpose registers – Program Counter: address of next instruction – Instruction Register: current instruction Machine Cycle – Fetch – Decode – Execute

The machine cycle

Program Execution Controlled by two special-purpose registers – Program counter: address of next instruction – Instruction register: current instruction Machine Cycle – Fetch – Decode – Execute

The architecture of the machine described in Appendix C

Start of the Fetch Execute cycle All of the instructions were fetched and executed as part of the machine cycle

Performing the fetch step of the machine cycle

Performing the fetch step of the machine cycle (cont’d)

Parts of a Machine Instruction Op-code: Specifies which operation to execute Operand: Gives more detailed information about the operation – Interpretation of operand varies depending on op- code

The composition of an instruction for the machine in Appendix C 3 means to store the contents of a register to memory From register 5 To memory address A7

Appendix C: A Simple Machine Language Op-code OperandDescription 1RXY LOAD reg. R from cell XY. 2RXY LOAD reg. R with XY. 3RXY STORE reg. R at XY. 40RS MOVE R to S. 5RST ADD S and T into R. (2’s comp.) 6RST ADD S and T into R. (floating pt.) 7RST OR S and T into R. 8RST AND S and T into R. 9RST XOR S and T into R. AR0X ROTATE reg. R X times. BRXY JUMP to XY if R = reg. 0. C000 HALT. D0XYJUMP to XY always

Sample Machine Program PC = 0 Mem AddressContents C

Exercise PC = 0 Write a program that subtracts 1 from the value in memory address FF

Another Program – What’s it do? PC = 0 AddressContents 020FF A B108 7D A 9C000 A0003

Exercise Write a program that computes the opposite of the value in memory address FF – E.g. if the value is +5 then it becomes -5

Communicating with Other Devices Controller: An intermediary apparatus that handles communication between the computer and a device – Specialized controllers for each type of device – General purpose controllers (USB and FireWire) Port: The point at which a device connects to a computer Memory-mapped I/O: CPU communicates with peripheral devices as though they were memory cells

Controllers attached to a machine’s bus

A conceptual representation of memory-mapped I/O

Communicating with Other Devices (continued) Direct memory access (DMA): Main memory access by a controller over the bus Von Neumann Bottleneck: Insufficient bus speed impedes performance Handshaking: The process of coordinating the transfer of data between components

Communicating with Other Devices (continued) Parallel Communication: Several communication paths transfer bits simultaneously. Serial Communication: Bits are transferred one after the other over a single communication path.

Data Communication Rates Measurement units – Bps: Bits per second – Kbps: Kilo-bps (1,000 bps) – Mbps: Mega-bps (1,000,000 bps) – Gbps: Giga-bps (1,000,000,000 bps) Bandwidth: Maximum available rate

Increasing Performance Technologies to increase throughput: – Faster clock speed – Bigger word size – Larger cache memory – Pipelining: Overlap steps of the machine cycle

Pipelining Why not start fetching the next instruction while we’re decoding the current instruction? Why not decode the next instruction while we’re executing the current instruction? What if Instruction 1 is the JUMP to XY if R = reg. 0 instruction and we JUMP?

Increasing Performance – Parallel Processing: Use multiple processors simultaneously SISD: No parallel processing MIMD: Different programs, different data – Dual core, quad core SIMD: Same program, different data – SSE, MMX