All-optical pulse generation opens up a field for ultrawideband (UWB) applications. However, controllable pulse width and pulse type are still challenging. Here, we present a theoretical model and stimulated results of monocycle and doublet waveforms generation using programmable optical photon echo progress. We synthesized instantaneously monocycle and doublet waveforms by adjustment of pulse width, pulse amplitude, pulse position, and time interval of subpulses. We verified the possible application of the proposed method to design U.S. Federal Communications Commission-compliant UWB waveforms, and therefore, it may provide an avenue for waveform generation.