Design and Implementation of High performance FPGA Control for Permanent Magnet Synchronous Motor