In certain aspects, a regulator includes a variable-impedance switch coupled between a supply rail and a circuit block, wherein the variable-impedance switch has an adjustable impedance. The regulator also includes a voltage level comparator configured to compare a block voltage at the circuit block with a reference voltage, and to output a first signal indicating whether the block voltage is higher or lower than the reference voltage based on the comparison. The regulator also includes a slope detector configured to determine whether the block voltage is rising or falling, and to output a second signal indicating whether the block voltage is rising or falling based on the determination. The regulator further includes a controller configured to receive the first signal and the second signal, and to control the impedance of the variable-impedance switch based on the first signal and the second signal.
展开▼