This paper presents the design of a signal generator,using ALTERA cycloneII EP2C35F676C as the main control chip,with direct digital frequency synthesis technology,through the digital tube and keyboard to interact with people,can have adjustable frequency sine wave,square wave,triangle wave,sawtooth wave.Through the hardware test,the results show that the load capacity is strong,the precision of the system is high,the operation is stable,and can realize the signal peak detection function.