Abstract: A photonic approach to generating triangular and square waveforms using a comparator is proposed. Beginning with a sinusoidal waveform, a comparator comprising two Mach-Zehnder modulators ...