sine analog compare triangle signal to pwm

sine read from generator 50Hz ( amplitude 3V )
triangle read from generator 5Khz ( amplitude 1V)