Integrated motor drive design for weight optimization