SlideShare a Scribd company logo
Er. Nawaraj Bhandari
Topic 8
CPU Structure and
Function
Computer
Architecture
PROCESSOR ORGANIZATION
 To understand the organization of the processor, let us consider the
requirements placed on the processor, the things that it must do:
 Fetch instruction: The processor reads an instruction from memory
(register, cache, main memory).
 Interpret instruction: The instruction is decoded to determine what
action is required
 Fetch data: The execution of an instruction may require reading data
from memory or an I/O module.
PROCESSOR ORGANIZATION
 Process data: The execution of an instruction may require performing
some arithmetic or logical operation on data.
 Write data: The results of an execution may require writing data to
memory or an I/O module.
 To do these things, it should be clear that the processor needs to
store some data temporarily. It must remember the location of the
last instruction so that it can know where to get the next instruction.
 It needs to store instructions and data temporarily while an
instruction is being executed. In other words, the processor needs a
small internal memory.
PROCESSOR ORGANIZATION
PROCESSOR ORGANIZATION
• Above figure is a simplified view of a processor, indicating its connection to
the rest of the system via the system bus
• The ALU does the actual computation or processing of data.
• The control unit controls the movement of data and instructions into and
out of the processor and controls the operation of the ALU.
• In addition, the figure shows a minimal internal memory, consisting of a set
of storage locations, called registers.
PROCESSOR ORGANIZATION
PROCESSOR ORGANIZATION
• Above Figure is a slightly more detailed view of the processor. The data
transfer and logic control paths are indicated, including an element labeled
internal processor bus.
• This element is needed to transfer data between the various registers and
the ALU because the ALU in fact operates only on data in the internal
processor memory. The figure also shows typical basic elements of the
ALU.
Register Organization
Within the processor, there is a set of registers that function as a level of
memory above main memory and cache in the hierarchy. The registers in
the processor perform two roles:
• User-visible registers: Enable the machine- or assembly language
programmer to minimize main memory references by optimizing use of
registers.
• Control and status registers: Used by the control unit to control the
operation
of the processor and by privileged, operating system programs to control
the
execution of programs.
User-Visible Registers
A user-visible register is one that may be referenced by means of the
machine language that the processor executes. We can characterize these
in the following categories:
• General purpose
• Data
• Address
• Condition codes
User-Visible Registers
• Any general-purpose register can contain the operand for any opcode.
• This provides true general-purpose register use. Often, however, there
are restrictions.
• For example, there may be dedicated registers for floating-point and
stack operations.
• In some cases, general-purpose registers can be used for addressing
functions (e.g., register indirect, displacement).
Data Registers
• Data registers may be used only to hold data and cannot be employed in
the calculation of an operand address.
Address registers
• Address registers may themselves be somewhat general purpose, or they
may be devoted to a particular addressing mode. Examples include the
following:
• Segment pointers: In a machine with segmented addressing a segment
register holds the address of the base of the segment.
There may be multiple registers: for example, one for the operating
system and one for the current process.
Address registers
• Index registers: These are used for indexed addressing and may
be auto indexed.
• Stack pointer: If there is user-visible stack addressing, then typically there
is a dedicated register that points to the top of the stack.
This allows implicit addressing; that is, push, pop, and other stack
instructions need not contain an explicit stack operand.
Control and Status Registers
• There are a variety of processor registers that are employed to control the
operation of the processor. Most of these, on most machines, are not
visible to the user. Some of them may be visible to machine instructions
executed in a control or operating system mode.
Four registers are essential to instruction execution:
• Program counter (PC): Contains the address of an instruction to be
fetched.
• Instruction register (IR): Contains the instruction most recently fetched.
• Memory address register (MAR): Contains the address of a location in
memory.
• Memory buffer register (MBR): Contains a word of data to be written to
memory or the word most recently read.
Control and Status Registers
• Many processor designs include a register or set of registers, often known
as the program status word (PSW), that contain status information. The
PSW typically contains condition codes plus other status information.
Common fields or flags include the following:
• Sign: Contains the sign bit of the result of the last arithmetic operation.
• Zero: Set when the result is 0.
• Carry: Set if an operation resulted in a carry (addition) into or borrow
(subtraction) out of a high-order bit. Used for multiword arithmetic
operations.
• Equal: Set if a logical compare result is equality.
Control and Status Registers
• Overflow: Used to indicate arithmetic overflow.
• Interrupt Enable/Disable: Used to enable or disable interrupts.
• Supervisor: Indicates whether the processor is executing in supervisor or
user mode. Certain privileged instructions can be executed only in
supervisor mode, and certain areas of memory can be accessed only in
supervisor mode
INSTRUCTION CYCLE
Instruction cycle includes the following stages:
1. Fetch: Read the next instruction from memory into the processor.
2. Execute: Interpret the opcode and perform the indicated operation.
3. Interrupt: If interrupts are enabled and an interrupt has occurred, save
the current process state and service the interrupt.
INSTRUCTION CYCLE
Fetch Cycle Dataflow
1. During the fetch cycle, an instruction is read from
memory.
2. The PC contains the address of the next instruction to be
fetched.
3. This address is moved to the MAR and placed on the
address bus.
4. The control unit requests a memory read, and the result
is placed on the data bus and copied into the MBR and
then moved to the IR.
5. Meanwhile, the PC is incremented by 1, preparatory for the
next fetch.
Fetch Cycle Dataflow
Indirect cycle
1. Once the fetch cycle is over, the control unit examines the
contents of the IR to determine if it contains an operand
specified using indirect addressing.
2. If so, an indirect cycle is performed.
3. The right-most N bits of the MBR, which contain the
address reference, are transferred to the MAR.
4. Then the control unit requests a memory read, to get the
desired address of the operand into the MBR.
Indirect cycle
Execute Cycle
1. The execute cycle takes many forms; the form depends on which of
the various machine instructions is in the IR.
2. This cycle may involve transferring data among registers, read or
write from memory or I/O, and/or the invocation of the ALU.
Interrupt Cycle
1. Like the fetch and indirect cycles, the interrupt cycle is simple and
predictable.
2. The current contents of the PC must be saved so that the processor
can resume normal activity after the interrupt.
3. Thus, the contents of the PC are transferred to the MBR to be
written into memory. The special memory location reserved for this
purpose is loaded into the MAR from the control unit.
4. It might, for example, be a stack pointer. The PC is loaded with the
address of the interrupt routine.
5. As a result, the next instruction cycle will begin by fetching the
appropriate instruction.
Interrupt Cycle
What is Pipelining
 A technique used in advanced microprocessors where the microprocessor
begins executing a second instruction before the first has been completed.
- A Pipeline is a series of stages, where some work is done at each stage. The
work is not finished until it has passed through all stages.
 With pipelining, the computer architecture allows the next instructions to be
fetched while the processor is performing arithmetic operations, holding them
in a buffer close to the processor until each instruction operation can
performed.
How Pipelines Works
 The pipeline is divided into segments and each segment can execute it
operation concurrently with the other segments.
 Once a segment completes an operations, it passes the result to the next
segment in the pipeline and fetches the next operations from the preceding
segment.
Example
Instruction 1 Instruction 2
Instruction 3Instruction 4
X X
XX
Four sample instructions, executed linearly
Four Pipelined Instructions
IF
IF
IF
IF
ID
ID
ID
ID
EX
EX
EX
EX M
M
M
M
W
W
W
W
5
1
1
1
Instructions Fetch
 The instruction Fetch (IF) stage is responsible for obtaining the requested
instruction from memory.
 The instruction and the program counter (which is incremented to the next
instruction) are stored in the IF/ID pipeline register as temporary storage so
that may be used in the next stage at the start of the next clock cycle.
Instruction Decode
 The Instruction Decode (ID) stage is responsible for decoding the instruction
and sending out the various control lines to the other parts of the processor.
The instruction is sent to the control unit where it is decoded and the
registers are fetched from the register file.
Execution
 The Execution (EX) stage is where any calculations are performed. The main
component in this stage is the ALU. The ALU is made up of arithmetic, logic
and capabilities.
Memory and IO
 The Memory and IO (MEM) stage is responsible for storing and loading values
to and from memory. It also responsible for input or output from the
processor. If the current instruction is not of Memory or IO type than the
result from the ALU is passed through to the write back stage.
Write Back
 The Write Back (WB) stage is responsible for writing the result of a
calculation, memory access or input into the register file.
Operation Timings
 Estimated timings for each of the stages:
Instruction
Fetch
2ns
Instruction
Decode
1ns
Execution 2ns
Memory and
IO
2ns
Write Back 1ns
Advantages/Disadvantages
Advantages:
 More efficient use of processor
 Quicker time of execution of large number of
instructions
Disadvantages:
 Pipelining involves adding hardware to the chip
 Inability to continuously run the pipeline
at full speed because of pipeline hazards
which disrupt the smooth execution of the
pipeline.
ANY QUESTIONS?

More Related Content

PPTX
Unit-4 (IO Interface).pptx
PDF
COMPUTER ORGANIZATION NOTES Unit 7
PPTX
Instruction Set Architecture
PPT
Input output organization
PPTX
process control block
PPTX
Computer system architecture
PPTX
Input Output Organization
PPT
Unit 6 interprocessor arbitration
Unit-4 (IO Interface).pptx
COMPUTER ORGANIZATION NOTES Unit 7
Instruction Set Architecture
Input output organization
process control block
Computer system architecture
Input Output Organization
Unit 6 interprocessor arbitration

What's hot (20)

PPTX
Unit 4-booth algorithm
PPTX
Instruction sets of 8086
PPS
Cache memory
PPT
Unit 5 I/O organization
PPTX
Register organization, stack
PPT
80486 microprocessor
PPTX
DMA and DMA controller
PPTX
Communication protocols
PPT
Architecture of 8086 Microprocessor
PPT
Pipeline hazard
PPT
Computer Architecture and organization ppt.
PPTX
Memory hierarchy
PPTX
Cache Memory
PPTX
PCI BUS
PPTX
Hardware Multi-Threading
PPTX
Arp and rarp
PPTX
Dealing with exceptions Computer Architecture part 2
PPTX
Computer Organisation & Architecture (chapter 1)
PPT
Instruction set of 8086
PPTX
instruction format and addressing modes
Unit 4-booth algorithm
Instruction sets of 8086
Cache memory
Unit 5 I/O organization
Register organization, stack
80486 microprocessor
DMA and DMA controller
Communication protocols
Architecture of 8086 Microprocessor
Pipeline hazard
Computer Architecture and organization ppt.
Memory hierarchy
Cache Memory
PCI BUS
Hardware Multi-Threading
Arp and rarp
Dealing with exceptions Computer Architecture part 2
Computer Organisation & Architecture (chapter 1)
Instruction set of 8086
instruction format and addressing modes
Ad

Similar to Chapter 8 (20)

PPT
coa Chapter 2 final edited*Minimum 40 characters required.ppt
PPTX
Chapter_06_Processor_Structure_And_Function.pptx
PPTX
Processor organization & register organization
PPTX
Instruction_Cycle_and_Coziyth9esty7098wITU08EAU8ntrol.pptx
PPTX
Part Four The CPU architecture in .pptx
PDF
Bca examination 2015 csa
PPTX
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
PPTX
Ch 01 os8e
PDF
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
DOCX
Co notes3 sem
PPTX
concept of computer organisation and architechture
PPTX
Computer_Organization_and_Architecture.pptx
PPTX
Computer_Organization and architecture _unit 1.pptx
DOCX
Bc0040
DOC
the-cpu-design-central-processing-unit-design-1
PPTX
Chapter 3 Assembly level machine organization Assembly level machine organiza...
DOCX
Operating system
PPTX
Computer Organization: Introduction to Microprocessor and Microcontroller
PPT
Chapter01 (1).ppt
PDF
Computer organization and architecture|KTU
coa Chapter 2 final edited*Minimum 40 characters required.ppt
Chapter_06_Processor_Structure_And_Function.pptx
Processor organization & register organization
Instruction_Cycle_and_Coziyth9esty7098wITU08EAU8ntrol.pptx
Part Four The CPU architecture in .pptx
Bca examination 2015 csa
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
Ch 01 os8e
1.CPU INSTRUCTION AND EXECUTION CYCLEThe primary function of the .pdf
Co notes3 sem
concept of computer organisation and architechture
Computer_Organization_and_Architecture.pptx
Computer_Organization and architecture _unit 1.pptx
Bc0040
the-cpu-design-central-processing-unit-design-1
Chapter 3 Assembly level machine organization Assembly level machine organiza...
Operating system
Computer Organization: Introduction to Microprocessor and Microcontroller
Chapter01 (1).ppt
Computer organization and architecture|KTU
Ad

More from Er. Nawaraj Bhandari (20)

PPTX
Data mining approaches and methods
PPTX
Research trends in data warehousing and data mining
PPTX
Mining Association Rules in Large Database
PPTX
Introduction to data mining and data warehousing
PPTX
Data warehouse testing
PPTX
Data warehouse physical design
PPTX
Data warehouse logical design
PPTX
Classification and prediction in data mining
PPTX
Chapter 3: Simplification of Boolean Function
PPTX
Chapter 6: Sequential Logic
PPTX
Chapter 5: Cominational Logic with MSI and LSI
PPTX
Chapter 4: Combinational Logic
PPTX
Chapter 2: Boolean Algebra and Logic Gates
PPTX
Chapter 1: Binary System
PPTX
Introduction to Electronic Commerce
PPT
Evaluating software development
PPT
Using macros in microsoft excel part 2
PPT
Using macros in microsoft excel part 1
PPTX
Using macros in microsoft access
PPTX
Testing software development
Data mining approaches and methods
Research trends in data warehousing and data mining
Mining Association Rules in Large Database
Introduction to data mining and data warehousing
Data warehouse testing
Data warehouse physical design
Data warehouse logical design
Classification and prediction in data mining
Chapter 3: Simplification of Boolean Function
Chapter 6: Sequential Logic
Chapter 5: Cominational Logic with MSI and LSI
Chapter 4: Combinational Logic
Chapter 2: Boolean Algebra and Logic Gates
Chapter 1: Binary System
Introduction to Electronic Commerce
Evaluating software development
Using macros in microsoft excel part 2
Using macros in microsoft excel part 1
Using macros in microsoft access
Testing software development

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
web development for engineering and engineering
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Construction Project Organization Group 2.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
OOP with Java - Java Introduction (Basics)
Arduino robotics embedded978-1-4302-3184-4.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
bas. eng. economics group 4 presentation 1.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
web development for engineering and engineering
Structs to JSON How Go Powers REST APIs.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Strings in CPP - Strings in C++ are sequences of characters used to store and...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Construction Project Organization Group 2.pptx
Lecture Notes Electrical Wiring System Components
Lesson 3_Tessellation.pptx finite Mathematics
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd

Chapter 8

  • 1. Er. Nawaraj Bhandari Topic 8 CPU Structure and Function Computer Architecture
  • 2. PROCESSOR ORGANIZATION  To understand the organization of the processor, let us consider the requirements placed on the processor, the things that it must do:  Fetch instruction: The processor reads an instruction from memory (register, cache, main memory).  Interpret instruction: The instruction is decoded to determine what action is required  Fetch data: The execution of an instruction may require reading data from memory or an I/O module.
  • 3. PROCESSOR ORGANIZATION  Process data: The execution of an instruction may require performing some arithmetic or logical operation on data.  Write data: The results of an execution may require writing data to memory or an I/O module.  To do these things, it should be clear that the processor needs to store some data temporarily. It must remember the location of the last instruction so that it can know where to get the next instruction.  It needs to store instructions and data temporarily while an instruction is being executed. In other words, the processor needs a small internal memory.
  • 5. PROCESSOR ORGANIZATION • Above figure is a simplified view of a processor, indicating its connection to the rest of the system via the system bus • The ALU does the actual computation or processing of data. • The control unit controls the movement of data and instructions into and out of the processor and controls the operation of the ALU. • In addition, the figure shows a minimal internal memory, consisting of a set of storage locations, called registers.
  • 7. PROCESSOR ORGANIZATION • Above Figure is a slightly more detailed view of the processor. The data transfer and logic control paths are indicated, including an element labeled internal processor bus. • This element is needed to transfer data between the various registers and the ALU because the ALU in fact operates only on data in the internal processor memory. The figure also shows typical basic elements of the ALU.
  • 8. Register Organization Within the processor, there is a set of registers that function as a level of memory above main memory and cache in the hierarchy. The registers in the processor perform two roles: • User-visible registers: Enable the machine- or assembly language programmer to minimize main memory references by optimizing use of registers. • Control and status registers: Used by the control unit to control the operation of the processor and by privileged, operating system programs to control the execution of programs.
  • 9. User-Visible Registers A user-visible register is one that may be referenced by means of the machine language that the processor executes. We can characterize these in the following categories: • General purpose • Data • Address • Condition codes
  • 10. User-Visible Registers • Any general-purpose register can contain the operand for any opcode. • This provides true general-purpose register use. Often, however, there are restrictions. • For example, there may be dedicated registers for floating-point and stack operations. • In some cases, general-purpose registers can be used for addressing functions (e.g., register indirect, displacement).
  • 11. Data Registers • Data registers may be used only to hold data and cannot be employed in the calculation of an operand address.
  • 12. Address registers • Address registers may themselves be somewhat general purpose, or they may be devoted to a particular addressing mode. Examples include the following: • Segment pointers: In a machine with segmented addressing a segment register holds the address of the base of the segment. There may be multiple registers: for example, one for the operating system and one for the current process.
  • 13. Address registers • Index registers: These are used for indexed addressing and may be auto indexed. • Stack pointer: If there is user-visible stack addressing, then typically there is a dedicated register that points to the top of the stack. This allows implicit addressing; that is, push, pop, and other stack instructions need not contain an explicit stack operand.
  • 14. Control and Status Registers • There are a variety of processor registers that are employed to control the operation of the processor. Most of these, on most machines, are not visible to the user. Some of them may be visible to machine instructions executed in a control or operating system mode. Four registers are essential to instruction execution: • Program counter (PC): Contains the address of an instruction to be fetched. • Instruction register (IR): Contains the instruction most recently fetched. • Memory address register (MAR): Contains the address of a location in memory. • Memory buffer register (MBR): Contains a word of data to be written to memory or the word most recently read.
  • 15. Control and Status Registers • Many processor designs include a register or set of registers, often known as the program status word (PSW), that contain status information. The PSW typically contains condition codes plus other status information. Common fields or flags include the following: • Sign: Contains the sign bit of the result of the last arithmetic operation. • Zero: Set when the result is 0. • Carry: Set if an operation resulted in a carry (addition) into or borrow (subtraction) out of a high-order bit. Used for multiword arithmetic operations. • Equal: Set if a logical compare result is equality.
  • 16. Control and Status Registers • Overflow: Used to indicate arithmetic overflow. • Interrupt Enable/Disable: Used to enable or disable interrupts. • Supervisor: Indicates whether the processor is executing in supervisor or user mode. Certain privileged instructions can be executed only in supervisor mode, and certain areas of memory can be accessed only in supervisor mode
  • 17. INSTRUCTION CYCLE Instruction cycle includes the following stages: 1. Fetch: Read the next instruction from memory into the processor. 2. Execute: Interpret the opcode and perform the indicated operation. 3. Interrupt: If interrupts are enabled and an interrupt has occurred, save the current process state and service the interrupt.
  • 19. Fetch Cycle Dataflow 1. During the fetch cycle, an instruction is read from memory. 2. The PC contains the address of the next instruction to be fetched. 3. This address is moved to the MAR and placed on the address bus. 4. The control unit requests a memory read, and the result is placed on the data bus and copied into the MBR and then moved to the IR. 5. Meanwhile, the PC is incremented by 1, preparatory for the next fetch.
  • 21. Indirect cycle 1. Once the fetch cycle is over, the control unit examines the contents of the IR to determine if it contains an operand specified using indirect addressing. 2. If so, an indirect cycle is performed. 3. The right-most N bits of the MBR, which contain the address reference, are transferred to the MAR. 4. Then the control unit requests a memory read, to get the desired address of the operand into the MBR.
  • 23. Execute Cycle 1. The execute cycle takes many forms; the form depends on which of the various machine instructions is in the IR. 2. This cycle may involve transferring data among registers, read or write from memory or I/O, and/or the invocation of the ALU.
  • 24. Interrupt Cycle 1. Like the fetch and indirect cycles, the interrupt cycle is simple and predictable. 2. The current contents of the PC must be saved so that the processor can resume normal activity after the interrupt. 3. Thus, the contents of the PC are transferred to the MBR to be written into memory. The special memory location reserved for this purpose is loaded into the MAR from the control unit. 4. It might, for example, be a stack pointer. The PC is loaded with the address of the interrupt routine. 5. As a result, the next instruction cycle will begin by fetching the appropriate instruction.
  • 26. What is Pipelining  A technique used in advanced microprocessors where the microprocessor begins executing a second instruction before the first has been completed. - A Pipeline is a series of stages, where some work is done at each stage. The work is not finished until it has passed through all stages.  With pipelining, the computer architecture allows the next instructions to be fetched while the processor is performing arithmetic operations, holding them in a buffer close to the processor until each instruction operation can performed.
  • 27. How Pipelines Works  The pipeline is divided into segments and each segment can execute it operation concurrently with the other segments.  Once a segment completes an operations, it passes the result to the next segment in the pipeline and fetches the next operations from the preceding segment.
  • 28. Example Instruction 1 Instruction 2 Instruction 3Instruction 4 X X XX Four sample instructions, executed linearly
  • 30. Instructions Fetch  The instruction Fetch (IF) stage is responsible for obtaining the requested instruction from memory.  The instruction and the program counter (which is incremented to the next instruction) are stored in the IF/ID pipeline register as temporary storage so that may be used in the next stage at the start of the next clock cycle.
  • 31. Instruction Decode  The Instruction Decode (ID) stage is responsible for decoding the instruction and sending out the various control lines to the other parts of the processor. The instruction is sent to the control unit where it is decoded and the registers are fetched from the register file.
  • 32. Execution  The Execution (EX) stage is where any calculations are performed. The main component in this stage is the ALU. The ALU is made up of arithmetic, logic and capabilities.
  • 33. Memory and IO  The Memory and IO (MEM) stage is responsible for storing and loading values to and from memory. It also responsible for input or output from the processor. If the current instruction is not of Memory or IO type than the result from the ALU is passed through to the write back stage.
  • 34. Write Back  The Write Back (WB) stage is responsible for writing the result of a calculation, memory access or input into the register file.
  • 35. Operation Timings  Estimated timings for each of the stages: Instruction Fetch 2ns Instruction Decode 1ns Execution 2ns Memory and IO 2ns Write Back 1ns
  • 36. Advantages/Disadvantages Advantages:  More efficient use of processor  Quicker time of execution of large number of instructions Disadvantages:  Pipelining involves adding hardware to the chip  Inability to continuously run the pipeline at full speed because of pipeline hazards which disrupt the smooth execution of the pipeline.

Editor's Notes