Text this: Modeling of a single-cycle current generator while forming a quasi-sinusoidal current