Direct comparison FPGA-ADC device based on single carry chain
By designing a direct comparison FPGA-ADC device based on a single carry chain in the PET detector system, the problems of high cost and high power consumption of the energy measurement device are solved, and low cost, low power consumption, high integration and high performance are achieved The sampling rate of 100 megabytes is suitable for PET systems.
Patent Information
- Application Number
- CN202010400798.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-13
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-05-13
AI Technical Summary
The energy measurement device in the existing PET detector system is costly and has a large power consumption, which limits the degree of integration of multiple channels, making it difficult to achieve low-cost and low-power high-performance energy measurement.
Design a direct comparison type FPGA-ADC device based on a single carry chain, using calibration signal generator, low-pass filter circuit, comparator, clock generator, carry chain time measurement module, fine time encoding circuit, coarse time counter, non- The linear correction circuit and the pulse width calculation circuit realize analog-to-digital transformation, obtain the timestamp information of the pulse signal through the carry chain tap and the flip-flop unit, and perform non-linear correction to reduce resource consumption.
It realizes a low-cost, low-power, high-integration and high-performance ADC with 100-megabit sampling rate, which is suitable for PET systems, improving the overall performance and integration of the system.
Smart Images

Figure CN111610549B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a PET detector based on SIPM, in particular to a direct comparison type FPGA-ADC device based on a single carry chain, belonging to the technical field of medical imaging equipment. Background Art
[0002] Currently, positron emission tomography (PET) systems play an increasingly important role in early cancer detection, and silicon photomultiplier (SiPM) detectors are increasingly used in PET systems due to their good energy and time resolution and magnetic compatibility. The principle of SiPM-based PET detectors is to use SiPM to convert the high-energy gamma photons captured by the detector crystal module into low-energy visible light signals through the photoelectric effect, and then use analog conditioning circuits to amplify and shape the analog electrical signals, and then use energy measurement devices and time measurement devices (Time-Digital Converter, TDC) to obtain the energy and arrival time information of the electrical signal, and then use the back-end coincidence selection method to screen out valid signals. Since PET detectors have many channels, designing low-cost, low-power and high-performance energy measurement devices is one of the keys to the design of PET detector electronics systems.
[0003] However, current energy measurement devices are basically based on commercial ADC chips to achieve analog-to-digital conversion, and then the obtained digital information is sent to the field programmable gate array (FPGA) chip to complete the energy integration algorithm. Due to the large number of PET detector channels, a large number of commercial ADC chips are required, which will increase system costs and bring about high power consumption, seriously limiting the integration of electronic systems. In other words, its ADC has defects such as high cost and high power consumption, which is not conducive to multi-channel integration.
[0004] Based on this, this application is made. Summary of the invention
[0005] In order to solve the above defects in the prior art, the present invention provides a direct comparison type FPGA-ADC device based on a single carry chain.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A direct comparison FPGA-ADC device based on a single carry chain includes a calibration signal generator, a low-pass filter circuit, a comparator, a clock generator, a carry chain time measurement module, a fine time encoding circuit, a coarse time counter, a nonlinear correction circuit, and a pulse width calculation circuit. The clock generator generates a sampling clock, which is compared with the input analog signal through the FPGA internal comparator after passing through the low-pass filter circuit to obtain a pulse to be measured. The width of the pulse to be measured can be approximately proportional to the amplitude of the input analog signal, and the analog-to-digital conversion can be completed by measuring its pulse width.
[0008] In order to improve the dynamic range of time measurement, a time interpolation method combining coarse and fine time is adopted.
[0009] The pulse signal to be tested enters the carry chain inside the FPGA. The carry unit of the carry chain contains taps, each of which corresponds to a trigger unit. The taps of the carry chain are latched using their respective trigger chains to obtain the tap state level.
[0010] The states of the front and rear edges of the pulse to be measured are different at different times on the carry chain taps. The fine time stamp information of the front and rear edges of the pulse signal to be measured can be obtained by encoding the states of each tap through the encoding circuit. The present invention uses the same carry chain to simultaneously mark the time state information of the front and rear edges of the pulse to be measured. The coarse time stamp information of the front and rear edges of the signal to be measured can be obtained by using a coarse time counter, and then the coarse and fine time stamps can be combined through the packing logic to obtain the time information of the front and rear edges of the signal to be measured. The pulse signal width can be obtained by subtracting the leading time from the trailing time.
[0011] In addition, due to the non-uniformity of delays between the taps of the carry chain, it is necessary to perform nonlinear correction on the delay. When the system is initialized, the calibration signal generator generates a large number of pulse signals to be measured and performs fine time measurement by driving a clock that is not cognate to the system clock. The nonlinear correction circuit calculates the correction coefficient based on the number of statistical fine times, and stores the correction coefficient as a lookup table (LUT) in the random access memory (RAM) inside the FPGA chip. The actual pulse signal to be measured is corrected for fine time nonlinearity according to the LUT. The present invention can utilize a single carry chain inside the FPGA to realize a simple analog-to-digital converter with a sampling rate of hundreds of megahertz. The present invention has the advantages of simple structure, extremely low cost and high integration.
[0012] The principle and beneficial technical effects of the present invention: The present invention is based on FPGA chip logic code and simple off-chip discrete resistor-capacitor devices (low-pass filters), and can achieve low-cost, low-power, high-integration and high-performance ADC with a sampling rate of hundreds of megahertz, which is of great significance to the entire detector and even the PET system. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a schematic diagram of the principle of the FPGA-ADC of this embodiment;
[0014] Figure 2 Schematic diagram of the overall structure of the FPGA-ADC in this embodiment;
[0015] Figure 3 This is a schematic diagram of FPGA resources and power consumption occupied by a single-channel ADC in this embodiment;
[0016] Figure 4 This is the SiPM signal resolution test result of this embodiment;
[0017] Figure 1 In the figure, a: schematic diagram of the sampling clock waveform before and after RC low-pass filtering; b: schematic diagram of the sampling clock and input signal waveform after filtering; c: the pulse signal to be measured obtained after comparison. DETAILED DESCRIPTION
[0018] In order to make the technical means of the present invention and the technical effects that can be achieved more clearly and completely disclosed, an embodiment is provided herewith and described in detail as follows in conjunction with the accompanying drawings:
[0019] A direct comparison FPGA-ADC device based on a single carry chain in this embodiment includes a calibration signal generator, a low-pass filter circuit, a comparator, a clock generator, a carry chain, a fine time encoding logic, a coarse time counter, a nonlinear correction logic and a pulse width calculation logic, etc. The overall block diagram is as follows: Figure 2 As shown:
[0020] (1) The calibration signal generator is a device driven by a clock that is not cognate with the system clock and is used to generate a calibration signal. The calibration signal is sent to the carry chain, and each carry chain unit is calibrated using the code density method. The number of pulses (calibration signals) generated is approximately determined by the following formula:
[0021]
[0022] Where T is the period of the TDC sampling clock, and σ is the standard deviation of the statistics. For example, if the TDC sampling clock is 2.5ns, to make the standard deviation of the calibration statistics less than 3ps, then 2 20 A calibration signal is sufficient.
[0023] (2) The low-pass filter circuit is composed of an off-chip series resistor R and a pin parasitic capacitor Cp of the FPGA, and is used to perform low-pass filtering on the analog-to-digital sampling clock. The obtained triangular wave signal is compared with the input analog signal using the comparator, and the comparison output pulse width can be approximately proportional to the input analog signal amplitude, such as Figure 1 As shown in a;
[0024] (3) The comparator is composed of the IBUFDS resources inside the FPGA and is used to compare the input signal with the filtered sampling clock to obtain the pulse to be measured, such as Figure 1 As shown in b and c;
[0025] (4) The clock generator is a device that uses the system clock to drive the PLL resources inside the FPGA to generate a sampling clock. The 100MHz system clock (denoted as CLK_SYS) generates a 200MHz analog-to-digital sampling clock through the PLL and outputs it to the filter, denoted as CLK_AD; it generates a 400MHz time measurement sampling clock, denoted as CLK_TD;
[0026] (5) The carry chain time measurement module is composed of the carry chain resources inside the FPGA. After the pulse to be measured is sent into the carry chain, a level jump from 0 to 1 will occur at each tap. When the time measurement sampling clock (CLK_TD) goes to latch the tap level, the different level states of each tap represent the time information of the arrival of the pulse to be measured. The delay of the pulse to be measured on the carry chain must be greater than the time measurement sampling period to cover the entire fine time measurement range. Therefore, the length M of the carry chain must satisfy:
[0027]
[0028] Wherein, T is the period of the time measurement sampling clock, and d is the average delay between the carry chain taps. If the time measurement sampling period is 2.5ns and the average tap delay is 100ps, then the carry chain length is at least 25. In addition, this embodiment is based on the free sampling method, and a too long carry chain will affect the back-end encoding speed, so it is finally necessary to instantiate a suitable carry chain length according to the carry chain delay test result.
[0029] In order to reduce the consumption of FPGA carry chain resources, this embodiment uses two of the four taps of the carry chain unit to mark the leading edge time information of the pulse to be measured, and the other two taps to mark the trailing edge time information of the pulse to be measured. In this way, the leading and trailing edge time information of the pulse signal can be measured simultaneously, and then the pulse width information can be obtained.
[0030] (6) The fine time coding logic / circuit ( Figure 2 The leading edge encoder and trailing edge encoder in the carry chain convert the thermometer code output by the carry chain into binary time information. Ideally, the thermometer code is similar to "00001111", but when the trigger is latched, a "jump phenomenon" may occur due to the metastable state, that is, a situation similar to "0010111" may occur. In order to reduce the coding error, the binary division and summation method are used. The specific implementation scheme is as follows:
[0031] (6.1) For the leading (trailing) edge measurement process, first determine the level state of the previous (trailing) clock cycle: if not all 0, do not perform this encoding; if all 0, proceed to step (6.2);
[0032] (6.2) Determine the carry chain level state Q[0:M-1]. If Q is not all 0, the position where the "01" transition occurs in the code Q is determined by binary search to reduce the number of determinations. The binary search method is to first determine the level of Q[M / 2]: if it is 0, then the position where the "01" transition occurs is in Q[M / 2:M-1], and then determine the level of Q[3M / 4], and then determine in sequence; if it is 1, then the position where the "01" transition occurs is in Q[0:M / 2-1], and then determine the level of Q[M / 4], and then determine in sequence until it approaches a smaller range and then proceed to step (6.3);
[0033] (6.3) The thermometer code is translated into binary data based on the position of the "01" transition and the number of "0"s in the interval.
[0034] (7) The coarse time counter ( Figure 2 The coarse counter in the pulse width measurement module is used to calculate the coarse time information to obtain a larger dynamic range of pulse width measurement;
[0035] (8) The nonlinear correction logic / circuit ( Figure 2 The INL correction logic in the FPGA is to use the pulse signal to be measured generated by the pulse signal generator, count each fine time and calculate the delay uniformity, and use the bin-by-bin method to obtain the nonlinear correction parameters. The nonlinear correction parameters are stored in the random access memory RAM inside the FPGA as a lookup table LUT. The actual signal to be measured uses the measured fine time information as the address to read the correction value in the LUT to obtain the corrected fine time value. The specific steps are as follows:
[0036] (8.1) When the system is initialized, the calibration signal generator is started to generate the pulse signal to be tested, and sent to the multi-phase carry chain for fine time measurement. The fine time measurement result is used as the address, and the content of the random access memory (denoted as RMA1) at the address is read, and then added 1 to update. According to the code density method, by generating a large number of pulse signals to be tested, the number of occurrences of each fine time value can be counted, and the number is proportional to the tap delay value.
[0037] (8.2) Instantiate another random access memory (referred to as RAM2), first read the content w at address i of RMA1 i , calculate the correction factor D using the following formula i :
[0038]
[0039] The calculated correction coefficient is written as content into RMA2 as the correction lookup table LUT;
[0040] (8.3) The actual pulse signal to be measured is input into the multi-phase carry chain for fine time measurement, and the fine time measurement result is used as the address to query the content in RMA2 to obtain the corrected fine time value.
[0041] (9) The pulse width calculation and packaging circuit ( Figure 2 The time information packaging and caching, pulse width calculation in the FPGA are used to make a difference between the leading and trailing edge times to obtain the width of the measured pulse signal, and the obtained pulse width information is cached and output using the FPGA internal first-in first-out buffer (FIFO) resources.
[0042] The resource consumption and power consumption of a single-channel FPGA-ADC instantiated on a Xilinx K7 FPGA are shown in the figure below: Figure 3 As shown in the figure, its FPGA resource consumption is very low.
[0043] like Figure 4 As shown, an arbitrary waveform generator is used to generate a SiPM-like output signal, and the result after A / D conversion of the present invention is used for energy integration, and its energy resolution is better than 1% RMS. Its performance is sufficient to meet the index requirements of the PET system.
[0044] In summary, this embodiment achieves the following technical effects:
[0045] (1) Using FPGA chip logic code and external simple resistor-capacitor discrete devices, a direct comparison analog-to-digital conversion device with a sampling rate of hundreds of megahertz is realized;
[0046] (2) Using a single carry chain resource inside the FPGA to measure the pulse width of the leading and trailing edges of a digital pulse in real time, and then infer the input signal level;
[0047] (3) Use FPGA external crystal oscillator and internal memory resources to achieve online nonlinear correction and improve working stability.
[0048] The above content is a further detailed description of the technical solution provided in combination with the preferred implementation mode of the present invention. It cannot be determined that the specific implementation of the present invention is limited to the above descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A direct comparison FPGA-ADC device based on a single carry chain, characterized in that: include A clock generator, driven by the system clock, for generating analog-to-digital sampling clock and time measurement sampling clock; A low-pass filter circuit, used for performing low-pass filtering on the analog-to-digital sampling clock generated by the clock generator; A comparator is used to compare the low-pass filtered signal with the input analog signal to obtain a pulse signal to be tested; The calibration signal generator is used to generate a large number of pulse signals to be tested and perform fine time measurement by driving a clock that is not cognate to the system clock when the system is initialized; The carry chain time measurement module includes a plurality of carry units, each of which includes a plurality of taps. The tap levels are latched by the time measurement sampling clock, and the different level states of each tap represent the time information of the arrival of the pulse to be measured; A fine time coding circuit, in which the states of the leading and trailing edges of the pulse to be measured are different at different times on the carry chain taps, and the fine time coding circuit is used to encode the states of each tap to obtain the fine time stamp information of the leading and trailing edges of the pulse signal to be measured; A coarse time counter is used to calculate the coarse time stamp information of the leading and trailing edges of the pulse to be measured, so as to obtain a larger dynamic range of pulse width measurement; The pulse width calculation circuit is used to make a difference between the obtained leading and trailing edge times to obtain the width of the measured pulse signal; it also includes a packing logic, the coarse time stamp information of the leading and trailing edges of the pulse to be measured, and the coarse and fine time stamps are combined through the packing logic to obtain the time information of the leading and trailing edges of the signal to be measured; The pulse signal width can be obtained by subtracting the leading edge time from the trailing edge time.
2. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: It also includes a nonlinear correction circuit. When the system is initialized, the calibration signal generator is driven by a clock that is not cognate with the system clock to generate a large number of pulse signals to be measured and perform fine time measurements. The nonlinear correction circuit calculates the correction coefficient based on the number of fine times counted, and stores the correction coefficient as a lookup table LUT in the random access memory RAM inside the FPGA chip.
3. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: Each tap corresponds to a trigger unit, and the taps of the carry chain are latched using their own trigger chains to obtain the tap state level.
4. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: The delay of the pulse to be measured in the carry chain is greater than the time measurement sampling period.
5. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: The width of the pulse to be measured can be approximately proportional to the amplitude of the input analog signal, and the pulse width of the pulse to be measured is measured to complete the analog-to-digital conversion.
6. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: Each carry chain unit includes four taps, two of which mark the leading edge time information of the pulse to be measured, and the other two taps mark the trailing edge time information of the pulse to be measured, so as to simultaneously measure the leading and trailing edge time information of the pulse signal, and then obtain the pulse width information.
7. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: The low-pass filter circuit is composed of an off-chip series resistor R and a pin parasitic capacitor Cp of the FPGA, and is used to perform low-pass filtering on the analog-to-digital sampling clock to obtain a quasi-triangular wave signal.
8. A direct comparison type FPGA-ADC device based on a single carry chain as claimed in claim 1, characterized in that: The comparator is composed of IBUFDS resources inside the FPGA.
