Movatterモバイル変換


[0]ホーム

URL:


PPTX, PDF63,587 views

Instruction pipeline: Computer Architecture

Pipelining is a technique that allows multiple instructions to be executed in overlapping stages, improving efficiency, similar to processing laundry in stages. Each instruction undergoes fetching, decoding, executing, and memory operations in a structured pipeline, which can lead to significant time savings compared to non-pipelined execution. However, there are potential hazards such as structural, data, and control hazards that must be managed to maintain performance.

Embed presentation

Downloaded 1,581 times
PipeliningTopic:
• A Pipelining is a series of stages, where some work is done ateach stage in parallel.• The stages are connected one to the next to form a pipe -instructions enter at one end, progress through the stages, and exitat the other end.
Pipelining Case: Laundry• 4 loads of laundry that need to washed, dried, andfolded.– 30 minutes to wash, 40 min. to dry, and 20 min. to fold.– We have 1 washer, 1 dryer, and 1 folding station.• What’s the most efficient way to get the 4 loadsof laundry done?
Non Pipelined Laundry• Takes a total of 6 hours; nothing is done in parallel
Pipelined Laundry• Using this method, the laundry would be done at 9:30.
Definition:Pipelining is an speed up technique where multipleinstructions are overlapped in execution on a processor.
Pipelining: Processors• Computers, like laundry, typically perform the exact samesteps for every instruction:– Fetch an instruction from memory– Decode the instruction– Execute the instruction– Read memory to get input– Write the result back to memory
CS211 8Instruction Pipeline• Instruction execution process lends itself naturally topipelining– overlap the subtasks of instruction fetch, decode and execute Fetch instruction (FI) Decode instruction (DI) Calculate operands (CO) Fetch operands (FO) Execute instructions (EI) Write result (WR)Overlap these operations• Instruction pipeline has six operations,
CS211 9Instructions Fetch• The IF stage is responsible for obtaining the requestedinstruction from memory. The instruction and the programcounter are stored in the register as temporary storage.
CS211 10Decode Instruction• The DI stage is responsible for decoding the instructionand sending out the various control lines to the otherparts of the processor.
CS211 11Calculate Operands• The CO stage is where any calculations are performed.The main component in this stage is the ALU. The ALUis made up of arithmetic, logic and capabilities.
CS211 12Fetch Operands and Execute Instruction• The FO and EI stages are responsible for storing andloading values to and from memory. They also responsiblefor input and output from the processor respectively.
CS211 13Write Operands• The WO stage is responsible for writing the result of acalculation, memory access or input into the register file.
Six StageInstructionPipeline
Timing Diagram forInstruction Pipeline Operation
CS211 16Pipeline Performance: Clock & TimingSi Si+1 m dClock cycle of the pipeline : Latch delay : d = max {m } + dPipeline frequency : ff = 1 / 6
CS211 17Pipeline Performance: Speedup & Efficiencyk-stage pipeline processes n tasks in k + (n-1) clockcycles:k cycles for the first task and n-1 cyclesfor the remaining n-1 tasksTotal time to process n tasksTk = [ k + (n-1)] For the non-pipelined processorT1 = n k Speedup factorSk =T1Tk=n k [ k + (n-1)] =n kk + (n-1)7
Advantages• Pipelining makes efficient use of resources.• Quicker time of execution of large number ofinstructions• The parallelism is invisible to the programmer.
CSE431 L06 Basic MIPS Pipelining.19 Irwin, PSU, 2005 Yes: Pipeline Hazards structural hazards: attempt to use the same resource by twodifferent instructions at the same time data hazards: attempt to use data before it is ready- An instruction’s source operand(s) are produced by a priorinstruction still in the pipeline control hazards: attempt to make a decision about programcontrol flow before the condition has been evaluated and thenew PC target address calculated- branch instructions Can always resolve hazards by waiting pipeline control must detect the hazard and take action to resolve hazardsCan Pipelining Get Us Into Trouble?
Any Questions???
Thank You!!!Md. Saidur Rahman KohinoorE-mail: mdsaidur.r.kohinoor@ieee.orgFacebook: www.fb.com/kohinoor11

Recommended

PPT
Computer architecture pipelining
PPT
Pipeline hazard
PPT
Pipeline hazards in computer Architecture ppt
PPT
pipelining
PDF
Pipelining
PPTX
Instruction pipelining
PPT
Unit 3-pipelining & vector processing
PPTX
Pipelining and vector processing
PPTX
Stacks & subroutines 1
PPTX
Pipelining powerpoint presentation
PPTX
CISC & RISC Architecture
PPTX
Context switching
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPT
Interrupt
PPTX
Microprogrammed Control Unit
PPTX
Instruction Set Architecture
PPTX
Computer registers
PPTX
Interrupts and types of interrupts
PPT
Real Time Operating system (RTOS) - Embedded systems
PPTX
Principal Sources of Optimization in compiler design
 
PPTX
Computer Organization
PPTX
Arithmatic pipline
PPTX
Direct Memory Access(DMA)
PPTX
DMA operation
PPTX
INSTRUCTION LEVEL PARALLALISM
PDF
Control Unit Design
PPTX
Datapath Design of Computer Architecture
PPS
Cache memory
PPT
Pipelining
PPT
Coa.ppt2

More Related Content

PPT
Computer architecture pipelining
PPT
Pipeline hazard
PPT
Pipeline hazards in computer Architecture ppt
PPT
pipelining
PDF
Pipelining
PPTX
Instruction pipelining
PPT
Unit 3-pipelining & vector processing
PPTX
Pipelining and vector processing
Computer architecture pipelining
Pipeline hazard
Pipeline hazards in computer Architecture ppt
pipelining
Pipelining
Instruction pipelining
Unit 3-pipelining & vector processing
Pipelining and vector processing

What's hot

PPTX
Stacks & subroutines 1
PPTX
Pipelining powerpoint presentation
PPTX
CISC & RISC Architecture
PPTX
Context switching
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPT
Interrupt
PPTX
Microprogrammed Control Unit
PPTX
Instruction Set Architecture
PPTX
Computer registers
PPTX
Interrupts and types of interrupts
PPT
Real Time Operating system (RTOS) - Embedded systems
PPTX
Principal Sources of Optimization in compiler design
 
PPTX
Computer Organization
PPTX
Arithmatic pipline
PPTX
Direct Memory Access(DMA)
PPTX
DMA operation
PPTX
INSTRUCTION LEVEL PARALLALISM
PDF
Control Unit Design
PPTX
Datapath Design of Computer Architecture
PPS
Cache memory
Stacks & subroutines 1
Pipelining powerpoint presentation
CISC & RISC Architecture
Context switching
Control Units : Microprogrammed and Hardwired:control unit
Interrupt
Microprogrammed Control Unit
Instruction Set Architecture
Computer registers
Interrupts and types of interrupts
Real Time Operating system (RTOS) - Embedded systems
Principal Sources of Optimization in compiler design
 
Computer Organization
Arithmatic pipline
Direct Memory Access(DMA)
DMA operation
INSTRUCTION LEVEL PARALLALISM
Control Unit Design
Datapath Design of Computer Architecture
Cache memory

Similar to Instruction pipeline: Computer Architecture

PPT
Pipelining
PPT
Coa.ppt2
PPT
Pipelining slides
PDF
COA_Unit-3_slides_Pipeline Processing .pdf
PPT
Instruction pipelining
PPTX
3 Pipelining
PPT
Pipelining in computer architecture
PPT
Unit 3
PPTX
Pipelining
PPTX
Pipeline processing - Computer Architecture
PDF
Computer SAarchitecture Lecture 6_Pip.pdf
PPTX
CPU Pipelining and Hazards - An Introduction
PPT
Pipelining
PDF
Pipeline Computing by S. M. Risalat Hasan Chowdhury
PPTX
pipelining.pptx
PDF
Topic2a ss pipelines
PDF
Module 2 of apj Abdul kablam university hpc.pdf
PPSX
Concept of Pipelining
PPT
Pipeline r014
PDF
Pipelining 16 computers Artitacher pdf
Pipelining
Coa.ppt2
Pipelining slides
COA_Unit-3_slides_Pipeline Processing .pdf
Instruction pipelining
3 Pipelining
Pipelining in computer architecture
Unit 3
Pipelining
Pipeline processing - Computer Architecture
Computer SAarchitecture Lecture 6_Pip.pdf
CPU Pipelining and Hazards - An Introduction
Pipelining
Pipeline Computing by S. M. Risalat Hasan Chowdhury
pipelining.pptx
Topic2a ss pipelines
Module 2 of apj Abdul kablam university hpc.pdf
Concept of Pipelining
Pipeline r014
Pipelining 16 computers Artitacher pdf

More from InteX Research Lab

PDF
Workshop on IEEE vTools: Getting Involve with IEEE Volunteer Tools
PPSX
IEEE Student and Professional Membership Benefits
PPTX
Writing and Publishing a Scientific Research Paper
PPSX
IEEE Membership Benefits for Students
PPT
Operating System: Deadlock
PPT
Floyd Warshall Algorithm
PPTX
Electric Motor...
Workshop on IEEE vTools: Getting Involve with IEEE Volunteer Tools
IEEE Student and Professional Membership Benefits
Writing and Publishing a Scientific Research Paper
IEEE Membership Benefits for Students
Operating System: Deadlock
Floyd Warshall Algorithm
Electric Motor...

Recently uploaded

PPTX
Best Call Center VoIP System Providers in USA
PPTX
FINAL LESSON 1. HUMAN COMPUTER INTERACTION
PPTX
DreamTech-The-Dream-Recorder_2.0.pptx hs
PPTX
3.5_TCP_video_slides_discover_rdt_protocol.pptx
PDF
Coinbase___pdf___ Report___Transactions.
PDF
Understanding the Key Differences between NVR & DVR- NVR vs DVR
PPT
01 introduction to Data communications & Networks.ppt
PPTX
DeremCo_Centrocot_Recycled hybrid filament for technical textiles.pptx
PPTX
IOT BASED HOME AUTOMATION USING RASPBERRY PI.pptx
PDF
Basics of Electronics, Understanding Microcontrollers, Actuators and Sensors
PDF
Open Hardware PowerPC Desktop
PPTX
Introduction_to_Adobe_Photoshop.pptx for
PPTX
EHC UNIT 3,4,5.pptx all in one ppt it was good
PDF
Robotics: Presentation in Hardware interface
Best Call Center VoIP System Providers in USA
FINAL LESSON 1. HUMAN COMPUTER INTERACTION
DreamTech-The-Dream-Recorder_2.0.pptx hs
3.5_TCP_video_slides_discover_rdt_protocol.pptx
Coinbase___pdf___ Report___Transactions.
Understanding the Key Differences between NVR & DVR- NVR vs DVR
01 introduction to Data communications & Networks.ppt
DeremCo_Centrocot_Recycled hybrid filament for technical textiles.pptx
IOT BASED HOME AUTOMATION USING RASPBERRY PI.pptx
Basics of Electronics, Understanding Microcontrollers, Actuators and Sensors
Open Hardware PowerPC Desktop
Introduction_to_Adobe_Photoshop.pptx for
EHC UNIT 3,4,5.pptx all in one ppt it was good
Robotics: Presentation in Hardware interface
In this document
Powered by AI

Overview of pipelining as a series of stages where work is done in parallel, forming a pipeline for instruction processing.

Examines laundry processing as a case for understanding pipelining efficiency compared to non-pipelining, highlighting time benefits.

Defines pipelining as a speed-up technique for overlapping instruction execution on processors.

Details the steps involved in instruction execution within processors and how these steps can be pipelined for efficiency.

Describes six stages of instruction pipeline: Fetch, Decode, Calculate, Fetch Operands, Execute, and Write Operands.

Visual representation of the six-stage instruction pipelining concept.

Explains the clock cycle, latch delay, and frequency of the pipeline related to timing and performance.

Describes speedup and efficiency of k-stage pipelines processing n tasks, calculating total processing time.

Highlights benefits of pipelining and discusses potential hazards such as structural, data, and control hazards.

Final remarks and thank you, inviting any questions or further discussion.

Instruction pipeline: Computer Architecture

  • 1.
  • 2.
    • A Pipeliningis a series of stages, where some work is done ateach stage in parallel.• The stages are connected one to the next to form a pipe -instructions enter at one end, progress through the stages, and exitat the other end.
  • 3.
    Pipelining Case: Laundry•4 loads of laundry that need to washed, dried, andfolded.– 30 minutes to wash, 40 min. to dry, and 20 min. to fold.– We have 1 washer, 1 dryer, and 1 folding station.• What’s the most efficient way to get the 4 loadsof laundry done?
  • 4.
    Non Pipelined Laundry•Takes a total of 6 hours; nothing is done in parallel
  • 5.
    Pipelined Laundry• Usingthis method, the laundry would be done at 9:30.
  • 6.
    Definition:Pipelining is anspeed up technique where multipleinstructions are overlapped in execution on a processor.
  • 7.
    Pipelining: Processors• Computers,like laundry, typically perform the exact samesteps for every instruction:– Fetch an instruction from memory– Decode the instruction– Execute the instruction– Read memory to get input– Write the result back to memory
  • 8.
    CS211 8Instruction Pipeline•Instruction execution process lends itself naturally topipelining– overlap the subtasks of instruction fetch, decode and execute Fetch instruction (FI) Decode instruction (DI) Calculate operands (CO) Fetch operands (FO) Execute instructions (EI) Write result (WR)Overlap these operations• Instruction pipeline has six operations,
  • 9.
    CS211 9Instructions Fetch•The IF stage is responsible for obtaining the requestedinstruction from memory. The instruction and the programcounter are stored in the register as temporary storage.
  • 10.
    CS211 10Decode Instruction•The DI stage is responsible for decoding the instructionand sending out the various control lines to the otherparts of the processor.
  • 11.
    CS211 11Calculate Operands•The CO stage is where any calculations are performed.The main component in this stage is the ALU. The ALUis made up of arithmetic, logic and capabilities.
  • 12.
    CS211 12Fetch Operandsand Execute Instruction• The FO and EI stages are responsible for storing andloading values to and from memory. They also responsiblefor input and output from the processor respectively.
  • 13.
    CS211 13Write Operands•The WO stage is responsible for writing the result of acalculation, memory access or input into the register file.
  • 14.
  • 15.
  • 16.
    CS211 16Pipeline Performance:Clock & TimingSi Si+1 m dClock cycle of the pipeline : Latch delay : d = max {m } + dPipeline frequency : ff = 1 / 6
  • 17.
    CS211 17Pipeline Performance:Speedup & Efficiencyk-stage pipeline processes n tasks in k + (n-1) clockcycles:k cycles for the first task and n-1 cyclesfor the remaining n-1 tasksTotal time to process n tasksTk = [ k + (n-1)] For the non-pipelined processorT1 = n k Speedup factorSk =T1Tk=n k [ k + (n-1)] =n kk + (n-1)7
  • 18.
    Advantages• Pipelining makesefficient use of resources.• Quicker time of execution of large number ofinstructions• The parallelism is invisible to the programmer.
  • 19.
    CSE431 L06 BasicMIPS Pipelining.19 Irwin, PSU, 2005 Yes: Pipeline Hazards structural hazards: attempt to use the same resource by twodifferent instructions at the same time data hazards: attempt to use data before it is ready- An instruction’s source operand(s) are produced by a priorinstruction still in the pipeline control hazards: attempt to make a decision about programcontrol flow before the condition has been evaluated and thenew PC target address calculated- branch instructions Can always resolve hazards by waiting pipeline control must detect the hazard and take action to resolve hazardsCan Pipelining Get Us Into Trouble?
  • 20.
  • 21.
    Thank You!!!Md. SaidurRahman KohinoorE-mail: mdsaidur.r.kohinoor@ieee.orgFacebook: www.fb.com/kohinoor11

[8]ページ先頭

©2009-2025 Movatter.jp