A digital optical phase-locked loop for diode lasers based on field programmable gate array.