Question 21
What is a cache hit ratio?
Hit ratio = (Hits) / (Hits + Misses), measuring cache effectiveness.
What is a cache hit ratio?
Hit ratio = (Hits) / (Hits + Misses), measuring cache effectiveness.
If cache access time is 10 ns, main memory access time is 100 ns, and hit ratio is 0.9, what is the average memory access time (AMAT)?
$AMAT = Hit_Time + (Miss_Rate * Miss_Penalty) = 10 + (0.1 * 100) = 10 + 10 = 19 ns.$
Which hazard occurs when two instructions require the same hardware resource at the same time in a pipeline?
Structural hazards arise from resource conflicts when hardware cannot support all possible combinations of instructions in simultaneous execution.
Which technique reduces branch penalty by predicting the outcome of conditional branch instructions?
Branch prediction uses static or dynamic history mechanisms to guess branch directions and maintain continuous pipeline fetch.
Which pipeline hazard resolution technique passes a result directly from an execution stage to a dependent instruction without waiting for memory writeback?
Data forwarding (bypassing) routes computed outputs from ALU execution stages directly to subsequent instruction inputs.