Pulse synchronous capturer and processor based on asynchronous set terminal trigger
By designing a pulse synchronization capture device triggered by an asynchronous set terminal, the problems of missed detection and capture delay in ultra-narrow pulses in the existing technology are solved, achieving pulse capture with high capture rate and low delay, and improving the compatibility and applicability of the circuit.
Patent Information
- Application Number
- CN202610235701.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-27
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2046-02-27
AI Technical Summary
Existing pulse synchronization capture devices suffer from problems such as missed detection of ultra-narrow pulses, excessive capture delay, and functional integration conflicts in ultra-high frequency scenarios. They are difficult to balance capture rate and delay, and have poor compatibility.
A pulse synchronization capture device based on asynchronous set-terminal triggering is adopted, including a parameterized configuration module, a test control module, an asynchronous edge-triggered capture module, and a two-stage synchronization module. The asynchronous pulse signal is captured and synchronized by using a group of D flip-flops at the asynchronous set-terminal. Metastability is eliminated by two-step synchronization, and no additional delay loop is designed.
It achieves high capture rate pulse capture, reduces capture delay, saves circuit resources, and improves compatibility with mass production chip designs through operating mode switching.
Smart Images

Figure CN121749953B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital integrated circuit design technology, and in particular to a pulse synchronization capture device and processor based on asynchronous set-terminal triggering. Background Technology
[0002] In high-performance digital systems such as high-performance processors, artificial intelligence, 5G base stations, medical imaging equipment, and industrial Ethernet controllers, it is often necessary to process asynchronous interrupt signals with ultra-high frequency and narrow pulses from different clock domains, such as picosecond-level pulses from RF link feedback and data trigger pulses from high-speed sensors.
[0003] like Figure 1 As shown, traditional pulse synchronization capture circuits 100 generally adopt a logic architecture of asynchronous signal, flip-flop data terminal, clock edge sampling, and multi-level synchronization. This architecture connects the asynchronous interrupt signal to the data terminal (D terminal) of a general D flip-flop, relies on the rising or falling edge of the local core clock (core_clk) to sample the signal, then filters out metastability through a synchronization register, and finally outputs the synchronized interrupt signal. To improve narrow pulse capture capability, some existing solutions also use methods such as adding pulse widening circuits and feedback reset logic. Figure 1 The architecture shown is optimized.
[0004] However, there are still three major technical bottlenecks in the existing pulse synchronization capture architecture:
[0005] One issue is the problem of missed detections due to ultra-narrow pulses. For example... Figure 2 As shown, the existing pulse synchronization capture device 100 relies on clock edge sampling. When the interrupt pulse width is less than the clock period, the pulse is likely to fall between two clock edges, resulting in missed sampling and failing to meet the requirements of ultra-high frequency scenarios. Second, the acquisition delay is too large. Existing solutions have sampling waiting delays, and some improved solutions add additional delay loops, resulting in a total delay of 1.5-3ns in scenarios with a 1GHz clock speed. Furthermore, it is impossible to balance the missed detection rate and the level of delay. Either the delay is increased in order to improve the acquisition rate, or the acquisition rate is sacrificed in order to reduce the delay. Third, there are functional integration conflicts. Existing solutions require additional auxiliary circuits such as pulse widening and feedback reset, which are complex in structure and increase resource overhead. In their integrated processor circuits, they are difficult to be compatible with multi-channel parametric design and design for testability (DFT), resulting in poor mass production applicability.
[0006] Therefore, a new pulse synchronization capture scheme is urgently needed to solve the above-mentioned technical problems. Summary of the Invention
[0007] This invention provides a pulse synchronization capture device and processor based on asynchronous set-terminal triggering, aiming to solve the technical problems of existing pulse synchronization capture device solutions, which are difficult to balance capture rate and latency and have poor compatibility.
[0008] To address the aforementioned technical problems, in a first aspect, the present invention provides a pulse synchronization capture device based on asynchronous set-terminal triggering. The pulse synchronization capture device includes a parameterized configuration module, a test control module, an asynchronous edge-triggered capture module, and a two-stage synchronization module, wherein: The parameterized configuration module is used to define the preset number of channels for the asynchronous pulse signals that need to be captured; The test control module is used to losslessly forward and output the asynchronous pulse signal corresponding to the preset number of channels from the external input to the asynchronous edge triggering capture module according to the preset working mode; The asynchronous edge-triggered capture module is implemented based on a D flip-flop group with an asynchronous set terminal. The asynchronous edge-triggered capture module is used to receive and capture the asynchronous pulse signal through the asynchronous set terminal of the D flip-flop group to obtain a latch signal corresponding to the asynchronous pulse signal. The two-stage synchronization module is used to eliminate metastability in the latched signal and output a synchronization pulse signal corresponding to the asynchronous pulse signal.
[0009] Furthermore, the D flip-flop group with asynchronous set input includes a cascaded first D flip-flop and a second D flip-flop. The asynchronous set input of the D flip-flop group with asynchronous set input is used to receive the asynchronous pulse signal, and the clock input of the D flip-flop group with asynchronous set input is used to receive a clock signal. The data input of the first D flip-flop is connected to a fixed low-level signal, and the output input of the first D flip-flop is connected to the data input of the second D flip-flop. The first D flip-flop and the second D flip-flop share the same clock signal, wherein: The asynchronous set terminal of the D flip-flop group with asynchronous set terminal is level sensitive. When the asynchronous set terminal of the first D flip-flop receives the rising edge of the asynchronous pulse signal, it starts to capture the asynchronous pulse signal and outputs the captured asynchronous pulse signal as the latch signal to the second D flip-flop, which then buffers the latch signal.
[0010] Furthermore, the asynchronous edge-triggered capture module is also used for: After receiving the falling edge of the asynchronous pulse signal at the asynchronous set terminal of the first D flip-flop, the first D flip-flop is reset when the rising edge of the clock signal is received.
[0011] Furthermore, the asynchronous edge-triggered capture module is also used for: After the first D flip-flop is reset, the second D flip-flop is reset when the rising edge of the clock signal is received.
[0012] Furthermore, the test control module is implemented based on a two-input one-output multiplexer, and the preset operating modes include a capture mode and a test mode, wherein: In the capture mode, the test control module takes the asynchronous pulse signal as input and forwards the asynchronous pulse signal to the output. In the test mode, the test control module takes a global reset signal for circuit initialization as input and forwards the global reset signal to the output.
[0013] Furthermore, the test control module is also used for: In the test mode, the global reset signal is inverted, and the number of channels of the global reset signal is expanded to the same bit width as the preset number of channels before the global reset signal is forwarded and output.
[0014] Furthermore, the two-stage synchronization module includes a cascaded first synchronization register and a second synchronization register. The data terminal of the first synchronization register is used to receive the latch signal, and the output terminal of the first synchronization register is connected to the data terminal of the second synchronization register. The first synchronization register and the second synchronization register share the same clock signal. The two-stage synchronization module is used to eliminate the metastability of the latched signal by synchronizing it through two pulses as it passes through the first synchronization register and the second synchronization register, and outputs the synchronization pulse signal through the output terminal of the second synchronization register.
[0015] In a second aspect, the present invention also provides a processor, the processor including the pulse synchronization capture device based on asynchronous set-terminal triggering as described above.
[0016] The beneficial effects achieved by this invention are that it proposes a pulse synchronization capture device based on asynchronous set-terminal triggering. This capture device achieves high capture rate pulse capture through asynchronous set-terminal triggering design, and the architecture has no additional delay loop, saving circuit resources while minimizing capture delay. At the same time, by switching the working mode, the circuit logic of the capture device can be compatible with the mass production chip design process, thus improving the applicability of this invention. Attached Figure Description
[0017] The present invention will now be described in detail with reference to the accompanying drawings. The above and other aspects of the present invention will become clearer and more readily understood through the detailed description following the accompanying drawings. In the drawings: Figure 1This is a block diagram of a pulse synchronization capture device in the prior art; Figure 2 This is a timing waveform diagram of a pulse synchronization capture device in the prior art; Figure 3 This is a structural block diagram of a pulse synchronization capture device based on asynchronous set-end triggering provided in an embodiment of the present invention; Figure 4 This is a block diagram of the principle of a pulse synchronization capture device based on asynchronous set-end triggering provided in an embodiment of the present invention; Figure 5 This is a timing waveform diagram of a pulse synchronization capture device based on asynchronous set-terminal triggering provided in an embodiment of the present invention. Detailed Implementation
[0018] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0019] The specific embodiments / examples described herein are specific implementations of the present invention, used to illustrate the concept of the invention, and are illustrative and exemplary, and should not be construed as limiting the implementation methods or scope of the present invention. In addition to the embodiments described herein, those skilled in the art can employ other obvious technical solutions based on the content disclosed in the claims and specification of this application. These technical solutions include those that make any obvious substitutions and modifications to the embodiments described herein, all of which are within the protection scope of the present invention.
[0020] Example 1 Please refer to Figure 3 , Figure 3 This is a structural block diagram of a pulse synchronization capture device based on asynchronous set-end triggering provided in an embodiment of the present invention. The pulse synchronization capture device 200 includes a parameterization configuration module 201, a test control module 202, an asynchronous edge-triggered capture module 203, and a two-stage synchronization module 204, wherein: The parameterization configuration module 201 is used to define the preset number of channels for the asynchronous pulse signals that need to be captured; The test control module 202 is used to forward and output the asynchronous pulse signal corresponding to the preset number of channels from the external input to the asynchronous edge trigger capture module 203 without loss, according to the preset working mode. The asynchronous edge-triggered capture module 203 is implemented based on a D flip-flop group with an asynchronous set terminal. The asynchronous edge-triggered capture module 203 is used to receive and capture the asynchronous pulse signal through the asynchronous set terminal of the D flip-flop group to obtain a latch signal corresponding to the asynchronous pulse signal. The two-stage synchronization module 204 is used to eliminate metastability in the latched signal and output a synchronization pulse signal corresponding to the asynchronous pulse signal.
[0021] The D flip-flop group with asynchronous set input includes a cascaded first D flip-flop 2031 and a second D flip-flop 2032. The asynchronous set input of the D flip-flop group with asynchronous set input is used to receive the asynchronous pulse signal, and the clock input of the D flip-flop group with asynchronous set input is used to receive a clock signal. The data input of the first D flip-flop 2031 is connected to a fixed low-level signal, and the output input of the first D flip-flop 2031 is connected to the data input of the second D flip-flop 2032. The first D flip-flop 2031 and the second D flip-flop 2032 share the same clock signal, wherein: The asynchronous set terminal of the D flip-flop group with asynchronous set terminal is level sensitive. When the asynchronous set terminal of the first D flip-flop 2031 receives the rising edge of the asynchronous pulse signal, it starts to capture the asynchronous pulse signal and outputs the captured asynchronous pulse signal as the latch signal to the second D flip-flop 2032, which buffers the latch signal.
[0022] For ease of explanation, the embodiments of the present invention are combined with, as follows Figure 4 The block diagram shown illustrates the process of acquiring asynchronous pulse signals. The acquisition of asynchronous pulse signals involves the processing of various signals. The signals and their definitions involved in this embodiment are as follows: A global reset signal is used to initialize the circuit module. The clock signal provides the global clock frequency; Asynchronous pulse signal, the target of pulse synchronization capture device 200; Synchronous pulse signal, the final output of the pulse synchronization capture device 200 after capturing and processing asynchronous pulse signals.
[0023] Before entering the working state, all modules in this embodiment of the invention complete power-on initialization through a global reset signal, and the asynchronous edge trigger capture module 203 and the two-level synchronization module 204 are both initially low level; The clock signal runs continuously. In the default working mode of the test control module 202, it only serves as a signal pass-through and does not interfere with the capture process.
[0024] The preset number of channels defined by the parameterized configuration module 201 corresponds one-to-one with the number of channels for asynchronous pulse signals, the number of signal channels for the test control module 202, the asynchronous edge-triggered capture module 203, and the two-stage synchronization module 204. For example, setting the preset number of channels to 4 means that 4 asynchronous pulse signals are captured in parallel. During implementation, the capture logic for single-channel and multi-channel signals is the same. In this embodiment, the capture logic for single-channel signals is used as an example for explanation.
[0025] The core of the asynchronous edge-triggered capture module 203 is a group of D flip-flops with an asynchronous set input, which includes a cascaded first D flip-flop 2031 and a second D flip-flop 2032. The asynchronous set input of the flip-flops is level-sensitive and not clock-constrained, which is key to achieving width-limit-free and missed detection-free capture. Specifically: like Figure 5 The timing waveform diagram shows that when the effective rising edge of the external ultra-narrow asynchronous pulse signal arrives, the asynchronous set terminal is directly triggered without waiting for the clock edge of the clock signal. At this time, the first D flip-flop 2031 is instantly set to a high level, completing the pulse latching. Since the asynchronous set terminal is level sensitive, it can be captured instantly as long as there is a rising edge of the signal, thus avoiding missed detection at the source.
[0026] The asynchronous edge-triggered capture module 203 is also used for: After receiving the falling edge of the asynchronous pulse signal at the asynchronous set terminal of the first D flip-flop 2031, the first D flip-flop 2031 is reset when the rising edge of the clock signal is received.
[0027] When the asynchronous pulse signal returns to a low level (falling edge of pulse release), and the next rising edge of the clock signal arrives, the first D flip-flop 2031 is synchronously set to 0 under the control of the clock edge, returning to the initial low level state, and waiting for the next rising edge of the asynchronous pulse signal to trigger. Correspondingly, after the first D flip-flop 2031 is reset, the second D flip-flop 2032 is reset when the rising edge of the clock signal is received, so that it returns to the initial low level state and waits for the next rising edge of the asynchronous pulse signal to trigger.
[0028] Based on the design of a D flip-flop group with an asynchronous set terminal, the asynchronous edge trigger capture module 203 requires a delay of less than 1 ns to capture the asynchronous pulse signal at a 1 GHz clock. This delay is determined by the physical characteristic of the level response speed of the asynchronous set terminal.
[0029] In this embodiment of the invention, the test control module 202 is implemented based on a two-input one-output multiplexer, and the preset working modes include a capture mode and a test mode, wherein: In the capture mode, the test control module 202 takes the asynchronous pulse signal as input and forwards the asynchronous pulse signal to the output. In the test mode, the test control module 202 takes a global reset signal for circuit initialization as input and forwards the global reset signal to the output.
[0030] The test control module 202 is also used for: In the test mode, the global reset signal is inverted, and the number of channels of the global reset signal is expanded to the same bit width as the preset number of channels before the global reset signal is forwarded and output.
[0031] The test control module 202 is a design feature of this embodiment of the invention to improve the hardware compatibility of the pulse synchronization capture device 200, aiming to address the testing requirements during mass production of processor chips. The test control module 202 determines the operating mode based on the received operating mode signal, and uses one of the signals as input: In capture mode, the test control module 202 selects an asynchronous pulse signal as input and connects it to the asynchronous set terminal of the asynchronous edge-triggered capture module 203, retaining the narrow pulse capture function without width limitation; In test mode, the test control module 202 selects the inverted and extended global reset signal as the input, and the global reset signal takes over the control of the asynchronous edge trigger capture module 203, which meets the chip scan test requirements and does not affect the synchronous timing characteristics of the module.
[0032] As described in the above embodiments, in capture mode, the test control module 202 only serves as a pass-through for the asynchronous pulse signal and does not interfere with the capture process. However, in test mode, although the global reset signal is also forwarded, since the global reset signal is active low and the asynchronous pulse signal is active high, the test control module 202 needs to invert the global reset signal to convert it to active high. At the same time, through a bit-width expansion operation, the global reset signal is expanded into a bus with the same bit width as the asynchronous pulse signal to ensure that the polarity of the two inputs of the test control module 202 is completely matched with the bit width, thus avoiding logical conflicts.
[0033] The latch signal output by the asynchronous edge-triggered capture module 203 may exhibit metastability due to cross-clock domain transmission, meaning the signal level is unstable and fluctuates between high and low, making it unusable directly for subsequent circuits. This embodiment of the invention eliminates metastability through a two-stage synchronization module 204. The two-stage synchronization module 204 consists of a first synchronization register 2041 and a second synchronization register 2042. The data terminal of the first synchronization register 2041 receives the latch signal, and its output terminal is connected to the data terminal of the second synchronization register 2042. The first synchronization register 2041 and the second synchronization register 2042 share the same clock signal. The two-stage synchronization module 204 eliminates the metastability of the latch signal by synchronizing it through two clock cycles as it passes through the first synchronization register 2041 and the second synchronization register 2042, and outputs the synchronization pulse signal through the output terminal of the second synchronization register 2042.
[0034] This process follows the industry's two-step synchronous metastability elimination criterion, stabilizing the signal in two steps simultaneously: The first synchronization step is used to initially filter out metastability. The latch signal acquired by the asynchronous edge-triggered capture module 203 is input to the first synchronization register 2041 and is sampled and latched on the next rising edge of the clock signal to initially eliminate metastability and make the signal level tend to stabilize. The second synchronization is used to completely eliminate metastability. The output signal of the first synchronization register 2041 is then input to the second synchronization register 2042, and is sampled and latched on the next rising edge of the clock signal to completely eliminate metastability, and finally output a stable synchronization pulse signal without glitches or metastability.
[0035] The two-step synchronization process eliminates metastability, ensuring that the final synchronization pulse signal can be directly connected to the subsequent synchronization logic. The synchronization output delay of this process is 1-2 clock cycles (1-2ns / 1GHz), which is a necessary delay for the circuit function, with no additional delay superposition. Based on this design, the total delay of the pulse synchronization capture device 200 proposed in this embodiment of the invention is 1-3ns at a 1GHz clock speed (the total delay is the sum of the physical delay of the asynchronous set terminal and the standard delay of the two-step synchronization), that is, there is no additional delay superposition other than the physical delay of the asynchronous set terminal and the standard delay of the two-step synchronization, achieving a balance between capture rate and delay level.
[0036] The beneficial effects achieved by this invention are that it proposes a pulse synchronization capture device based on asynchronous set-terminal triggering. This capture device achieves high capture rate pulse capture through asynchronous set-terminal triggering design, and the architecture has no additional delay loop, saving circuit resources while minimizing capture delay. At the same time, by switching the working mode, the circuit logic of the capture device can be compatible with the mass production chip design process, thus improving the applicability of this invention.
[0037] Example 2 The present invention also provides a processor comprising the pulse synchronization capture device 200 triggered by an asynchronous set terminal as described above. It is understood that, based on the specific structure of the pulse synchronization capture device 200 triggered by an asynchronous set terminal, the processor can achieve a higher capture rate and lower latency compared to existing technologies when capturing asynchronous pulse signals. Referring to the description in the above embodiments, further details are omitted here.
[0038] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0039] The embodiments of the present invention have been described above with reference to the accompanying drawings. The disclosed embodiments are merely preferred embodiments of the present invention. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many equivalent changes in form under the guidance of the present invention without departing from the spirit and scope of the claims. All such changes are within the protection scope of the present invention.
Claims
1. A pulse synchronization capture device based on asynchronous set-terminal triggering, characterized in that, The pulse synchronization capture device includes a parameterized configuration module, a test control module, an asynchronous edge-triggered capture module, and a two-stage synchronization module, wherein: The parameterized configuration module is used to define the preset number of channels for the asynchronous pulse signals that need to be captured; The test control module is used to losslessly forward and output the asynchronous pulse signal corresponding to the preset number of channels from the external input to the asynchronous edge triggering capture module according to the preset working mode; The asynchronous edge-triggered capture module is implemented based on a D flip-flop group with an asynchronous set terminal. The asynchronous edge-triggered capture module is used to receive and capture the asynchronous pulse signal through the asynchronous set terminal of the D flip-flop group to obtain a latch signal corresponding to the asynchronous pulse signal. The two-stage synchronization module is used to eliminate metastability in the latched signal and output a synchronization pulse signal corresponding to the asynchronous pulse signal; The D flip-flop group with asynchronous set input includes a cascaded first D flip-flop and a second D flip-flop. The asynchronous set input of the D flip-flop group with asynchronous set input is used to receive the asynchronous pulse signal. The clock input of the D flip-flop group with asynchronous set input is used to receive a clock signal. The data input of the first D flip-flop receives a fixed low-level signal. The output input of the first D flip-flop is connected to the data input of the second D flip-flop. The first D flip-flop and the second D flip-flop share the same clock signal, wherein: The asynchronous set terminal of the D flip-flop group with asynchronous set terminal is level sensitive. When the asynchronous set terminal of the first D flip-flop receives the rising edge of the asynchronous pulse signal, it starts to capture the asynchronous pulse signal and outputs the captured asynchronous pulse signal as the latch signal to the second D flip-flop, which then buffers the latch signal.
2. The pulse synchronization capture device based on asynchronous set-terminal triggering according to claim 1, characterized in that, The asynchronous edge-triggered capture module is also used for: After receiving the falling edge of the asynchronous pulse signal at the asynchronous set terminal of the first D flip-flop, the first D flip-flop is reset when the rising edge of the clock signal is received.
3. The pulse synchronization capture device based on asynchronous set terminal triggering according to claim 2, characterized in that, The asynchronous edge-triggered capture module is also used for: After the first D flip-flop is reset, the second D flip-flop is reset when the rising edge of the clock signal is received.
4. The pulse synchronization capture device based on asynchronous set terminal triggering according to claim 1, characterized in that, The test control module is implemented based on a two-input one-output multiplexer, and the preset working modes include a capture mode and a test mode, wherein: In the capture mode, the test control module takes the asynchronous pulse signal as input and forwards the asynchronous pulse signal for output. In the test mode, the test control module takes a global reset signal for circuit initialization as input and forwards the global reset signal to the output.
5. The pulse synchronization capture device based on asynchronous set terminal triggering according to claim 4, characterized in that, The test control module is also used for: In the test mode, the global reset signal is inverted, and the number of channels of the global reset signal is expanded to the same bit width as the preset number of channels before the global reset signal is forwarded and output.
6. The pulse synchronization capture device based on asynchronous set terminal triggering according to claim 1, characterized in that, The two-stage synchronization module includes a cascaded first synchronization register and a second synchronization register. The data terminal of the first synchronization register is used to receive the latch signal. The output terminal of the first synchronization register is connected to the data terminal of the second synchronization register. The first synchronization register and the second synchronization register share the same clock signal. The two-stage synchronization module is used to eliminate the metastability of the latched signal by synchronizing it through two pulses as it passes through the first synchronization register and the second synchronization register, and outputs the synchronization pulse signal through the output terminal of the second synchronization register.
7. A processor, characterized in that, The processor includes a pulse synchronization capture unit based on asynchronous set-terminal triggering as described in any one of claims 1-6.
Citation Information
Patent Citations
Asynchronous signal synchronization circuit based on double sampling
CN103219982A
Integrated circuit layout and wiring method and device and integrated circuit chip
CN117151015A
Pulse width modulation signal diagnosis method and device and vehicle terminal
CN118713633A
Semiconductor device having scan test circuit that switches clock signal between shift mode and capture mode, and method of testing the semiconductor device
US20020136064A1