Development of FPGA Based Control Architecture for PMSM Drives