Branch Predictor Visualizer ← Back to Apps Visualize branch prediction via state machines. Architecture & Logic Simulation Code (JavaScript) let count = 0; for (let n = 2; n <= 100; n++) { let isPrime = true; for (let d = 2; d * d <= n; d++) { if (n % d === 0) { isPrime = false; break; } } if (isPrime) { count++; } } Inversion Rule (e.g. == resolves to a BNE instruction under Assembly) If Statements For Loops Play Speed (ms) Reload Predictor Architecture 1-Bit Saturating Counter 2-Bit Saturating Counter Correlating (m, n) Predictor GShare Predictor m: n: Predictor State Reset (R) Step (S) Play (P) Stop (X) Created for UTK COSC530 Computer Organization.