A stepped waveform is obtained with the circuit shown in the figure, which uses only one amplifier. In this circuit we have two stair steps for each cycle of the input signal. To obtain only one step per cycle of the input signal, simply remove diode D1.