Time sequence measurement method
By obtaining the on-chip delay and packaging delay of the DRAM and control chip, the filter characteristic curve is generated, which solves the problem of inaccurate timing measurement of signal and reference signals and improves the analysis accuracy.
Patent Information
- Application Number
- CN202310488601.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-04-28
AI Technical Summary
Due to the delay circuit and packaging delay inside the DRAM and the control chip, the timing relationship between the signal and the reference signal cannot be accurately measured by the oscilloscope, resulting in low analysis accuracy.
By obtaining the on-chip delay and package delay of the target signal to be measured and the target reference signal in the system to be measured, a filter characteristic curve is generated, and the oscilloscope can accurately measure the timing.
The timing measurement accuracy of the target signal to be measured and the target reference signal is improved, so that it is more in line with the actual operation status of the circuit and meets the requirements of establishment time and hold time.
Smart Images

Figure CN118899019A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of semiconductor testing technology, and in particular to a timing measurement method. Background Art
[0002] Dynamic Random Access Memory (DRAM) is a semiconductor memory device commonly used in computers, which is composed of many repeated storage units. When reading and writing data to DRAM, a control chip is required to send and receive control signals.
[0003] However, with the continuous development of semiconductor technology, delay circuits are now added to DRAM and control chips, which can add different delays to the input or output signal and the reference signal of the signal. At the same time, due to the delays in the packaging of DRAM and control chips, the timing relationship between the signal and the reference signal cannot be directly and accurately measured by the oscilloscope due to these delays, resulting in low analysis accuracy.
[0004] The above information disclosed in this background section is only for enhancement of understanding of the background of the present disclosure and therefore it may include information that does not constitute the relevant technology that is already known to one of ordinary skill in the art. Summary of the invention
[0005] The disclosed embodiments provide a method for timing measurement, which can improve the accuracy of the timing between a target signal to be measured and its target reference signal, and improve the accuracy of problem analysis.
[0006] An embodiment of the present disclosure provides a timing measurement method, which is used to measure the timing between a target signal to be tested and a target reference signal of the target signal to be tested on an input buffer of a system to be tested, and the method includes: respectively obtaining on-chip delays of the target signal to be tested and the target reference signal in the system to be tested; respectively obtaining package delays of the target signal to be tested and the target reference signal in the system to be tested; and generating a filter characteristic curve according to the on-chip delay and the package delay to measure the timing between the target signal to be tested and the target reference signal according to the filter characteristic curve.
[0007] In some embodiments, the system under test also includes a memory interface; wherein, respectively obtaining the on-chip delays of the target signal under test and the target reference signal in the system under test comprises: obtaining a training log of the memory interface on the system under test; respectively obtaining the on-chip delays of the target signal under test and the target reference signal from the training log; wherein, when the target signal under test and the target reference signal are respectively connected to a first probe and a second probe of an oscilloscope, the system under test is turned on and the training log of the memory interface is saved.
[0008] In some embodiments, the on-chip delays of the target test signal and the target reference signal are respectively obtained from the training log, including: obtaining a test delay value of the target test signal and a reference delay value of the target reference signal from the training log; and obtaining the on-chip delay according to the test delay value and the reference delay value.
[0009] In some embodiments, the on-chip delay is obtained according to the delay value to be measured and the reference delay value, including: obtaining the width of the target signal to be measured and the number of steps of each width; obtaining the on-chip delay of the target signal to be measured according to the width, the number of steps of the width, and the delay value to be measured; obtaining the on-chip delay of the target reference signal according to the width, the number of steps of the width, and the reference delay value.
[0010] In some embodiments, obtaining the width of the target signal to be tested includes: obtaining an operating rate of the memory interface; and obtaining the width of the target signal to be tested according to the operating rate.
[0011] In some embodiments, a filter characteristic curve is generated according to the on-chip delay and the package delay, including: obtaining an on-chip delay difference between the target signal to be tested and the target reference signal according to the on-chip delay of the target signal to be tested and the on-chip delay of the target reference signal; obtaining an package delay difference between the target signal to be tested and the target reference signal according to the package delay of the target signal to be tested and the package delay of the target reference signal; and obtaining the filter characteristic curve according to the on-chip delay difference and the package delay difference.
[0012] In some embodiments, the amplitude-frequency response of the filter characteristic curve is a preset constant, and the phase difference of the filter characteristic curve is the sum of the on-chip delay difference and the package delay difference.
[0013] In some embodiments, before respectively obtaining the on-chip delay of the target signal to be tested and the target reference signal in the system to be tested, it also includes: judging whether the measurement results obtained by an oscilloscope on the target signal to be tested and the target reference signal meet the preset timing; if so, using the measurement results as the timing between the target signal to be tested and the target reference signal; if not, obtaining the on-chip delay or the package delay of the target signal to be tested and the target reference signal respectively.
[0014] In some embodiments, the target signal to be tested and the target reference signal are used to write data into the dynamic random access memory; or, the target signal to be tested and the target reference signal are used to read data from the dynamic random access memory.
[0015] In some embodiments, the target signal to be tested is DQ, and the target reference signal is DQS; or, the target signal to be tested is CA, and the target reference signal is CLK.
[0016] It can be seen from the above technical solution that the timing measurement method of the embodiment of the present disclosure has at least one of the following advantages and positive effects:
[0017] In the embodiment of the present disclosure, by respectively obtaining the on-chip delay and package delay of the target signal to be tested and the target reference signal in the system to be tested, and then obtaining a filter characteristic curve through the on-chip delay and the package delay, the oscilloscope can accurately measure the timing between the target signal to be tested and the target reference signal according to the filter characteristic curve, so that the timing relationship between the target signal to be tested and the target reference signal is more consistent with the operating conditions of the actual circuit, meets the requirements of setup time and hold time, and improves the accuracy of problem analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features and advantages of the present disclosure will become more apparent by describing in detail example embodiments thereof with reference to the attached drawings.
[0019] Figure 1 A flowchart of a timing measurement method according to some embodiments of the present disclosure;
[0020] Figure 2 A schematic diagram of the timing between a target signal to be tested and a target reference signal measured by an oscilloscope when the on-chip delay and the package delay are not obtained according to some embodiments of the present disclosure;
[0021] Figure 3 A block diagram of a system to be tested according to some embodiments of the present disclosure;
[0022] Figure 4 A schematic diagram of a filter characteristic curve shown in some embodiments of the present disclosure;
[0023] Figure 5 A schematic diagram of the timing between a target signal to be tested and a target reference signal measured by an oscilloscope when obtaining on-chip delay and package delay according to some embodiments of the present disclosure;
[0024] Figure 6 Another flow chart of a timing measurement method according to some embodiments of the present disclosure;
[0025] Figure 7 A block diagram of a measurement system according to some embodiments of the present disclosure;
[0026] Figure 8 is a structural schematic diagram of a computer device shown in some embodiments of the present disclosure;
[0027] Fig. 9 A schematic diagram of a computer-readable storage medium is shown for disclosing some embodiments.
[0028] Description of reference numerals:
[0029] 300, system under test; 301, central processing unit; 3011, first input buffer; 3012, memory interface; 302, dynamic random access memory; 3021, second input buffer; 700, measurement system; 701, oscilloscope; 7011, first probe; 7012, second probe; 702, timing measurement device. DETAILED DESCRIPTION
[0030] The example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in many forms and should be understood as being limited to the embodiments set forth herein; rather, these embodiments are provided so that the present disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their detailed description will be omitted.
[0031] In the following description of different exemplary embodiments of the present disclosure, reference is made to the accompanying drawings, which form a part of the present disclosure and in which different exemplary structures that can implement multiple aspects of the present disclosure are shown by way of example. It should be understood that other specific schemes of components, structures, exemplary devices, systems and steps can be used, and structural and functional modifications can be made without departing from the scope of the present disclosure. Moreover, although the terms "above", "between", "within", etc. may be used in this specification to describe different exemplary features and elements of the present disclosure, these terms are used herein only for convenience, such as according to the direction of the examples in the accompanying drawings. Nothing in this specification should be construed as requiring a specific three-dimensional direction of the structure to fall within the scope of the present disclosure. In addition, the terms "first", "second", etc. in the claims are used only as marks and are not numerical limitations on their objects.
[0032] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0033] In addition, in the description of the present disclosure, “plurality” means at least two, for example, two, three, etc., unless otherwise clearly and specifically defined.
[0034] With the continuous development of semiconductor technology, delay circuits are now added to DRAM and control chips, which can add different delays to the input or output signal and the reference signal of the signal. In addition, since DRAM and control chips are packaged, there are also delays in the package. Due to these delays, the timing relationship between the signal and the reference signal cannot be directly and accurately measured by the oscilloscope, resulting in low analysis accuracy.
[0035] For example, when the signal is a DQ (data) signal, its reference signal is a DQS (Data Strobe, source synchronous clock) signal. When reading data, the timing relationship between DQ and DQS must still meet the basic setup time and hold time. Therefore, the expected waveform timing relationship is that the rising edge and falling edge of DQS are in the middle of the DQ signal eye diagram. When writing data, the expected waveform timing relationship is also that the rising edge and falling edge of DQS are in the middle of the DQ eye diagram.
[0036] Due to the different delays added to the input and output DQ / DQS, plus the package delay, the relative timing relationship of DQ / DQS finally measured on the oscilloscope is not accurate, that is, it does not achieve the expected timing relationship. Figure 2As shown in the figure, when writing data, the rising edge of DQS measured by the oscilloscope is not located in the middle of the DQ eye diagram, but is offset. Figure 2 The setup time margin of the DQ signal relative to the DQS signal is very large and cannot meet the hold time requirement.
[0037] Based on this, Figure 1 As shown, the embodiment of the present disclosure provides a timing measurement method. Figure 1 The method provided in the embodiment can be executed by any electronic device, or by a controller included in the electronic device, and the electronic device can be, for example, ATE (Automatic Test Equipment), but the present disclosure is not limited thereto. The method is used to measure the timing between the target signal to be tested and the target reference signal of the target signal to be tested on the input buffer of the system to be tested 300, and the method can include the following steps S110-S130.
[0038] S110: Obtaining on-chip delays of a target signal under test and a target reference signal in the system under test 300 respectively.
[0039] In some embodiments, the target signal to be tested may be a DQ signal, where DQ is a data signal. The target reference signal of DQ is DQS. DQS is used to distinguish each data transmission cycle, so that the receiving party can accurately receive data. DQ uses DQS as a reference.
[0040] In some other embodiments, the target signal to be tested may be a CA (Command Address) signal, and its target reference signal is a CLK (Clock), where CLK has a fixed period and is independent of operation, and CA uses CLK as a reference.
[0041] like Figure 3 As shown, the system under test 300 may include a control chip, such as a CPU (Central Processing Unit, central processing unit 301) and a storage chip, such as a DRAM (Dynamic Random Access Memory, dynamic random access memory 302). Among them, DRAM may have different categories, such as DDR (Double Data Rate, double rate synchronous dynamic random access memory), such as DDR3, DDR4, DDR5, etc.; LPDDR (Low Power Double Data Rate SDRAM, low power memory), such as LPDDR4, LPDDR5, etc.
[0042] In some embodiments, Figure 3As shown, the system under test 300 includes a central processing unit 301 and a dynamic random access memory 302; wherein, the on-chip delay is the delay within the central processing unit 301 or the dynamic random access memory 302; and the package delay is the delay caused by the package of the central processing unit 301 or the dynamic random access memory 302.
[0043] The on-chip delay can be understood as a delay circuit in the chip, which adds delay to different signals, that is, different signals have delays, that is, the on-chip delay refers to the signal delay caused by the delay circuit in the chip. The on-chip delay can be generated in the control chip or the memory chip of the system under test 300.
[0044] In some embodiments, Figure 3 As shown, the system under test 300 also includes a memory interface 3012. The step of obtaining the on-chip delays of the target signal under test and the target reference signal in the system under test 300 in S110 may include: obtaining a training log of the memory interface 3012 on the system under test 300. The on-chip delays of the target signal under test and the target reference signal are obtained from the training log. Figure 7 As shown, when the target signal to be tested and the target reference signal are connected to the first probe 7011 and the second probe 7012 of the oscilloscope 701 respectively, the system to be tested 300 is turned on and the training log of the memory interface 3012 is saved.
[0045] Specifically, Figure 3 As shown, the memory interface 3012 may be an interface of DRAM, DDR or LPDDR. The memory interface 3012 is provided in a control chip, such as a CPU, to facilitate signal transmission with a memory chip (such as DDR).
[0046] like Figure 7 As shown, the oscilloscope 701 has a first probe 7011 and a second probe 7012 for connecting different signals. The target test signal is connected to the first probe 7011 of the oscilloscope 701, and the target reference signal is connected to the second probe 7012 of the oscilloscope 701. The system to be tested 300 is turned on, and the memory interface 3012 of the system to be tested 300 is trained to obtain a training log, record and save the training log. The on-chip delay of the target signal to be tested and the target reference signal is recorded in the training log. Therefore, through the training log, the on-chip delay of the two signals can be accurately recorded, so that the on-chip delay that cannot be obtained by measurement can be displayed. Then the on-chip delay of the target signal to be tested and the target reference signal are obtained from the training log.
[0047] In some embodiments, the on-chip delays of the target test signal and the target reference signal are obtained from the training log, respectively, including: obtaining a test delay value of the target test signal and a reference delay value of the target reference signal from the training log; and obtaining the on-chip delay according to the test delay value and the reference delay value.
[0048] Taking the target signal to be tested as a DQ signal and the target reference signal as a DQS signal as an example, the on-chip delay value of the DQ signal, i.e., the delay value to be tested, is obtained from the training log, and the on-chip delay value of the DQS signal, i.e., the reference delay value, is obtained. For example, if the delay of DQ is 24 steps and the delay of DQS is 14 steps, then the delay value to be tested of DQ is 24 and the reference delay value of DQS is 14. The on-chip delay can be obtained using the two delay values.
[0049] In some embodiments, an on-chip delay is obtained based on a delay value to be measured and a reference delay value, including: obtaining the width of a target signal to be measured and the number of steps of each width; obtaining the on-chip delay of the target signal to be measured based on the width, the number of steps of the width, and the delay value to be measured; and obtaining the on-chip delay of a target reference signal based on the width, the number of steps of the width, and the reference delay value.
[0050] Specifically, the width of the target signal to be tested may also be referred to as a unit interval (UI for short). The width UI may be obtained by the operating rate of the memory interface 3012. Each UI width includes different step sizes. For example, the width of the DQ signal is 64 steps, that is, the number of width steps is 64. The UI may be 234.4 ps, and the on-chip delay may be obtained by the above data. The on-chip delay may be obtained by the following calculation relationship (1).
[0051] T=D*1 / S*U (1)
[0052] Wherein, in the above formula (1), T represents the on-chip delay; D represents the delay value, that is, the delay value to be measured or the reference delay value; S represents the number of steps of the width of the target signal to be measured; and U represents the width of the target signal to be measured.
[0053] Taking the above values as an example, the on-chip delay of the target signal to be tested is: 24*(1 / 64)*234.4=87.9ps. The on-chip delay of the target reference signal is: 14*(1 / 64)*234.4=51.28ps.
[0054] Of course, it is not just the above set of values. When the control chip is different, the above values can vary. In one embodiment, the delay of DQ is 32 steps, and the delay of DQS is 21 steps. Then the measured delay value of DQ is 32, and the reference delay value of DQS is 21. The width of the DQ signal is 128 steps, and the UI can be 312.5ps. Through calculation, it can be concluded that the on-chip delay of the target signal to be tested is: 32*(1 / 128)*312.5=78.13ps. The on-chip delay of the target reference signal is: 21*(1 / 128)*312.5=51.27ps. The above values are for illustration only, and there can be other values. The calculation formula is the same, so they will not be repeated here.
[0055] In some embodiments, Figure 3 As shown, obtaining the width of the target signal to be tested includes: obtaining the operating rate of the memory interface 3012; and obtaining the width of the target signal to be tested according to the operating rate.
[0056] Specifically, the width of the target signal to be measured can be obtained by calculating the following relationship (2).
[0057] U=1 / R (2)
[0058] In the above formula, U represents the width of the target signal to be tested, and R represents the operating rate of the memory interface 3012.
[0059] Specifically, the operating speeds of different memory interfaces 3012 are different. For example, if the operating speed of the LPDDR4 interface is 4266Mbps, then according to the above calculation relationship, the width of the target signal to be tested can be obtained as 1 / 4266=234.4ps. For another example, if the operating speed of the DDR4 interface is 3200Mbps, then the width of the target signal to be tested can be obtained as 1 / 3200=312.5ps. Although different interfaces have different operating speeds, the algorithms for obtaining the width of the target signal to be tested are the same. The two widths obtained are the widths in the corresponding embodiments above, so through the above calculation, the on-chip delay can be obtained.
[0060] S120: Obtaining packaging delays of the target signal under test and the target reference signal on the system under test 300 respectively.
[0061] Specifically, the package delay of the target signal to be tested and the target reference signal can be directly queried from a database, for example, the database stores a chip data sheet. Through the query, it can be known that for the LPDDR4 of the above embodiment, the package delay of the target signal to be tested is 22ps, and the package delay of the target reference signal is 25.67ps.
[0062] S130: Generate a filter characteristic curve according to the on-chip delay and the package delay, so as to measure the timing between the target signal to be tested and the target reference signal according to the filter characteristic curve.
[0063] In some embodiments, generating a filter characteristic curve according to the on-chip delay and the package delay may include: obtaining the on-chip delay difference between the target signal to be tested and the target reference signal according to the on-chip delay of the target signal to be tested and the on-chip delay of the target reference signal; obtaining the package delay difference between the target signal to be tested and the target reference signal according to the package delay of the target signal to be tested and the package delay of the target reference signal; obtaining the filter characteristic curve according to the on-chip delay difference and the package delay difference. Figure 4 , shows the filter characteristic curve.
[0064] Specifically, still taking the numerical values in the above example, the on-chip delay of the target signal to be tested is 87.9 ps, and the on-chip delay of the target reference signal is 51.28 ps. Then, the on-chip delay difference between the target signal to be tested and the target reference signal is 87.9 ps-51.28 ps=36.62 ps.
[0065] The package delay of the target signal to be tested is 22 ps, the package delay of the target reference signal is 25.67 ps, and the package delay difference between the target signal to be tested and the target reference signal is 22-25.67=-3.67 ps.
[0066] In some embodiments, the sum of the on-chip delay difference and the package delay difference is obtained, and the sum is used as the phase difference of the filter characteristic curve, that is, 36.62ps-3.67ps=32.96ps. Figure 4 As shown, the amplitude-frequency response of the generated filter characteristic curve is a preset constant, for example, the preset constant can be 1, that is, Figure 4 The phase difference of the filter characteristic curve is the sum of the on-chip delay difference and the package delay difference, 32.96ps. Figure 4 In the figure, the broken line at the bottom represents the phase difference of the filter characteristic curve.
[0067] By obtaining the filter characteristic curve, such as Figure 7 As shown, by adding the characteristic curve to the test probe of the target signal to be tested in the software of the oscilloscope 701, the timing of the target signal to be tested and the target reference signal can be directly shown in the oscilloscope 701, as shown in FIG. Figure 5As shown in the figure, the rising edge and falling edge of DQS are located in the middle of the eye diagram of the DQ signal, so that the timing relationship between the target signal to be tested and the target reference signal can meet the requirements of the setup time and the hold time. In other words, when writing data, the rising edge and falling edge of the DQS signal are located in the middle of the eye diagram of the DQ signal, so that the timing relationship between the target signal to be tested and the target reference signal is more consistent with the actual circuit operation status, thereby improving the accuracy of problem analysis.
[0068] In some embodiments, the filter characteristic curve may be formed by simulation tools such as HSpice, LTSpice, and Matlab, and those skilled in the art may select one based on actual conditions, and no special limitation is made here.
[0069] In some embodiments, Figure 6 As shown, before obtaining the on-chip delay of the target signal under test and the target reference signal in the system under test 300, the following steps S610 to S630 are also included.
[0070] S610: after obtaining the measurement results of the target signal to be tested and the target reference signal by the oscilloscope 701, determine whether the measurement results meet the preset timing; if so, continue to execute S620; if not, continue to execute S630.
[0071] S620: Using the measurement result as the timing between the target signal to be measured and the target reference signal.
[0072] 630 : Execute to obtain the on-chip delay of the target signal under test and the target reference signal in the system under test 300 respectively, or obtain the package delay of the target signal under test and the target reference signal on the system under test 300 respectively.
[0073] That is, before obtaining the test delay value of the target test signal and the reference delay value of the target reference signal from the training log, the target test signal and the target reference signal can be connected to the oscilloscope 701, and the timing of the target test signal and the target reference signal can be measured using the oscilloscope 701. If the measurement result shows that the preset timing is met, it means that the timing relationship between the target test signal and the target reference signal meets the requirements of the setup time and the hold time, and there is no need to obtain the on-chip delay from the training log. If the measurement result shows that the preset timing is not met, such as Figure 2 As shown, the rising edge of DQS measured by oscilloscope 701 is not located in the middle of the DQ eye diagram, but is offset. The setup time margin of the DQ signal relative to the DQS signal in the figure is very large and cannot meet the hold time requirement. At this time, it is necessary to obtain the on-chip delay from the training log, and then continue to execute the following steps until the filter characteristic curve is obtained.
[0074] The preset timing can be understood as follows: taking DQ and DQS when reading data as an example, the preset timing can be understood as the rising edge and falling edge of DQS are located in the middle of the eye diagram of DQ, and taking DQ and DQS when writing data as an example, the preset timing can be understood as the rising edge and falling edge of DQS are also located in the middle of the eye diagram of DQ. That is, under the preset timing, the timing relationship between the target test signal and the target reference signal meets the requirements of setup time and hold time.
[0075] After obtaining the filter characteristic curve, add the filter characteristic curve to the test probe of the target test signal of the oscilloscope 701 software to measure the timing between the target test signal and the target reference signal. Figure 5 As shown in the figure, by adding the filter characteristic curve, it can be seen that when writing data, the rising edge and falling edge of the DQS signal are located in the middle of the eye diagram of the DQ signal, that is, the timing of the DQ and DQS signals meets the requirements of the setup time and hold time. Therefore, the on-chip delay and package delay can be characterized by external signals, so that the timing relationship between the target signal to be tested and the target reference signal is more consistent with the actual circuit operation status, and the accuracy of problem analysis is improved.
[0076] In some embodiments, Figure 3 As shown, the input buffer is located in the central processing unit 301 (CPU) or the dynamic random access memory 302 (DRAM). That is, the position of the input buffer is set according to the signal transmission and reception of the read data and the write data. When the input buffer needs to be set in both the CPU and the DRAM, the number of the input buffers is at least two, namely the first input buffer 3011 and the second input buffer. In one embodiment, the first input buffer 3011 is set in the CPU, and the second input buffer is set in the DRAM.
[0077] In some embodiments, the target signal to be tested and the target reference signal are used to write data into the dynamic random access memory 302 ; or, the target signal to be tested and the target reference signal are used to read data from the dynamic random access memory 302 .
[0078] Regardless of reading data or writing data, the embodiments of the present disclosure can improve the accuracy of analyzing problems.
[0079] In summary, in the embodiments of the present disclosure, the on-chip delay and package delay of the target signal to be tested and the target reference signal in the system to be tested 300 can be accurately obtained respectively, that is, the on-chip delay and package delay can be characterized by external signals, and the filter characteristic curve is obtained through the on-chip delay and package delay. According to the filter characteristic curve, the oscilloscope 701 can accurately measure the timing between the target signal to be tested and the target reference signal, so that the timing relationship between the target signal to be tested and the target reference signal is more consistent with the operating conditions of the actual circuit, meets the requirements of setup time and hold time, and improves the accuracy of problem analysis.
[0080] like Figure 7 As shown, the embodiment of the present disclosure further provides a measurement system 700 , including an oscilloscope 701 and a timing measurement device 702 .
[0081] The oscilloscope 701 includes a first probe 7011 and a second probe 7012 . The first probe 7011 is used to connect to a target signal under test on an input buffer of the system under test 300 . The second probe 7012 is used to connect to a target reference signal of the target signal under test on the input buffer.
[0082] The timing measurement device 702 is used to obtain the on-chip delay of the target signal to be tested and the target reference signal in the system to be tested 300, respectively, and to obtain the package delay of the target signal to be tested and the target reference signal on the system to be tested 300, respectively, and to generate a filter characteristic curve according to the on-chip delay and the package delay, and to add the filter characteristic curve to the first probe 7011.
[0083] The oscilloscope 701 is also used to measure the timing between the target signal to be tested and the target reference signal through the first probe 7011 and the second probe 7012 .
[0084] In some embodiments, Figure 3 and Figure 7 As shown, the timing measurement device 702 is also used to obtain the training log of the memory interface 3012 on the system under test 300; and obtain the on-chip delay of the target signal under test and the target reference signal from the training log. When the target signal under test and the target reference signal are connected to the first probe 7011 and the second probe 7012 of the oscilloscope 701 respectively, the system under test 300 is turned on and the training log of the memory interface 3012 is saved.
[0085] In some embodiments, the timing measurement device 702 is further used to obtain a test delay value of a target test signal and a reference delay value of a target reference signal from a training log; and obtain an intra-chip delay according to the test delay value and the reference delay value.
[0086] In some embodiments, the timing measurement device 702 is also used to obtain the width of the target signal to be tested and the number of steps of each width; obtain the on-chip delay of the target signal to be tested based on the width, the number of steps of the width and the delay value to be tested; obtain the on-chip delay of the target reference signal based on the width, the number of steps of the width, and the reference delay value.
[0087] In some embodiments, Figure 3 and Figure 7 As shown, the timing measurement device 702 is also used to obtain the operating rate of the memory interface 3012; and obtain the width of the target signal to be measured according to the operating rate.
[0088] In some embodiments, the timing measurement device 702 is also used to obtain an on-chip delay difference between the target signal to be tested and the target reference signal based on the on-chip delay of the target signal to be tested and the on-chip delay of the target reference signal; to obtain an encapsulation delay difference between the target signal to be tested and the target reference signal based on the encapsulation delay of the target signal to be tested and the encapsulation delay of the target reference signal; and to obtain a filter characteristic curve based on the on-chip delay difference and the encapsulation delay difference.
[0089] In some embodiments, the oscilloscope 701 is also used to measure the target signal to be tested and the target reference signal and obtain the measurement result. The timing measurement device 702 is also used to determine whether the measurement result meets the preset timing. If so, the measurement result is used as the timing between the target signal to be tested and the target reference signal. If not, the on-chip delay of the target signal to be tested and the target reference signal in the system to be tested 300 is obtained respectively.
[0090] The present disclosure also provides a computer device. Figure 8 As shown, the computer device in the embodiment of the present disclosure may include one or more processors 801 and a memory 802. The processor 801 and the memory 802, as shown in FIG. Figure 8 As shown, the processor 801 and the memory 802 are connected via a bus 803. In an exemplary embodiment, the computer device may further include an input / output interface 804, which is connected to the processor 801 and the memory 802 via the bus 803. The memory 802 is used to store a computer program, which includes program instructions. The input / output interface 804 is used to receive and output data, such as for data exchange between a host machine and a computer device, or for data exchange between various virtual machines in a host machine; the processor 801 is used to execute the program instructions stored in the memory 802.
[0091] Among them, the processor 801 can perform the following operations: respectively obtain the on-chip delay of the target signal to be tested and the target reference signal in the system to be tested 300; respectively obtain the package delay of the target signal to be tested and the target reference signal on the system to be tested 300; generate a filter characteristic curve according to the on-chip delay and the package delay, so as to measure the timing between the target signal to be tested and the target reference signal according to the filter characteristic curve.
[0092] In some feasible implementations, the processor 801 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0093] The memory 802 may include a read-only memory and a random access memory, and provide instructions and data to the processor 801 and the input / output interface 804. A portion of the memory 802 may also include a non-volatile random access memory. For example, the memory 802 may also store information about the device type.
[0094] In a specific implementation, the computer device can execute the implementation methods provided by the various steps in any of the above method embodiments through its built-in functional modules. For details, please refer to the implementation methods provided by the various steps in the figure shown in the above method embodiments, which will not be repeated here.
[0095] The embodiment of the present disclosure provides a computer device, including a processor 801, an input / output interface 804, and a memory 802. The processor 801 obtains a computer program in the memory 802 to execute each step of the method shown in any of the above embodiments.
[0096] The present disclosure also provides a computer-readable storage medium 900. Fig. 9 As shown, the computer-readable storage medium 900 stores a computer program, which is suitable for being loaded by the processor 801 and executing the timing measurement method provided by each step in any of the above embodiments. For details, please refer to the implementation method provided by each step in any of the above embodiments, which will not be repeated here.
[0097] In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium 900 embodiment involved in the present disclosure, please refer to the description of the method embodiment of the present disclosure. As an example, the computer program can be deployed to execute on one computer device, or on multiple computer devices located in one location, or on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0098] The computer-readable storage medium 900 can be the measurement system 700 provided by any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium 900 can also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium 900 can also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium 900 is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium 900 can also be used to temporarily store data that has been output or is to be output.
[0099] The embodiment of the present disclosure also provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium 900. The processor of the computer device reads the computer instruction from the computer-readable storage medium 900, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional manners in any of the above embodiments.
[0100] In summary, the measurement system 700, computer device, and computer-readable storage medium of the embodiment of the present disclosure can accurately obtain the on-chip delay and package delay of the target signal to be tested and the target reference signal in the system to be tested 300, that is, the on-chip delay and package delay can be characterized by external signals, and a filter characteristic curve is obtained through the on-chip delay and package delay. According to the filter characteristic curve, the oscilloscope 701 can accurately measure the timing between the target signal to be tested and the target reference signal, so that the timing relationship between the target signal to be tested and the target reference signal is more consistent with the operating conditions of the actual circuit, meets the requirements of setup time and hold time, and improves the accuracy of problem analysis.
[0101] It should be understood that the present disclosure does not limit its application to the detailed structure and arrangement of the components proposed in this specification. The present disclosure can have other embodiments and can be implemented and executed in a variety of ways. The aforementioned variations and modifications fall within the scope of the present disclosure. It should be understood that the present disclosure disclosed and defined in this specification extends to all alternative combinations of two or more individual features mentioned or apparent in the text and / or the drawings. All these different combinations constitute multiple alternative aspects of the present disclosure. The embodiments of this specification illustrate the best mode known for implementing the present disclosure and will enable those skilled in the art to utilize the present disclosure.
Claims
1. A timing measurement method, characterized in that: The method is used to measure the timing between a target signal to be tested on an input buffer of a system to be tested and a target reference signal of the target signal to be tested, and the method comprises: Respectively obtaining on-chip delays of the target signal to be tested and the target reference signal in the system to be tested; Respectively obtaining the package delays of the target signal to be tested and the target reference signal on the system to be tested; A filter characteristic curve is generated according to the on-chip delay and the package delay, so as to measure the timing between the target signal to be measured and the target reference signal according to the filter characteristic curve.
2. The method according to claim 1, characterized in that The system under test also includes a memory interface; wherein obtaining the on-chip delays of the target signal under test and the target reference signal in the system under test respectively includes: Obtaining a training log of the memory interface on the system under test; Obtaining on-chip delays of the target signal to be tested and the target reference signal respectively from the training log; When the target signal to be tested and the target reference signal are respectively connected to a first probe and a second probe of an oscilloscope, the system to be tested is turned on and a training log of the memory interface is saved.
3. The method according to claim 2, characterized in that Obtaining the on-chip delays of the target signal to be tested and the target reference signal from the training log respectively, including: Obtaining a delay value of the target signal to be tested and a reference delay value of the target reference signal from the training log; The on-chip delay is obtained according to the delay value to be measured and the reference delay value.
4. The method according to claim 3, characterized in that Obtaining the on-chip delay according to the delay value to be measured and the reference delay value, comprising: Obtaining the width of the target signal to be tested and the number of steps of each width; Obtain the on-chip delay of the target signal to be tested according to the width, the number of steps of the width, and the delay value to be tested; An intra-chip delay of the target reference signal is obtained according to the width, the number of steps of the width, and the reference delay value.
5. The method according to claim 4, characterized in that Obtaining the width of the target signal to be tested includes: Obtaining an operating rate of the memory interface; According to the operating rate, the width of the target signal to be tested is obtained.
6. The method according to any one of claims 1 to 5, characterized in that Generating a filter characteristic curve according to the on-chip delay and the package delay, comprising: Obtaining an intra-chip delay difference between the target signal to be tested and the target reference signal according to the intra-chip delay of the target signal to be tested and the intra-chip delay of the target reference signal; Obtaining a package delay difference between the target signal to be tested and the target reference signal according to the package delay of the target signal to be tested and the package delay of the target reference signal; The filter characteristic curve is obtained according to the on-chip delay difference and the package delay difference.
7. The method according to claim 6, characterized in that The amplitude-frequency response of the filter characteristic curve is a preset constant, and the phase difference of the filter characteristic curve is the sum of the on-chip delay difference and the package delay difference.
8. The method according to any one of claims 1 to 5, characterized in that Before respectively obtaining the target signal to be tested and the target reference signal in the system to be tested with on-chip delay, the method further includes: According to the measurement results obtained by the oscilloscope on the target signal to be tested and the target reference signal, it is determined whether the measurement results meet the preset timing. If so, the measurement results are used as the timing between the target signal to be tested and the target reference signal. If not, the on-chip delay or the package delay of the target signal to be tested and the target reference signal are respectively obtained.
9. The method according to any one of claims 1 to 5, characterized in that The target signal to be tested and the target reference signal are used to write data into the dynamic random access memory; or, The target signal to be tested and the target reference signal are used to read data from the dynamic random access memory.
10. The method according to any one of claims 1 to 5, characterized in that The target signal to be tested is a data signal DQ, and the target reference signal is a source synchronous clock signal DQS; or, The target signal to be tested is a command address signal CA, and the target reference signal is a clock signal CLK.
Citation Information
Patent Citations
DDR bit delay alignment method and device, and storage medium
CN111128269A
Data training method of memory, computer device and computer readable storage medium
CN113178223A
Internal signal replication device and method
US20050253631A1
Electronic device including memory device and training method
US20210241815A1
On-chip jitter measurement for clock circuits
US9893878B1
