What is Branch prediction logic
Branch prediction logic in Pentium: Pentium microprocessor uses branch prediction logic to decrease the time needed for a branch caused by internal delays. These delays are minimized because when a branch instruction is encountered, microprocessor begins pre-fetch instruction at the branch address. Instructions are loaded into the instruction cache so when branch takes place, the instructions are present and allow the branch to execute in one clocking period. For any reason if the branch prediction logic errors, branch requires an extra three clocking periods to execute. In utmost cases, branch prediction is correct and no delay ensues.