Design of a System-on-Chip PMSM Drive Sensorless Control