First cut at waveform generator.

Only tested on Papilio Pro.