Topic: Computer Organization and Architecture
A processor uses a unified L1 cache for both instructions and data. If an instruction in the MEM stage performs a data memory access while the instruction in the IF stage attempts to fetch the next instruction, what type of hazard occurs?
- A. Structural hazard
- B. Data hazard
- C. Control hazard
- D. Name hazard
Answer: A. Structural hazard
Explanation: A structural hazard occurs when the hardware cannot support all overlapped instructions in the pipeline simultaneously. A unified cache causes a structural hazard because the Instruction Fetch (IF) stage and Memory Access (MEM) stage attempt to use the exact same physical memory resource at the exact same time.