Implementation of drive circuit for three phase inverter