Next: ...
Up: What might go wrong: Hazards
Previous: What might go wrong: Hazards
- Structural hazards
- A good example of a structural hazard occurs in machine with
only one memory part.
- The instruction fetch stage needs to read from memory in every
circle.
- The memory access stage needs to read or write in these cycles
where it is processing a load or store instruction.
- Thus, the IF stage is stalled if the MEM stage is using the memory
port.
- Therefore we lose a clock cycle for every load or store instruction
executed.
Paul H J Kelly
Mon Nov 17 01:29:59 GMT 1997