A timing generator circuit for automatic test equipment

By designing a timing generator circuit in an automated integrated circuit test equipment and using a timing data prediction module to generate predicted timing data, the problems of test waveform interruption and phase lockout caused by timing data interruption are solved, thereby improving test efficiency and result accuracy.

CN123178186APending Publication Date: 2026-11-27NIUXIN SEMICON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611688273.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In automated test equipment for integrated circuits, interruptions in the timing data flow of the timing data buffer module can lead to interruptions in the test waveform, edge transitions, and phase loss, affecting test accuracy and reliability. In particular, the phase step caused by directly switching fixed timing data in dynamic testing can result in false failures.

Method used

A timing generator circuit for an automatic test device was designed, including a timing data buffer module, a timing data prediction module, a multiplexing module, a state control module, and a timing output buffer module. By predicting the timing change slope and multiplexing, the circuit generates predicted timing data, ensuring continuous output before and after the timing data interruption, and avoiding phase steps and test waveform interruptions.

Benefits of technology

It significantly improves testing efficiency and the accuracy of test results, avoids misjudgment of chip sampling and batch false failures, and ensures the continuity and reliability of the testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178186A_ABST
    Figure CN123178186A_ABST
Patent Text Reader

Abstract

The application discloses a timing generator circuit of an automatic test equipment, a timing data buffer module of which outputs a flow interruption early warning signal when the amount of original timing data falls to a preset threshold, so as to trigger the starting of a timing data prediction module before no data can be read; the timing data prediction module, upon receiving the flow interruption early warning signal, fits and calculates a timing change slope based on the cached continuous multiple frames of original timing data and generates predicted timing data according to the timing change slope, so that the predicted timing data continues the dynamic change trend of the original timing data before the flow interruption; a state control module, upon receiving the flow interruption early warning signal, controls a multi-channel selection module to select a second input end, so as to continue the timing trend by outputting the predicted timing data before no data can be read in the timing data buffer module; finally, the timing output buffer module is cached and output to the test channel of the automatic test equipment, so as to provide a frame-by-frame continuous timing data stream for the test channel, and significantly improve the test efficiency and the test result accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of integrated circuit automatic test equipment technology, and in particular to a timing generator circuit for an automatic test equipment. Background Technology

[0002] In Automatic Test Equipment (ATE), the Timing Generator (TG) is responsible for providing the Device Under Test (DUT) with precise test clocks and timing edge signals. The timing generator reads timing data (such as BCLK / CCLK positions, Strobe positions, etc.) frame by frame from a timing data buffer module (such as a FIFO), and converts the timing data into corresponding edge signals via a high-precision delay chain before outputting them to the DUT.

[0003] However, during actual testing, due to factors such as brief pauses in the timing data transmission from the host computer, test program switching, and data transmission delays, the timing data buffer module may experience timing data interruption (i.e., the FIFO is empty or the amount of available timing data drops sharply). Once an interruption occurs, the downstream test channels will be unable to obtain valid timing data, resulting in interrupted test waveforms, edge transitions, or phase loss, which seriously affects the accuracy of integrated circuit testing and the reliability of test results.

[0004] In existing technologies, the system directly switches to fixed timing data after a current interruption. However, in dynamic tests such as Shmoo scans (a chip dynamic timing scan test that continuously and linearly increases / decreases timing, voltage, and frequency parameters to find the normal operating limits of a chip), the timing data (such as the BCLK / CCLK position) changes frame by frame with the test frame. Directly switching to fixed timing data would cause a step transition (i.e., a phase step) in the timing data. This phase step would cause the sampling circuit inside the chip under test to misjudge the signal edge position, believing that the signal does not meet the setup / hold time requirements, thus reporting a batch of false failures (even though the chip itself is not faulty). This necessitates repeated long-duration scan tests, severely reducing test efficiency and the reliability of test results. Summary of the Invention

[0005] To improve the efficiency and accuracy of dynamic timing scan testing of chips, this application provides a timing generator circuit for an automatic testing device.

[0006] In some embodiments of this application, a timing generator circuit for an automatic test device is provided, comprising a timing data buffer module, a timing data prediction module, a multiplexing module, a state control module, and a timing output buffer module. The timing data buffer module receives and buffers externally input raw timing data frame by frame, outputting the raw timing data of the current frame frame by frame under each frame synchronization pulse. The timing data buffer module is further configured to output a current interruption warning signal when the amount of raw timing data available for reading decreases to a first preset threshold, wherein the first preset threshold is greater than zero. The timing data prediction module is connected to the timing data buffer module. The output of the block is configured to: receive and buffer the raw time-series data output frame by frame by the time-series data buffer module to form a historical time-series sequence; upon receiving the interruption warning signal, fit and calculate the time-series change slope based on the buffered continuous frames of raw time-series data in the historical time-series sequence, wherein the time-series change slope characterizes the rate of change of the raw time-series data with the frame number; and generate and output predicted time-series data based on the last frame of raw time-series data read by the time-series data buffer module before no raw time-series data is available and the time-series change slope; the multiplexing module has a first input terminal, a second input terminal, a selection terminal, and an output terminal, wherein the first input terminal is a first input terminal, a second input terminal, a selection terminal, and an output terminal. One input terminal is connected to the output terminal of the time series data buffer module to receive the raw time series data; the second input terminal is connected to the output terminal of the time series data prediction module to receive the predicted time series data; the output terminal of the multiplexing module is used to output target time series data, which is the time series data received by the currently selected input terminal of the multiplexing module; the state control module is connected to the time series data buffer module to receive the interruption warning signal output by the time series data buffer module, and is configured to: before the amount of raw time series data available for reading in the time series data buffer module decreases to a first preset threshold, output... A first control signal is sent to the selection terminal of the multiplexing module to enable the multiplexing module to select the first input terminal; when the interruption warning signal is received, a second control signal is sent to the selection terminal of the multiplexing module to enable the multiplexing module to select the second input terminal, so as to continue the timing trend by outputting the predicted timing data before there is no original timing data to be read in the timing data buffer module; the timing output buffer module is connected to the output terminal of the multiplexing module to buffer the target timing data and output it to the test channel of the automatic test equipment, so as to provide the test channel with a continuous frame-by-frame timing data stream.

[0007] In some embodiments of this application, the temporal change slope is a linear slope, and the temporal data prediction module is configured to generate predicted temporal data based on the relation T(plast+i) = T(plast) + i×S; wherein T(plast+i) is the predicted temporal data, T(plast) is the value of the last frame of original temporal data read by the temporal data caching module before there is no more original temporal data to be read, i is a positive integer representing the cumulative frame number after entering the temporal data estimation, and S is the temporal change slope; wherein the temporal change slope is obtained based on the difference average of multiple consecutive frames of original temporal data in the historical temporal sequence or by least squares fitting.

[0008] In some embodiments of this application, the time series data prediction module is further configured to: calculate the deviation between the predicted time series data and the real original time series data of the corresponding frame sequence in the historical time series sequence during the generation of predicted time series data based on the time series change slope; integrate and accumulate the deviation of multiple consecutive frames to obtain an error compensation amount, and adjust the time series change slope based on the error compensation amount to suppress time series drift.

[0009] In some embodiments of this application, the time series data prediction module is further configured to: output a buffer ready signal when the cumulative number of cached original time series data reaches a second preset threshold, wherein the second preset threshold is greater than or equal to 2; the state control module is configured to: output a second control signal to the selection terminal of the multiplexing module when the flow interruption warning signal is received and the buffer ready signal output by the time series data prediction module is received.

[0010] In some embodiments of this application, the multiplexing module further has a third input terminal, which receives fixed timing data; the timing data buffer module is further configured to output a current interruption flag signal when it has no original timing data to read; the state control module is further configured to output a third control signal to the selection terminal of the multiplexing module when it receives the current interruption flag signal, so that the multiplexing module selects the third input terminal to output the fixed timing data as the target timing data.

[0011] In some embodiments of this application, the timing generator circuit further includes a timing module connected to the state control module; the state control module is further configured to: when outputting a second control signal to the selection terminal of the multiplexing module to enable the multiplexing module to select the second input terminal, output a timing enable signal to the timing module to start timing; the timing module is configured to: start timing in response to the timing enable signal, and output a timing overflow signal when the timing value reaches a preset duration; the state control module is further configured to: when receiving the timing overflow signal, output a third control signal to the selection terminal of the multiplexing module to enable the multiplexing module to select the third input terminal.

[0012] In some embodiments of this application, the state control module is further configured to: stop responding to the interruption warning signal in response to the received bypass enable signal, and enable the multiplexing module to select one of the first input terminal and the third input terminal; the timing data prediction module is further configured to: stop responding to the interruption warning signal and generate predicted timing data in response to the received bypass enable signal.

[0013] In some embodiments of this application, the state control module is further configured to: when the timing data buffer module resumes outputting original timing data, output a first control signal to the selection terminal of the multiplexing module after satisfying a preset back-cut condition, so that the multiplexing module selects the first input terminal. The preset back-cut condition includes: the number of original timing data output by the timing data buffer module continuously received by the state control module reaches a third preset threshold, the third preset threshold being greater than zero, and / or, the deviation between the target timing data currently output by the multiplexing module and the original timing data currently output by the timing data buffer module is less than a preset error threshold.

[0014] In some embodiments of this application, the timing generator circuit further includes a phase verification module connected to the output of the multiplexing module and the output of the timing data buffer module; the state control module is further configured to: when the timing data buffer module resumes outputting original timing data, start an effective frame counter to count the continuously output original timing data of the timing data buffer module; the phase verification module is configured to: during the period when the multiplexing module selects the second input terminal, sample the currently output original timing data of the timing data buffer module and the currently output target timing data of the multiplexing module respectively, calculate the deviation value between the currently output target timing data of the multiplexing module and the currently output original timing data of the timing data buffer module frame by frame, and output a phase alignment signal when the deviation value of multiple consecutive frames is less than a preset error threshold; the state control module is further configured to: when the count value of the effective frame counter reaches a third preset threshold and the phase alignment signal is received, output a first control signal to the selection terminal of the multiplexing module, so that the multiplexing module selects the first input terminal.

[0015] In some embodiments of this application, the timing generator circuit further includes a read control module connected to the timing data cache module. The read control module is configured to: monitor the amount of raw timing data available for reading in the timing data cache module; when the amount of raw timing data available for reading in the timing data cache module drops to a first preset threshold, provide a flow interruption warning signal to the timing data cache module via a hardware pin; and when there is no raw timing data available for reading in the timing data cache module, provide a flow interruption flag signal to the timing data cache module via a hardware pin. The timing data cache module is configured to: receive the flow interruption warning signal and the flow interruption flag signal via a hardware pin, and forward the flow interruption warning signal and the flow interruption flag signal to the status control module.

[0016] In the above technical solution, the time-series data caching module outputs a flow interruption warning signal when the amount of raw time-series data it can read decreases to a first preset threshold, thereby triggering the start of the time-series data prediction module before there is no raw time-series data left to read. The time-series data prediction module receives and caches the raw time-series data output frame by frame by the time-series data caching module to form a historical time-series sequence. When it receives the flow interruption warning signal, it fits and calculates the time-series change slope based on the cached continuous frames of raw time-series data in the historical time-series sequence, and generates predicted time-series data based on the last frame of raw time-series data read by the time-series data caching module before there is no raw time-series data left to read and the time-series change slope. Thus, it uses the change trend of the raw time-series data before the flow interruption to make inferences, so that the predicted time-series data continues the original time-series data before the flow interruption. Based on the dynamic trend of increasing or decreasing frame number, phase steps are fundamentally eliminated. The status control module is connected to the timing data buffer module to receive the interruption warning signal. When the interruption warning signal is received, the multiplexer module is controlled to select the second input terminal to continue the timing trend by outputting predicted timing data before there is no original timing data to be read in the timing data buffer module. Finally, the timing data output by the multiplexer module is buffered by the timing output buffer module and then output to the test channel of the automatic test equipment, providing the test channel with a continuous timing data stream frame by frame. This ensures that the downstream test channel does not detect the interruption event throughout the process, avoiding test waveform interruption, phase steps, and the resulting sampling misjudgment and batch false failures of the chip under test, significantly improving test efficiency and test result accuracy.

[0017] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the principles of this application.

[0019] Figure 1 A block diagram of the composition structure of a timing generator circuit according to an embodiment of this application is shown.

[0020] Figure 2 A block diagram of the composition structure of a timing generator circuit according to another embodiment of this application is shown.

[0021] Figure 3 A flowchart of the timing generator circuit according to one embodiment of this application is shown.

[0022] Figure 4 A schematic diagram of a timing generator circuit according to an embodiment of this application is shown.

[0023] Figure 5A schematic diagram of the state switching of a timing generator circuit according to an embodiment of this application is shown.

[0024] The annotations in the attached figures are explained as follows: 100. Timing generator circuit; 10. Timing data buffer module; 20. Timing data prediction module; 30. Multiplexer module; 40. Status control module; 50. Timing output buffer module; 60. Timing module; 70. Phase verification module; 80. Read control module; 90. Register. Detailed Implementation

[0025] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0026] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0027] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.

[0028] The terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature specified with ordinal numbers such as "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature.

[0029] In the description of this application, it should be noted that, unless otherwise explicitly specified and limited, the term "connection" and similar terms should be interpreted broadly. For example, it can refer to a fixed connection, a detachable connection, or an integral connection; it can refer to a mechanical connection or an electrical connection; it can refer to a direct connection or an indirect connection through an intermediate medium; and it can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0030] In existing technologies, timing generator circuits employ a binary switching approach when dealing with timing data interruptions: when raw timing data is detected in the timing data buffer module, real frame-by-frame timing data is output to the test channel; once the timing data buffer module is completely empty, it immediately switches to fixed timing data output to maintain the locked state of the internal phase-locked loop of the chip under test at a fixed value. This either-or binary architecture has significant drawbacks in dynamic testing scenarios: when the test vector requires the timing data to change frame by frame (such as the BCLK / CCLK positions increasing frame by frame in a Shmoo scan), a phase step is generated between the fixed output and the dynamic change trend of the raw timing data before the interruption. This causes the sampling circuit inside the chip under test to misjudge that the signal edge does not meet the setup / hold time requirements, resulting in a batch of false failure reports (the chip itself is not faulty), which seriously reduces testing efficiency and the reliability of test results.

[0031] In addition, the existing solution directly switches back to the original timing data output path after the timing data cache module restores the timing data output. Since the timing data cache module has intermittent output in the early stage of restoring the timing data output, the direct switchback will cause the output to oscillate repeatedly between the original timing data and the fixed timing data, resulting in a secondary interruption of the timing data stream.

[0032] In view of this, the timing generator circuit of this application embodiment is configured such that the timing data caching module outputs a power outage warning signal when the amount of raw timing data available for reading decreases to a first preset threshold, thereby triggering the timing data prediction module to start before there is no raw timing data available for reading; the timing data prediction module is configured to receive and cache the raw timing data output frame by frame by the timing data caching module to form a historical timing sequence; when the power outage warning signal is received, the timing change slope is calculated based on the continuous multiple frames of raw timing data cached in the historical timing sequence, and the predicted timing data is generated based on the last frame of raw timing data read by the timing data caching module before there is no raw timing data available for reading and the timing change slope, thereby using the change trend of the raw timing data before the power outage to make inferences, so that the predicted timing data continues the power outage. The dynamic change trend of the raw timing data before the stream increases or decreases with the frame number fundamentally eliminates phase steps. The configuration status control module is connected to the timing data buffer module to receive the interruption warning signal. When the interruption warning signal is received, the multiplexer module is controlled to select the second input terminal to continue the timing trend by outputting predicted timing data before there is no raw timing data to be read in the timing data buffer module. Finally, the timing data output by the multiplexer module is buffered by the timing output buffer module and then output to the test channel of the automatic test equipment, providing the test channel with a continuous timing data stream frame by frame. This ensures that the downstream test channel does not detect the occurrence of interruption events throughout the process, avoiding test waveform interruption, phase steps, and the resulting sampling misjudgment and batch false failures of the chip under test, significantly improving test efficiency and test result accuracy.

[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0034] Figure 1 A block diagram of the composition structure of a timing generator circuit according to an embodiment of this application is shown.

[0035] like Figure 1 As shown, the timing generator circuit 100 of this application embodiment includes a timing data buffer module 10, a timing data prediction module 20, a multiplexing module 30, a state control module 40, and a timing output buffer module 50.

[0036] The timing data buffer module 10 receives and buffers the raw timing data input from the outside frame by frame, so as to output the raw timing data of the current frame frame by frame under each frame synchronization pulse. Specifically, the timing data buffer module 10 can be a First In First Out (FIFO) buffer. Its data input terminal is connected to a multi-channel parallel timing parameter bus issued by the host computer, and the write enable terminal is driven by an external valid flag signal. Each write operation stores a complete frame of raw timing data into the buffer. Its data output terminal is connected to the downstream path. On the trigger edge of each frame synchronization pulse, the timing data buffer module 10 outputs the currently readable frame data in the buffer as raw timing data. This output can be accompanied by a data valid flag to ensure that the downstream module samples only when the data is valid. Thus, the timing data buffer module 10 forms an uninterrupted frame-by-frame raw timing data stream under the frame synchronization pulse, providing a data source for timing data output under normal test conditions and timing data acquisition before the flow is interrupted.

[0037] The timing data caching module 10 is also configured to output a flow interruption warning signal when the amount of raw timing data available for reading in the module drops to a first preset threshold. The flow interruption warning signal indicates that the amount of raw timing data available for reading in the timing data caching module 10 has dropped to a warning value, which is the first preset threshold.

[0038] The first preset threshold is greater than zero. This means that the interruption warning signal is not generated only when the time-series data buffer module 10 is completely empty, but rather when the amount of original time-series data within the time-series data buffer module 10 drops to a non-zero warning value. This provides the downstream time-series data prediction module 20 with at least one frame synchronization cycle of preparation time, allowing it to complete historical time-series sequence fitting and time-series change slope calculation before the original time-series data stream is actually interrupted. This ensures seamless connection to the output of the predicted time-series data when the next frame synchronization pulse arrives, eliminating switching gaps.

[0039] In some embodiments, the timing data buffer module 10 is further configured to output a current interruption flag signal when it has no raw timing data to read. The current interruption flag signal indicates that there is no raw timing data to read in the timing data buffer module 10.

[0040] The timing data prediction module 20 is connected to the output of the timing data caching module 10 and is configured to: receive and cache the raw timing data output frame by frame by the timing data caching module 10 to form a historical timing sequence; when a power outage warning signal is received, the timing change slope is calculated based on the continuous multiple frames of raw timing data cached in the historical timing sequence, and the timing change slope characterizes the rate of change of the raw timing data with the frame number; and based on the last frame of raw timing data read by the timing data caching module 10 before there is no raw timing data to be read and the timing change slope, the predicted timing data is generated and output.

[0041] In some embodiments, the time-series data prediction module 20 is configured to: extract M consecutive frames of raw time-series data from a historical time-series sequence, where M is an integer greater than or equal to 2; perform linear fitting using the frame number corresponding to each of the M consecutive frames as the independent variable and the raw time-series data value corresponding to each frame as the dependent variable to obtain a fitted straight line; the slope of the fitted straight line is the desired time-series change slope. This time-series change slope reflects the average rate of change of the raw time-series data value as the frame number increases or decreases within the time window of the M consecutive frames. For example, in the Shmoo scan test scenario, if the raw time-series data values ​​of 4 consecutive frames are T(k), T(k+1), T(k+2), and T(k+3), and the time-series change slope S is obtained through linear fitting, then the time-series change slope S characterizes the average step size of the change in the raw time-series data value of each frame.

[0042] Furthermore, in some embodiments, the time-series data prediction module 20 is configured to: use the least squares method, with the frame number corresponding to each of the M consecutive original time-series data as the independent variable and the original time-series data value corresponding to each frame as the dependent variable, perform linear fitting, and solve for the slope of the fitted line, which is the slope of the time-series change. The least squares method obtains the optimal linear approximation by minimizing the sum of squared residuals between the actual original time-series data value of each frame and the corresponding estimated value on the fitted line, thereby accurately extracting the trend rate of time-series change, that is, the slope of time-series change. In specific implementations, the time-series data prediction module 20 can be internally equipped with a multiply-accumulate unit to sequentially calculate the sum of independent variables, the sum of dependent variables, the sum of the products of independent and dependent variables, and the sum of the squares of independent variables, and substitute them into the least squares formula to obtain the slope of time-series change. This method has a suppressive effect on local jitter, and the fitting result is smoother and more reliable.

[0043] Furthermore, in some other embodiments, the time-series data prediction module 20 is configured to: directly extract the last two frames of original time-series data from the historical time-series sequence, calculate the difference between the two frames of original time-series data, and use this difference as the time-series change slope. Specifically, let the original time-series data value of the second-to-last frame in the historical time-series sequence be T(m-1), and the original time-series data value of the last frame be T(m), then the time-series change slope S = T(m) - T(m-1). This method has an extremely simple hardware implementation, requiring only a subtractor to complete the calculation of the time-series change slope, and is suitable for application scenarios that are sensitive to hardware resources and where the time-series changes are approximately strictly linear.

[0044] In some embodiments, the temporal change slope is a linear slope, and the temporal data prediction module 20 is configured to generate predicted temporal data based on the relation T(plast+i) = T(plast) + i×S; where T(plast+i) is the predicted temporal data, T(plast) is the value of the last frame of original temporal data read by the temporal data caching module 10 before there is no more original temporal data to be read, i is a positive integer representing the frame number accumulated after entering the temporal data estimation, and S is the temporal change slope.

[0045] In some embodiments, the last frame of raw timing data is: after receiving the interruption warning signal and before the first unreadable raw timing data, the last frame of raw timing data is read by the subsequent read control module 80 setting the read request terminal and read enable terminal, and driving the timing data buffer module 10 in a non-empty state. This frame of data is accompanied by the output of the data validity flag and is aligned with the frame synchronization pulse way_sync. After entering the S1 Holdover state, this frame of raw timing data serves as a fixed reference frame and is not changed by the intermittent recovery output of the timing data buffer module 10 during the interruption interval. The subsequent frames of predicted timing data generated by the timing data prediction module 20 are all calculated based on this fixed reference frame and the timing change slope.

[0046] By configuring the slope of the timing change as a linear slope and generating predicted timing data based on the relation T(plast+i) = T(plast) + i×S, the trend prediction is quantified into a clear linear recursive formula. In terms of hardware implementation, only adders and multipliers are needed to generate predicted timing data frame by frame. The circuit structure is simple, the prediction latency is low, and the prediction results can be guaranteed to be continuously connected with the real original timing data, further reducing the risk of phase jump.

[0047] In some embodiments, the temporal change slope S is obtained based on the differential average of multiple consecutive frames of raw temporal data in the historical temporal sequence or by least squares fitting. Specifically, under the normal test state of S0, when the temporal data prediction module 20 responds to the synchronization pulse way_sync for each frame and the data valid terminal dout_valid of the temporal data buffer module 10 outputs a data valid flag, it writes the raw temporal data of the current frame into the internal multi-frame temporal buffer array to form a historical temporal sequence. When the number of accumulated buffered raw temporal data reaches the second preset threshold M (M≥2), it outputs the buffer ready signal hist_buf_ready, indicating that the data basis for slope fitting is available. The initial value S_init of the temporal change slope S is obtained by the temporal data prediction module 20 by fitting M consecutive frames of raw temporal data in the historical temporal sequence when it receives the interruption warning signal. Specifically, it is obtained by least squares linear fitting or differential averaging of adjacent frames. Its physical meaning is the step size of the change of each frame of raw temporal data in the Shmoo dynamic scan test as the frame number increases or decreases. The initial value S_init is automatically determined by the hardware tracking the real timing change trend under the current test scenario, without the need for pre-configuration through software registers: S_init is positive when the Shmoo dynamic scan is increasing and negative when it is decreasing, and S_init≈0 under fixed timing test.

[0048] In some embodiments, the time series data prediction module 20 is further configured to: calculate the deviation between the predicted time series data and the real original time series data of the corresponding frame sequence in the historical time series sequence frame by frame during the generation of predicted time series data based on the time series change slope; integrate and accumulate the deviation of multiple consecutive frames to obtain the error compensation amount; and adjust the time series change slope based on the error compensation amount to suppress time series drift.

[0049] Specifically, during the generation of predicted time-series data based on the slope of time-series changes, when the synchronization pulse of each frame is triggered, the time-series data prediction module 20 generates the predicted time-series data T(plast+i) for the current frame while simultaneously reading the historical original time-series data T_history corresponding to the currently estimated frame number i from the internal historical time-series sequence (the time-series data buffer module 10 occasionally resumes outputting the original time-series data during the interruption interval), and calculates the difference between the two ΔT(i) = T(plast+i). T_history. Subsequently, the timing data prediction module 20 accumulates the deviation ΔT(i) of each frame into the internal integral error register to obtain the cumulative error compensation amount ΣΔT; based on the product of the cumulative error compensation amount and the preset loop gain K, the current timing change slope is incrementally corrected, and the corrected timing change slope S_current = S_prev + K × ΣΔT (where S_current is the corrected timing change slope, S_prev is the timing change slope before correction, and during the first correction, S_prev takes the aforementioned initial value S_init, K is the preset loop gain, which can be adjusted by writing to the configuration register through the APB bus to adapt to the compensation intensity requirements of different test scenarios, and ΣΔT is the cumulative error compensation amount), to generate the predicted timing data for subsequent frames. This closed-loop compensation mechanism constitutes negative feedback: if the predicted time series data is too large, the frame deviation ΔT is negative, and the slope of the time series change is adjusted to decrease; if the predicted time series data is too small, the frame deviation ΔT is positive, and the slope of the time series change is adjusted to increase, thereby dynamically suppressing the time series drift caused by hardware path delay or sampling noise.

[0050] Furthermore, when switching back from the S1 Holdover state to the S0 normal test state, the integral error register is forcibly cleared to zero, and all old error accumulations are discarded. The next time the system enters the S1 Holdover state, a new initial value S_init of the timing change slope S is recalculated from the original timing data of the M frames, preventing old errors from being carried over to the next compensation cycle. When the system jumps from the S1 Holdover state to the S2 Freerun state, the timing change slope calculation logic and closed-loop compensation mechanism of the timing data prediction module 20 are completely shut down, and no further timing prediction is performed.

[0051] It should be noted that using the accumulated error compensation amount as the basis for correcting the timing change slope in the aforementioned embodiments is only a preferred implementation. In other embodiments, other methods such as amplitude limiting filtering, proportional adjustment, or lookup table compensation can also be used to dynamically adjust the timing change slope, which can also achieve the purpose of suppressing timing drift. When the timing change slope is corrected, S in the relation T(plast+i)=T(plast)+i×S is the corrected timing change slope S_current. Alternatively, timing change slope correction can be omitted, in which case S in the relation T(plast+i)=T(plast)+i×S is the initial value S_init.

[0052] In some embodiments, the time-series data prediction module 20 is further configured to output a buffer ready signal when the accumulated amount of original time-series data in the buffer reaches a second preset threshold, wherein the second preset threshold is greater than or equal to 2. Specifically, the time-series data prediction module 20 may internally include an effective frame counter and a multi-frame time-series buffer array. When a frame synchronization pulse is received and the data validity flag is high, the original time-series data of the current frame is written into the time-series buffer array and the effective frame counter is incremented. When the count value of the effective frame counter accumulates to the second preset threshold, the time-series data prediction module 20 outputs a buffer ready signal. This buffer ready signal is used to indicate to the state control module 40 that a sufficient amount of time-series data has been accumulated in the historical time-series sequence, and if a current interruption warning signal is triggered subsequently, the time-series data prediction module 20 has the data basis to perform time-series change slope fitting and predict time-series data.

[0053] The multiplexing module 30 has a first input terminal, a second input terminal, a selection terminal, and an output terminal. The first input terminal is connected to the output terminal of the timing data buffer module 10 and is used to receive raw timing data. The second input terminal is connected to the output terminal of the timing data prediction module 20 and is used to receive predicted timing data. The output terminal of the multiplexing module 30 is used to output target timing data, which is the timing data received by the currently selected input terminal of the multiplexing module 30; that is, when the multiplexing module 30 selects the first input terminal, it outputs the raw timing data as the target timing data; when the multiplexing module 30 selects the second input terminal, it outputs the predicted timing data as the target timing data.

[0054] In some embodiments, the multiplexing module 30 further has a third input terminal, which receives fixed timing data. Specifically, the third input terminal is connected to a fixed timing data source, such as a configuration register; the fixed timing data is a static timing data value that has been pre-written into the configuration register via the APB bus. When there is no original timing data to be read in the timing data buffer module 10 and a current interruption flag signal is output, the multiplexing module 30 responds to the third control signal output by the state control module 40 based on the current interruption flag signal, selects the third input terminal, and outputs the fixed timing data as the target timing data to maintain the continuous locking of the internal phase-locked loop of the chip under test and avoid device damage caused by clock floating.

[0055] The state control module 40 is connected to the timing data buffer module 10 to receive the interruption warning signal output by the timing data buffer module 10. It is configured to: before the amount of raw timing data available for reading in the timing data buffer module 10 drops to a first preset threshold, output a first control signal to the selection terminal of the multiplexing module 30, causing the multiplexing module 30 to select the first input terminal, thereby forwarding the raw timing data output frame by frame by the timing data buffer module 10 as the target timing data to the timing output buffer module 50, maintaining normal test status. When the state control module 40 receives the interruption warning signal, it outputs a second control signal to the selection terminal of the multiplexing module 30, causing the multiplexing module 30 to select the second input terminal, thereby selecting and outputting the predicted timing data generated by the timing data prediction module 20. This switching action occurs before the amount of raw time-series data available for reading in the time-series data cache module 10 drops to zero, i.e. before it is completely empty. This ensures that the predicted time-series data has been seamlessly connected to the output path before the raw time-series data stream is truly interrupted. This allows the timing trend to continue through the output predicted time-series data even after there is no raw time-series data available for reading in the time-series data cache module 10, thus avoiding timing jumps or phase discontinuities.

[0056] In some embodiments, the timing data prediction module 20 is further configured to output a buffer ready signal when the cumulative number of cached original timing data reaches a second preset threshold, wherein the second preset threshold is greater than or equal to 2. Correspondingly, the status control module 40 is further configured to output a second control signal to the selection terminal of the multiplexing module 30 when it receives a flow interruption warning signal and receives the buffer ready signal output by the timing data prediction module 20.

[0057] That is, the state control module 40 is internally configured to perform logical AND judgment on the interruption warning signal and the buffer ready signal. Only when both the interruption warning signal and the buffer ready signal are simultaneously established will the state control module 40 output the second control signal under the trigger of the next frame synchronization pulse, so that the multiplexing module 30 selects the second input terminal. This joint judgment mechanism ensures that the time series data prediction module 20 has available raw time series data before the raw time series data in the time series data buffer module 10 is about to be exhausted. It can immediately start the time series change slope fitting and prediction time series data generation, avoiding the failure of time series data estimation or the output of uncertain values ​​due to insufficient time series data samples.

[0058] In some embodiments, the state control module 40 is further configured to: when receiving a disconnection flag signal from the timing data buffer module 10 based on the fact that it has no original timing data to read, output a third control signal to the selection terminal of the multiplexing module 30, so that the multiplexing module 30 selects the third input terminal to output the fixed timing data as the target timing data.

[0059] By configuring the multiplexing module 30, a third input terminal is also provided to receive fixed timing data. When the timing data buffer module 10 has no raw timing data to read, it outputs a current interruption flag signal to further enable the multiplexing module 30 to select the third input terminal to output the fixed timing data as the target timing data. In the extreme case where the timing data buffer module 10 is completely empty, a third-level fallback output is provided to maintain the continuous locking of the internal phase-locked loop of the chip under test and prevent the clock from floating and damaging the device. This forms a three-level progressive protection architecture of raw timing data, predicted timing data, and fixed timing data, which responds to current interruption scenarios of different severity levels step by step.

[0060] In some embodiments, the state control module 40 is further configured to: stop responding to the current interruption warning signal in response to the received bypass enable signal, and enable the multiplexing module 30 to select one of the first input terminal and the third input terminal; the timing data prediction module 20 is further configured to: stop responding to the current interruption warning signal and generate predicted timing data in response to the received bypass enable signal.

[0061] In other words, when a bypass enable signal is received, the state control module 40 internally shields the jump trigger logic of the current interruption warning signal and no longer outputs the second control signal. The multiplexing module 30 only selects between the original timing data and the fixed timing data, completely bypassing the predicted timing data path. At the same time, after detecting the bypass enable signal, the timing data prediction module 20 stops responding to the current interruption warning signal and no longer initiates the logic for fitting and calculating the timing change slope and generating predicted timing data based on the cached continuous multiple frames of original timing data in the historical timing sequence. This bypass mechanism allows the hardware to be downgraded to a binary architecture without modifying the test program, achieving backward compatibility with existing automated test equipment and outdated test programs.

[0062] The timing output buffer module 50 is connected to the output of the multiplexing module 30 and is used to buffer the target timing data and output it to the test channel of the automatic test equipment, so as to provide a continuous timing data stream frame by frame for the test channel.

[0063] Specifically, the timing output buffer module 50 is a timing register array. Triggered by the synchronization pulse of each frame, it latches the target timing data currently output by the multiplexer module 30 and maintains stable output within the synchronization period of that frame. The output of the timing output buffer module 50 is connected to the delay chain unit of each test channel at the back end of the automatic test equipment. After being latched, the target timing data is distributed to each test channel, ultimately generating clock edges and sampling gating signals. Regardless of whether the multiplexer module 30 currently selects the first input (raw timing data), the second input (predicted timing data), or the third input (fixed timing data), the timing output buffer module 50 caches and forwards it as the target timing data for the current frame, thereby ensuring that the test channels can receive a continuous stream of timing data frame by frame, without output interruption or phase jump due to the interruption of the timing data buffer module 10.

[0064] In the above embodiments, through the cooperation of the timing data buffer module 10, the timing data prediction module 20, the multiplexing module 30, the status control module 40, and the timing output buffer module 50, the downstream test channel is completely unaware of any interruption events, avoiding test waveform interruptions, phase steps, and the resulting misjudgments of the chip under test and batch false failures, significantly improving test efficiency and the accuracy of test results. Furthermore, the bypass mechanism allows the hardware to be downgraded to a binary architecture without modifying the test program, achieving backward compatibility with existing automated test equipment and outdated test programs.

[0065] Understandably, the timing generator circuit 100 may further include other functional modules to enrich the control dimensions and adapt to more complex test scenarios.

[0066] like Figure 2 As shown, in some embodiments, the timing generator circuit 100 further includes a timing module 60, which is connected to the state control module 40. The state control module 40 is further configured to: output a timing enable signal to the timing module 60 when it outputs a second control signal to the selection terminal of the multiplexing module 30 to enable the multiplexing module 30 to select the second input terminal, so that the timing module 60 starts timing; the timing module 60 is configured to: start timing in response to the timing enable signal, and output a timing overflow signal when the timing value reaches a preset duration; the state control module 40 is further configured to: output a third control signal to the selection terminal of the multiplexing module 30 when it receives the timing overflow signal, so that the multiplexing module 30 selects the third input terminal.

[0067] Specifically, the timing module 60 has an internal counter that increments with each frame synchronization pulse. When the state control module 40 enables the multiplexer module 30 to select the second input terminal on the next frame synchronization pulse, it outputs a timing enable signal to the timing module 60. The timing module 60 responds to this timing enable signal and starts timing, with the counter accumulating from zero on each frame synchronization pulse. The preset duration is pre-written into the configuration register by the host computer via the APB bus. When the counter's timing value reaches the preset duration, the timing module 60 outputs a timing overflow signal to the state control module 40. Upon receiving the timing overflow signal, the state control module 40 outputs a third control signal to the multiplexer module 30 on the next frame synchronization pulse, enabling the multiplexer module 30 to select the third input terminal. This timing mechanism sets a time limit for the predicted timing data, preventing the predicted timing data from continuing indefinitely in extreme cases, which could lead to excessive error accumulation. It also ensures that the timing generator circuit 100 switches to fixed timing data output when the predicted timing data fails.

[0068] The state control module 40 is also configured to: when the timing data buffer module 10 resumes outputting the original timing data, after satisfying the preset back-off conditions, output a first control signal to the selection terminal of the multiplexing module 30, so that the multiplexing module 30 selects the first input terminal. The preset back-off conditions include: the number of original timing data output by the timing data buffer module 10 continuously received by the state control module 40 reaches a third preset threshold, the third preset threshold is greater than zero, and / or, the deviation between the target timing data currently output by the multiplexing module 30 and the original timing data currently output by the timing data buffer module 10 is less than a preset error threshold.

[0069] Specifically, when the timing data buffer module 10 recovers from a state where the amount of raw timing data it can read is less than a first preset threshold or there is no raw timing data to read, the state control module 40 starts its internal valid frame counter to count the raw timing data continuously output by the timing data buffer module 10. The third preset threshold is an integer greater than zero, representing that the timing data buffer module 10 is required to continuously and stably output at least the third preset threshold of valid data before a back-switching is allowed, in order to avoid the instantaneous fill jitter when the timing data buffer module 10 just recovers, which would cause frequent back-and-forth switching of the output path of the multiplexing module 30. At the same time, under each frame synchronization pulse, the absolute value of the deviation between the target timing data currently output by the multiplexing module 30 and the raw timing data currently output by the timing data buffer module 10 is calculated. When the absolute value of this deviation is continuously less than a preset error threshold, it indicates that the raw timing data output by the upstream timing data buffer module 10 and the data of the current output path are basically aligned. The two conditions mentioned above are combined using an AND / OR relationship. Under the AND logic, both the frame number condition and the deviation condition must be met simultaneously for the back-cut to be executed; under the OR logic, the back-cut is triggered as long as either condition is met. When the preset back-cut conditions are met, the state control module 40 waits for the next frame synchronization pulse and outputs the first control signal to the multiplexing module 30, causing the multiplexing module 30 to reselect the first input terminal and return to the normal test state.

[0070] like Figure 2 As shown, in some embodiments, the timing generator circuit 100 further includes a phase verification module 70, which is connected to the output of the multiplexing module 30 and the output of the timing data buffer module 10. The state control module 40 is further configured to: start a valid frame counter when the timing data buffer module 10 resumes outputting the original timing data, and count the continuously output original timing data of the timing data buffer module 10; the phase verification module 70 is configured to: sample the current input of the timing data buffer module 10 during the period when the multiplexing module 30 selects the second input. The original timing data and the target timing data currently output by the multiplexing module 30 are used to calculate the deviation between the target timing data currently output by the multiplexing module 30 and the original timing data currently output by the timing data buffer module 10 frame by frame. When the deviation values ​​of multiple consecutive frames are all less than the preset error threshold, a phase alignment signal is output. The state control module 40 is also configured to output a first control signal to the selection terminal of the multiplexing module 30 when the count value of the effective frame counter reaches the third preset threshold and the phase alignment signal is received, so that the multiplexing module 30 selects the first input terminal.

[0071] Specifically, the two sampling input terminals of the phase verification module 70 are connected to the output terminals of the multiplexing module 30 and the timing data buffer module 10, respectively. The phase verification module 70 latches two data streams simultaneously on the rising edge of each frame's synchronization pulse: one stream is the original timing data newly output by the timing data buffer module 10 after recovery, and the other stream is the timing data currently output by the multiplexing module 30. The phase verification module 70 internally includes a subtractor that calculates the absolute value of the difference between the two streams frame by frame and compares this absolute value with a preset error threshold configured in the register. The phase verification module 70 also includes a frame counter. When the comparison results for multiple consecutive frames are all less than the preset error threshold, it indicates that the timing data currently output by the multiplexing module 30 and the original timing data newly output by the timing data buffer module 10 have been phase-aligned. The phase verification module 70 then outputs a phase alignment signal to the state control module 40. Simultaneously, the state control module 40 internally counts the valid frames continuously output by the timing data buffer module 10. When the count reaches a third preset threshold, the state control module 40 checks whether a phase alignment signal has been received simultaneously. If both conditions are met simultaneously, the state control module 40 outputs a first control signal on the next frame synchronization pulse, causing the multiplexer module 30 to select the first input terminal and return to the normal test state. This dual verification mechanism ensures that both the data stability requirements of the timing data buffer module 10 and the phase continuity requirements are met during the switchback, fundamentally avoiding timing jumps or output glitches at the moment of switchback.

[0072] like Figure 2 As shown, in some embodiments, the timing generator circuit 100 further includes a read control module 80, which is connected to the timing data cache module 10. The read control module 80 is configured to: monitor the amount of raw timing data available for reading in the timing data cache module 10; when the amount of raw timing data available for reading in the timing data cache module 10 drops to a first preset threshold, provide a current interruption warning signal to the timing data cache module 10 through a hardware pin; when there is no raw timing data available for reading in the timing data cache module 10, provide a current interruption flag signal to the timing data cache module 10 through a hardware pin. The timing data cache module 10 is configured to: receive the current interruption warning signal and the current interruption flag signal through a hardware pin, and output the current interruption warning signal and the current interruption flag signal to the status control module 40.

[0073] Specifically, the read control module 80 determines the number of available raw timing data frames in the timing data cache module 10 in real time by tracking the difference between the read and write pointers or the valid frame counter inside the timing data cache module 10. When the number of frames decreases to a first preset threshold, the read control module 80 provides a current interruption warning signal to the warning signal input terminal of the timing data cache module 10 through a hardware pin; when the read and write pointers are equalized, meaning there are no raw timing data frames to read in the timing data cache module 10, the read control module 80 provides a current interruption flag signal to the empty flag input terminal of the timing data cache module 10 through another hardware pin. The timing data cache module 10 is configured to receive these two signals through its corresponding hardware pins and forward them to the state control module 40 as the trigger for state transition.

[0074] In addition, in some embodiments, besides providing the timing data cache module 10 with a flow interruption warning signal and a flow interruption flag signal, the read control module 80 is also configured to send a read request signal and a read enable signal to the timing data cache module 10 upon triggering each frame synchronization pulse, so as to control the timing data cache module 10 to read the original timing data frame by frame. In specific implementation, the read control module 80 acts as the read-side master controller of the timing data cache module 10. When each frame synchronization pulse is valid, it determines whether to initiate a read operation based on the current state of the timing data cache module 10. When there is data available for reading in the timing data cache module 10, the read control module 80 sets the read request end and the read enable end, driving the timing data cache module 10 to output the original timing data of the current frame to the downstream multiplexing module 30 and timing data prediction module 20; when the timing data cache module 10 is empty, the read control module 80 pulls down the read enable end to pause the read operation, avoiding the generation of invalid read requests on the empty timing data cache module 10.

[0075] Furthermore, the read control module 80 is configured to divide or gate the frame synchronization pulse according to the requirements of the test program to adjust the reading rate of timing data and adapt to the test frequency requirements of different chips under test. This read control function ensures that the output timing of the timing data buffer module 10 is strictly aligned with the frame synchronization clock of the timing generator circuit 100, providing a stable and orderly raw timing data stream for downstream modules.

[0076] The timing generator circuit 100 of this application achieves a smooth transition from normal test state to timing data compensation through the coordinated scheduling of various functional modules by the state control module 40. Its specific workflow is as follows: Figure 3 As shown, it includes at least the following steps S101-S105.

[0077] S101, under normal test conditions, continuously receives and caches external raw time series data frame by frame, accumulating to form historical time series sequences, providing a data foundation for subsequent time series prediction.

[0078] S102: When the external raw time series data is about to be interrupted and the compensation function is enabled, the cached historical time series sequence is retrieved, the slope of the time series change is fitted, and the slope of the time series change is dynamically corrected to eliminate the accumulated error and ensure that the time series change trend is real and reliable.

[0079] S103, based on the last frame of real original timing data, the obtained timing change slope, and the current predicted frame number, generates new predicted timing data frame by frame through the relation T(plast+i) = T(plast) + i×S. This predicted timing data replaces the interrupted external original timing data and is continuously output, strictly continuing the original timing change trend, and achieving a smooth timing transition during the interruption period.

[0080] S104 continuously generates new predicted time series data based on the slope of time series change and outputs it to the outside. At the same time, it starts the compensation duration timer. When the compensation duration overflows or the external time series data is completely read out, it stops the prediction based on the slope of time series change, switches to fixed time series data output to ensure hardware stability, and simultaneously latches the current original time series data and the value of the slope of time series change to save the state.

[0081] S105, when the external timing data output is restored, the system smoothly switches back to normal test state, resumes operation using the external original timing data, and can recall historically saved parameters to continue the original test trend, ensuring the overall test process is continuous and stable. Below, a specific embodiment will be used as an example to describe the timing generator circuit of this application in detail.

[0082] like Figure 4 As shown, the timing generator circuit 100 in this embodiment includes the following hardware modules and connection architecture.

[0083] The timing data buffer module 10 has a data input terminal din, a write enable terminal wren, a read enable terminal rden, a data output terminal dou, a data valid terminal dou_valid, a current interruption warning terminal almost_empty, and a current interruption flag terminal empty. The external multi-channel parallel timing parameter multiway_parallel_tsnum is connected to the data input terminal din via the data bus, and the external valid flag signal vld is input to the write enable terminal wren. Each write operation writes a complete frame of raw timing data into the internal buffer array of the timing data buffer module 10. Here, timing data refers to timing parameters carrying the complete timing offset configuration information for a single frame. In the entire circuit, timing data has three completely different generation sources under three operating states, and is then transmitted to downstream modules via a unified output path. Throughout the process, it works in conjunction with the linear timing change logic of the Shmoo dynamic scan to complete the smooth compensation of timing data under test-driven and current interruption conditions.

[0084] The read control module 80 has a read request terminal rdreq and a read enable terminal rden, which are connected to the timing data buffer module 10 via physical traces. The read control module 80 is configured to, upon triggering each frame synchronization pulse way_sync, send a read request signal and a read enable signal to the timing data buffer module 10 via its read request terminal rdreq and read enable terminal rden, controlling the timing data buffer module 10 to read the raw timing data of the current frame frame by frame and output it via the data output terminal dout. The raw timing data output from the data output terminal dout of the timing data buffer module 10 is divided into three paths: the first path is directly connected to the first input terminal (IN0) of the multiplexer module 30; the second path is connected to the data sampling terminal of the timing data prediction module 20; and the third path is connected to the first sampling terminal timing_real of the phase verification module 70. The data validity flag output from the data validity terminal dout_valid of the timing data buffer module 10 is simultaneously sent to the timing data prediction module 20 and the read control module 80 as a sampling enable reference. The frame synchronization pulse way_sync and the data validity flag are synchronized and verified. Only when both are valid will the current timing data frame be stored in the multi-frame timing buffer array inside the timing data prediction module 20. The valid frame counter is synchronously incremented. After M complete and valid timing data samples are continuously collected, the hist_buf_ready signal is set and transmitted to the state control module 40, indicating that the calculation basis for entering the S1 Holdover state is available. The original timing data sent to the first input terminal IN0 is directly output under the control of Sel[1:0] and latched in the timing output buffer module 50. Finally, it is distributed to each test channel at the back end of the automatic test equipment. Based on the offset value corresponding to the current original timing data, a clock edge and sampling gating signal are generated to drive the chip under test to complete the timing test.

[0085] The read control module 80 also includes a flow interruption warning output terminal (hardware pin) and a flow interruption flag output terminal (hardware pin), which are connected to the flow interruption warning terminal almost_empty and the flow interruption flag terminal empty of the timing data buffer module 10 via hardware pins, respectively. The read control module 80 is configured to: continuously monitor the amount of raw timing data available for reading in the timing data buffer module 10; when the amount of available data drops to a first preset threshold, provide a flow interruption warning signal to the flow interruption warning terminal almost_empty of the timing data buffer module 10 via its flow interruption warning output terminal; and when no raw timing data is available for reading in the timing data buffer module 10, provide a flow interruption flag signal to the flow interruption flag terminal empty of the timing data buffer module 10 via its flow interruption flag output terminal. The timing data buffer module 10 receives the flow interruption warning signal via the flow interruption warning terminal almost_empty and the flow interruption flag signal via the flow interruption flag terminal empty, and forwards them to the status control module 40. In an alternative implementation, the read control module 80 can also send the interruption warning signal and the interruption flag signal directly to the status control module 40 in parallel, while the timing data buffer module 10 itself also outputs the same signal, forming a dual-path redundant delivery.

[0086] The timing data prediction module 20, connected to the data output terminal dou of the timing data buffer module 10, is configured to: write the original timing data of the current frame into an internal multi-frame timing buffer array to form a historical timing sequence when the synchronization pulse way_sync is active and the data valid terminal dou_valid is active (high level); when a current interruption warning signal is received (i.e., the current interruption warning terminal almost_empty is high level), read the historical original timing data of multiple consecutive frames in the buffer, fit and calculate the timing change slope S, and use the last frame of real original timing data read at the time of the current interruption warning signal output as a reference to generate predicted timing data frame by frame based on the timing change slope S. Predicted timing data is generated frame by frame using the extrapolation formula T(plast+i)=T(plast)+i×S. Simultaneously, the timing data prediction module 20 has a built-in error integral closed-loop compensation logic that continuously compares the difference between the predicted timing data and the real original timing data, dynamically correcting the timing change slope S to suppress timing drift caused by long-term calculations. The timing data prediction module 20 is also equipped with a buffer ready output terminal. When the cumulative number of original timing data buffered reaches the second preset threshold, the buffer ready signal is output to the buffer ready signal terminal hist_buf_ready of the status control module 40 through the buffer ready output terminal.

[0087] The multiplexing module 30 has three input terminals: the first input terminal IN0 receives the raw timing data output by the timing data buffer module 10; the second input terminal IN1 receives the predicted timing data output by the timing data prediction module 20; and the third input terminal IN2 receives the fixed timing data provided by the configuration register cfg_tsnum. The selection terminal of the multiplexing module 30 is connected to the output terminal Sel[1:0] of the state control module 40, and the output terminal of the multiplexing module 30 is simultaneously connected to the data input terminal of the timing output buffer module 50 and the second sampling terminal timing_cur_out of the phase verification module 70.

[0088] The state control module 40 is a three-level finite state machine (FSM). Its inputs are connected to: the almost_empty warning terminal and the empty terminal of the timing data buffer module 10; the buffer ready output terminal of the timing data prediction module 20; the holdtime_overflow overflow output terminal of the timing module 60; the phase alignment output terminal ok and the timeout_flag output terminal of the phase verification module 70; and the bypass enable output terminal of the configuration register 90. The output terminal Sel[1:0] of the state control module 40 outputs a selection control signal to the selection terminal of the multiplexing module 30, and another output terminal s1_active outputs a timing enable signal to the enable input terminal of the timing module 60. The timing module 60 is connected to the state control module 40, its enable input terminal receives the timing enable signal, and its overflow output terminal holdtime_overflow is connected to the time_overflow input terminal of the state control module 40. When the state control module 40 enables the multiplexer module 30 to select the second input terminal IN1, it synchronously pulls s1_active high. The timing module 60 responds by incrementing the count under each frame synchronization pulse way_sync. When the timing value reaches the preset duration, it outputs a timing overflow signal (i.e., holdtime_overflow is high). This timing mechanism sets a time limit for the predicted timing data, preventing the predicted timing data from continuing indefinitely in extreme cases, which could lead to excessive error accumulation. It also ensures that the timing generator circuit 100 is forced to switch to fixed timing data output when the timing overflows.

[0089] The phase verification module 70 has two sampling input terminals, timing_cur_out and timing_real, which are connected to the output terminal of the multiplexer module 30 and the data output terminal dou of the timing data buffer module 10, respectively. When the second input terminal IN1 of the multiplexer module 30 is selected, the phase verification module 70 samples two data channels simultaneously under the synchronization pulse way_sync of each frame, and calculates the deviation between the target timing data currently output by the multiplexer module 30 and the original timing data currently output by the timing data buffer module 10 frame by frame. When the deviation value of multiple consecutive frames is less than the preset error threshold, the phase alignment output terminal ok outputs a phase alignment signal to the status control module 40 (the phase alignment output terminal ok is high level); if alignment fails within the preset number of consecutive alignment frames, a timeout flag is output through the timeout output terminal timeout_flag.

[0090] The phase verification module 70 internally sets up an APB register, and the software configures a preset error threshold `handshake_th` and a preset number of consecutive alignment frames. The threshold parameters can be flexibly modified to adapt to different testing requirements for different DDR chips under test and different Shmoo test scenarios.

[0091] The timing output buffer module 50 latches the target timing data at the output of the multiplexer module 30 and distributes it to the delay chain units of each test channel in the backend of the automated test equipment, ultimately generating clock edges and sampling gating signals. The timing data from three different sources are ultimately selected by the multiplexer module 30 and sent to the timing output buffer module 50. Regardless of whether it is raw timing data, predicted timing data, or fixed timing data, the position of the test signal edge is defined by the offset stored in the parameters, fully supporting the dynamic timing scan test of the chip.

[0092] Register 90 configures a 1-bit global enable signal, holdover_en. When holdover_en is high, the full three-level functionality is enabled; when holdover_en is low (bypass enable signal), the hardware automatically bypasses the second input path, downgrading to a binary architecture. This eliminates the need to modify the test program and achieves backward compatibility.

[0093] The timing generator circuit 100 has three states, including S0 normal test state, S1 Holdover state, and S2 Freerun state.

[0094] In the S0 normal test state, the external multi-channel parallel timing parameter `multway_parallel_tsnum` is continuously written to the timing data buffer module 10. The read control module 80 issues a read request signal according to the test rate, reading the original timing data inside the timing data buffer module 10 frame by frame. The multiplexing module 30 selects the first input terminal IN0, and the original timing data is output to the back-end delay chain via the timing output buffer module 50. In the S0 normal test state, the almost_empty interruption warning terminal of the timing data buffer module 10 remains at a low level, and the read control module 80 continuously generates read request signals and read enable signals, reading the original timing data frame by frame from the timing data buffer module 10. The value output by the timing data buffer module 10 is the real and valid original timing data of the current frame synchronization period, accompanied by a data validity flag.

[0095] Under each frame synchronization pulse `way_sync`, the timing data prediction module 20 collects valid raw timing data output by the timing data buffer module 10 to complete the historical timing sequence buffering. After continuously collecting M frames of raw timing data, the `hist_buf_ready` signal is set, indicating that the timing data samples are sufficient to support subsequent prediction of timing data. When the phase verification module 70 receives a status code of S0 from the status control module 40, the internal hardware disables the comparison logic to reduce dynamic power consumption.

[0096] When the original timing data inside the timing data buffer module 10 is consumed to the point that almost_empty=1 (high level), empty=0 (low level), and hist_buf_ready=1 (high level), and the software configuration holdsover_en=1 (high level), the timing generator circuit 100 enters the S1 Holdover state under the triggering of the frame synchronization pulse way_sync. That is, when the amount of data inside the timing data buffer module 10 drops to the first preset threshold, the frame synchronization pulse trigger state control module 40 jumps from the S0 normal test state to the S1 Holdover state. The multiplexing module 30 switches to select the second input terminal IN1, and the timing data prediction module 20 performs timing estimation based on the buffered multi-frame original timing data. If holdover_en=0 (low level, i.e. bypass enable), the circuit will not enter the S1 Holdover state. The circuit will only switch between the S0 normal test state and the S2 Freerun state. When empty=0, the circuit will maintain the S0 normal test state and output the original timing data. When empty=1, the circuit will jump to the S2 Freerun state and output the fixed timing data.

[0097] In the S1 Holdover state, the state control module 40 pulls s1_active high, activating the timing module 60. The multiplexing module 30 selects the second input IN1 and outputs the predicted timing data generated by the timing data prediction module 20. The timing data prediction module 20 reads multiple frames of raw timing data from the previous cache, calculates the timing change slope S, and executes the linear extrapolation formula: T(plast+i)=T(plast)+i×S, generating continuously changing predicted timing data frame by frame. As long as the timing has not reached the preset duration, it continuously outputs predicted timing data that matches the original timing change trend to fill the data gaps in the timing data cache module 10, preventing abrupt changes in timing data.

[0098] If the timing module 60 overflows (holdtime_overflow=1 (high level)), it means that the accumulated estimation error has reached the upper limit; or the timing data cache module 10 is completely empty (empty=1 (high level)), and directly switches to the S2 Freerun state. At this time, the multiplexer module 30 switches to the third input terminal IN2, and the fixed timing data provided by the configuration register cfg_tsnum is used as the constant timing parameter output to ensure that the phase-locked loop of the chip under test is always locked. At the same time, the hardware automatically bypasses and shuts down the timing change slope calculation logic and closed-loop compensation mechanism of the timing data prediction module 20, and no longer executes timing prediction; and latches the last frame of original timing data on which the entry into the S1 Holdover state is based (that is, the last frame of original timing data read by the timing data cache module 10 before there is no more original timing data to read) and the current working timing change slope to form a snapshot and save it to the register array. When the timing data is restored and the system switches back to the S0 normal test state, the snapshot data can be retrieved to continue the interrupted Shmoo scan process.

[0099] When upstream timing data resumes writing and timing data cache module 10 is no longer empty, the path of multiplexing module 30 is not switched immediately, but the following back-switch verification is performed: (1) The valid frame counter inside the state control module 40 starts to count the consecutive valid frames output by timing data cache module 10; (2) The phase verification module 70 starts and samples two data at the same time during each frame synchronization pulse way_sync: the original timing data output by timing data cache module 10 and the target timing data currently output by multiplexing module 30, and calculates the deviation value between the two. When the deviation value within consecutive frames is less than the preset error threshold handshake_th, the phase alignment signal is output; if it cannot be aligned for a long time, a timeout flag is output to avoid hardware jamming; (3) When all the conditions of "timing data cache module 10 is not empty, the consecutive valid frame count value reaches the third preset threshold, and the output phase alignment or timeout flag" are met, wait for the next frame synchronization pulse, and the state control module 40 outputs Sel="00", and switches multiplexing module 30 back to the S0 normal test state. If the upstream resumes sending timing data before the timing overflow, the timing data buffer module 10 will re-output the original timing data. It will not immediately switch back to the S0 normal test state, but will continuously count the number of frames of continuous valid timing data. When the number of valid frames reaches the third preset threshold and the output phase alignment or timeout flag is received, the state control module 40 will switch back to the S0 normal test state.

[0100] In S2 Freerun mode, the multiplexer module 30 selects the third input terminal IN2, and the fixed timing data is output to the back-end delay chain via the timing output buffer module 50.

[0101] like Figure 5 As shown, S0 maintains normal testing through a self-loop when almost_empty=0; it jumps to S1 when holdover_en=1, almost_empty=1, and empty=0; and jumps to S2 when the timing data buffer module 10 is completely empty (empty=1). S1 performs timing deduction through a self-loop under the condition holdtime_overflow=0, and jumps to S2 when holdtime_overflow=1 or empty=1. S2 outputs fixed timing through a self-loop under the condition empty=1. Both S1 and S2 must simultaneously satisfy the conditions of empty=0, the effective frame count reaching the third preset threshold N, and the output phase alignment or timeout flag to achieve a glitch-free state transition.

[0102] In summary, this application achieves smooth timing compensation under flow interruption scenarios through a three-level state architecture (S0 normal test state, S1 Holdover state, and S2 Freerun state). In the S0 normal test state, the host computer continuously sends batch-by-frame changing timing data via a multi-parallel bus (multway_parallel_tsnum). The timing data buffer module 10 outputs raw timing data frame by frame under the triggering of the frame synchronization pulse (way_sync). The multi-channel selection module 30 selects the first input terminal IN0 for direct output. Simultaneously, the timing data prediction module 20 collects multiple frames of continuous raw timing data and buffers them in its internal array. When the amount of data available for reading inside the timing data buffer module 10 decreases to the first preset threshold corresponding to the flow interruption warning terminal (almost_empty), it automatically jumps to S1. In the Holdover state, the timing data prediction module 20 fits the timing change slope S based on the cached original timing data and generates predicted timing data frame by frame using the extrapolation formula. The multiplexing module 30 switches to the second input terminal IN1 to output the predicted timing data, filling the data gap in the timing data cache module 10. This fundamentally eliminates the timing cliff jump caused by directly switching fixed timing data in the binary architecture, avoids setup / hold time sampling misjudgment and false failure caused by timing discontinuity in the Shmoo dynamic timing scan test, significantly shortens the test time and ensures the authenticity of the yield statistics. In the S1 Holdover state, the state control module 40 synchronously pulls s1_active high to start the timing module 60, setting a time limit for the predicted timing data. When the overflow output terminal holdtime_overflow of the timing module 60 indicates timing overflow or the timing data buffer module 10 is completely empty (the current interruption flag terminal empty is high), it automatically jumps to the S2 Freerun state. The multiplexer module 30 switches to the third input terminal IN2, and the fixed timing value provided by the configuration register cfg_tsnum is used as the constant timing parameter output to ensure that the internal phase-locked loop of the chip under test is always locked. At the same time, the hardware automatically latches the last set of valid timing data and the timing change slope before entering the S1 Holdover state to form a snapshot and save it to the register array. When the timing data is restored and the system switches back to the S0 normal test state, the snapshot data can be retrieved to continue the timing changes of the interrupted Shmoo scan process, which is convenient for continuing the interrupted Shmoo scan process.After the timing data is recovered, the effective frame counter inside the state control module 40 counts the consecutive effective frame counts. In conjunction with the phase verification module 70, the deviation between the target timing data currently output by the multiplexing module 30 and the original timing data currently output by the timing data buffer module 10 is calculated frame by frame. When the deviation values ​​of multiple consecutive frames are all less than the preset error threshold `handshake_th`, a phase alignment signal is output. If a timeout occurs, a timeout flag is output. State revert is only executed after the consecutive effective frame count reaches the third preset threshold and the phase alignment signal or timeout flag takes effect, ensuring a smooth revert process. Furthermore, the bypass enable signal in the configuration register 90 can bypass the S1 Holdover state and the predicted timing data generation logic, downgrading to a binary architecture that retains only the original timing data output of S0 and the fixed timing data of S2. This allows for complete compatibility with older test programs and existing automated test equipment without modifying the test program.

[0103] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of this application is limited only by the appended claims.

Claims

1. A timing generator circuit for an automatic testing device, characterized in that, include: The timing data buffer module is used to receive and buffer the raw timing data input from the outside frame by frame, so as to output the raw timing data of the current frame frame by frame under each frame synchronization pulse; The time-series data caching module is further configured to output a flow interruption warning signal when the amount of raw time-series data available for reading decreases to a first preset threshold, wherein the first preset threshold is greater than zero. A time-series data prediction module, connected to the output of the time-series data caching module, is configured to: receive and cache the raw time-series data output frame by frame by the time-series data caching module to form a historical time-series sequence; upon receiving the interruption warning signal, calculate the time-series change slope based on the cached continuous frames of raw time-series data in the historical time-series sequence, wherein the time-series change slope characterizes the rate of change of the raw time-series data with the frame number; and generate and output predicted time-series data based on the last frame of raw time-series data read by the time-series data caching module before there is no more raw time-series data to be read and the time-series change slope. A multiplexing module has a first input terminal, a second input terminal, a selection terminal, and an output terminal. The first input terminal is connected to the output terminal of the time series data buffer module and is used to receive the original time series data. The second input terminal is connected to the output terminal of the time series data prediction module and is used to receive the predicted time series data. The output terminal of the multiplexing module is used to output target time series data, which is the time series data received by the currently selected input terminal of the multiplexing module. A state control module, connected to the time-series data cache module, receives the interruption warning signal output by the time-series data cache module and is configured to: before the amount of raw time-series data available for reading in the time-series data cache module drops to a first preset threshold, output a first control signal to the selection terminal of the multiplexing module, causing the multiplexing module to select the first input terminal; and upon receiving the interruption warning signal, output a second control signal to the selection terminal of the multiplexing module, causing the multiplexing module to select the second input terminal, so as to continue the time-series trend by outputting the predicted time-series data before there is no raw time-series data available for reading in the time-series data cache module. The timing output buffer module is connected to the output of the multiplexing module and is used to buffer the target timing data and output it to the test channel of the automatic test equipment, so as to provide a continuous frame-by-frame timing data stream for the test channel.

2. The timing generator circuit as described in claim 1, characterized in that, The temporal change slope is a linear slope, and the temporal data prediction module is configured to generate predicted temporal data based on the relation T(plast+i) = T(plast) + i×S; where T(plast+i) is the predicted temporal data, T(plast) is the value of the last frame of original temporal data read by the temporal data caching module before there is no more original temporal data to be read, i is a positive integer representing the cumulative frame number after entering the temporal data estimation, and S is the temporal change slope; The slope of the time series change is obtained by fitting the differential average or least squares method to the original time series data of multiple consecutive frames in the historical time series.

3. The timing generator circuit as described in claim 1, characterized in that, The time series data prediction module is further configured to: during the generation of predicted time series data based on the time series change slope, calculate the deviation between the predicted time series data and the real original time series data of the corresponding frame sequence in the historical time series on a frame-by-frame basis; The deviations of multiple consecutive frames are integrated and accumulated to obtain the error compensation amount, and the temporal change slope is adjusted based on the error compensation amount to suppress temporal drift.

4. The timing generator circuit as described in claim 1, characterized in that, The time series data prediction module is further configured to: output a buffer ready signal when the cumulative number of cached original time series data reaches a second preset threshold, wherein the second preset threshold is greater than or equal to 2; the state control module is configured to: output a second control signal to the selection terminal of the multiplexing module when the interruption warning signal is received and the buffer ready signal output by the time series data prediction module is received.

5. The timing generator circuit as described in claim 1, characterized in that, The multiplexing module also has a third input terminal, which receives fixed timing data; the timing data buffer module is further configured to output a current interruption flag signal when it has no original timing data to read; the state control module is further configured to output a third control signal to the selection terminal of the multiplexing module when it receives the current interruption flag signal, so that the multiplexing module selects the third input terminal to output the fixed timing data as the target timing data.

6. The timing generator circuit as described in claim 5, characterized in that, The timing generator circuit also includes a timing module, which is connected to the state control module. The state control module is further configured to: when outputting a second control signal to the selection terminal of the multiplexing module to enable the multiplexing module to select the second input terminal, output a timing enable signal to the timing module to enable the timing module to start timing; The timing module is configured to: start timing in response to the timing enable signal, and output a timing overflow signal when the timing value reaches a preset duration; The state control module is further configured to: when the timing overflow signal is received, output a third control signal to the selection terminal of the multiplexer module, so that the multiplexer module selects the third input terminal.

7. The timing generator circuit as described in claim 5, characterized in that, The state control module is further configured to: in response to the received bypass enable signal, stop responding to the current interruption warning signal, and enable the multiplexing module to select one of the first input terminal and the third input terminal; The time series data prediction module is also configured to: in response to the received bypass enable signal, stop responding to the interruption warning signal and generate predicted time series data.

8. The timing generator circuit as described in claim 1, characterized in that, The state control module is further configured to: when the timing data buffer module resumes outputting original timing data, after satisfying a preset back-cut condition, output a first control signal to the selection terminal of the multiplexing module, so that the multiplexing module selects the first input terminal. The preset back-cut condition includes: the number of original timing data output by the timing data buffer module continuously received by the state control module reaches a third preset threshold, the third preset threshold being greater than zero, and / or, the deviation between the target timing data currently output by the multiplexing module and the original timing data currently output by the timing data buffer module is less than a preset error threshold.

9. The timing generator circuit as described in claim 8, characterized in that, The timing generator circuit also includes a phase verification module, which is connected to the output of the multiplexer module and the output of the timing data buffer module. The state control module is further configured to: when the timing data buffer module resumes outputting original timing data, start the valid frame counter to count the continuously output original timing data of the timing data buffer module; The phase verification module is configured to: during the period when the multiplexing module selects the second input terminal, sample the original timing data currently output by the timing data buffer module and the target timing data currently output by the multiplexing module respectively, calculate the deviation value between the target timing data currently output by the multiplexing module and the original timing data currently output by the timing data buffer module frame by frame, and output a phase alignment signal when the deviation value of multiple consecutive frames is less than a preset error threshold; The state control module is further configured to: when the count value of the effective frame counter reaches a third preset threshold and the phase alignment signal is received, output a first control signal to the selection terminal of the multiplexing module, so that the multiplexing module selects the first input terminal.

10. The timing generator circuit according to any one of claims 1 to 9, characterized in that, The timing generator circuit also includes a read control module, which is connected to the timing data cache module. The read control module is configured to: monitor the amount of raw time-series data available for reading in the time-series data cache module; when the amount of raw time-series data available for reading in the time-series data cache module drops to a first preset threshold, provide a flow interruption warning signal to the time-series data cache module through a hardware pin; and when there is no raw time-series data available for reading in the time-series data cache module, provide a flow interruption flag signal to the time-series data cache module through a hardware pin. The timing data caching module is configured to receive the interruption warning signal and the interruption flag signal via a hardware pin, and forward the interruption warning signal and the interruption flag signal to the status control module.