76
Images courtesy of Addison Wesley Longman, Inc. Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Copyright © 2001 Chapter 11 Chapter 11 Reduced Instruction Reduced Instruction Set Computing Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Embed Size (px)

Citation preview

Page 1: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter 11Chapter 11Reduced Instruction Set Reduced Instruction Set

ComputingComputing

Page 2: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter OutlineChapter Outline

• RISC RationaleRISC Rationale

• Instruction SetsInstruction Sets

• Instruction PipelinesInstruction Pipelines

• Register WindowsRegister Windows

• Instruction Pipeline ConflictsInstruction Pipeline Conflicts

• RISC vs. CISCRISC vs. CISC

• Itanium MicroprocessorItanium Microprocessor

Page 3: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speeding Up Typical CodeSpeeding Up Typical Code

• 100% of instructions @ 20 ns100% of instructions @ 20 ns

Page 4: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speeding Up Typical CodeSpeeding Up Typical Code

• 100% of instructions @ 20 ns100% of instructions @ 20 ns

• 98% of instructions @ 18 ns and 2% of 98% of instructions @ 18 ns and 2% of instructions at 3 * 18 nsinstructions at 3 * 18 ns

Page 5: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speeding Up Typical CodeSpeeding Up Typical Code

• 100% of instructions @ 20 ns100% of instructions @ 20 ns

• 98% of instructions @ 18 ns and 2% of 98% of instructions @ 18 ns and 2% of instructions at 3 * 18 nsinstructions at 3 * 18 ns

• 100%(20c) P. 98%(18c) + 2% (54c)100%(20c) P. 98%(18c) + 2% (54c)

Page 6: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speeding Up Typical CodeSpeeding Up Typical Code

• 100% of instructions @ 20 ns100% of instructions @ 20 ns

• 98% of instructions @ 18 ns and 2% of 98% of instructions @ 18 ns and 2% of instructions at 3 * 18 nsinstructions at 3 * 18 ns

• 100%(20c) P. 98%(18c) + 2% (54c)100%(20c) P. 98%(18c) + 2% (54c)

• 20c vs. 17.64c + 1.08c20c vs. 17.64c + 1.08c

Page 7: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speeding Up Typical CodeSpeeding Up Typical Code

• 100% of instructions @ 20 ns100% of instructions @ 20 ns

• 98% of instructions @ 18 ns and 2% of 98% of instructions @ 18 ns and 2% of instructions at 3 * 18 nsinstructions at 3 * 18 ns

• 100%(20c) P. 98%(18c) + 2% (54c)100%(20c) P. 98%(18c) + 2% (54c)

• 20c vs. 17.64c + 1.08c20c vs. 17.64c + 1.08c

• 20 20 18.72 18.72

Page 8: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Fixed-length instructionsFixed-length instructions

Page 9: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Fixed-length instructionsFixed-length instructions

• Limited loading and storing instructionsLimited loading and storing instructions

Page 10: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Fixed-length instructionsFixed-length instructions

• Limited loading and storing instructionsLimited loading and storing instructions

• Fewer addressing modesFewer addressing modes

Page 11: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Fixed-length instructionsFixed-length instructions

• Limited loading and storing instructionsLimited loading and storing instructions

• Fewer addressing modesFewer addressing modes

• Instruction pipelineInstruction pipeline

Page 12: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Fixed-length instructionsFixed-length instructions

• Limited loading and storing instructionsLimited loading and storing instructions

• Fewer addressing modesFewer addressing modes

• Instruction pipelineInstruction pipeline

• Large number of registersLarge number of registers

Page 13: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Hardwired control unitHardwired control unit

Page 14: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Hardwired control unitHardwired control unit

• Delayed loads and branchesDelayed loads and branches

Page 15: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Hardwired control unitHardwired control unit

• Delayed loads and branchesDelayed loads and branches

• Speculative execution of instructionsSpeculative execution of instructions

Page 16: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Hardwired control unitHardwired control unit

• Delayed loads and branchesDelayed loads and branches

• Speculative execution of instructionsSpeculative execution of instructions

• Optimizing compilersOptimizing compilers

Page 17: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC CharacteristicsRISC Characteristics

• Hardwired control unitHardwired control unit

• Delayed loads and branchesDelayed loads and branches

• Speculative execution of instructionsSpeculative execution of instructions

• Optimizing compilersOptimizing compilers

• Separate instruction and data streamsSeparate instruction and data streams

Page 18: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC Instruction SetsRISC Instruction Sets

• Fewer instructionsFewer instructions

Page 19: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC Instruction SetsRISC Instruction Sets

• Fewer instructionsFewer instructions

• Executed in one clock cycleExecuted in one clock cycle

Page 20: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC Instruction SetsRISC Instruction Sets

• Fewer instructionsFewer instructions

• Executed in one clock cycleExecuted in one clock cycle

• Orthogonal, but not too orthogonalOrthogonal, but not too orthogonal– A OR B = NOT((NOT A) AND (NOT B))A OR B = NOT((NOT A) AND (NOT B))– A XOR B = (A AND (NOT B)) OR ((NOT A) A XOR B = (A AND (NOT B)) OR ((NOT A)

AND B)AND B)

Page 21: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

MIPS 4000 Instruction TypesMIPS 4000 Instruction Types

Page 22: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

SPARC Instruction FormatsSPARC Instruction Formats

Page 23: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 24: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 25: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 26: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 27: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 28: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction PipelinesInstruction Pipelines

Page 29: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction Pipeline Instruction Pipeline AdvantagesAdvantages

• Reduced hardwareReduced hardware

• Reduced clock periodReduced clock period

• Reduced complexity of memory Reduced complexity of memory interfaceinterface

Page 30: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Pipeline Clock RatePipeline Clock Rate

• Limited by slowest stageLimited by slowest stage

• Speedup:Speedup:

• Example: Example:

Page 31: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register WindowingRegister Windowing

• Global RegistersGlobal Registers

• Windowed RegistersWindowed Registers

• Window Data RegisterWindow Data Register

• Window Pointer RegisterWindow Pointer Register

Page 32: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register WindowingRegister Windowing

Page 33: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register WindowingRegister Windowing

Page 34: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register WindowingRegister Windowing

Page 35: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register WindowingRegister Windowing

Page 36: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register RenamingRegister Renaming

• Arbitrary registers instead of fixed Arbitrary registers instead of fixed windowswindows

• More flexible, but harder to controlMore flexible, but harder to control

Page 37: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction Pipeline ConflictsInstruction Pipeline Conflicts

• Data conflictsData conflicts

• Branch conflictsBranch conflicts

Page 38: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Data ConflictsData Conflicts

Page 39: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Data ConflictsData Conflicts

Page 40: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

No-op InsertionNo-op Insertion

Page 41: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

No-op InsertionNo-op Insertion

Page 42: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

Page 43: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

Page 44: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

• Not always possibleNot always possible

Page 45: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Stall InsertionStall Insertion

Page 46: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Stall InsertionStall Insertion

Page 47: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Data ForwardingData Forwarding

Page 48: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Data ForwardingData Forwarding

Page 49: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Data ForwardingData Forwarding

Page 50: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Branch ConflictsBranch Conflicts

Page 51: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Branch ConflictsBranch Conflicts

Page 52: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

No-op InsertionNo-op Insertion

Page 53: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

No-op InsertionNo-op Insertion

Page 54: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

Page 55: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

Page 56: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Conditional BranchesConditional Branches

Page 57: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

No-op InsertionNo-op Insertion

Page 58: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

• Ignoring the data conflict:Ignoring the data conflict:

Page 59: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

• Ignoring the data conflict:Ignoring the data conflict:

Page 60: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Instruction ReorderingInstruction Reordering

• Ignoring the data conflict:Ignoring the data conflict:

• Not always possible to reorder Not always possible to reorder instructions - sometimes must resort to instructions - sometimes must resort to no-op insertionno-op insertion

Page 61: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

AnnullingAnnulling

Page 62: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

AnnullingAnnulling

Page 63: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Branch PredictionBranch Prediction

Page 64: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC AdvantagesRISC Advantages

• Simpler control unitsSimpler control units

Page 65: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC AdvantagesRISC Advantages

• Simpler control unitsSimpler control units

• Can run at higher clock frequenciesCan run at higher clock frequencies

Page 66: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC AdvantagesRISC Advantages

• Simpler control unitsSimpler control units

• Can run at higher clock frequenciesCan run at higher clock frequencies

• More chip space for registersMore chip space for registers

Page 67: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC AdvantagesRISC Advantages

• Simpler control unitsSimpler control units

• Can run at higher clock frequenciesCan run at higher clock frequencies

• More chip space for registersMore chip space for registers

• Easier to incorporate parallelismEasier to incorporate parallelism

Page 68: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RISC AdvantagesRISC Advantages

• Simpler control unitsSimpler control units

• Can run at higher clock frequenciesCan run at higher clock frequencies

• More chip space for registersMore chip space for registers

• Easier to incorporate parallelismEasier to incorporate parallelism

• Simpler compilersSimpler compilers

Page 69: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CISC AdvantagesCISC Advantages

• Complexity doesnComplexity doesn’’t always increase t always increase costcost

• Can incorporate previous designsCan incorporate previous designs

• Backward compatibilityBackward compatibility

Page 70: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Itanium MicroprocessorItanium Microprocessor

Page 71: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Itanium MicroprocessorItanium Microprocessor

• IA-64 ISAIA-64 ISA

• Explicitly Parallel Instruction ComputingExplicitly Parallel Instruction Computing

• PredicationPredication

• Speculative ExecutionSpeculative Execution

Page 72: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

PredicationPredication

Page 73: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

PredicationPredication

Page 74: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speculative ExecutionSpeculative Execution

Page 75: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Speculative ExecutionSpeculative Execution

Page 76: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 11 Reduced Instruction Set Computing

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

SummarySummary

• RISC RationaleRISC Rationale

• Instruction SetsInstruction Sets

• Instruction PipelinesInstruction Pipelines

• Register WindowsRegister Windows

• Instruction Pipeline ConflictsInstruction Pipeline Conflicts

• RISC vs. CISCRISC vs. CISC

• Itanium MicroprocessorItanium Microprocessor