A waveform generator, comprising:(a) a phase-locked loop having a first phase-locked loop input for receiving an input signal from a source, a second phase-locked loop input, and a phase-locked loop output for outputting a multiplied square wave signal whose frequency is a multiple of a frequency of said input signal from said source; (b) a frequency divider having a frequency divider input for re