sine analog compare triangle signal to pwm

Do you have a function generator to generate the sinewave and triangle wave ?