Comparison of two possible solution for reducing over-voltages at the motor terminals in high-speed AC drives