Reducing the hardware requirements in FPGA based controllers: a photovoltaic application