How to Define possible waveforms in advance or calculate waveforms in real-time according to the hardware implemented