Cis303a_chapt04.ppt Chapter 4 Processor Technology and Architecture Internal Components CPU Operation (internal components) Control Unit Move data and.

Slides:



Advertisements
Similar presentations
Calera High School Dawn Bone
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Arithmetic Logic Unit (ALU)
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Computer Systems. Computer System Components Computer Networks.
Processor Technology and Architecture
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
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,
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Computer Processing CSCE 110 J. Michael Moore.
Computer System Overview
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Chapter 15 IA 64 Architecture Review Predication Predication Registers Speculation Control Data Software Pipelining Prolog, Kernel, & Epilog phases Automatic.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
BLOCK DIAGRAM OF COMPUTER
Computer Organization Computer Organization & Assembly Language: Module 2.
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.
SCSC 311 Information Systems: hardware and software.
Introduction to Computing: Lecture 4
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
The Central Processing Unit: What Goes on Inside the Computer
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Overview von Neumann Architecture Computer component Computer function
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
What is a program? A sequence of steps
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
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.
Structure and Role of a Processor
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Systems Architecture, Fourth Edition 1 Processor Technology and Architecture Chapter 4.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CPU Lesson 2.
Control Unit Lecture 6.
Chapter 4 Processor Technology and Architecture
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
The Central Processing Unit
Introduction to Computer Engineering
CENTRAL PROCESSING UNIT CPU (microprocessor)
Computer Architecture
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Chapter 5: Computer Systems Organization
Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
4. Computer system.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Cis303a_chapt04.ppt Chapter 4 Processor Technology and Architecture Internal Components CPU Operation (internal components) Control Unit Move data and instructions between main memory and registers Arithmetic Logic Unit (ALU) Performs computations and comparisons Registers Hold inputs and outputs from the ALU External Components System Bus Transfer between CPU and external components Primary storage (memory) Secondary Storage Hard disk I/O Units Floppy disk, CD, DVD, monitor, printer, mouse, keyboard, speakers etc.

Cis303a_chapt04.ppt CPU Control Unit ALU GP Registers AR IR Primary Storage (memory) Secondary Storage (Hard disk) I/O Units (printer, mouse, keyboard) I/O Units (monitor, CD, DVD, scanner) I/O Units (modem, joystick, PDA)

Cis303a_chapt04.ppt Clock Pulses: Metrically equal time frames (MHz) x 0 0 x 0 x x 0 0 x x 0 0 x x Fetch Cycle Execution Cycle Fetch Cycle Generally the same amount of clock pulses Execution Cycle Clock pulse times differ dependent upon The instruction to be executed Data How much Location * Note the breaks in the clock pulse between Fetch and Execution

Cis303a_chapt04.ppt Computer Cycles Control Unit: Fetch Address of next instruction placed in Address Register Interrogates Address Register Retrieves instruction from memory location pointed to by Address Register Places instruction in Instruction Register Increments Address Register by the length of the retrieved instruction Interrogates Instruction Register (sets up circuitry [AND and OR gates etc.] to process the data) Retrieves data or data address and places in General Purpose register(s) Execution Acts upon the instruction Operation Code (OP Code) in the Instruction Register (sets up circuitry [AND and OR gates etc.] to process the data) Process the instruction and data Place results in GP Registers Return control to Control Unit Control Unit: Complete processing of instruction Store data or address pointers Return to Fetch

Cis303a_chapt04.ppt Instructions and Instruction Sets Instruction A command to the CPU to perform one of its primitive processing functions on specific data Directs the CPU as to how to set up the electrical signals to process the data (AND/OR gates etc.) Op Code (Operation Code) The specific instruction operation command Operands Contain the data, memory location, or register number of the information which is to be acted upon Instruction Set The collection of instruction that a CPU can process Ex. VB vs. VBScript in browsers

Cis303a_chapt04.ppt MOVE instructions Copy data to/from memory or registers or any combination Load Move (copy) data from Primary Storage into a register Store Move (copy) data from a register to Primary Storage I/O Devices Load/Store data into specific address reanges in Primary Storage This area is the “buffer” for the particular I/O device This area is secure for that particular I/O device only The area is controlled by the CPU and the particular I/O device driver

Cis303a_chapt04.ppt NOT (boolean) The result is reversed A positive outcome if the result has a FALSE condition Negative logic Truth Table Input NOT 0 = 1 outcome Input NOT 1 = 0 outcome NOT 0 = 1 NOT 1 = 0 Example: Given: The light in the room is off. Positive: Is the light on? No = False = 0 Negative: Is the light NOT on? Yes it is not on = True = 1 Data Transformations

Cis303a_chapt04.ppt Data Transformations AND (boolean) All inputs must be true for a true (1) outcome Positive logic Truth Table All inputs 0 = 0 outcome Any input a 0 = 0 outcome All inputs a 1 = 1 outcome 0 AND 0 = 0 1 AND 0 = 0 0 AND 1 = 0 1 AND 1 = 1 Example: Given: The light in the room is off. Room temperature is 45 degrees. Is the light is on and it is 80 degrees? No = False = 0 Both false Is the light off and it is 85 degrees? No = False = 0 One true AND one false Is the light off and it is below 50 degrees? Yes = True = 1 Both true

Cis303a_chapt04.ppt OR (boolean) ANY input must be true for a true (1) outcome Positive logic Truth Table All inputs 0 = 0 outcome Any input a 1 = 1 outcome All inputs a 1 = 1 outcome 0 OR 0 = 0 1 OR 0 = 1 0 OR 1 = 1 1 OR 1 = 1 Example: Given: The light in the room is off. Room temperature is 45 degrees. Is the light is on and it is 80 degrees? No = False = 0 Both false Is the light off and it is 85 degrees? Yes = True = 1 One is true, one is false Is the light off and it is below 50 degrees? Yes = True = 1 Both true Data Transformations

Cis303a_chapt04.ppt XOR – Exclusive OR (boolean) Only one true input to generate a true outcome Both true (1) or both false (0) will generate a false (0) outcome Truth Table 0 XOR 0 = 0 1 XOR 0 = 1 0 XOR 1 = 1 1 XOR 1 = 0 Example: Used for 2’s compliment The binary number: XOR Compliment Data Transformations

Cis303a_chapt04.ppt ADD Addition of two bit strings Truth Table = = = = 0 and a 1 carry Example: page = compliment 1 add one s compliment for add answer answer compliment 1 2s compliment for answer Data Transformations Because the answer should be negative

Cis303a_chapt04.ppt SHIFT Bits may be shifted left or right A second operand holds the number of positions to High/low order bit overflow lost Used to extract a single bit Data Transformations

Cis303a_chapt04.ppt Branch instructions Cause the processor to depart from sequential instruction order Unconditional Branch The processor is forced to following the new address path Conditional Branch The address path taken by the processor is dependent upon the outcome of a logic decision (condition) outcome HALT Branch Suspends operation or address flow of the current program. In effect terminates the program. Sample page 122 of book Sequence Control

Cis303a_chapt04.ppt Template of instruction syntax Formats vary among CPUs Even with the same manufacturer Op Codes Op Code values Op Code sizes Data types Page 125 of book Instruction Length Determined by OP Code Fixed All instructions are same length Padding may be necessary Address register updated by length of instruction Instruction Format

Cis303a_chapt04.ppt Less complex instructions in instruction set Must execute a greater number of simple instructions Fixed length instructions Short instruction length More General Purpose Registers Requires more memory as more instructions are required for the same result Reduced Instruction Set Computing (RISC) Complex Instruction Set Computing (CISC) Complex instructions in instruction set Must execute a greater number of simple instructions Fixed and variable length instructions Variable instruction length Fewer General Purpose Registers The instruction set becomes cumbersome Increased fetch and decoding time

Cis303a_chapt04.ppt The computer system is synchronized with the clock A steady pulse Megahertz (MHz) – millions of cycles per second Gigahertz (GHz) – billions of cycles per second CPUs are measured for speed using their instruction set MIPS: Millions of Instructions Per Second MFLOPS: Millions of Floating Point Operations per Second Clock Rate

Cis303a_chapt04.ppt Hold data or addresses needed by a program Store information for executing program and system status System Registers Not accessible by programs System usage Instruction Register Decode instruction Instruction Pointer Location of current then next instruction Program Status Word (PSW) Status of the CPU Status of executing program FLAGS: bits representing data or statuses Program Registers General Purpose Registers Hold Addresses, data, results CPU Registers

Cis303a_chapt04.ppt Switches and Gates Electrical circuits AND, OR, XOR, NOT, NAND The Physical CPU (139)

Cis303a_chapt04.ppt Hold data or addresses needed by a program Store information for executing program and system status System Registers Not accessible by programs System usage Instruction Register Decode instruction Instruction Pointer Location of current then next instruction Program Status Word (PSW) Status of the CPU Status of executing program FLAGS: bits representing data or statuses Program Registers General Purpose Registers Hold Addresses, data, results CPU Registers Byte/Word Byte: the number of bits required to make 1 character Word: the basic amount of bits a CPU handles at one time