




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Wide I-Fetch Design attempts:
Instruction Cache
Branch Predictor
Pre- decoding Logic
Que
Length Decoder
Instruction Input Buffer
Decoder Decoder Decoder
Micro-Ops
S
up
pl
em
en
te
d
by
T ra
ce
C
ac
he
Possible Areas of Concern:
Bank 0 Bank 1
Tag
Tag + 1
Mask out unwanted bits and switch banks if necessary.
Multi-Block Fetch
Taken
Taken
Trace Cache
Store Instructions in the order they were executed.
In this example, 3 cache lines to be fetched and assembled.
A Worse Case Scenario
This will require sophisticated logic to put everything back in order.
In this example, we need to use banks and fetch and assemble 6 cache lines.
Bank 0 Bank 1
Fetch Pipeline
Trace Cache Fetch Address
Trace Path Targets Multiple Branch Predictor
Trace Next Fetch Address
Note: The trace occupies one cache line. Also, there is only one trace in the cache that starts at a given address..
To the left is a diagram representing several blocks of code with possible branches. The blocks that are circled represent the trace.
It is possible for the multiple branch predictor to fail. In this case, our options are:
BTB - generate the path and all alternate targets. A target contains only the taken branch target.
Pentium IV uses: