Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

Computer Architecture
Instruction Set Design
CSCI 4717/5717 Computer Architecture
Computer Organization and Architecture
Processor System Architecture
Processor structure and function
Chapter 12 CPU Structure and Function. CPU Sequence Fetch instructions Interpret instructions Fetch data Process data Write data.
Computer Organization and Architecture
Computer Organization and Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Computer Organization and Architecture The CPU Structure.
Chapter 12 Pipelining Strategies Performance Hazards.
1 Computer System Overview OS-1 Course AA
Pipelining Fetch instruction Decode instruction Calculate operands (i.e. EAs) Fetch operands Execute instructions Write result Overlap these operations.
Computer System Overview
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Chapter 12 CPU Structure and Function. Example Register Organizations.
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
RICARFENS AUGUSTIN JARED COELLO OSVALDO QUINONES Chapter 12 Processor Structure and Function.
Inside The CPU. Buses There are 3 Types of Buses There are 3 Types of Buses Address bus Address bus –between CPU and Main Memory –Carries address of where.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
CH12 CPU Structure and Function
5-Stage Pipelining Fetch Instruction (FI) Fetch Operand (FO) Decode Instruction (DI) Write Operand (WO) Execution Instruction (EI) S3S3 S4S4 S1S1 S2S2.
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 14: P ROCESSOR S TRUCTURE AND F UNCTION.
Group 5 Tony Joseph Sergio Martinez Daniel Rultz Reginald Brandon Haas Emmanuel Sacristan Keith Bellville.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Edited By Miss Sarwat Iqbal (FUUAST) Last updated:21/1/13
CPU Design and PipeliningCSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: CPU Operations and Pipelining Reading: Stallings,
Presented by: Sergio Ospina Qing Gao. Contents ♦ 12.1 Processor Organization ♦ 12.2 Register Organization ♦ 12.3 Instruction Cycle ♦ 12.4 Instruction.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
Chapter 11 CPU Structure and Function. CPU Structure CPU must: —Fetch instructions —Interpret instructions —Fetch data —Process data —Write data.
ECE 456 Computer Architecture Lecture #14 – CPU (III) Instruction Cycle & Pipelining Instructor: Dr. Honggang Wang Fall 2013.
Computer Organization 1 Instruction Fetch and Execute.
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 21 & 22 Processor Organization Register Organization Course Instructor: Engr. Aisha Danish.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Lecture 1: Review of Computer Organization
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
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.
Processor Organization
CPU Design and Pipelining – Page 1CSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: CPU Operations and Pipelining Reading:
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Computer Architecture Chapter (14): Processor Structure and Function
William Stallings Computer Organization and Architecture 8th Edition
Introduction of microprocessor
Processor Organization and Architecture
Computer System Overview
Computer Organization and ASSEMBLY LANGUAGE
Computer Architecture
CPU Structure and Function
Chapter 11 Processor Structure and function
Presentation transcript:

Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz

Many processors include registers, known as the PSW, which contain status information such as condition codes plus other status information. Common fields include:  A set of bits  Condition Codes  Sign of last result  Zero  Carry  Equal  Overflow  Interrupt enable/disable  Supervisor

 The CPU consists of several sections and it must do the following: › Fetch instructions: The CPU reads an instruction from the memory. › Interpret instructions: Decoding determines what action will be taken. › Fetch data: Sends a control signal to and receives control signals from other devices. › Process data: Where an instruction may need performing arithmetic or logical operation on the data. › Write data: Depending on the performance it may require writing data to memory or an I/O module.  A CPU is known to carry out instructions and makes the rest of the computer carry out their task.

 A register is a small amount of available storage on the CPU where it can be reached quickly.  They are special memory used by the CPU for temporarily storing data during execution of instruction.  Number and function vary between processor designs among registers.  Registers are measured by the number of bits they can hold, for example, we call a register holding 8 bits an 8 bit register.  Registers have top level of memory hierarchy.

 User Visible Registers are those that can be referenced by the machine language that the processor executes.  They enable the machine to minimize main memory references by modifying the use of registers.  General Purpose: can be assigned to a variety of functions.  Data: used to hold data and cannot be employed in the calculation of an operand address.  Address: can be general purpose or can be for one particular addressing mode.  Condition Codes: also called flags, they are bits set by the processor hardware due to the operations.

In order to control the operation of the processor, there are a few registers that are to be used.  Program Counter(PC): PC contains the action that will be fetched either the address of the instruction being executed, or the address of the next instruction to be executed.  Instruction Register(IR): It contains the instruction currently being executed.  Memory Address Register(MAR): Contains the address of a location in memory.  Memory Buffer Register(MBR): It stores the data being transferred to and from the immediate access store.

An instruction cycle is the sequence of actions that the CPU performs to execute each machine code instruction in a program.

 Fetch: Read the next instruction from memory to processor.  Execute: Interpret the opcode and perform the indicated operation. May take many forms; it depends on instruction being executed. May include: Memory read/write Input/Output Register transfers ALU operations  Interrupt: If enabled and it has occurred, save process state and service the interrupt.

 The execution of an instruction may involve one or more operant in memory, each of which requires memory access  Indirect addressing is used, then additional memory accesses are required.  Can be thought of as additional instruction subcycle

Fetch Cycle Indirect Cycle Interrupt Cycle

 It’s a technique used in microprocessors to speed up the execution of a program by reducing wait states.  Prefetching occurs when a processor requests an instruction from main memory before it is actually needed. Once the instruction comes back from memory, it is placed in a cache. When an instruction is actually needed, the instruction can be accessed much more quickly from the cache than if it had to make a request from memory.  Since programs are generally executed sequentially, performance is likely to be best when instructions are prefetched in program order.

 An instruction pipeline is a technique used in the design of computers and other digital electronic devices to increase the instructions that can be executed in a unit of time.

 Fetch instruction  Decode instruction  Calculate operands (i.e. EAs)  Fetch operands  Execute instructions  Write result  Overlap these operations

 A branch (or jump on some computer architectures, such as the PDP-8 and Intel x86) is a point in a computer program where the flow of control is altered.  The term branch is usually used when referring to a program written in machine code or assembly language.  In a high-level programming language, branches usually take the form of conditional statements, subroutine calls or GOTO statements.

 Multiple Streams  Prefetch Branch Target  Loop buffer  Branch prediction  Delayed branching

 Have two pipelines  Prefetch each branch into a separate pipeline  Use appropriate pipeline  Leads to bus & register contention  Multiple branches lead to further pipelines being needed

 Target of branch is prefetched in addition to instructions following branch  Keep target until branch is executed  Used by IBM 360/91

 Very fast memory  Maintained by fetch stage of pipeline  Check buffer before fetching from memory  Very good for small loops or jumps  c.f. cache  Used by CRAY-1

 Predict never taken › Assume that jump will not happen › Always fetch next instruction › & VAX 11/780 › VAX will not prefetch after branch if a page fault would result (O/S v CPU design)  Predict always taken › Assume that jump will happen › Always fetch target instruction

 Predict by Opcode › Some instructions are more likely to result in a jump than thers › Can get up to 75% success  Taken/Not taken switch › Based on previous history › Good for loops

 Delayed Branch › Do not take jump until you have to › Rearrange instructions

 Fetch › From cache or external memory › Put in one of two 16-byte prefetch buffers › Fill buffer with new data as soon as old data consumed › Average 5 instructions fetched per load › Independent of other stages to keep buffers full  Decode stage 1 › Opcode & address-mode info › At most first 3 bytes of instruction › Can direct D2 stage to get rest of instruction  Decode stage 2 › Expand opcode into control signals › Computation of complex address modes  Execute › ALU operations, cache access, register update  Writeback › Update registers & flags › Results sent to cache & bus interface write buffers

1. What is a small amount of available storage on the CPU where it can be reached quickly? 2. What must the CPU do? 3. Does a memory buffer register store data being transferred to and from the immediate access store 4. What is an instruction cycle? 5. Is additional memory access required if indirect cycles are used? 6. What is prefetching? 7. What is a pipeline? 8. What is a branch? 9. Can unconditional branches be ignored? 10. What is loop buffer used for?