


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of branch prediction techniques used in computer architecture. The lecture covers direct and indirect branches, the role of branch target buffer (btb) and predictor tables, 2-bit smith predictor, agreement predictor, return address stack, and branch correlation. The document also discusses the importance of high bandwidth instruction fetch and the impact of branch mispredictions on performance.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



September 15 2004
jmp address unconditional branch to an absolute address bnz $17, +56 conditional branch to PC relative address call address unconditional branch to an absolute address All information needed to resolve the branch is contained in the instruction.
ret Return from a function – all function returns are indirect branches jr $23 jump register – unconditional branch to an absolute address in register $ jalr $24 jump and link register – unconditional branch to an absolute address in register $
and in data register.
Right Bit
nt 00
t nt
must really be a stack. Return addresses are pushed by function calls and popped by function returns. NOTE: after a context switch the BTB, predictor, and RA stack all contain totally bogus values. So branch prediction is very inefficient immediately after a context switch.