This document discusses using FPGAs for hardware-in-the-loop simulation of electric machines. It begins with an introduction to HIL simulation and why FPGAs are advantageous compared to CPUs for modeling electric drives. It then describes implementing a permanent magnet synchronous motor solver on an FPGA for high-fidelity, high-speed modeling. The document shows how FEA models from ANSYS Maxwell can be exported and integrated with I/O interfaces on an FPGA-based real-time simulator from OPAL-RT to perform HIL simulation. Benchmark simulations of a Prius motor model exported from Maxwell and run on an OPAL-RT system demonstrate the benefits of using FPGAs for electric machine HIL modeling.