<aside>
🪸
Dynamic scheduling: out of order execution gives higher pipeline/FU utilization, improved performance
Easier and more effective in hardware than software. more storage locations than architectural registers, dynamic handling of cache misses
Instruction buffer: multiple F/D latches that implement large scheduling scope + “passing” functionality. Split decode into in-order dispatch and out-of-order issue
Dynamic scheduling algorithms: Tomasulo uses copy-based register renaming, full out-of-order
</aside>
Problem with In-Order Pipelines
In cycle 4, MUL.S stalsl due to a RAW hazard. This is a fundamental problem

Static Instruction Scheduling
Static: by compiler
- requires knowledge of pieline and program dependences
- requires large scheduling scope full of independent instructions
- Issue: time at which instruction begins to execute
- Schedule: order in which instructions execute
- Scheduling: re-arrnging instrucitons to enable rapid instructions
Motivation: Dynamic Scheduling
AKA Out of Order execution
Execute instruction in non-sequential order
- Reduce RAW stalls
- Increase pipeline and functional unit utilization
- Original motivation was to increase FP unit utilization
- Expose more opportunities for parallel issue (ILP)
- Not in order → can be parallel
- But make it appear like sequential execution
Why build complex hardware (slow clock, high power)?
- Can’t we just do this in software?
- Performance portability
- Don’t want to recompile for new machine
- More info available
- Memory addresses, branch directoins. cache misses
- More registers available
- Compilers might not have enough to fix WAR and WAW hazards
- Easier to speculate and recover from mispeculation
- Flush instead of recovery code
But compiler has much larger scope!