Study and realization of an instrument FPGA based to implement Curve-Fitting Algorithm (CFA)