In one embodiment, an apparatus includes output voltage comparison circuitry that compares an output voltage of a regulator and a reference voltage and outputs an output voltage comparison signal based on the comparison. Slope detection circuitry detects a slope of the output voltage and outputs a slope comparison signal based on the slope detected. Duty cycle determination circuitry receives the output comparison signal and the slope comparison signal and outputs a pre-driver signal having a duty cycle based on the output comparison signal and the slope comparison signal. The pre-driver signal is used to regulate the output voltage of the voltage regulator.