FPGA-based AD1871 controller