square wave generator that synthesizes