This paper presents a decoding algorithm of resolver based on modulo operation.Firstly,it analyzes principle of the decoding algorithm based on modulo operation and puts out the method of sine and cosine of the rotor angle and speed.Secondly it simplifies the modulo operation based on CORDIC algorithm and improves the FPGA implementation speed and reduces the amount of resources.Then the decoding algorithm of resolver is hardware implemented with FPGA,that is on Quartus II platform with Verilog language programming.Finally,the design modules is verified by Modelsim software,and the results is feasible and correct.Compared with the current decoding algorithm of rotor angle,decoding algorithm based on modulo operation proposed in this paper not only can simplify the hardware and software of permanent magnet motor control system,but also can improve the real-time controlling.