Fault tolerant PWM generation with doubleredundant logic