A device and/or system for generating arbitrary waveforms of a desired shape that can be used for generating a stimulation pulse for medical purposes such as for spinal cord stimulation therapy, where such arbitrary waveforms can also be used for charge balancing purposes.