What is believed to be a new approach for the design and analysis of a reconfigurable optical square pulse generator using the concept of temporal optical integration and the digital signal processing method is presented. The reconfigurable square pulse generator is synthesized using compact active semiconductor-based waveguide technology, and it consists simply of the cascade of a tunable microring resonator (or a tunable all-pole filter) and a tunable asymmetrical Mach-Zehnder interferometer (or a tunable all-zero filter). The reconfigurable generator can convert an input picosecond pulse (i.e., soliton or Gaussian pulse) into an optical square pulse. The pulse width of the generated square pulse can be adjusted by controlling the time delay of a variable delay element in the tunable all-zero filter. The reconfigurable generator can convert an input picosecond pulse train into return-to-zero (RZ) and non-return-to-zero (NRZ) signals with square pulse shapes. The repetition rates of the generated RZ and NRZ signals can be varied by adjusting the bit period of the input picosecond pulse train, the input pulse width, and the time delay of the variable delay element. The effect of the deviation of the parameter values on the generator performance is also studied.