The high and low level controls will be synthesized on fpga. The field oriented control and pmsm model can be found on dynamic simulation library.