FPGA Real-Time Spectrum Code for Gamma-Ray Spectroscopy Diagnostics
Gamma-ray diagnostics are considered of crucial importance for understanding the plasma behavior of next fusion devices. Among other physical phenomena, gamma-ray spectra can provide information about the fusion reaction rate and the fast ions temperature and confinement, indicators of how close we are from reaching self-sustained burning plasmas. Accordingly, dedicated gamma- ray diagnostics are currently installed at the Joint European Torus (JET). The 2D gamma-ray profile monitor is one of these diagnostics, equipped with an Advanced Telecommunications Computing Architecture (ATCA) Data Acquisition (DAQ) system, capable of digitizing gamma-ray signals from the 19 photodiode detectors. The DAQ system includes Field Programmable Gate Array (FPGA) devices, with embedded processing algorithms. These algorithms are responsible for processing the gamma-ray signals acquired from each detector in real-time, and for periodically streaming the corresponding energy values to the DAQ host. However, for higher count rates it is unfeasible streaming periodically all the energy values without loss. Thus, a new algorithm was designed, capable to produce real-time spectra at FPGA from the processed energy values. The spectra should be periodically streamed, instead of energy values, ensuring no data losses. Consequently, the streaming data can be used for control purposes, as demanded by next fusion experiments with long plasma discharges of high energy/count rate content. This work describes the real-time spectrum code developed for FPGA along with the attained results. It was concluded that the spectrum code is suitable for implementation in any spectroscopy diagnostic, whenever real-time spectra are required.