sine analog compare triangle signal to pwm

i have this at university.