fpga: reset the part before programming