proposed flow of work() function with FPGA integration