Analysis of Ripple Based Regulator