Lecture 7: 9/17/2002CS149D Fall 20021 CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Machine cycle.
Stored Program Architecture
Lecture 13: 10/8/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
Computer Architecture and Data Manipulation Chapter 3.
CSE115: Introduction to Computer Science I
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Computer Systems. Computer System Components Computer Networks.
Chapter 16 Control Unit Operation No HW problems on this chapter. It is important to understand this material on the architecture of computer control units,
Data Manipulation Computer System consists of the following parts:
Stored Program Concept: The Hardware View
Chapter 2.2 Machine Language.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
RISC and CISC. Dec. 2008/Dec. and RISC versus CISC The world of microprocessors and CPUs can be divided into two parts:
Basic Operational Concepts of a Computer
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Lecture 3. Diff b/w RAM and Registers Registers are used to hold data immediately applicable to the operation at hand Registers are used to hold data.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Chapter 4 MARIE: An Introduction to a Simple Computer.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Ch. 2 Data Manipulation 4 The central processing unit. 4 The stored-program concept. 4 Program execution. 4 Other architectures. 4 Arithmetic/logic instructions.
MARIE: An Introduction to a Simple Computer. 2 MARIE Our model computer, the Machine Architecture that is Really Intuitive and Easy, MARIE, was designed.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
Computer Systems Organization
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
Data Manipulation, part two Introduction to computer, 2 nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
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.
Jeremy R. Johnson William M. Mongan
27 October 2015 Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
Lecture 17: 10/31/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
© 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.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
CS 270: Mathematical Foundations of Computer Science
Computer Science 210 Computer Organization
Lecture on Microcomputer
von Neumann Architecture CPU
The fetch-execute cycle
The Processor and Machine Language
CS149D Elements of Computer Science
Lecture 2 Microprocessor Overview
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Computer Structure S.Abinash 11/29/ _02.
MARIE: An Introduction to a Simple Computer
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
The Little Man Computer
von Neumann Architecture CPU
Program Execution.
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Computer Architecture
Sec (2.3) Program Execution.
Presentation transcript:

Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture 7: 9/17/2002

CS149D Fall Outline Chapter 2Data Manipulation Example of Program execution on the sample machine architecture introduced in the previous lecture Other machine architectures chapter 2 plan covered sections , Covered logical operations in section 2.4 Skipped 2.5 covered 2.6

Lecture 7: 9/17/2002CS149D Fall Example of program execution Example of adding 2 values 1.Get first value from memory and place in a register R1 2.Get second value from memory and place in another register R2 3.Activate addition circuitry with R1 and R2 as inputs and R3 to hold results 4.Store contents of R3 (result) in memory 5.Stop CLOAD 5, 6C DLOAD 6, 6D ADD 0, 5, ESTORE 0, 6E 5. C000HALT Instruction is 2 bytes Values to be added stored in 2’s complement notation at memory address 6C and 6D Sum placed in memory at address 6E

Lecture 7: 9/17/2002CS149D Fall Example of program execution C D E 5. C000 Program AddressContents A015 A16C A216 A36D A450 A556 A630 A76E A8C0 A900 Program stored in Memory 1 memory cell is 8 bits Program stored in consecutive addresses at address A0

Lecture 7: 9/17/2002CS149D Fall Example of Program Execution Program Counter PC Instruction Register IR Place address A0 in program counter and start machine Machine Cycle 1 FetchDecodeExecute Read from memory instruction at address A0 Place instruction 156C in instruction register Update program counter to be A2 (Why?) At end of fetch cycle PC: A2 IR: 156C Analyze instruction in IR and deduce need to load R5 with contents of memory cell at address 6C Load contents of memory cell at address 6C in R5 Control unit starts a new cycle

Lecture 7: 9/17/2002CS149D Fall Example of Program Execution Program Counter PC Instruction Register IR Machine Cycle 2 PC is A2 FetchDecodeExecute Read from memory instruction at address A2 Place instruction 166D in instruction register Update program counter to be A4 At end of fetch cycle PC: A4 IR: 166D Analyze instruction in IR and deduce need to load R6 with contents of memory cell at address 6D Load contents of memory cell at address 6D in R6 Control unit starts a new cycle

Lecture 7: 9/17/2002CS149D Fall Example of Program Execution Program Counter PC Instruction Register IR Machine Cycle 3 PC is A4 FetchDecodeExecute Read from memory instruction at address A4 Place instruction 5056 in instruction register Update program counter to be A6 At end of fetch cycle PC: A6 IR: 5056 Analyze instruction in IR and deduce need to add contents of registers R5 and R6 and place result in R0 Activate 2’s complement addition circuitry with inputs R5 and R6 ALU performs addition leaving result in R0 Control unit starts a new cycle

Lecture 7: 9/17/2002CS149D Fall Example of Program Execution Program Counter PC Instruction Register IR Machine Cycle 4 PC is A6 FetchDecodeExecute Read from memory instruction at address A6 Place instruction 306E in instruction register Update program counter to be A8 At end of fetch cycle PC: A8 IR: 306E Analyze instruction in IR and deduce need to store contents of R0 in memory location 6E Store contents of R0 in memory location 6E Control unit starts a new cycle

Lecture 7: 9/17/2002CS149D Fall Example of Program Execution Program Counter PC Instruction Register IR Machine Cycle 5 PC is A8 FetchDecodeExecute Read from memory instruction at address A8 Place instruction C000 in instruction register Update program counter to be AA (Why?) At end of fetch cycle PC: AA IR: C000 Analyze instruction in IR and deduce this is a HALT instruction Machine stops and program is completed

Lecture 7: 9/17/2002CS149D Fall Logical Operations revisited AND OR XOR _________________________ AND OR XOR _________________________

Lecture 7: 9/17/2002CS149D Fall Other Machine Architectures CISCComplex Instruction Set Computer Complex machine that can decode and execute a wide variety of instructions Easier to program (single instruction performs the task of several instructions in RISC) Complex CPU design To reduce required circuitry, use microprogram approach where each machine instruction is actually executed as a sequence of simpler instructions Example is Pentium processors by Intel RISCReduced Instruction Set Computer Simple machine that has a limited instruction set Simpler CPU design Machine language programs are longer than CISC counterpart because several instructions are required to perform the task of a single instruction in CISC Example is PowerPC developed by Apply, IBM and Motorola Other concepts: Pipelining, multiprocessor machines