This paper is to describe the design process and methods of a programmable power-quality signal generator to help perform the power disturbance testing of consumer electronics. Programmable ability is that the arbitrary waveform can be generated and provide the alternating current (AC) power output. The power output with arbitrary waveform can be used to emulate a power supply of pollution with power harmonics, flicker, sags, swells and other disturbances. This system can be used to perform the training for the design of filter to filter off a power source of pollution into the clean sine wave or can be used to test equipment for power pollution interference. The rated power of power supply mentioned in this paper is set to 300 watt, where the D-class power amplifier is used as the design core. And a boost circuit is designed to provide power supply for amplifier to raise the output voltage. Details of the design process will be discussed in this paper.