Time domain correlation detection circuit with high timing precision, control method and application of time domain correlation detection circuit
By separating the timing control module and the threshold judgment module and setting the over-threshold flag latch signal at a fixed time interval, the problem of timing accuracy caused by the non-fixed pulse output time in the existing technology is solved, and the time domain with high timing accuracy is realized. Correlation detection improves the accuracy and stability of detection.
Patent Information
- Application Number
- CN202411191807.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, an output pulse is generated when the pulse count value in the time window reaches the threshold, resulting in an irregular interval between the threshold pulse and the window opening moment, interfering with the timing accuracy and reducing the time domain accuracy of the system signal pulse.
Separate the timing control module and the threshold judgment module, and fix the pulse output time of the correlation detection circuit to be related to the window opening time by setting the over-threshold mark latch signal at a fixed time interval with the window opening signal to achieve the time when the threshold pulse occurs. Uncorrelated detection with high timing accuracy.
The timing accuracy is improved, the position interference due to the occurrence of the threshold pulse is avoided, time domain correlation detection with high timing accuracy is achieved, and the accuracy and stability of the detection are enhanced.
Smart Images

Figure CN118713632A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit technology, and in particular to a time domain correlation detection circuit with high timing accuracy, a control method and application thereof. Background Art
[0002] In the process of filtering out time-independent noise pulses, the prior art generally adopts a topological logic that counts the number of trigger pulses in a time window of fixed width and compares the number with a preset fixed threshold. Specifically, Figure 4 The existing scheme generates an output pulse when the pulse count value reaches the threshold value in the time window. If there are not enough pulses in the time window, it is considered that the pulse signals in the detection are not sufficiently correlated in the time domain, and no output pulse is generated. A similar scheme is provided in CN109831188A. However, this existing scheme has certain defects. Since the output is generated when the pulse count value reaches the threshold value in the time window, the interval between the threshold pulse that just meets the threshold value and the window opening time is not fixed for each detection, such as Figure 5 The change of Δt in the timing diagram makes the timing accuracy disturbed by the position of the moment when the threshold pulse appears, thereby reducing the time domain accuracy of the system signal pulse.
[0003] Therefore, there is an urgent need for a time domain correlation detection circuit, a control method and an application thereof that can achieve high timing accuracy that is independent of the time when a threshold pulse appears, so as to solve the problems existing in the prior art. Summary of the invention
[0004] The embodiments of the present invention provide a time domain correlation detection circuit, a control method and an application thereof with high timing accuracy, which aims to solve the problems existing in the current technology that an output pulse is generated when the pulse count value in the time window reaches the threshold, resulting in an irregular interval between the threshold pulse and the window opening moment, interfering with the timing accuracy and reducing the time domain accuracy of the system signal pulse.
[0005] The core technology of the present invention is mainly to separate the timing control module and the threshold judgment module when designing the time domain correlation detection circuit; by setting the over-threshold flag latch signal with a fixed time interval with the window opening signal, the pulse output time of the correlation detection circuit is fixed to be related to the window opening time, thereby realizing high timing accuracy correlation detection independent of the time when the threshold pulse appears after the threshold judgment is completed.
[0006] In a first aspect, the present invention provides a time domain correlation detection circuit with high timing accuracy, comprising: The timing control module triggers the opening of a time window with a fixed pulse width through the input pulse signal, and the input pulse signal within the time window can participate in counting and threshold judgment; A threshold comparison module compares the sum of the full adder outputs with a threshold; When the sum is greater than or equal to the threshold, the output is set to a high level to indicate that the current detection correlation is valid; When the sum is less than the threshold, the output is kept low; An output pulse module, in response to the output of the threshold comparison module, triggers a positive pulse at the falling edge of the time window when the output of the threshold comparison module is high; A counter group, which counts the number of pulse triggers in each channel during the opening of the time window, and the number of pulse triggers corresponds to the number of parallel channels detected; The full adder is used to add the count values of each counter of the counter group, and the total is used to compare with the threshold value.
[0007] Furthermore, the timing control module can generate an internal self-reset signal, and the internal self-reset signal can synchronously reset the output pulse generation module and the counter group when the current detection is completed.
[0008] In a second aspect, the present invention provides a control method for a time domain correlation detection circuit with high timing accuracy, comprising the following steps: S00, waiting for an input pulse signal of a photon event; If yes, execute the next step; if no, continue to wait; S10, opening the time window and accumulating the number of pulses; S20, determining whether the accumulated number of pulses is greater than a threshold value when the time window is closed; If yes, a pulse output is generated; if no, the process returns to step S00.
[0009] Furthermore, in step S00, the timing control module waits for an input pulse signal of a photon event, and the timing control module can trigger a time window with a fixed pulse width through the input pulse signal.
[0010] Furthermore, in step S10, the number of pulse triggers in each channel is counted by the counter group during the opening of the time window and the count value of each counter is added by the full adder to obtain the total number of pulse triggers, which corresponds to the number of parallel channels detected.
[0011] Furthermore, in step S20, the total number of pulse triggers is compared with the threshold value by the threshold comparison module at the moment when the time window is closed.
[0012] Furthermore, a positive pulse is outputted through the output pulse module.
[0013] In a third aspect, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the above-mentioned control method of the time domain correlation detection circuit with high timing accuracy.
[0014] In a fourth aspect, the present invention provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute the process. The process includes a control method for a time domain correlation detection circuit with high timing precision as described above.
[0015] The main contributions and innovations of the present invention are as follows: 1. Improve timing accuracy: In the prior art, when the pulse count value in the time window reaches the threshold, an output pulse is generated, resulting in an unfixed interval between the threshold pulse and the window opening time, which interferes with the timing accuracy and reduces the time domain accuracy of the system signal pulse. However, the present invention separates the timing control module and the threshold judgment module, and sets the falling edge with a fixed time interval with the window opening signal as the output trigger condition of the correlation detection circuit. At this time, the pulse output time of the correlation detection circuit is not affected by the threshold pulse occurrence time. Specifically, by triggering a positive pulse at the falling edge of the time window, the pulse output time is fixed, avoiding the problem of the timing accuracy being interfered with by the position of the threshold pulse occurrence time, and greatly improving the timing accuracy of the system. High timing accuracy correlation detection is achieved that is independent of the time when the threshold pulse occurs.
[0016] 2. Optimize the detection circuit structure: The time domain correlation detection circuit of the present invention includes multiple modules such as a timing control module, a threshold comparison module, an output pulse module, a counter group and a full adder. Each module works together to achieve efficient counting and accurate judgment of the pulse signal. Among them, the counter group counts the number of pulse triggers in each channel during the time window opening period, and the full adder adds the count values of each counter and compares it with the threshold, making the detection more accurate and reliable.
[0017] 3. Synchronous reset function: The timing control module can generate an internal self-reset signal, and synchronously reset the output pulse generation module and the counter group when the current detection is completed, preparing for the next detection, thereby improving the stability and reliability of the detection circuit.
[0018] 4. Wide applicability: The control method of the present invention is not only applicable to a specific time-domain correlation detection circuit, but can also be executed by running a computer program through a processor in an electronic device. At the same time, a computer program stored in a readable storage medium can also implement the control method, and has wide applicability.
[0019] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a flow chart of a control method of a time domain correlation detection circuit with high timing accuracy according to an embodiment of the present invention; Figure 2 is a structural diagram of a time domain correlation detection circuit with high timing accuracy according to an embodiment of the present invention; Figure 3 is a timing diagram according to an embodiment of the present invention; Figure 4 is a flow chart of the prior art; Figure 5 is a timing diagram of the prior art; Figure 6 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0022] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0023] like Figure 4 As shown, the existing scheme usually generates an output pulse when the pulse count value reaches the threshold in the time window. If there are not enough pulses in the time window, it is considered that the pulse signals in the detection have insufficient time domain correlation, and no output pulse is generated. Figure 5 The Δt changes in the timing diagram, the timing accuracy is disturbed by the time position of the threshold pulse, thereby reducing the time domain accuracy of the system signal pulse.
[0024] Based on this, the present invention solves the problems existing in the prior art by separating the timing control module and the threshold judgment module.
[0025] Embodiment 1 The present invention aims to propose a time domain correlation detection circuit with high timing accuracy, specifically, referring to Figure 2 ,include: The timing control module triggers the opening of a time window with a fixed pulse width through the input pulse signal, and the input pulse signal within the time window can participate in counting and threshold judgment; In this embodiment, the timing control module can generate an internal self-reset signal, and the internal self-reset signal can synchronously reset the output pulse generation module and the counter group when the current detection is completed.
[0026] A threshold comparison module compares the sum of the full adder outputs with a threshold; When the sum is greater than or equal to the threshold, the output is set to a high level to indicate that the current detection correlation is valid; When the sum is less than the threshold, the output is kept low; An output pulse module, in response to the output of the threshold comparison module, triggers a positive pulse at the falling edge of the time window when the output of the threshold comparison module is high; A counter group, which counts the number of pulse triggers in each channel during the opening of the time window, and the number of pulse triggers corresponds to the number of parallel channels detected; The full adder is used to add the count values of each counter of the counter group, and the total is used to compare with the threshold value.
[0027] like Figure 1 In the existing time domain correlation detection circuit, the output is generated when the pulse count value in the time window reaches the threshold value. The present invention improves the flow chart ( Figure 4 ) is improved, and the comparison result between the accumulated number of pulses and the threshold is judged only when the time window is closed. Since the opening and closing time of the time window is related to the appearance time of the first pulse, the timing accuracy of the present invention is independent of the appearance time of the threshold pulse that just reaches the threshold, and the timing accuracy is thus improved. Figure 3 As shown, the timing accuracy is no longer affected by the position of the threshold pulse, and the width of Δt is fixed during each detection process. When the number of pulses does not reach the threshold, the time domain correlation detection circuit does not generate an output.
[0028] Embodiment 2 like Figure 1 As shown, based on the same concept, the present invention also proposes a control method for a time domain correlation detection circuit with high timing accuracy, comprising the following steps: S00, waiting for an input pulse signal of a photon event; If yes, execute the next step; if no, continue to wait; The timing control module waits for an input pulse signal indicating a photon event, and the timing control module can trigger a time window with a fixed pulse width through the input pulse signal.
[0029] S10, opening the time window and accumulating the number of pulses; The number of pulse triggers in each channel is counted by a counter group during the opening of the time window, and the count value of each counter is added by a full adder to obtain the total number of pulse triggers, which corresponds to the number of parallel channels detected.
[0030] S20, determining whether the accumulated number of pulses is greater than a threshold value when the time window is closed; If yes, a pulse output is generated; if no, the process returns to step S00.
[0031] Among them, the total number of pulse triggers is compared with the threshold value through the threshold comparison module when the time window is closed. If the accumulated number of pulses in the threshold comparison module is greater than the threshold value, the threshold comparison module sets the high level and outputs a positive pulse through the output pulse module.
[0032] Embodiment 3 This embodiment also provides an electronic device, referring to Figure 6 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0033] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0034] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0035] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .
[0036] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any control method of the time domain correlation detection circuit with high timing accuracy in the above embodiments.
[0037] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .
[0038] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0039] Input / output devices 408 are used to input or output information.
[0040] Embodiment 4 This embodiment also provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute the process. The process includes a control method for a time domain correlation detection circuit with high timing accuracy according to the second embodiment.
[0041] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0042] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.
[0043] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 1 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within the processor, magnetic media such as hard disk or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.
[0044] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0045] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A time domain correlation detection circuit with high timing accuracy, characterized in that: include: The timing control module triggers the opening of a time window with a fixed pulse width through the input pulse signal, and the input pulse signal within the time window can participate in counting and threshold judgment; A threshold comparison module compares the sum of the full adder outputs with a threshold; When the sum is greater than or equal to the threshold, the output is set to a high level to indicate that the current detection correlation is valid; When the sum is less than the threshold, the output is kept low; An output pulse module, in response to the output of the threshold comparison module, triggers a positive pulse at the falling edge of the time window when the output of the threshold comparison module is high; A counter group, which counts the number of pulse triggers in each channel during the opening of the time window, and the number of pulse triggers corresponds to the number of parallel channels detected; The full adder is used to add the count values of each counter of the counter group, and the total is used to compare with the threshold value.
2. The time domain correlation detection circuit with high timing accuracy as claimed in claim 1, characterized in that: The timing control module can generate an internal self-reset signal, and the internal self-reset signal can synchronously reset the output pulse generation module and the counter group when the current detection is completed.
3. The control method of the time domain correlation detection circuit with high timing accuracy as claimed in claim 2, characterized in that: The following steps are involved: S00, waiting for an input pulse signal of a photon event; If yes, execute the next step; if no, continue to wait; S10, opening the time window and accumulating the number of pulses; S20, determining whether the accumulated number of pulses is greater than a threshold value when the time window is closed; If so, a pulse output is generated; If not, return to step S00.
4. The control method according to claim 3, characterized in that: In step S00, the timing control module waits for an input pulse signal of a photon event. The timing control module can trigger a time window with a fixed pulse width through the input pulse signal.
5. The control method according to claim 3, characterized in that: In step S10, the number of pulse triggers in each channel is counted by the counter group during the opening of the time window, and the count value of each counter is added by the full adder to obtain the total number of pulse triggers, which corresponds to the number of parallel channels detected.
6. The control method according to claim 5, characterized in that: In step S20, the total number of pulse triggers is compared with the threshold value by the threshold comparison module at the moment when the time window is closed.
7. The control method according to any one of claims 3 to 6, characterized in that: Output positive pulse through the output pulse module.
8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the control method according to any one of claims 3 to 7.
9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, wherein the computer program includes a program code for controlling a process to execute a process, wherein the process includes a control method according to any one of claims 3 to 7.
Citation Information
Patent Citations
Signal acquisition processing system for atmosphere multiparameter laser radar detection
CN101866007A
Glitch detector and electronic device having the same
CN106405208A
Online detection device and online detection method for electromagnetic valve armature suction point of common-rail fuel injector
CN108278170A
Signal processing method and device
CN109831188A
Time-to-digital converter with photon time correlation detection function
CN113325429A
