major overhaul of FPGA code to support both ML509 and Bee2 at the same time