main merge FPGA