J. Michael Moore Computer Processing CSCE 110. J. Michael Moore ProcessorInputOutput Memory Storage.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Computer Architecture and the Fetch-Execute Cycle
Instruction Set Design
Lecture 12: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 12 Machine Processing James Harland
Arithmetic Logic Unit (ALU)
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
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 Organization and Architecture
Computer Architecture and Data Manipulation Chapter 3.
Basic Logical Operations (fascinating)
CSE115: Introduction to Computer Science I
Basic Logical Operations (Fascinating)
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
1 Foundations of Software Design Lecture 3: How Computers Work Marti Hearst Fall 2002.
Processor Technology and Architecture
Lecture 14: Review Intro to IT COSC1078 Introduction to Information Technology Lecture 14 Revision and Review James Harland
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
James Tam Basic Logical Operations (Fascinating) In this section you will learn what are the basic logical operations and how to evaluate different logical.
Computer Processing CSCE 110 J. Michael Moore.
Stored Program Concept: The Hardware View
James Tam AND OR NOT NAND NOR XOR Basic logic operations (fascinating)
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
James Tam Basic Logical Operations (Fascinating) In this section you will learn what are the basic logical operations and how to evaluate different expressions.
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.
Introduction to computer: executes instructions. Overview Topics discussed in this webnote: –Structure and operation of the CPU –Program flow –Types of.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Basic Operational Concepts of a Computer
Computer Organization Computer Organization & Assembly Language: Module 2.
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.
Lecture 11: Machine Processing Intro to IT COSC1078 Introduction to Information Technology Lecture 11 Machine Processing James Harland
EXECUTION OF COMPLETE INSTRUCTION
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
Cis303a_chapt04.ppt Chapter 4 Processor Technology and Architecture Internal Components CPU Operation (internal components) Control Unit Move data and.
The Central Processing Unit (CPU) and the Machine Cycle.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Lecture 11: System Fundamentals Intro to IT COSC1078 Introduction to Information Technology Lecture 11 System Fundamentals James Harland
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Data Manipulation CSC Overview  Computer Architecture  Machine Language  Computer Architecture  Machine Language.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture Lecture 03 Fasih ur Rehman.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Dale & Lewis Chapter 5 Computing components
Data Manipulation, part two Introduction to computer, 2 nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
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.
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
5 - How Computers Calculate - the ALU
The Processor and Machine Language
Functional Units.
CS149D Elements of Computer Science
CSCE Fall 2013 Prof. Jennifer L. Welch.
CSCE 121: Simple Computer Model Spring 2015
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
The Von Neumann Architecture Odds and Ends
CSCE Fall 2012 Prof. Jennifer L. Welch.
Digital Circuits and Logic
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Instruction execution and ALU
CS 111 – Sept. 16 Machine language examples Instruction execution
Sec (2.3) Program Execution.
Presentation transcript:

J. Michael Moore Computer Processing CSCE 110

J. Michael Moore ProcessorInputOutput Memory Storage

J. Michael Moore Processor a.k.a. Central Processing Unit (CPU) ______________ unit (ALU) __________________ unit performs operations on data (e.g. addition, multiplication) special memory cells that hold data used by ALU and are even faster than cache figures out what the ALU should do next transfers data between main memory and registers

J. Michael Moore Processing Bits Boolean Logic Applied to circuits

J. Michael Moore Logical AND Truth table XYX AND Y False TrueFalse TrueFalse True Logic gate Truth table XYX AND Y

J. Michael Moore Logical AND: An Example TTFFTF ANDFTFTTF FTFFTF

J. Michael Moore Logical OR Truth table XYX OR Y False True FalseTrue Truth table XYX OR Y Logic gate

J. Michael Moore Logical OR: An Example TTFFTF ORFTFTTF TTFTTF

J. Michael Moore Logical NOT Truth table XNot X FalseTrue False Logic gate Truth table XNot X 01 10

J. Michael Moore Logical NOT: An Example TTFFTF NOTFFTTFT

J. Michael Moore Logical NAND Truth table XYX AND YX NAND Y False True FalseTrueFalseTrue False True False Logic gate Truth table XYX AND YX NAND Y

J. Michael Moore Logical NAND: An Example TTFFTF ANDFTFTTF FTFFTF NANDTFTTFT

J. Michael Moore Logic gate Logical NOR Truth table XYX OR YX NOR Y False True FalseTrue False TrueFalseTrueFalse True False Truth table XYX OR YX NOR Y

J. Michael Moore Logical NOR: An Example TTFFTF ORFTFTTF TTFTTF NORFFTFFT

J. Michael Moore Logical Exclusive OR (XOR) Truth table XYX XOR Y False True FalseTrue False Logic gate Truth table XYX XOR Y

J. Michael Moore Logical XOR: An Example TTFFTF XORFTFTTF TFFTFF

J. Michael Moore Adder Half Adder Full Adder Ripple Carry Adder

J. Michael Moore ProcessorInputOutput Memory Storage

J. Michael Moore Ex: to add the number held in address 3 and the number held in address 6 and put the result in address 10, the control unit –copies data in main memory address 3 into register 1 LOAD 3, 1 –copies data in main memory address 6 into register 4 LOAD 6, 4 –tells ALU to add contents of registers 1 and 4 and put the result in register 3 ADD 1, 4, 3 –copies data in register 3 into main memory address 10 STORE 3, 10 How a Program is Executed

J. Michael Moore How a Program is Executed LOAD, ADD, and STORE are machine instructions –___________: what action to do (e.g. ADD) –___________: what is affected (e.g. register 3) How does the control unit know which instruction is next? –The Program

J. Michael Moore How a Program is Stored Program: list of machine instructions using some agreed upon coding conventions. For example: first bytesecond byte instruction third ______ second ______ first ______ _______ code

J. Michael Moore How a Program is Stored Suppose the ________ for ADD is 0010 Then ADD 1, 4, 3 would be encoded as: first bytesecond byte instruction third ______ second ______ first ______ _______ code Program is stored the same way data is stored.

J. Michael Moore How a Program is Executed The control unit has –____________________________________: holds current instruction to be executed –____________________________________: holds address of next instruction in the program to be fetched from memory

J. Michael Moore How a Program is Executed Program counter tells where the computer is in the program. Usually, the next instruction to execute is the next instruction in memory. Sometimes we want to jump to another instruction (e.g., an ‘if’ statement or ‘while’ loop). More instructions: –unconditional JUMP: always jump to the address given –conditional JUMP: only jump if a certain condition is true (e.g., some register equals 0 or two registers equal each other) –Instruction to stop executing instructions: HALT

J. Michael Moore Machine Cycle _____ next instruction, as indicated by the program counter (PC), and increment the PC _____ the bit pattern in the instruction register (IR) - figure out which circuitry needs to be activated to perform the specified instruction _____ the specified instruction, by activating the ALU to do the right thing. If a JUMP, this may cause the PC to be altered Typical speeds: 10 to 100 million instructions per second (MIPS)

J. Michael Moore Architecture CPU Control UnitALU R4 R3 R2 R1 IR PC BUS Memory First Instruction Second Instruction Third Instruction Data

J. Michael Moore PC: IR: R4: R3: R2: R1: Memory: : LOAD 108, : LOAD 109, : ADD 3, 4, : STORE 1, : HALT : 109: 110: Assembly Language Example LOAD LOADADDSTOREHALT