Bird
0
0

A developer wrote this pseudo-code to reduce power but it does not work as expected:

medium📝 Analysis Q14 of 15
ARM Architecture - Power Modes
A developer wrote this pseudo-code to reduce power but it does not work as expected:
if (cpu_idle) {
  disable_power_gating();
}

What is the likely error?
AThey need to disable clock gating, not power gating
BThey should enable power gating, not disable it
CThey should increase CPU frequency instead
DThey should boost voltage to save power
Step-by-Step Solution
Solution:
  1. Step 1: Understand power gating purpose

    Power gating saves power by turning off power to idle parts of the CPU.
  2. Step 2: Analyze the code logic

    The code disables power gating when CPU is idle, which prevents power saving. It should enable power gating instead.
  3. Final Answer:

    They should enable power gating, not disable it -> Option B
  4. Quick Check:

    Power gating enabled = Power saved [OK]
Quick Trick: Enable power gating to save power when idle [OK]
Common Mistakes:
  • Disabling power gating instead of enabling it
  • Confusing power gating with clock gating
  • Trying to boost voltage to save power

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes