The Field-Programmable Gate Array Design of the Gridded Retarding Ion Distribution Sensor