Automatic tuning for a memory voltage regulator