Exchanging data between CPU and FPGA through shared DDR