FPGA-based FOC current loop implementation (PMSM)