+ All Categories
Home > Documents > CPU Optimization

CPU Optimization

Date post: 14-Jan-2016
Category:
Upload: orinda
View: 30 times
Download: 0 times
Share this document with a friend
Description:
CPU Optimization. Out-of-Order Execution (OoOE). CPU with separate instruction and data caches. FLASH. RAM. Instruction Cache. Data Cache. ALU. An Ideal Pipeline. Pipeline with instruction & data cache. Instruction NOT in cache. Operand NOT in cache. - PowerPoint PPT Presentation
Popular Tags:
8
CPU Optimization Out-of-Order Execution (OoOE)
Transcript
Page 1: CPU Optimization

CPU Optimization

Out-of-Order Execution (OoOE)

Page 2: CPU Optimization

Instruction CacheInstruction Cache

FLASH RAM

ALU

Data CacheData Cache

CPU with separate instruction and data caches

Page 3: CPU Optimization

An Ideal PipelineAn Ideal Pipeline

Pipeline with instruction & data cachePipeline with instruction & data cache

Instruction NOT in cache Operand NOT in cache

Page 4: CPU Optimization

Example: How long would this program take to execute?

R1 = R2

R2 = R1 + R3

R4 = R3 + R5

*R3, R4, R5 Already in data cache

Page 5: CPU Optimization

R1=R2 F D A E WR2=R1+R3 F D A E WR4=R3+R5 F D A E W

R4=R3+R5 F E A E WR1=R2 F D A E WR2=R1+R3 F E A E W

Sequential ExecutionSequential Execution

Re-ordered ExecutionRe-ordered Execution

Time = 12 Units

Time = 12 Units

Page 6: CPU Optimization

The CDC 6600. The first computer to use OoOE (1964)

Source: wikipedia

Page 7: CPU Optimization

Reservation Stations (Buffer)

R1 R2 R3 R4 R5

R1=R2 RAM RAM

R2=R1+R3 RAM RAM cache

R4=R3+R5 cache cache cache

Page 8: CPU Optimization

OoOE Hardware


Recommended