A Digital Control System Based on Field Programmable Gate Array for AC Drives