WO2021238838A1 - Method and circuit for measuring retention time of time sequence unit - Google Patents

Method and circuit for measuring retention time of time sequence unit Download PDF

Info

Publication number
WO2021238838A1
WO2021238838A1 PCT/CN2021/095441 CN2021095441W WO2021238838A1 WO 2021238838 A1 WO2021238838 A1 WO 2021238838A1 CN 2021095441 W CN2021095441 W CN 2021095441W WO 2021238838 A1 WO2021238838 A1 WO 2021238838A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
clock
clock signal
period
input terminal
Prior art date
Application number
PCT/CN2021/095441
Other languages
French (fr)
Chinese (zh)
Inventor
彭敏强
叶升
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021238838A1 publication Critical patent/WO2021238838A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31702Testing digital circuits including elements other than semiconductor transistors, e.g. biochips, nanofabrics, mems, chips with magnetic elements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31725Timing aspects, e.g. clock distribution, skew, propagation delay
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Definitions

  • This application relates to the technical field of digital integrated circuits, and in particular to a method and circuit for measuring the retention time of a sequential unit.
  • the hold time of the sequential unit is one of the important factors that affect the stable transmission of signal data.
  • the accurate measurement of the retention time of the timing cell directly affects the performance, production and manufacturing of the chip.
  • the clock phase fine adjustment method or adopt multiple buffers as the minimum measurement scale equivalent measurement hold time.
  • these methods have many shortcomings, such as limited by the adjustable range of the clock phase and the delay of the buffer, the measured clock path and data path are different, and the performance of this difference is more obvious under different test voltages. This will cause a very large measurement error in the hold time of the sequential unit.
  • the embodiment of the application provides a circuit for measuring the retention time of a sequential unit, which includes a clock signal generation module, a first selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, A data signal transmission module, a clock signal transmission module, a timing unit to be tested, and a control module.
  • the clock signal generation module is respectively connected to the first selection module, the delay detection module and the control module; the delay detection module Are respectively connected to the first selection module, the second selection module, and the control module; the first selection module is respectively connected to the control module, the first clock phase controller, and the second clock phase
  • the controller is connected; the second selection module is respectively connected to the control module, the data signal transmission module and the clock signal transmission module; the first clock phase controller is connected to the control module and the data signal respectively
  • the signal transmission module is connected; the second clock phase controller is connected to the control module and the clock signal transmission module respectively; the data signal transmission module is connected to the timing unit to be tested and the control module respectively;
  • the clock signal transmission module is respectively connected to the timing unit to be tested and the control module; and the timing unit to be tested is connected to the control module, and the first clock phase controller is used to output a first pulse signal and is
  • the data signal transmission module provides a clock signal
  • the second clock phase controller is used to output a second pulse signal and provide a clock signal for the clock
  • the embodiment of the present application also provides a method for measuring the retention time of a sequential unit.
  • the measurement method is suitable for the circuit for measuring the retention time of a sequential unit described in the embodiment of the present application.
  • the measurement circuit includes a clock signal generation module and a second A selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, a sequence unit to be tested and a control module, the control module controls
  • the first selection module and the second selection module respectively form a first test path, a second test path, and a third test path
  • the first test path includes the clock signal generation module and the first clock phase Controller, the second clock phase controller, the data signal transmission module, the clock signal transmission module, the sequence unit to be tested, and the control module
  • the second test path includes the clock signal generation Module, the delay detection module, the first clock phase controller, the data signal transmission module, and the control module
  • the third test path includes the clock signal generation module,
  • the critical period of the clock signal when the delay detection module can correctly receive the data signal, and the third period value is when the delay detection module can correctly receive the data signal under the third test path
  • the critical period of the clock signal ; and determining the retention time of the sequential unit according to the first period value, the second period value, and the third period value.
  • FIG. 1 is a schematic diagram of the retention time of a sequential unit in the related art
  • FIG. 2 is a schematic structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application
  • FIG. 3 is a timing diagram of a holding time measurement signal of a timing unit according to an embodiment of the present application
  • FIG. 4 is another schematic diagram of the structure of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application
  • Fig. 5 is a flowchart of a method for measuring the retention time of a sequential unit according to an embodiment of the present application
  • Fig. 6 is a flowchart of a method for determining the period value of a clock signal according to an embodiment of the present application.
  • Fig. 7 is a schematic diagram of measuring the period value of a clock signal according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of the retention time of a sequential unit in the related art.
  • the hold time (th) of a sequential unit refers to the time during which the data signal needs to remain stable after the rising edge of the clock signal of the sequential unit arrives. If the hold time th is not enough, the data will not be effectively read and converted to output.
  • the hold time th refers to the minimum stable time.
  • the retention time of the sequential unit is obtained by simulation through the spice tool when the unit library is designed, but this is only a theoretical calculation value. If the theoretical calculation value is larger than the actual value in the chip, give The back-end timing closure adds unnecessary difficulties; and if the theoretical calculation value is too small, it may cause timing problems after the chip is produced, and the chip cannot reach the actual operating frequency. Therefore, after completing the timing cell library design, keep the time It is very important to maintain consistency between the theoretical value and the actual value. In order to ensure that the actual value of the hold time is consistent with the theoretical value, it is usually necessary to measure and verify the hold time.
  • a method for measuring the hold time based on the fine adjustment of the clock phase is proposed. For example, through the fine adjustment of the clock phase, two accurately adjusted clocks with phase deviation are used as clocks. The data is sent to the sequence unit to be tested to identify the hold time sequence violation (hold violation) to determine the hold time of the sequence unit.
  • the accuracy of this measurement is limited by the minimum step length of the clock phase adjustable, and the clock has differences in different transmission paths, and the performance of this difference is different under different test voltages, so the error of the measurement results is very large. Big.
  • the measurement of the hold time of the sequential unit has nothing to do with the period or frequency of the clock signal.
  • this application proposes a measuring circuit and a measuring method for the retention time of a sequential unit.
  • the control module controls the first clock phase controller to output the first pulse signal and provides the clock signal for the data signal transmission module to control the second
  • the clock phase controller outputs the second pulse signal and provides the clock signal for the clock signal transmission module, so that the measurement of the retention time of the sequential unit is correlated with the period or frequency of the clock signal; then the first selection module and the second selection are controlled by the control module
  • the modules respectively form the first test path, the second test path and the third test path, and then respectively determine the critical period of the clock signal when the sequence unit to be tested under the first test path can correctly receive the data signal (denoted as the first period) Value), the critical period of the clock signal when the delay detection module can correctly receive the data signal under the second test path (denoted as the second period value), and the delay detection module can correctly receive the data signal under the third test path
  • the critical period of the clock signal at time (denoted as the third period value)
  • the first clock phase controller and the second clock phase controller make the hold time timing violation test under the first test path correlate with the cycle or frequency of the clock signal (that is, related to the first cycle value), so that Makes the determination of the retention time of the sequence unit only related to the first period value, the second period value and the third period value, and is not limited by the adjustment range of the clock phase and the delay of the buffer, and overcomes the difference in the test The problem of large measurement errors caused by the difference in voltage, thereby improving the accuracy of the measurement.
  • Fig. 2 is a schematic structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application.
  • the test circuit includes a clock signal generation module 110, a first selection module 120, a second selection module 130, a delay detection module 140, a first clock phase controller 10, a second clock phase controller 20, and a data signal transmission module 150.
  • the clock signal generating module 110 is respectively connected with the first selection module 120, the delay detection module 140 and the control module 180.
  • the delay detection module 140 is respectively connected with the first selection module 120, the second selection module 130 and the control module 180.
  • the first selection module 120 is connected to the control module 180, the first clock phase controller 10, and the second clock phase controller 20, respectively.
  • the second selection module 130 is respectively connected with the control module 180, the data signal transmission module 150 and the clock signal transmission module 160.
  • the first clock phase controller 10 is connected to the control module 180 and the data signal transmission module 150 respectively.
  • the second clock phase controller 20 is connected to the control module 180 and the clock signal transmission module 160 respectively.
  • the data signal transmission module 150 is respectively connected with the sequence unit 170 to be tested and the control module 180.
  • the clock signal transmission module 160 is respectively connected with the timing unit 170 and the control module 180 to be tested.
  • the timing unit 170 to be tested is connected to the control module 180.
  • the first clock phase controller 10 is used to output a first pulse signal and provide a clock signal for the data signal transmission module 150.
  • the second clock phase controller 20 is used to output a second pulse signal and provide a clock signal for the clock signal transmission module 160.
  • the control module 180 is used to control the first selection module 120 and the second selection module 130 to form a first test path, a second test path, and a third test path, respectively, so as to be based on the first test path, the second test path, and the third test path. Determine the hold time of the sequential unit.
  • the first test path includes a clock signal generation module 110, a first clock phase controller 10, a second clock phase controller 20, a data signal transmission module 150, a clock signal transmission module 160, a timing unit 170 to be tested, and a control module 180.
  • the second test path includes a clock signal generation module 110, a delay detection module 140, a first clock phase controller 10, a data signal transmission module 150, and a control module 180.
  • the third test path consists of a clock signal generation module 110, a delay detection module 140, a second clock phase controller 20, a clock signal transmission module 160, and a control module 180.
  • FIG. 3 is a timing diagram of a holding time measurement signal of a timing unit according to an embodiment of the present application.
  • the clock signal sent by the clock signal generation module 110 may be a pulse signal with two rising edges (as shown in the p1 curve in FIG. 3), which have rising edges at T0 and T2, respectively, and at T1 and T3, respectively. Has a falling edge.
  • the pulse signal with two rising edges is input to the first clock phase controller 10 and the second clock phase controller 20 respectively.
  • the signal output by the first clock phase controller 10 is the first pulse signal whose first rising edge is cut off, and only the second rising edge can pass (p2 curve in Fig. 3).
  • the first pulse signal is at time T2 There is a rising edge; the signal output by the second clock phase controller 20 is the second rising edge that is truncated, and only the second pulse signal that can pass the first rising edge (as shown in the p3 curve in Figure 3), the second pulse The signal has a rising edge at T0.
  • curve p4 is a timing diagram of the data signal output at the output terminal of the second sending register 151 (see FIG. 4)
  • curve p5 is a timing diagram of the signal output at the output terminal of the timing unit 170 under test.
  • the first pulse signal may be a clock signal provided to the data signal transmission module 150
  • the second pulse signal may be a clock signal provided to the clock signal transmission module 160.
  • the first selection module 120 is used to control one of the clock signal generation module 110 and the delay detection module 140 to be connected to the first clock phase controller 10 and the second clock phase controller 20, respectively.
  • the second selection module 130 is used to control one of the data signal transmission module 150 and the clock signal transmission module 160 to be connected to the delay detection module 140.
  • Time critical point test mode that is, the formation includes a clock signal generation module 110, a first clock phase controller 10, a second clock phase controller 20, a data signal transmission module 150, a clock signal transmission module 160, and a sequence unit 170 to be tested And the first test path of the control module 180.
  • the control module 180 controls the first selection module 120 to control the delay detection module 140 to be connected to the first clock phase controller 10 and the second clock phase controller 20 respectively, and controls the second selection module 130 to control data signal transmission
  • the test circuit enters the delay comparison mode of the clock signal transmission path and the data signal transmission path.
  • the data signal transmission path includes the clock signal generation module 110 and the delay detection module.
  • the second test path of the detection module 140, the first clock phase controller 10, the data signal transmission module 150, and the control module 180, and the clock signal transmission path includes the clock signal generation module 110, the delay detection module 140, and the second clock phase control
  • Fig. 4 is another structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application.
  • the clock signal generation module 110 includes a clock frequency modulation unit 111 and a clock pulse control unit 112.
  • the clock frequency modulation unit 111 is connected to the clock pulse control unit 112, and the clock pulse control unit 112 is respectively connected to the delay detection module 140 (shown as the first sending register 141 and the receiving register 142 in FIG. 4) and the first selection module 120.
  • the input terminal A1 is connected, and the control module 180 is connected to the clock frequency modulation unit 111 and the clock pulse control unit 112 respectively.
  • the clock frequency modulation unit 111 may be a phase locked loop (PLL), which is used as a clock source.
  • the clock frequency has high precision, high stability, low jitter, and can be finely adjusted.
  • the clock pulse control unit 112 may be a clock generation circuit (on-chip-clock, OCC) for outputting a clock pulse signal.
  • the delay detection module 140 includes a first launch register (launch register) 141 and a receiving register (capture register) 142.
  • the first input terminal of the first sending register 141 is connected to the clock signal generating module 110, the second input terminal of the first sending register 141 is connected to the external data signal data1, and the output terminal of the first sending register 141 is connected to the first selection module 120
  • the second input terminal A2 is connected.
  • the first input terminal of the receiving register 142 is connected to the clock signal generating module 110, the second input terminal of the receiving register 142 is connected to the output terminal of the second selection module 130, and the output terminal of the receiving register 142 is connected to the control module 180.
  • the test circuit is in the second test path and the third test path
  • the first sending register 141 is used as the starting point of data signal transmission
  • the receiving register 142 is used as the end point of data signal transmission.
  • the control module 180 controls the second input terminal A2 of the first selection module 120 to be turned on, that is, the output terminal of the first sending register 141 of the delay detection module 140 is controlled to phase with the first clock respectively.
  • the controller 10 and the second clock phase controller 20 are connected, and the control module 180 also controls the second input terminal B2 of the second selection module 130 to be connected to the receiving register 142 of the delay detection module 140, that is, the clock signal generation module 110 ,
  • the second test path composed of the first sending register 141, the first clock phase controller 10, the data signal transmission module 150 (shown as the second sending register 151 in FIG. 4), the receiving register 142 and the control module 180.
  • the clock signal output by the clock signal generation module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141.
  • the signal data1 is output by the first sending register 141 and transmitted to the receiving register 142 via the data signal transmission module 150.
  • the control module 180 controls the second input terminal A2 of the first selection module 120 to be turned on, that is, the output terminal of the first sending register 141 of the delay detection module 140 is controlled to phase with the first clock respectively.
  • the controller 10 and the second clock phase controller 20 are connected, and the control module 180 also controls the first input B1 of the second selection module 130 to be connected to the receiving register 142 of the delay detection module 140, that is, the clock signal generation module 110
  • the third test path is composed of the first sending register 141, the second clock phase controller 20, the clock signal transmission module 160 (shown as the first buffer module b1 in FIG. 4), the receiving register 142 and the control module 180.
  • the clock signal output by the clock signal generation module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141.
  • the signal data1 is output by the first sending register 141, and transmitted to the receiving register 142 via the clock signal transmission module 160.
  • the data signal transmission module 150 includes a second sending register 151.
  • the first input terminal of the second sending register 151 is connected to the first clock phase controller 10, the second input terminal of the second sending register 151 is connected to the external data signal data1, and the output terminal of the second sending register 151 is connected to the second selection module respectively.
  • the second input terminal B2 of 130 is connected to the second input terminal of the sequence unit 170 to be tested.
  • the external data signal data1 input at the second input terminal of the second sending register 151 is used to provide a data signal during the first test path test.
  • the control module 180 controls the first input terminal A1 of the first selection module 120 to be turned on, that is, the output terminal of the signal generation module 110 is connected to the first clock phase controller 10 and the second clock phase respectively.
  • the controller 20 is turned on to form a clock signal generation module 110, a first clock phase controller 10, a data signal transmission module 150, a second clock phase controller 20, a clock signal transmission module 160, a timing unit under test 170, and a control module
  • the first test path composed of 180.
  • the first pulse signal output by the first clock phase controller 10 is input to the first input of the second sending register 151, and the first pulse signal is provided during the first test path test.
  • the external data signal data1 is input to the second input terminal of the second transmission register 151, and the external data signal data1 is output by the second transmission register 151 and then transmitted to the timing unit 170 to be tested.
  • the reset terminal of the second sending register 151, the reset terminal of the first sending register 141, the reset terminal of the receiving register 142, and the reset terminal of the sequence unit 170 to be tested are all connected to the control module 180.
  • the reset and clear functions of the second sending register 151, the first sending register 141, the receiving register 142, and the sequence unit 170 to be tested are controlled.
  • the clock signal transmission module 160 includes at least one first buffer module b1, the input end of the first buffer module b1 is connected to the second clock phase controller 20, and the output end of the first buffer module b1 is connected to the second select
  • the first input terminal B1 of the module 130 is connected to the first input terminal of the sequence unit 170 to be tested.
  • the first buffer module b1 forms a clock signal transmission path, and the first buffer module b1 is used to adjust the delay time of the clock signal transmission module 160.
  • the data signal transmission module 150 may also include a first buffer module b1, that is, a data signal transmission path may be formed by the second sending register 151 and the first buffer module b1, and the first buffer module b1 of the data signal transmission path
  • the number of the first buffer module b1 of the clock signal transmission path can also include more than one, and the specific number can be set according to actual test requirements, which is not specifically limited in this application.
  • the control module 180 controls the first input terminal A1 of the first selection module 120 to be closed and the second input terminal A2 is disconnected, the first input terminal B1 and the second input terminal B2 of the second selection module 130 are both disconnected.
  • the first test path is formed; when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 is opened and the first input terminal A2 is closed.
  • a second test path is formed; when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 When closed and the second input terminal B2 is open, a third test path is formed.
  • the control module 180 controls the first input terminal A1 of the first selection module 120 to be closed and the second input terminal A2 is opened, the first input terminal B1 and the second input terminal B2 of the second selection module 130 are both disconnected.
  • the delay detection module 140 is disconnected from the first clock phase controller 10 and the second clock phase controller 20, and the output terminal of the signal generation module 110 is connected to the first clock phase controller 10 and the second clock phase controller 10 and the second clock phase controller respectively.
  • the controller 20 is turned on to form a clock signal generation module 110, a first clock phase controller 10, a data signal transmission module 150 (including a data signal transmission path formed by the second sending register 151), and a second clock phase controller 20 ,
  • the first test path composed of the clock signal transmission module 160 (including the clock signal transmission path formed by the first buffer module b1), the sequence unit 170 to be tested and the control module 180.
  • the data signal transmission path has a fixed delay, and the delay value is denoted as T data
  • the clock signal transmission path also has a fixed delay, and the delay value is denoted as T clk .
  • the signal generation module 110 When testing under the first test path, the signal generation module 110 outputs a pulse signal with two rising edges, and the pulse signal is input to the first clock phase controller 10 and the second clock phase controller 20 respectively.
  • the first pulse signal is output through the first clock phase controller 10, and the second pulse signal is output through the second clock phase controller 20.
  • the first pulse signal is used as the clock signal of the second sending register 151, and the first pulse signal input to the first input terminal of the second sending register 151 is shown in the p2 curve in FIG. 3.
  • the second pulse signal is output to the first input terminal (ie, the clock terminal) of the timing unit 170 to be tested through the first buffer module b1, and the second pulse signal input to the first input terminal of the timing unit 170 to be tested is shown in the curve in Fig.
  • the first pulse signal is input to the first input terminal of the second sending register 151
  • the external data signal data1 is input to the second input terminal of the second sending register 151 (as shown in the curve p4 in Fig. 3)
  • the clock signal generation module 110 The frequency of the clock signal can be adjusted. Generally, when the frequency of the clock signal is relatively slow, the external data signal data1 can be obtained by the timing unit 170 to be tested after being output by the second sending register 151, but when the frequency of the clock signal reaches a certain threshold, a hold time timing violation will occur.
  • the timing measurement unit 170 will not be able to obtain the external data signal data1 output by the second sending register 151.
  • the period of the clock signal (that is, the critical period) where the hold time timing violation occurs is recorded as Period_hd, and the critical period satisfies the following conditions:
  • T clk -T data Period_hd-T h
  • T h is the retention time of the sequence unit to be tested.
  • the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed
  • the first input terminal B1 of the second selection module 130 is opened and the second input terminal B2
  • the first sending register 141 is connected to the first clock phase controller 10
  • the first clock phase controller 10 is connected to the data signal transmission module 150 (including the data signal transmission path formed by the second sending register 151) , And connect the data signal transmission module 150 with the receiving register 142, thereby forming a clock signal generating module 110, a first sending register 141, a first clock phase controller 10, a second sending register 151, a receiving register 142, and a control module
  • the second test path composed of 180.
  • the first clock phase controller 10 can be controlled by the control module 180 to be in a through state, that is, the signal output by the first sending register 141 is not turned off.
  • the clock signal output by the clock signal generating module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141, and it passes
  • the clock signal generating module 110 can adjust the frequency of the clock signal.
  • the external data signal data1 can be obtained by the receiving register 142 after being output by the first sending register 141 through the first clock phase controller 10 and the second sending register 151.
  • the transmission rate of the data signal can be increased, but when the frequency of the clock signal is too fast, the receiving register 142 will not be able to obtain the external data signal data1 output by the first sending register 141.
  • the period (ie, critical period) of the clock signal when the frequency of the clock signal reaches a certain value so that the receiving register 142 can just obtain the external data signal data1 is recorded as Period_data.
  • the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed
  • the first input terminal B1 of the second selection module 130 is closed and the second input terminal B2 is closed.
  • the first sending register 141 is connected to the second clock phase controller 20
  • the second clock phase controller 20 is connected to the clock signal transmission module 160 (including the clock signal transmission path formed by the first buffer module b1)
  • the clock signal transmission module 160 is connected to the receiving register 142, thereby forming the clock signal generating module 110, the first sending register 141, the second clock phase controller 20, the first buffer module b1, the receiving register 142 and the control module
  • the second clock phase controller 20 may be controlled by the control module 180 to be in a through state, that is, the signal output by the first sending register 141 is not turned off.
  • the clock signal output by the clock signal generating module 110 is input to the first input end of the first sending register 141, and the external data signal data1 is input to the second input end of the first sending register 141, and it passes
  • the clock signal generation module 110 can adjust the frequency of the clock signal.
  • the external data signal data1 can be obtained by the receiving register 142 after being output by the first sending register 141 through the second clock phase controller 20 and the first buffer module b1.
  • the transmission rate of the data signal can be increased, but when the frequency of the clock signal is too fast, the receiving register 142 will not be able to obtain the external data signal data1 output by the first sending register 141.
  • the period (ie, critical period) of the clock signal when the frequency of the clock signal reaches a certain value so that the receiving register 142 can just obtain the external data signal data1 is recorded as Period_clk.
  • T data -T clk Period_data-Period_clk
  • T h Period_hd-Period_clk+Period_data
  • the retention time Th of the sequence unit is only the same as the critical period of the clock signal when the sequence unit 170 to be tested under the first test path can correctly obtain the external data signal data1, which is recorded as Period_hd
  • the delay detection module under the second test path 140 can just obtain the critical period Period_data of the clock signal when the external data signal data1
  • the third test path delay detection module 140 can just obtain the critical period Period_clk of the clock signal when the external data signal data1 is related, and are related to the data signal transmission path and
  • the difference in the clock signal transmission path, the delay of the buffer, and the test voltage are irrelevant, which can solve the measurement result error caused by the difference between the data signal transmission path and the clock signal transmission path, the delay of the buffer, and the difference in the test voltage. This is a major problem, so that the measurement accuracy of the retention time of the sequence unit 170 to be tested can be improved.
  • Fig. 5 is a flowchart of a method for measuring the retention time of a sequential unit according to an embodiment of the present application.
  • the method for measuring the retention time of a sequential unit of the present application is applicable to a circuit for measuring the retention time of a sequential unit according to any embodiment of the present application.
  • the measurement circuit includes a clock signal generation module, a first selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, and a timing sequence to be measured Unit and control module.
  • the control module controls the first selection module and the second selection module to form a first test path, a second test path, and a third test path, respectively.
  • the first test path includes a clock signal generation module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, a sequence unit to be tested, and a control module.
  • the second test path includes a clock signal generation module, a delay detection module, a first clock phase controller, a data signal transmission module, and a control module.
  • the third test path includes a clock signal generation module, a delay detection module, a second clock phase controller, a clock signal transmission module, and a control module.
  • the method for measuring the retention time of a sequential unit includes the following steps S210 to S220.
  • step S210 the first period value, the second period value and the third period value of the clock signal are respectively determined, where the first period value is the clock when the sequence unit to be tested under the first test path can correctly receive the data signal
  • the critical period of the signal the second period value is the critical period of the clock signal when the delay detection module can correctly receive the data signal under the second test path
  • the third period value is the delay detection module can be correct under the third test path The critical period of the clock signal when the data signal is received.
  • step S220 the retention time of the sequential unit is determined according to the first period value, the second period value, and the third period value.
  • the period or frequency of the clock signal output by the clock signal generation module 110 may be controlled by the control module 180 to adjust the frequency of the clock signal under the first test path, the second test path, and the third test path.
  • the pulse number and phase of the clock signal output by the clock signal generation module 110 can be controlled by the first clock phase controller 10 to output the first pulse signal
  • the clock signal can be controlled by the second clock phase controller 20 Generate the pulse number and phase of the clock signal output by the module 110 to output the second pulse signal, so that the retention of the sequence unit 170 under test can be tested by changing the period of the clock signal output by the clock signal generation module 110 in the first test path Time sequence violation.
  • the timing unit 170 to be tested can just obtain the external output output by the second sending register 151 of the data signal transmission module 150.
  • the data signal is data1
  • the measured period value of the clock signal is the first period value Period_hd
  • the receiving register 142 can just get the first sending register 141 of the delay detection module 140 through the data signal transmission module
  • the external data signal data1 is output by 150
  • the measured period value of the clock signal is the second period value Period_data
  • the receiving register 142 can just obtain the first sending register 141 of the delay detection module 140.
  • the measured period value of the clock signal is the third period value Period_clk.
  • the first period value, the second period value, the third period value, and the retention time of the sequence unit 170 to be tested satisfy the following relationship:
  • T h Period_hd-Period_clk+Period_data
  • the retention time Th of the sequence unit to be tested can be determined.
  • Fig. 6 is a flowchart of a method for determining the period value of a clock signal according to an embodiment of the present application.
  • the period value of the clock signal can be determined.
  • the period value can be any one of the first period value, the second period value, and the third period value.
  • the method for determining the period value of the clock signal includes the following steps S310 to S350.
  • S310 Determine the estimated range and period step length of the critical period of the clock signal.
  • the method for determining the estimated range of the critical period of the clock signal may include: firstly, the expected value of the critical period of the clock signal can be obtained by theoretical calculation (for example, it can be obtained by simulation by a spice tool); then, determining the period step The cycle step length can be a variable step length; finally, the test is carried out in sequence from small to large according to the cycle step, until the test value of the critical period of the clock signal appears for the first time is inconsistent with the expected value of the critical period.
  • the difference between the period value of the clock signal and the period step length is used as the left interval value of the estimated range of the critical period, denoted as P_min, and the sum of the period value of the clock signal and the period step length at this time is used as the estimation of the critical period
  • P_min the left interval value of the estimated range of the critical period
  • P_max the right interval value of the range
  • the period step size may be a fixed period step size s, for example, the period step size s may be 1 ps, 5 ps, 10 ps, and so on.
  • the smaller the cycle step the higher the accuracy of the adjustment, and the better the effect of reducing the influence of clock jitter.
  • step S320 the estimated range of the critical period is divided into N parts according to the period step length to obtain N+1 test period values.
  • the critical period range F can be divided into N parts according to the period step s, and the two interval end values of the critical period range F are added to obtain a total of N+1 test period values, namely, P_max, P_min+ (N-1)*s, P_min+(N-2)*s,...P_min+4*s, P_min+3*s, P_min+2*s, P_min+1*s, and P_min (see Figure 7).
  • step S330 N+1 test period values are tested to obtain N+1 test results.
  • step S340 M test period values out of N+1 test period values are obtained, and the test result for the M test period values is that the sequence unit or delay detection module to be tested can correctly obtain the data signal, and M is less than or equal to N+1.
  • step S350 the period value of the clock signal is determined according to the M test period values.
  • Fig. 7 is a schematic diagram of measuring the period value of a clock signal according to an embodiment of the present application.
  • the period of the clock signal when the period of the clock signal is less than a certain value (for example, P_min), if the output of the timing unit 170 under test in the test circuit is The result must be able to sample the hold time timing violation, then the period range less than P_min can be called the estimated stable timing violation area, as shown in the I area in Figure 7; when the period of the clock signal is greater than a certain value (for example, P_max ), if the normal output result can be stably sampled on the sequence unit 170 to be tested in the test circuit, the period area larger than P_max can be called the estimated stable and no timing violation area, as shown in Figure 7 II Area.
  • a certain value for example, if the output of the timing unit 170 under test in the test circuit is The result must be able to sample the hold time timing violation, then the period range less than P_min can be called the estimated stable timing violation area, as shown in the I area in Figure 7; when the period of the clock signal is greater than a certain value (for example, P
  • N+1 test period values are tested respectively, and N+1 test results are obtained and recorded.
  • These N+1 test results can include timing violation jumps and non-timing violation jumps that occur with the hold time, and when the test period is less than a certain value, the measurement result shows that timing violations continue to occur; or when the test period is greater than a certain value When the time, the measurement result shows that there is no timing violation continuously.
  • Period_avg is the period value of the clock signal
  • M is less than or equal to N+1
  • Period_trigger_i is the test period value corresponding to the i-th timing violation transition point.

Abstract

A method and circuit for measuring the retention time of a time sequence unit. The method comprises: determining a first period value, a second period value and a third period value of a clock signal separately, wherein the first period value is a critical period of the clock signal when a time sequence unit (170) to be measured is able to correctly receive a data signal under a first test path, the second period value is a critical period of the clock signal when a delay detection module (140) is able to correctly receive the data signal under a second test path, and the third period value is a critical period of the clock signal when the delay detection module (140) is able to correctly receive the data signal under a third test path (S210); and determining the retention time of the time sequence unit according to the first period value, the second period value and the third period value (S220).

Description

时序单元的保持时间的测量方法和测量电路Measuring method and measuring circuit of retention time of sequential unit 技术领域Technical field
本申请涉及数字集成电路的技术领域,具体地涉及一种时序单元的保持时间的测量方法和测量电路。This application relates to the technical field of digital integrated circuits, and in particular to a method and circuit for measuring the retention time of a sequential unit.
背景技术Background technique
时序单元的保持时间是影响信号数据稳定传输的重要因素之一。在进行时序单元库的设计时,时序单元的保持时间的精确测量直接影响芯片的性能、生产和制造。通常采用时钟相位精细调节法或通过多个缓冲器作为最小测量刻度等效测量保持时间。然而,这些方法存在很多不足,比如受限于时钟相位的可调范围和缓冲器的延迟,测量的时钟路径和数据路径存在差异,并且在不同的测试电压下这种差异的表现更明显,由此会导致时序单元的保持时间的测量误差非常大。The hold time of the sequential unit is one of the important factors that affect the stable transmission of signal data. When designing the timing cell library, the accurate measurement of the retention time of the timing cell directly affects the performance, production and manufacturing of the chip. Usually adopt the clock phase fine adjustment method or adopt multiple buffers as the minimum measurement scale equivalent measurement hold time. However, these methods have many shortcomings, such as limited by the adjustable range of the clock phase and the delay of the buffer, the measured clock path and data path are different, and the performance of this difference is more obvious under different test voltages. This will cause a very large measurement error in the hold time of the sequential unit.
发明内容Summary of the invention
本申请实施例提供一种时序单元的保持时间的测量电路,包括时钟信号发生模块、第一选择模块、第二选择模块、延迟检测模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块,所述时钟信号发生模块分别与所述第一选择模块、所述延迟检测模块和所述控制模块连接;所述延迟检测模块分别与所述第一选择模块、所述第二选择模块和所述控制模块连接;所述第一选择模块分别与所述控制模块、所述第一时钟相位控制器和所述第二时钟相位控制器连接;所述第二选择模块分别与所述控制模块、所述数据信号传输模块和所述时钟信号传输模块连接;所述第一时钟相位控制器分别与所述控制模块和所述数据信号传输模块连接;所述第二时钟相位控制器分别与所述控制模块和所述时钟信号传输模块连接;所述数据信号传输模块分别与所述待测时序单元和所述控制模块连接;所述时钟信号传输模块分别与所述待测时序单元和所述控制模块连接;并且所述待测时序单元与所述控制模 块连接,所述第一时钟相位控制器用于输出第一脉冲信号并为所述数据信号传输模块提供时钟信号,所述第二时钟相位控制器用于输出第二脉冲信号并为所述时钟信号传输模块提供时钟信号,所述控制模块用于控制所述第一选择模块和所述第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径,以基于所述第一测试路径、所述第二测试路径和所述第三测试路径确定时序单元的保持时间,其中,所述第一测试路径包括所述时钟信号发生模块、所述第一时钟相位控制器、所述第二时钟相位控制器、所述数据信号传输模块、所述时钟信号传输模块、所述待测时序单元和所述控制模块,所述第二测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第一时钟相位控制器、所述数据信号传输模块和所述控制模块,并且所述第三测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第二时钟相位控制器、所述时钟信号传输模块和所述控制模块。The embodiment of the application provides a circuit for measuring the retention time of a sequential unit, which includes a clock signal generation module, a first selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, A data signal transmission module, a clock signal transmission module, a timing unit to be tested, and a control module. The clock signal generation module is respectively connected to the first selection module, the delay detection module and the control module; the delay detection module Are respectively connected to the first selection module, the second selection module, and the control module; the first selection module is respectively connected to the control module, the first clock phase controller, and the second clock phase The controller is connected; the second selection module is respectively connected to the control module, the data signal transmission module and the clock signal transmission module; the first clock phase controller is connected to the control module and the data signal respectively The signal transmission module is connected; the second clock phase controller is connected to the control module and the clock signal transmission module respectively; the data signal transmission module is connected to the timing unit to be tested and the control module respectively; The clock signal transmission module is respectively connected to the timing unit to be tested and the control module; and the timing unit to be tested is connected to the control module, and the first clock phase controller is used to output a first pulse signal and is The data signal transmission module provides a clock signal, the second clock phase controller is used to output a second pulse signal and provide a clock signal for the clock signal transmission module, and the control module is used to control the first selection module and The second selection module respectively forms a first test path, a second test path, and a third test path to determine the retention of the timing unit based on the first test path, the second test path, and the third test path Time, wherein the first test path includes the clock signal generation module, the first clock phase controller, the second clock phase controller, the data signal transmission module, the clock signal transmission module, The timing unit to be tested and the control module, and the second test path includes the clock signal generation module, the delay detection module, the first clock phase controller, the data signal transmission module, and the Control module, and the third test path includes the clock signal generation module, the delay detection module, the second clock phase controller, the clock signal transmission module, and the control module.
本申请实施例还提供了一种时序单元的保持时间的测量方法,该测量方法适用于本申请实施例所述的时序单元的保持时间的测量电路,所述测量电路包括时钟信号发生模块、第一选择模块、第二选择模块、延迟检测模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块,所述控制模块控制所述第一选择模块和所述第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径,所述第一测试路径包括所述时钟信号发生模块、所述第一时钟相位控制器、所述第二时钟相位控制器、所述数据信号传输模块、所述时钟信号传输模块、所述待测时序单元和所述控制模块,所述第二测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第一时钟相位控制器、所述数据信号传输模块和所述控制模块,并且所述第三测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第二时钟相位控制器、所述时钟信号传输模块和所述控制模块,所述方法包括:分别确定时钟信号的第一周期值、第二周期值和第三周期值,其中,所述第一周期值为在所述第一测试路径下所述待测时序单元能够正确接收到数据信号时的所述时钟信号的临界周期,所述第二周期值为在所述第二测试 路径下所述延迟检测模块能够正确接收到数据信号时的所述时钟信号的临界周期,并且所述第三周期值为在所述第三测试路径下所述延迟检测模块能够正确接收到数据信号时的所述时钟信号的临界周期;以及根据所述第一周期值、所述第二周期值和所述第三周期值确定时序单元的保持时间。The embodiment of the present application also provides a method for measuring the retention time of a sequential unit. The measurement method is suitable for the circuit for measuring the retention time of a sequential unit described in the embodiment of the present application. The measurement circuit includes a clock signal generation module and a second A selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, a sequence unit to be tested and a control module, the control module controls The first selection module and the second selection module respectively form a first test path, a second test path, and a third test path, and the first test path includes the clock signal generation module and the first clock phase Controller, the second clock phase controller, the data signal transmission module, the clock signal transmission module, the sequence unit to be tested, and the control module, the second test path includes the clock signal generation Module, the delay detection module, the first clock phase controller, the data signal transmission module, and the control module, and the third test path includes the clock signal generation module, the delay detection module, For the second clock phase controller, the clock signal transmission module, and the control module, the method includes: respectively determining a first period value, a second period value, and a third period value of the clock signal, wherein the The first period value is the critical period of the clock signal when the timing unit under test can correctly receive the data signal under the first test path, and the second period value is the critical period of the clock signal under the second test path. The critical period of the clock signal when the delay detection module can correctly receive the data signal, and the third period value is when the delay detection module can correctly receive the data signal under the third test path The critical period of the clock signal; and determining the retention time of the sequential unit according to the first period value, the second period value, and the third period value.
关于本申请的以上实施例和其他方面以及其实现方式,在附图说明、具体实施方式和权利要求中提供更多说明。Regarding the above embodiments and other aspects of the application and their implementation manners, more descriptions are provided in the description of the drawings, the specific implementation manners, and the claims.
附图说明Description of the drawings
图1是相关技术中的时序单元的保持时间的示意图;FIG. 1 is a schematic diagram of the retention time of a sequential unit in the related art;
图2是根据本申请实施例的时序单元的保持时间的测量电路的结构示意图;2 is a schematic structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application;
图3是根据本申请实施例的时序单元的保持时间测量信号的时序图;FIG. 3 is a timing diagram of a holding time measurement signal of a timing unit according to an embodiment of the present application;
图4是根据本申请实施例的时序单元的保持时间的测量电路的另一结构示意图;4 is another schematic diagram of the structure of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application;
图5是根据本申请实施例的时序单元的保持时间的测量方法的流程图;Fig. 5 is a flowchart of a method for measuring the retention time of a sequential unit according to an embodiment of the present application;
图6是根据本申请实施例的时钟信号的周期值的确定方法的流程图;以及Fig. 6 is a flowchart of a method for determining the period value of a clock signal according to an embodiment of the present application; and
图7是根据本申请实施例的时钟信号的周期值的测量示意图。Fig. 7 is a schematic diagram of measuring the period value of a clock signal according to an embodiment of the present application.
具体实施方式Detailed ways
下文中将结合附图对本申请的实施例进行说明。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Hereinafter, the embodiments of the present application will be described with reference to the accompanying drawings. In the case of no conflict, the embodiments in the application and the features in the embodiments can be combined with each other arbitrarily.
图1是相关技术中的时序单元的保持时间的示意图。FIG. 1 is a schematic diagram of the retention time of a sequential unit in the related art.
参考图1,时序单元(如触发器)的保持时间(hold time,th)是指在时序单元的时钟信号上升沿到来以后,数据信号需要保持稳定不变的时间。如果保持时间th不够,则数据将不能被有效读取并转换为输出,保持时间th就是指最小的稳定时间。Referring to FIG. 1, the hold time (th) of a sequential unit (such as a flip-flop) refers to the time during which the data signal needs to remain stable after the rising edge of the clock signal of the sequential unit arrives. If the hold time th is not enough, the data will not be effectively read and converted to output. The hold time th refers to the minimum stable time.
在相关技术中,时序单元的保持时间是在单元库设计的时候,通过spice工具通过仿真得到,但这只是一个理论计算值,如果理论计算值相比于芯片中的实际数值偏大,则给后端时序收敛增加了不必要的困难;而如果理论计算值偏小,则可能造成芯片生产后出现时序问题,芯片达不到实际工作频率,因此在完成时序单元库设计后,在保持时间的理论值与实际值之间保持一致性非常重要。为了确保保持时间的实际值与理论值保持一致,通常需要对保持时间进行测量验证。In the related technology, the retention time of the sequential unit is obtained by simulation through the spice tool when the unit library is designed, but this is only a theoretical calculation value. If the theoretical calculation value is larger than the actual value in the chip, give The back-end timing closure adds unnecessary difficulties; and if the theoretical calculation value is too small, it may cause timing problems after the chip is produced, and the chip cannot reach the actual operating frequency. Therefore, after completing the timing cell library design, keep the time It is very important to maintain consistency between the theoretical value and the actual value. In order to ensure that the actual value of the hold time is consistent with the theoretical value, it is usually necessary to measure and verify the hold time.
在一种相关技术方案中,提出一种基于时钟相位的精细调节对保持时间进行测量的方法,例如,通过对时钟相位的精细调节,将精确调节后的两个具有相位偏差的时钟分别作为时钟与数据送入待测时序单元进行保持时间时序违例(hold violation)的识别,以此判断出时序单元的保持时间。但这种测量的精度受限于时钟相位可调的最小步长,加之时钟在不同传输路径上具有差异,并且在不同测试电压下,这种差异的表现各不相同,因此测量结果的误差非常大。In a related technical solution, a method for measuring the hold time based on the fine adjustment of the clock phase is proposed. For example, through the fine adjustment of the clock phase, two accurately adjusted clocks with phase deviation are used as clocks. The data is sent to the sequence unit to be tested to identify the hold time sequence violation (hold violation) to determine the hold time of the sequence unit. However, the accuracy of this measurement is limited by the minimum step length of the clock phase adjustable, and the clock has differences in different transmission paths, and the performance of this difference is different under different test voltages, so the error of the measurement results is very large. Big.
在另一种相关技术方案中,提出利用一个延迟较小的缓冲器(buffer)作为最小测量刻度,并且针对时序单元的时钟路径与数据路径构造不同数量差异的缓冲器,以此来判断出保持时间等效于多少个最小测量刻度的缓冲器。这种方法的精度受限于作为最小测量刻度的缓冲器的延迟,同样在测量的时钟路径与数据路径上也存在差异,并且在不同电压下这种差异的表现会显著加大,因此导致测量结果的误差非常大。In another related technical solution, it is proposed to use a buffer with a small delay as the minimum measurement scale, and construct buffers with different numbers of differences for the clock path and the data path of the timing unit to determine whether to maintain The time is equivalent to the number of buffers with the smallest measurement scale. The accuracy of this method is limited by the delay of the buffer as the minimum measurement scale. There are also differences between the measured clock path and the data path, and the performance of this difference will increase significantly under different voltages, thus leading to the measurement The error of the result is very large.
通常,时序单元的保持时间的测量与时钟信号的周期或频率大小无关。Generally, the measurement of the hold time of the sequential unit has nothing to do with the period or frequency of the clock signal.
有鉴于此,本申请提出一种时序单元的保持时间的测量电路和测量方法,首先通过控制模块控制第一时钟相位控制器输出第一脉冲信号并为数据信号传输模块提供时钟信号,控制第二时钟相位控制器输出第二脉冲信号并为时钟信号传输模块提供时钟信号,使得时序单元的保持时间的测量与时钟信号的周期或频率产生关联;然后通过控制模块控制第一选择模块和第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径,再分别确定在第一测试路径下待测时序 单元能够正确接收到数据信号时的时钟信号的临界周期(记为第一周期值),在第二测试路径下延迟检测模块能够正确接收到数据信号时的时钟信号的临界周期(记为第二周期值),以及在第三测试路径下延迟检测模块能够正确接收到数据信号时的时钟信号的临界周期(记为第三周期值),最后根据第一周期值、第二周期值和第三周期值确定时序单元的保持时间。由此可知,第一时钟相位控制器和第二时钟相位控制器使得第一测试路径下的保持时间时序违例测试与时钟信号的周期或频率产生关联(即,与第一周期值有关),从而使得时序单元的保持时间的确定只与第一周期值、第二周期值和第三周期值有关,而不会受限于时钟相位的调节范围和缓冲器的延迟,并且克服了在不同的测试电压下表现出的差异所导致的测量误差大的问题,从而提高了测量的精度。In view of this, this application proposes a measuring circuit and a measuring method for the retention time of a sequential unit. First, the control module controls the first clock phase controller to output the first pulse signal and provides the clock signal for the data signal transmission module to control the second The clock phase controller outputs the second pulse signal and provides the clock signal for the clock signal transmission module, so that the measurement of the retention time of the sequential unit is correlated with the period or frequency of the clock signal; then the first selection module and the second selection are controlled by the control module The modules respectively form the first test path, the second test path and the third test path, and then respectively determine the critical period of the clock signal when the sequence unit to be tested under the first test path can correctly receive the data signal (denoted as the first period) Value), the critical period of the clock signal when the delay detection module can correctly receive the data signal under the second test path (denoted as the second period value), and the delay detection module can correctly receive the data signal under the third test path The critical period of the clock signal at time (denoted as the third period value), and finally the retention time of the sequential unit is determined according to the first period value, the second period value and the third period value. It can be seen that the first clock phase controller and the second clock phase controller make the hold time timing violation test under the first test path correlate with the cycle or frequency of the clock signal (that is, related to the first cycle value), so that Makes the determination of the retention time of the sequence unit only related to the first period value, the second period value and the third period value, and is not limited by the adjustment range of the clock phase and the delay of the buffer, and overcomes the difference in the test The problem of large measurement errors caused by the difference in voltage, thereby improving the accuracy of the measurement.
图2是根据本申请实施例的时序单元的保持时间的测量电路的结构示意图。Fig. 2 is a schematic structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application.
参考图2,测试电路包括时钟信号发生模块110、第一选择模块120、第二选择模块130、延迟检测模块140、第一时钟相位控制器10、第二时钟相位控制器20、数据信号传输模块150、时钟信号传输模块160、待测时序单元170和控制模块180。2, the test circuit includes a clock signal generation module 110, a first selection module 120, a second selection module 130, a delay detection module 140, a first clock phase controller 10, a second clock phase controller 20, and a data signal transmission module 150. The clock signal transmission module 160, the timing unit 170 to be tested, and the control module 180.
时钟信号发生模块110分别与第一选择模块120、延迟检测模块140和控制模块180连接。延迟检测模块140分别与第一选择模块120、第二选择模块130和控制模块180连接。第一选择模块120分别与控制模块180、第一时钟相位控制器10和第二时钟相位控制器20连接。第二选择模块130分别与控制模块180、数据信号传输模块150和时钟信号传输模块160连接。第一时钟相位控制器10分别与控制模块180和数据信号传输模块150连接。第二时钟相位控制器20分别与控制模块180和时钟信号传输模块160连接。数据信号传输模块150分别与待测时序单元170和控制模块180连接。时钟信号传输模块160分别与待测时序单元170和控制模块180连接。待测时序单元170与控制模块180连接。The clock signal generating module 110 is respectively connected with the first selection module 120, the delay detection module 140 and the control module 180. The delay detection module 140 is respectively connected with the first selection module 120, the second selection module 130 and the control module 180. The first selection module 120 is connected to the control module 180, the first clock phase controller 10, and the second clock phase controller 20, respectively. The second selection module 130 is respectively connected with the control module 180, the data signal transmission module 150 and the clock signal transmission module 160. The first clock phase controller 10 is connected to the control module 180 and the data signal transmission module 150 respectively. The second clock phase controller 20 is connected to the control module 180 and the clock signal transmission module 160 respectively. The data signal transmission module 150 is respectively connected with the sequence unit 170 to be tested and the control module 180. The clock signal transmission module 160 is respectively connected with the timing unit 170 and the control module 180 to be tested. The timing unit 170 to be tested is connected to the control module 180.
第一时钟相位控制器10用于输出第一脉冲信号并为数据信号传 输模块150提供时钟信号。第二时钟相位控制器20用于输出第二脉冲信号并为时钟信号传输模块160提供时钟信号。The first clock phase controller 10 is used to output a first pulse signal and provide a clock signal for the data signal transmission module 150. The second clock phase controller 20 is used to output a second pulse signal and provide a clock signal for the clock signal transmission module 160.
控制模块180用于控制第一选择模块120和第二选择模块130分别形成第一测试路径、第二测试路径和第三测试路径,以基于第一测试路径、第二测试路径和第三测试路径确定时序单元的保持时间。第一测试路径包括时钟信号发生模块110、第一时钟相位控制器10、第二时钟相位控制器20、数据信号传输模块150、时钟信号传输模块160、待测时序单元170和控制模块180。第二测试路径包括时钟信号发生模块110、延迟检测模块140、第一时钟相位控制器10、数据信号传输模块150和控制模块180。第三测试路径由时钟信号发生模块110、延迟检测模块140、第二时钟相位控制器20、时钟信号传输模块160和控制模块180。The control module 180 is used to control the first selection module 120 and the second selection module 130 to form a first test path, a second test path, and a third test path, respectively, so as to be based on the first test path, the second test path, and the third test path. Determine the hold time of the sequential unit. The first test path includes a clock signal generation module 110, a first clock phase controller 10, a second clock phase controller 20, a data signal transmission module 150, a clock signal transmission module 160, a timing unit 170 to be tested, and a control module 180. The second test path includes a clock signal generation module 110, a delay detection module 140, a first clock phase controller 10, a data signal transmission module 150, and a control module 180. The third test path consists of a clock signal generation module 110, a delay detection module 140, a second clock phase controller 20, a clock signal transmission module 160, and a control module 180.
图3是根据本申请实施例的时序单元的保持时间测量信号的时序图。FIG. 3 is a timing diagram of a holding time measurement signal of a timing unit according to an embodiment of the present application.
参考图3,时钟信号发生模块110发出的时钟信号可以为具有两个上升沿的脉冲信号(如图3中的p1曲线),分别在T0和T2时刻具有上升沿,并且分别在T1和T3时刻具有下降沿。该具有两个上升沿的脉冲信号分别输入到第一时钟相位控制器10和第二时钟相位控制器20。经第一时钟相位控制器10输出的信号为第一个上升沿被截断,只有第二个上升沿能通过的第一脉冲信号(如图3中的p2曲线),第一脉冲信号在T2时刻有上升沿;经第二时钟相位控制器20输出的信号为第二个上升沿被截断,只有第一个上升沿能通过的第二脉冲信号(如图3中的p3曲线),第二脉冲信号在T0时刻有上升沿。在图3中,曲线p4为在第二发送寄存器151(参见图4)的输出端输出的数据信号时序图,曲线p5为在待测时序单元170的输出端输出的信号时序图。第一脉冲信号可以为提供给数据信号传输模块150的时钟信号,第二脉冲信号可以为提供给时钟信号传输模块160时钟信号。Referring to FIG. 3, the clock signal sent by the clock signal generation module 110 may be a pulse signal with two rising edges (as shown in the p1 curve in FIG. 3), which have rising edges at T0 and T2, respectively, and at T1 and T3, respectively. Has a falling edge. The pulse signal with two rising edges is input to the first clock phase controller 10 and the second clock phase controller 20 respectively. The signal output by the first clock phase controller 10 is the first pulse signal whose first rising edge is cut off, and only the second rising edge can pass (p2 curve in Fig. 3). The first pulse signal is at time T2 There is a rising edge; the signal output by the second clock phase controller 20 is the second rising edge that is truncated, and only the second pulse signal that can pass the first rising edge (as shown in the p3 curve in Figure 3), the second pulse The signal has a rising edge at T0. In FIG. 3, curve p4 is a timing diagram of the data signal output at the output terminal of the second sending register 151 (see FIG. 4), and curve p5 is a timing diagram of the signal output at the output terminal of the timing unit 170 under test. The first pulse signal may be a clock signal provided to the data signal transmission module 150, and the second pulse signal may be a clock signal provided to the clock signal transmission module 160.
在实施例中,第一选择模块120用于控制时钟信号发生模块110和延迟检测模块140中的一个分别与第一时钟相位控制器10和第二时钟相位控制器20接通。第二选择模块130用于控制数据信号传输 模块150和时钟信号传输模块160中的一个与延迟检测模块140接通。In an embodiment, the first selection module 120 is used to control one of the clock signal generation module 110 and the delay detection module 140 to be connected to the first clock phase controller 10 and the second clock phase controller 20, respectively. The second selection module 130 is used to control one of the data signal transmission module 150 and the clock signal transmission module 160 to be connected to the delay detection module 140.
例如,当控制模块180控制第一选择模块120以控制时钟信号发生模块110分别与第一时钟相位控制器10和第二时钟相位控制器20接通时,测试电路进入待测时序单元170的保持时间的临界点测试模式,即,形成包括时钟信号发生模块110、第一时钟相位控制器10、第二时钟相位控制器20、数据信号传输模块150、时钟信号传输模块160、待测时序单元170和控制模块180的第一测试路径。For example, when the control module 180 controls the first selection module 120 to control the clock signal generation module 110 to be connected to the first clock phase controller 10 and the second clock phase controller 20 respectively, the test circuit enters the hold of the sequence unit 170 to be tested. Time critical point test mode, that is, the formation includes a clock signal generation module 110, a first clock phase controller 10, a second clock phase controller 20, a data signal transmission module 150, a clock signal transmission module 160, and a sequence unit 170 to be tested And the first test path of the control module 180.
例如,当控制模块180控制第一选择模块120以控制延迟检测模块140分别与第一时钟相位控制器10和第二时钟相位控制器20接通,并且控制第二选择模块130以控制数据信号传输模块150和时钟信号传输模块160中的一个与延迟检测模块140接通时,测试电路进入时钟信号传输路径与数据信号传输路径的延迟比较模式,数据信号传输路径为包括时钟信号发生模块110、延迟检测模块140、第一时钟相位控制器10、数据信号传输模块150和控制模块180的第二测试路径,并且时钟信号传输路径为包括时钟信号发生模块110、延迟检测模块140、第二时钟相位控制器20、时钟信号传输模块160和控制模块180的第三测试路径。For example, when the control module 180 controls the first selection module 120 to control the delay detection module 140 to be connected to the first clock phase controller 10 and the second clock phase controller 20 respectively, and controls the second selection module 130 to control data signal transmission When one of the module 150 and the clock signal transmission module 160 is connected to the delay detection module 140, the test circuit enters the delay comparison mode of the clock signal transmission path and the data signal transmission path. The data signal transmission path includes the clock signal generation module 110 and the delay detection module. The second test path of the detection module 140, the first clock phase controller 10, the data signal transmission module 150, and the control module 180, and the clock signal transmission path includes the clock signal generation module 110, the delay detection module 140, and the second clock phase control The third test path of the device 20, the clock signal transmission module 160, and the control module 180.
图4是根据本申请实施例的时序单元的保持时间的测量电路的另一结构示意图。Fig. 4 is another structural diagram of a circuit for measuring the retention time of a sequential unit according to an embodiment of the present application.
参考图2和图4,时钟信号发生模块110包括时钟调频单元111和时钟脉冲控制单元112。时钟调频单元111与时钟脉冲控制单元112连接,时钟脉冲控制单元112分别与延迟检测模块140(在图4中示出为第一发送寄存器141和接收寄存器142)和第一选择模块120的第一输入端A1连接,并且控制模块180分别与时钟调频单元111和时钟脉冲控制单元112连接。2 and 4, the clock signal generation module 110 includes a clock frequency modulation unit 111 and a clock pulse control unit 112. The clock frequency modulation unit 111 is connected to the clock pulse control unit 112, and the clock pulse control unit 112 is respectively connected to the delay detection module 140 (shown as the first sending register 141 and the receiving register 142 in FIG. 4) and the first selection module 120. The input terminal A1 is connected, and the control module 180 is connected to the clock frequency modulation unit 111 and the clock pulse control unit 112 respectively.
在实施例中,时钟调频单元111可以为锁相环(Phase Locked Loop,PLL),用做时钟源,其时钟频率精度高、稳定度高、抖动小,并且可精细化调整。时钟脉冲控制单元112可以为时钟产生电路(on-chip-clock,OCC),用于输出时钟脉冲信号。In the embodiment, the clock frequency modulation unit 111 may be a phase locked loop (PLL), which is used as a clock source. The clock frequency has high precision, high stability, low jitter, and can be finely adjusted. The clock pulse control unit 112 may be a clock generation circuit (on-chip-clock, OCC) for outputting a clock pulse signal.
在实施例中,延迟检测模块140包括第一发送寄存器(launch  register)141和接收寄存器(capture register)142。第一发送寄存器141的第一输入端与时钟信号发生模块110连接,第一发送寄存器141的第二输入端连接外部数据信号data1,并且第一发送寄存器141的输出端与第一选择模块120的第二输入端A2连接。接收寄存器142的第一输入端与时钟信号发生模块110连接,接收寄存器142的第二输入端与第二选择模块130的输出端连接,并且接收寄存器142的输出端与控制模块180连接。In an embodiment, the delay detection module 140 includes a first launch register (launch register) 141 and a receiving register (capture register) 142. The first input terminal of the first sending register 141 is connected to the clock signal generating module 110, the second input terminal of the first sending register 141 is connected to the external data signal data1, and the output terminal of the first sending register 141 is connected to the first selection module 120 The second input terminal A2 is connected. The first input terminal of the receiving register 142 is connected to the clock signal generating module 110, the second input terminal of the receiving register 142 is connected to the output terminal of the second selection module 130, and the output terminal of the receiving register 142 is connected to the control module 180.
在实施例中,测试电路在第二测试路径和第三测试路径下,第一发送寄存器141作为数据信号传输的起点,接收寄存器142作为数据信号传输的终点。例如,在第二测试路径下,控制模块180控制第一选择模块120的第二输入端A2接通,即,将延迟检测模块140的第一发送寄存器141的输出端分别与第一时钟相位控制器10和第二时钟相位控制器20接通,控制模块180还控制第二选择模块130的第二输入端B2与延迟检测模块140的接收寄存器142接通,即,形成由时钟信号发生模块110、第一发送寄存器141、第一时钟相位控制器10、数据信号传输模块150(在图4中示出为第二发送寄存器151)、接收寄存器142和控制模块180组成的第二测试路径。在第二测试路径下测试时,在第一发送寄存器141的第一输入端输入时钟信号发生模块110输出的时钟信号,在第一发送寄存器141的第二输入端输入外部数据信号data1,外部数据信号data1由第一发送寄存器141输出,经数据信号传输模块150传输到接收寄存器142。In the embodiment, the test circuit is in the second test path and the third test path, the first sending register 141 is used as the starting point of data signal transmission, and the receiving register 142 is used as the end point of data signal transmission. For example, in the second test path, the control module 180 controls the second input terminal A2 of the first selection module 120 to be turned on, that is, the output terminal of the first sending register 141 of the delay detection module 140 is controlled to phase with the first clock respectively. The controller 10 and the second clock phase controller 20 are connected, and the control module 180 also controls the second input terminal B2 of the second selection module 130 to be connected to the receiving register 142 of the delay detection module 140, that is, the clock signal generation module 110 , The second test path composed of the first sending register 141, the first clock phase controller 10, the data signal transmission module 150 (shown as the second sending register 151 in FIG. 4), the receiving register 142 and the control module 180. When testing under the second test path, the clock signal output by the clock signal generation module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141. The signal data1 is output by the first sending register 141 and transmitted to the receiving register 142 via the data signal transmission module 150.
例如,在第三测试路径下,控制模块180控制第一选择模块120的第二输入端A2接通,即,将延迟检测模块140的第一发送寄存器141的输出端分别与第一时钟相位控制器10和第二时钟相位控制器20接通,控制模块180还控制第二选择模块130的第一输入端B1与延迟检测模块140的接收寄存器142接通,即,形成由时钟信号发生模块110、第一发送寄存器141、第二时钟相位控制器20、时钟信号传输模块160(在图4中示出为第一缓冲模块b1)、接收寄存器142和控制模块180组成的第三测试路径。在第三测试路径下测试时,在第一发送寄存器141的第一输入端输入时钟信号发生模块110输出的 时钟信号,在第一发送寄存器141的第二输入端输入外部数据信号data1,外部数据信号data1由第一发送寄存器141输出,经时钟信号传输模块160传输送到接收寄存器142。For example, in the third test path, the control module 180 controls the second input terminal A2 of the first selection module 120 to be turned on, that is, the output terminal of the first sending register 141 of the delay detection module 140 is controlled to phase with the first clock respectively. The controller 10 and the second clock phase controller 20 are connected, and the control module 180 also controls the first input B1 of the second selection module 130 to be connected to the receiving register 142 of the delay detection module 140, that is, the clock signal generation module 110 The third test path is composed of the first sending register 141, the second clock phase controller 20, the clock signal transmission module 160 (shown as the first buffer module b1 in FIG. 4), the receiving register 142 and the control module 180. When testing under the third test path, the clock signal output by the clock signal generation module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141. The signal data1 is output by the first sending register 141, and transmitted to the receiving register 142 via the clock signal transmission module 160.
在实施例中,数据信号传输模块150包括第二发送寄存器151。第二发送寄存器151的第一输入端与第一时钟相位控制器10连接,第二发送寄存器151的第二输入端连接外部数据信号data1,第二发送寄存器151的输出端分别与第二选择模块130的第二输入端B2和待测时序单元170的第二输入端连接。In an embodiment, the data signal transmission module 150 includes a second sending register 151. The first input terminal of the second sending register 151 is connected to the first clock phase controller 10, the second input terminal of the second sending register 151 is connected to the external data signal data1, and the output terminal of the second sending register 151 is connected to the second selection module respectively. The second input terminal B2 of 130 is connected to the second input terminal of the sequence unit 170 to be tested.
在实施例中,在第二发送寄存器151的第二输入端输入的外部数据信号data1用于为在第一测试路径测试时提供数据信号。例如,在第一测试路径下,控制模块180控制第一选择模块120的第一输入端A1接通,即,信号发生模块110的输出端分别与第一时钟相位控制器10和第二时钟相位控制器20接通,形成由时钟信号发生模块110、第一时钟相位控制器10、数据信号传输模块150、第二时钟相位控制器20、时钟信号传输模块160、待测时序单元170和控制模块180组成的第一测试路径。在第一测试路径下测试时,在第二发送寄存器151的第一输入端输入第一时钟相位控制器10输出的第一脉冲信号,该第一脉冲信号为在第一测试路径测试时提供的时钟信号,在第二发送寄存器151的第二输入端输入外部数据信号data1,外部数据信号data1由第二发送寄存器151输出后,传输到待测时序单元170。In an embodiment, the external data signal data1 input at the second input terminal of the second sending register 151 is used to provide a data signal during the first test path test. For example, in the first test path, the control module 180 controls the first input terminal A1 of the first selection module 120 to be turned on, that is, the output terminal of the signal generation module 110 is connected to the first clock phase controller 10 and the second clock phase respectively. The controller 20 is turned on to form a clock signal generation module 110, a first clock phase controller 10, a data signal transmission module 150, a second clock phase controller 20, a clock signal transmission module 160, a timing unit under test 170, and a control module The first test path composed of 180. When testing under the first test path, the first pulse signal output by the first clock phase controller 10 is input to the first input of the second sending register 151, and the first pulse signal is provided during the first test path test. As the clock signal, the external data signal data1 is input to the second input terminal of the second transmission register 151, and the external data signal data1 is output by the second transmission register 151 and then transmitted to the timing unit 170 to be tested.
在实施例中,第二发送寄存器151的复位端、第一发送寄存器141的复位端、接收寄存器142的复位端、待测时序单元170的复位端均与控制模块180连接,通过控制模块180可以控制第二发送寄存器151、第一发送寄存器141、接收寄存器142和待测时序单元170的复位和清零功能。In the embodiment, the reset terminal of the second sending register 151, the reset terminal of the first sending register 141, the reset terminal of the receiving register 142, and the reset terminal of the sequence unit 170 to be tested are all connected to the control module 180. The reset and clear functions of the second sending register 151, the first sending register 141, the receiving register 142, and the sequence unit 170 to be tested are controlled.
在实施例中,时钟信号传输模块160包括至少一个第一缓冲模块b1,第一缓冲模块b1的输入端与第二时钟相位控制器20连接,第一缓冲模块b1的输出端分别与第二选择模块130的第一输入端B1和待测时序单元170的第一输入端连接。In the embodiment, the clock signal transmission module 160 includes at least one first buffer module b1, the input end of the first buffer module b1 is connected to the second clock phase controller 20, and the output end of the first buffer module b1 is connected to the second select The first input terminal B1 of the module 130 is connected to the first input terminal of the sequence unit 170 to be tested.
在实施例中,第一缓冲模块b1形成时钟信号传输路径,第一缓冲模块b1用于调节时钟信号传输模块160的延迟时间。需要说明的是,数据信号传输模块150也可以包括第一缓冲模块b1,即,可以由第二发送寄存器151和第一缓冲模块b1组成数据信号传输路径,数据信号传输路径的第一缓冲模块b1的数量可以包括多个,时钟信号传输路径的第一缓冲模块b1的数量也可以包括多个,其具体的数量可以根据实际的测试需求进行设置,本申请在此不做具体的限定。In the embodiment, the first buffer module b1 forms a clock signal transmission path, and the first buffer module b1 is used to adjust the delay time of the clock signal transmission module 160. It should be noted that the data signal transmission module 150 may also include a first buffer module b1, that is, a data signal transmission path may be formed by the second sending register 151 and the first buffer module b1, and the first buffer module b1 of the data signal transmission path The number of the first buffer module b1 of the clock signal transmission path can also include more than one, and the specific number can be set according to actual test requirements, which is not specifically limited in this application.
在实施例中,当控制模块180控制第一选择模块120的第一输入端A1闭合且第二输入端A2断开、第二选择模块130的第一输入端B1和第二输入端B2均断开时,形成第一测试路径;当控制模块180控制第一选择模块120的第一输入端A1断开且第二输入端A2闭合、第二选择模块130的第一输入端B1断开且第二输入端B2闭合时,形成第二测试路径;当控制模块180控制第一选择模块120的第一输入端A1断开且第二输入端A2闭合、第二选择模块130的第一输入端B1闭合且第二输入端B2断开时,形成第三测试路径。In an embodiment, when the control module 180 controls the first input terminal A1 of the first selection module 120 to be closed and the second input terminal A2 is disconnected, the first input terminal B1 and the second input terminal B2 of the second selection module 130 are both disconnected. When open, the first test path is formed; when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 is opened and the first input terminal A2 is closed. When the second input terminal B2 is closed, a second test path is formed; when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 When closed and the second input terminal B2 is open, a third test path is formed.
在实施例中,当控制模块180控制第一选择模块120的第一输入端A1闭合且第二输入端A2断开、第二选择模块130的第一输入端B1和第二输入端B2均断开时,使得延迟检测模块140与第一时钟相位控制器10和第二时钟相位控制器20断开,并且使得信号发生模块110的输出端分别与第一时钟相位控制器10和第二时钟相位控制器20接通,形成由时钟信号发生模块110、第一时钟相位控制器10、数据信号传输模块150(包括由第二发送寄存器151形成的数据信号传输路径)、第二时钟相位控制器20、时钟信号传输模块160(包括由第一缓冲模块b1形成的时钟信号传输路径)、待测时序单元170和控制模块180组成的第一测试路径。在第一测试路径中,数据信号传输路径具有固定延迟,延迟数值记为T data,时钟信号传输路径也具有固定延迟,延迟数值记为T clk。在第一测试路径下测试时,信号发生模块110输出具有两个上升沿的脉冲信号,并且该脉冲信号分别输入到第一时钟相位控制器10和第二时钟相位控制器20。经第一时钟相位控制器10输出第一脉冲信号,并且经第二时钟相位控制器20 输出第二脉冲信号。第一脉冲信号作为第二发送寄存器151的时钟信号,在第二发送寄存器151的第一输入端输入的第一脉冲信号如图3中的p2曲线。第二脉冲信号经第一缓冲模块b1输出到待测时序单元170的第一输入端(即,时钟端),输入到待测时序单元170的第一输入端的第二脉冲信号如图3中曲线p3,并且待测时序单元170的输出端输出的信号时序如图3中的曲线p5。在第二发送寄存器151的第一输入端输入第一脉冲信号,在第二发送寄存器151的第二输入端输入外部数据信号data1(如图3中的曲线p4),并且通过时钟信号发生模块110可以调节时钟信号的频率。通常,当时钟信号频率比较慢时,外部数据信号data1由第二发送寄存器151输出后能够由待测时序单元170获得,但是当时钟信号频率达到某个阈值时,会出现保持时间时序违例,待测时序单元170将无法获得第二发送寄存器151输出的外部数据信号data1。将出现保持时间时序违例的时钟信号的周期(即,临界周期)记为Period_hd,且该临界周期满足如下条件: In an embodiment, when the control module 180 controls the first input terminal A1 of the first selection module 120 to be closed and the second input terminal A2 is opened, the first input terminal B1 and the second input terminal B2 of the second selection module 130 are both disconnected. When turned on, the delay detection module 140 is disconnected from the first clock phase controller 10 and the second clock phase controller 20, and the output terminal of the signal generation module 110 is connected to the first clock phase controller 10 and the second clock phase controller 10 and the second clock phase controller respectively. The controller 20 is turned on to form a clock signal generation module 110, a first clock phase controller 10, a data signal transmission module 150 (including a data signal transmission path formed by the second sending register 151), and a second clock phase controller 20 , The first test path composed of the clock signal transmission module 160 (including the clock signal transmission path formed by the first buffer module b1), the sequence unit 170 to be tested and the control module 180. In the first test path, the data signal transmission path has a fixed delay, and the delay value is denoted as T data , and the clock signal transmission path also has a fixed delay, and the delay value is denoted as T clk . When testing under the first test path, the signal generation module 110 outputs a pulse signal with two rising edges, and the pulse signal is input to the first clock phase controller 10 and the second clock phase controller 20 respectively. The first pulse signal is output through the first clock phase controller 10, and the second pulse signal is output through the second clock phase controller 20. The first pulse signal is used as the clock signal of the second sending register 151, and the first pulse signal input to the first input terminal of the second sending register 151 is shown in the p2 curve in FIG. 3. The second pulse signal is output to the first input terminal (ie, the clock terminal) of the timing unit 170 to be tested through the first buffer module b1, and the second pulse signal input to the first input terminal of the timing unit 170 to be tested is shown in the curve in Fig. 3 p3, and the signal timing output from the output terminal of the timing unit 170 to be tested is shown in curve p5 in FIG. 3. The first pulse signal is input to the first input terminal of the second sending register 151, and the external data signal data1 is input to the second input terminal of the second sending register 151 (as shown in the curve p4 in Fig. 3), and the clock signal generation module 110 The frequency of the clock signal can be adjusted. Generally, when the frequency of the clock signal is relatively slow, the external data signal data1 can be obtained by the timing unit 170 to be tested after being output by the second sending register 151, but when the frequency of the clock signal reaches a certain threshold, a hold time timing violation will occur. The timing measurement unit 170 will not be able to obtain the external data signal data1 output by the second sending register 151. The period of the clock signal (that is, the critical period) where the hold time timing violation occurs is recorded as Period_hd, and the critical period satisfies the following conditions:
T clk-T data=Period_hd-T h T clk -T data =Period_hd-T h
其中,T h为待测时序单元的保持时间。 Among them, T h is the retention time of the sequence unit to be tested.
在实施例中,当控制模块180控制第一选择模块120的第一输入端A1断开且第二输入端A2闭合、第二选择模块130的第一输入端B1断开且第二输入端B2闭合时,使得第一发送寄存器141与第一时钟相位控制器10接通,第一时钟相位控制器10与数据信号传输模块150(包括由第二发送寄存器151形成的数据信号传输路径)接通,并且使得数据信号传输模块150与接收寄存器142接通,从而形成由时钟信号发生模块110、第一发送寄存器141、第一时钟相位控制器10、第二发送寄存器151、接收寄存器142和控制模块180组成的第二测试路径。第一时钟相位控制器10可以被控制模块180控制为直通状态,即,对第一发送寄存器141输出的信号不做关断处理。在第二测试路径下测试时,在第一发送寄存器141的第一输入端输入时钟信号发生模块110输出的时钟信号,在第一发送寄存器141的第二输入端输入外部数据信号data1,并且通过时钟信号发生模块110可以 调节时钟信号的频率。通常,当时钟信号频率比较慢时,外部数据信号data1由第一发送寄存器141输出后经第一时钟相位控制器10和第二发送寄存器151能够由接收寄存器142获得,当时钟信号频率比较快时能够提高数据信号的传输速率,但是当时钟信号频率过快时,接收寄存器142将无法获得第一发送寄存器141输出的外部数据信号data1。将时钟信号频率达到某个值,使得接收寄存器142刚好能够获得外部数据信号data1时的时钟信号的周期(即,临界周期)记为Period_data。In an embodiment, when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 is opened and the second input terminal B2 When closed, the first sending register 141 is connected to the first clock phase controller 10, and the first clock phase controller 10 is connected to the data signal transmission module 150 (including the data signal transmission path formed by the second sending register 151) , And connect the data signal transmission module 150 with the receiving register 142, thereby forming a clock signal generating module 110, a first sending register 141, a first clock phase controller 10, a second sending register 151, a receiving register 142, and a control module The second test path composed of 180. The first clock phase controller 10 can be controlled by the control module 180 to be in a through state, that is, the signal output by the first sending register 141 is not turned off. When testing under the second test path, the clock signal output by the clock signal generating module 110 is input to the first input terminal of the first sending register 141, and the external data signal data1 is input to the second input terminal of the first sending register 141, and it passes The clock signal generating module 110 can adjust the frequency of the clock signal. Generally, when the clock signal frequency is relatively slow, the external data signal data1 can be obtained by the receiving register 142 after being output by the first sending register 141 through the first clock phase controller 10 and the second sending register 151. When the clock signal frequency is relatively fast The transmission rate of the data signal can be increased, but when the frequency of the clock signal is too fast, the receiving register 142 will not be able to obtain the external data signal data1 output by the first sending register 141. The period (ie, critical period) of the clock signal when the frequency of the clock signal reaches a certain value so that the receiving register 142 can just obtain the external data signal data1 is recorded as Period_data.
在实施例中,当控制模块180控制第一选择模块120的第一输入端A1断开且第二输入端A2闭合、第二选择模块130的第一输入端B1闭合且第二输入端B2断开时,使得第一发送寄存器141与第二时钟相位控制器20接通,第二时钟相位控制器20与时钟信号传输模块160(包括由第一缓冲模块b1形成的时钟信号传输路径)接通,并且使得时钟信号传输模块160与接收寄存器142接通,从而形成由时钟信号发生模块110、第一发送寄存器141、第二时钟相位控制器20、第一缓冲模块b1、接收寄存器142和控制模块180组成的第三测试路径。第二时钟相位控制器20可以被控制模块180控制为直通状态,即,对第一发送寄存器141输出的信号不做关断处理。在第三测试路径下测试时,在第一发送寄存器141的第一输入端输入时钟信号发生模块110输出的时钟信号,在第一发送寄存器141的第二输入端输入外部数据信号data1,并且通过时钟信号发生模块110可以调节时钟信号的频率。通常,当时钟信号频率比较慢时,外部数据信号data1由第一发送寄存器141输出后经第二时钟相位控制器20和第一缓冲模块b1能够由接收寄存器142获得,当时钟信号频率比较快时能够提高数据信号的传输速率,但是当时钟信号频率过快时,接收寄存器142将无法获得第一发送寄存器141输出的外部数据信号data1。将时钟信号频率达到某个值,使得接收寄存器142刚好能够获得外部数据信号data1时的时钟信号的周期(即,临界周期)记为Period_clk。In an embodiment, when the control module 180 controls the first input terminal A1 of the first selection module 120 to be opened and the second input terminal A2 is closed, the first input terminal B1 of the second selection module 130 is closed and the second input terminal B2 is closed. When on, the first sending register 141 is connected to the second clock phase controller 20, and the second clock phase controller 20 is connected to the clock signal transmission module 160 (including the clock signal transmission path formed by the first buffer module b1) , And the clock signal transmission module 160 is connected to the receiving register 142, thereby forming the clock signal generating module 110, the first sending register 141, the second clock phase controller 20, the first buffer module b1, the receiving register 142 and the control module The third test path composed of 180. The second clock phase controller 20 may be controlled by the control module 180 to be in a through state, that is, the signal output by the first sending register 141 is not turned off. When testing under the third test path, the clock signal output by the clock signal generating module 110 is input to the first input end of the first sending register 141, and the external data signal data1 is input to the second input end of the first sending register 141, and it passes The clock signal generation module 110 can adjust the frequency of the clock signal. Generally, when the clock signal frequency is relatively slow, the external data signal data1 can be obtained by the receiving register 142 after being output by the first sending register 141 through the second clock phase controller 20 and the first buffer module b1. When the clock signal frequency is relatively fast The transmission rate of the data signal can be increased, but when the frequency of the clock signal is too fast, the receiving register 142 will not be able to obtain the external data signal data1 output by the first sending register 141. The period (ie, critical period) of the clock signal when the frequency of the clock signal reaches a certain value so that the receiving register 142 can just obtain the external data signal data1 is recorded as Period_clk.
第二测试路径下的临界周期Period_data和第三测试路径下的Period_clk满足如下条件:The critical period Period_data under the second test path and Period_clk under the third test path meet the following conditions:
T data-T clk=Period_data-Period_clk T data -T clk =Period_data-Period_clk
结合第一测试路径下出现保持时间时序违例的时钟信号的临界周期记为Period_hd所满足的条件,可以得到:Combining the critical period of the clock signal with the hold time timing violation occurring under the first test path as the condition satisfied by Period_hd, we can get:
T h=Period_hd-Period_clk+Period_data T h =Period_hd-Period_clk+Period_data
由此可知,时序单元的保持时间T h只与第一测试路径下的待测时序单元170能够正确获得外部数据信号data1时的时钟信号的临界周期记为Period_hd、第二测试路径下延迟检测模块140能刚好获得外部数据信号data1时的时钟信号的临界周期Period_data和第三测试路径下延迟检测模块140能刚好获得外部数据信号data1时的时钟信号的临界周期Period_clk有关,而与数据信号传输路径和时钟信号传输路径的差异、缓冲器的延迟以及测试电压无关,可以解决因数据信号传输路径和时钟信号传输路径的差异、缓冲器的延迟、测试电压不同所表现出的差异导致的测量结果误差较大的问题,从而可以提高待测时序单元170的保持时间的测量精度。 It can be seen that the retention time Th of the sequence unit is only the same as the critical period of the clock signal when the sequence unit 170 to be tested under the first test path can correctly obtain the external data signal data1, which is recorded as Period_hd, and the delay detection module under the second test path 140 can just obtain the critical period Period_data of the clock signal when the external data signal data1 and the third test path delay detection module 140 can just obtain the critical period Period_clk of the clock signal when the external data signal data1 is related, and are related to the data signal transmission path and The difference in the clock signal transmission path, the delay of the buffer, and the test voltage are irrelevant, which can solve the measurement result error caused by the difference between the data signal transmission path and the clock signal transmission path, the delay of the buffer, and the difference in the test voltage. This is a major problem, so that the measurement accuracy of the retention time of the sequence unit 170 to be tested can be improved.
图5是根据本申请实施例的时序单元的保持时间的测量方法的流程图。本申请的时序单元的保持时间的测量方法适用于根据本申请任意实施例的时序单元的保持时间的测量电路。该测量电路包括时钟信号发生模块、第一选择模块、第二选择模块、延迟检测模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块。控制模块控制第一选择模块和第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径。第一测试路径包括时钟信号发生模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块。第二测试路径包括时钟信号发生模块、延迟检测模块、第一时钟相位控制器、数据信号传输模块和控制模块。第三测试路径包括时钟信号发生模块、延迟检测模块、第二时钟相位控制器、时钟信号传输模块和控制模块。Fig. 5 is a flowchart of a method for measuring the retention time of a sequential unit according to an embodiment of the present application. The method for measuring the retention time of a sequential unit of the present application is applicable to a circuit for measuring the retention time of a sequential unit according to any embodiment of the present application. The measurement circuit includes a clock signal generation module, a first selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, and a timing sequence to be measured Unit and control module. The control module controls the first selection module and the second selection module to form a first test path, a second test path, and a third test path, respectively. The first test path includes a clock signal generation module, a first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, a sequence unit to be tested, and a control module. The second test path includes a clock signal generation module, a delay detection module, a first clock phase controller, a data signal transmission module, and a control module. The third test path includes a clock signal generation module, a delay detection module, a second clock phase controller, a clock signal transmission module, and a control module.
参考图5,根据本申请实施例的时序单元的保持时间的测量方法包括如下步骤S210至S220。Referring to FIG. 5, the method for measuring the retention time of a sequential unit according to an embodiment of the present application includes the following steps S210 to S220.
在步骤S210,分别确定时钟信号的第一周期值、第二周期值和 第三周期值,其中,第一周期值为在第一测试路径下待测时序单元能够正确接收到数据信号时的时钟信号的临界周期,第二周期值为在第二测试路径下延迟检测模块能够正确接收到数据信号时的时钟信号的临界周期,并且第三周期值为在第三测试路径下延迟检测模块能够正确接收到数据信号时的时钟信号的临界周期。In step S210, the first period value, the second period value and the third period value of the clock signal are respectively determined, where the first period value is the clock when the sequence unit to be tested under the first test path can correctly receive the data signal The critical period of the signal, the second period value is the critical period of the clock signal when the delay detection module can correctly receive the data signal under the second test path, and the third period value is the delay detection module can be correct under the third test path The critical period of the clock signal when the data signal is received.
在步骤S220,根据第一周期值、第二周期值和第三周期值确定时序单元的保持时间。In step S220, the retention time of the sequential unit is determined according to the first period value, the second period value, and the third period value.
在实施例中,时序单元的保持时间等于第一周期值与第二周期值的和减去第三周期值的差值,即,时序单元的保持时间=第一周期值+第二周期值-第三周期值。In an embodiment, the retention time of the sequential unit is equal to the sum of the first period value and the second period value minus the difference of the third period value, that is, the retention time of the sequential unit = the first period value + the second period value- The third period value.
在实施例中,可以通过控制模块180控制时钟信号发生模块110输出的时钟信号的周期或频率,以在第一测试路径、第二测试路径和第三测试路径下调节时钟信号的频率。In an embodiment, the period or frequency of the clock signal output by the clock signal generation module 110 may be controlled by the control module 180 to adjust the frequency of the clock signal under the first test path, the second test path, and the third test path.
在实施例中,可以通过第一时钟相位控制器10控制时钟信号发生模块110输出的时钟信号的脉冲数量和相位,以输出第一脉冲信号,并且可以通过第二时钟相位控制器20控制时钟信号发生模块110输出的时钟信号的脉冲数量和相位,以输出第二脉冲信号,从而可以在第一测试路径下通过改变时钟信号发生模块110输出的时钟信号的周期来测试待测时序单元170的保持时间时序违例。In an embodiment, the pulse number and phase of the clock signal output by the clock signal generation module 110 can be controlled by the first clock phase controller 10 to output the first pulse signal, and the clock signal can be controlled by the second clock phase controller 20 Generate the pulse number and phase of the clock signal output by the module 110 to output the second pulse signal, so that the retention of the sequence unit 170 under test can be tested by changing the period of the clock signal output by the clock signal generation module 110 in the first test path Time sequence violation.
在实施例中,在第一测试路径下,在待测时序单元170出现保持时间时序违例时,即,在待测时序单元170刚好能够获得数据信号传输模块150的第二发送寄存器151输出的外部数据信号data1时,测得的时钟信号的周期值即为第一周期值Period_hd;在第二测试路径下,在接收寄存器142刚好能够获得延迟检测模块140的第一发送寄存器141经数据信号传输模块150输出的外部数据信号data1时,测得的时钟信号的周期值即为第二周期值Period_data;在第三测试路径下,在接收寄存器142刚好能够获得延迟检测模块140的第一发送寄存器141经时钟信号传输模块160输出的外部数据信号data1时,测得的时钟信号的周期值即为第三周期值Period_clk。第一周期值、第二周期值、第三周期值和待测时序单元170的保持时间满足 如下关系:In an embodiment, under the first test path, when the timing unit 170 to be tested has a timing violation of the retention time, that is, the timing unit 170 to be tested can just obtain the external output output by the second sending register 151 of the data signal transmission module 150. When the data signal is data1, the measured period value of the clock signal is the first period value Period_hd; in the second test path, the receiving register 142 can just get the first sending register 141 of the delay detection module 140 through the data signal transmission module When the external data signal data1 is output by 150, the measured period value of the clock signal is the second period value Period_data; in the third test path, the receiving register 142 can just obtain the first sending register 141 of the delay detection module 140. When the clock signal transmission module 160 outputs the external data signal data1, the measured period value of the clock signal is the third period value Period_clk. The first period value, the second period value, the third period value, and the retention time of the sequence unit 170 to be tested satisfy the following relationship:
T h=Period_hd-Period_clk+Period_data T h =Period_hd-Period_clk+Period_data
由此,可以确定待测时序单元的保持时间T h Thus, the retention time Th of the sequence unit to be tested can be determined.
图6是根据本申请实施例的时钟信号的周期值的确定方法的流程图。Fig. 6 is a flowchart of a method for determining the period value of a clock signal according to an embodiment of the present application.
根据图6所示的方法可以确定时钟信号的周期值。周期值可以为第一周期值、第二周期值、第三周期值中的任意一项。如图6所示,确定时钟信号的周期值的方法包括如下步骤S310至S350。According to the method shown in Figure 6, the period value of the clock signal can be determined. The period value can be any one of the first period value, the second period value, and the third period value. As shown in FIG. 6, the method for determining the period value of the clock signal includes the following steps S310 to S350.
S310、确定时钟信号的临界周期的预估范围和周期步长。S310: Determine the estimated range and period step length of the critical period of the clock signal.
在实施例中,确定时钟信号的临界周期的预估范围的方法可以包括:首先,可通过理论计算获取时钟信号的临界周期的期望值(例如,可由spice工具通过仿真得到);然后,确定周期步长,该周期步长可以为可变步长;最后,根据周期步长从小到大依次进行测试,直到第一次出现时钟信号的临界周期的测试值与临界周期的期望值不一致时,以此时的时钟信号的周期值与周期步长之差作为临界周期的预估范围的左区间值,记为P_min,并以此时的时钟信号的周期值与周期步长之和作为临界周期的预估范围的右区间值,记为P_max。由此可以确定时钟信号的临界周期范围F,记为<P_min,P_max>。In an embodiment, the method for determining the estimated range of the critical period of the clock signal may include: firstly, the expected value of the critical period of the clock signal can be obtained by theoretical calculation (for example, it can be obtained by simulation by a spice tool); then, determining the period step The cycle step length can be a variable step length; finally, the test is carried out in sequence from small to large according to the cycle step, until the test value of the critical period of the clock signal appears for the first time is inconsistent with the expected value of the critical period. The difference between the period value of the clock signal and the period step length is used as the left interval value of the estimated range of the critical period, denoted as P_min, and the sum of the period value of the clock signal and the period step length at this time is used as the estimation of the critical period The right interval value of the range is denoted as P_max. From this, the critical period range F of the clock signal can be determined, denoted as <P_min, P_max>.
在实施例中,周期步长可以为固定周期步长s,例如周期步长s可以为1ps、5ps和10ps等。此外,周期步长越小,调节的精度就越高,降低时钟抖动影响的效果也就越好。In an embodiment, the period step size may be a fixed period step size s, for example, the period step size s may be 1 ps, 5 ps, 10 ps, and so on. In addition, the smaller the cycle step, the higher the accuracy of the adjustment, and the better the effect of reducing the influence of clock jitter.
在步骤S320,根据周期步长将临界周期的预估范围分成N份,以得到N+1个测试周期值。In step S320, the estimated range of the critical period is divided into N parts according to the period step length to obtain N+1 test period values.
在实施例中,例如,可以根据周期步长s将临界周期范围F分成N份,加上临界周期范围F的两个区间端点值,共得到N+1个测试周期值,即,P_max、P_min+(N-1)*s、P_min+(N-2)*s、…P_min+4*s、P_min+3*s、P_min+2*s、P_min+1*s和P_min(参见图7)。In the embodiment, for example, the critical period range F can be divided into N parts according to the period step s, and the two interval end values of the critical period range F are added to obtain a total of N+1 test period values, namely, P_max, P_min+ (N-1)*s, P_min+(N-2)*s,...P_min+4*s, P_min+3*s, P_min+2*s, P_min+1*s, and P_min (see Figure 7).
在步骤S330,对N+1个测试周期值进行测试,以得到N+1个测试结果。In step S330, N+1 test period values are tested to obtain N+1 test results.
在步骤S340,得到N+1个测试周期值中的M个测试周期值,对 于所述M个测试周期值的测试结果为待测时序单元或延迟检测模块能正确获得数据信号,M小于或者等于N+1。In step S340, M test period values out of N+1 test period values are obtained, and the test result for the M test period values is that the sequence unit or delay detection module to be tested can correctly obtain the data signal, and M is less than or equal to N+1.
在步骤S350,根据M个测试周期值,确定时钟信号的周期值。In step S350, the period value of the clock signal is determined according to the M test period values.
图7是根据本申请实施例的时钟信号的周期值的测量示意图。Fig. 7 is a schematic diagram of measuring the period value of a clock signal according to an embodiment of the present application.
参考图7,根据时序分析理论,可以估算出,在第一测试路径下,当时钟信号的周期小于某一特定值(例如,P_min)时,如果在测试电路中的待测时序单元170的输出结果一定能够采样到保持时间时序违例,则可以将小于P_min的周期范围称为预估稳定发生时序违例区域,如图7中的I区;当时钟信号的周期大于某一特定值(例如,P_max)时,如果在测试电路中的待测时序单元170上能够稳定采样到正常的输出结果,则可以将大于P_max的周期区范围称为预估稳定不发生时序违例区域,如图7中的II区。同理,在第二测试路径和第三测试路径下同样存在预估稳定发生时序违例区域和预估稳定不发生时序违例区域。Referring to FIG. 7, according to the theory of timing analysis, it can be estimated that, in the first test path, when the period of the clock signal is less than a certain value (for example, P_min), if the output of the timing unit 170 under test in the test circuit is The result must be able to sample the hold time timing violation, then the period range less than P_min can be called the estimated stable timing violation area, as shown in the I area in Figure 7; when the period of the clock signal is greater than a certain value (for example, P_max ), if the normal output result can be stably sampled on the sequence unit 170 to be tested in the test circuit, the period area larger than P_max can be called the estimated stable and no timing violation area, as shown in Figure 7 II Area. In the same way, under the second test path and the third test path, there are also areas where timing violations are predicted to occur and areas where timing violations are not predicted to occur.
在实施例中,首先分别对N+1个测试周期值进行测试,得到N+1个测试结果并记录。这N+1个测试结果可以包括出现保持时间的时序违例跳变、非时序违例跳变,并且当测试周期小于某一值时,测量结果显示持续发生时序违例;或者当测试周期大于某一值时,测量结果显示持续不发生时序违例。例如,可以出现图7所示的时序违例跳变点k1和k2,以及非时序违例跳变点k3和k4,并且当测试周期小于点k1所对应的P_min+2*s时持续发生时序违例;当测试周期大于点k4所对应的P_min+(N-2)*s时持续不发生时序违例。可以将小于点k1所对应的P_min+2*s的周期范围称为预估稳定发生时序违例区域I区并且将大于点k4所对应的P_min+(N-2)*s的周期范围称为预估稳定不发生时序违例区域II区。假设N+1个测试结果中有M个时序违例跳变点(例如,图7所示的时序违例跳变点k1和k2),利用如下公式进行计算:In the embodiment, firstly, N+1 test period values are tested respectively, and N+1 test results are obtained and recorded. These N+1 test results can include timing violation jumps and non-timing violation jumps that occur with the hold time, and when the test period is less than a certain value, the measurement result shows that timing violations continue to occur; or when the test period is greater than a certain value When the time, the measurement result shows that there is no timing violation continuously. For example, the timing violation transition points k1 and k2, and the non-timing violation transition points k3 and k4 shown in FIG. 7 may appear, and the timing violation continues to occur when the test period is less than P_min+2*s corresponding to point k1; When the test period is greater than P_min+(N-2)*s corresponding to point k4, no timing violation will continue. The period range smaller than P_min+2*s corresponding to point k1 can be called the estimated stable occurrence timing violation area I area, and the period range larger than P_min+(N-2)*s corresponding to point k4 can be called estimated Stable and no timing violation area II. Assuming that there are M timing violation transition points in N+1 test results (for example, the timing violation transition points k1 and k2 shown in Figure 7), use the following formula to calculate:
Figure PCTCN2021095441-appb-000001
Figure PCTCN2021095441-appb-000001
其中,Period_avg为时钟信号的周期值,M小于或者等于N+1, Period_trigger_i为第i个时序违例跳变点对应的测试周期值。Among them, Period_avg is the period value of the clock signal, M is less than or equal to N+1, and Period_trigger_i is the test period value corresponding to the i-th timing violation transition point.
以上所述,仅为本申请的示例性实施例而已,并非用于限定本申请的保护范围。一般来说,本申请的多种实施例可以在硬件或专用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。The above are only exemplary embodiments of the present application, and are not used to limit the protection scope of the present application. Generally speaking, the various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, although the application is not limited thereto.
通过示范性和非限制性的示例,上文已提供了对本申请的示范实施例的详细描述。但结合附图和权利要求来考虑,对以上实施例的多种修改和调整对本领域技术人员来说是显而易见的,但不偏离本公开的范围。因此,本公开的恰当范围将根据权利要求确定。By way of exemplary and non-limiting examples, a detailed description of the exemplary embodiments of the present application has been provided above. However, considering the accompanying drawings and claims, various modifications and adjustments to the above embodiments are obvious to those skilled in the art, but they do not deviate from the scope of the present disclosure. Therefore, the proper scope of the present disclosure will be determined according to the claims.

Claims (10)

  1. 一种时序单元的保持时间的测量方法,所述测量方法适用于时序单元的保持时间的测量电路,所述测量电路包括时钟信号发生模块、第一选择模块、第二选择模块、延迟检测模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块,所述控制模块控制所述第一选择模块和所述第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径,所述第一测试路径包括所述时钟信号发生模块、所述第一时钟相位控制器、所述第二时钟相位控制器、所述数据信号传输模块、所述时钟信号传输模块、所述待测时序单元和所述控制模块,所述第二测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第一时钟相位控制器、所述数据信号传输模块和所述控制模块,并且所述第三测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第二时钟相位控制器、所述时钟信号传输模块和所述控制模块;A method for measuring the retention time of a sequential unit, the measurement method is suitable for a circuit for measuring the retention time of a sequential unit, the measurement circuit includes a clock signal generation module, a first selection module, a second selection module, a delay detection module, A first clock phase controller, a second clock phase controller, a data signal transmission module, a clock signal transmission module, a timing unit to be tested, and a control module, the control module controls the first selection module and the second selection module A first test path, a second test path, and a third test path are formed respectively. The first test path includes the clock signal generation module, the first clock phase controller, the second clock phase controller, and the The data signal transmission module, the clock signal transmission module, the timing unit to be tested, and the control module, and the second test path includes the clock signal generation module, the delay detection module, and the first clock A phase controller, the data signal transmission module, and the control module, and the third test path includes the clock signal generation module, the delay detection module, the second clock phase controller, and the clock signal A transmission module and the control module;
    所述方法包括:The method includes:
    分别确定时钟信号的第一周期值、第二周期值和第三周期值,其中,所述第一周期值为在所述第一测试路径下所述待测时序单元能够正确接收到数据信号时的所述时钟信号的临界周期,所述第二周期值为在所述第二测试路径下所述延迟检测模块能够正确接收到数据信号时的所述时钟信号的临界周期,并且所述第三周期值为在所述第三测试路径下所述延迟检测模块能够正确接收到数据信号时的所述时钟信号的临界周期;以及The first period value, the second period value, and the third period value of the clock signal are respectively determined, where the first period value is when the sequence unit under test can correctly receive the data signal under the first test path The critical period of the clock signal, the second period value is the critical period of the clock signal when the delay detection module can correctly receive the data signal under the second test path, and the third The period value is the critical period of the clock signal when the delay detection module can correctly receive the data signal under the third test path; and
    根据所述第一周期值、所述第二周期值和所述第三周期值确定时序单元的保持时间。The retention time of the sequential unit is determined according to the first period value, the second period value, and the third period value.
  2. 根据权利要求1所述的时序单元的保持时间的测量方法,其中,所述时序单元的保持时间等于所述第一周期值与所述第二周期值的和减去所述第三周期值的差值。The method for measuring the retention time of a sequential unit according to claim 1, wherein the retention time of the sequential unit is equal to the sum of the first period value and the second period value minus the third period value Difference.
  3. 根据权利要求1所述的时序单元的保持时间的测量方法,其中,确定所述时钟信号的所述第一周期值、所述第二周期值、所述第三周期值中的任意一项的步骤包括:The method for measuring the retention time of a sequential unit according to claim 1, wherein the value of any one of the first period value, the second period value, and the third period value of the clock signal is determined The steps include:
    确定所述时钟信号的临界周期的预估范围和周期步长;Determining the estimated range and period step length of the critical period of the clock signal;
    根据所述周期步长将所述临界周期的预估范围分成N份,以得到N+1个测试周期值;Dividing the estimated range of the critical period into N parts according to the period step length to obtain N+1 test period values;
    对所述N+1个测试周期值进行测试,以得到N+1个测试结果;Testing the N+1 test period values to obtain N+1 test results;
    得到所述N+1个测试周期值中的M个测试周期值,对于所述M个测试周期值的测试结果为所述待测时序单元或所述延迟检测模块能正确获得数据信号,其中,M小于或者等于N+1;以及Obtain M test period values among the N+1 test period values, and the test result for the M test period values is that the sequence unit to be tested or the delay detection module can correctly obtain the data signal, where: M is less than or equal to N+1; and
    根据所述M个测试周期值,确定所述时钟信号的周期值。According to the M test period values, the period value of the clock signal is determined.
  4. 根据权利要求3所述的时序单元的保持时间的测量方法,其中,所述周期步长为固定周期步长。The method for measuring the retention time of a sequential unit according to claim 3, wherein the period step is a fixed period step.
  5. 一种时序单元的保持时间的测量电路,包括时钟信号发生模块、第一选择模块、第二选择模块、延迟检测模块、第一时钟相位控制器、第二时钟相位控制器、数据信号传输模块、时钟信号传输模块、待测时序单元和控制模块,A circuit for measuring the retention time of a sequential unit, including a clock signal generation module, a first selection module, a second selection module, a delay detection module, a first clock phase controller, a second clock phase controller, a data signal transmission module, Clock signal transmission module, sequence unit to be tested and control module,
    其中,所述时钟信号发生模块分别与所述第一选择模块、所述延迟检测模块和所述控制模块连接;所述延迟检测模块分别与所述第一选择模块、所述第二选择模块和所述控制模块连接;所述第一选择模块分别与所述控制模块、所述第一时钟相位控制器和所述第二时钟相位控制器连接;所述第二选择模块分别与所述控制模块、所述数据信号传输模块和所述时钟信号传输模块连接;所述第一时钟相位控制器分别与所述控制模块和所述数据信号传输模块连接;所述第二时钟相位控制器分别与所述控制模块和所述时钟信号传输模块连接;所述数据信号传输模块分别与所述待测时序单元和所述控制模块连接;所述时钟信号传输模块分别与所述待测时序单元和所述控制模块连接;并且所述待测时序单元与所述控制模块连接;Wherein, the clock signal generation module is respectively connected to the first selection module, the delay detection module and the control module; the delay detection module is respectively connected to the first selection module, the second selection module and The control module is connected; the first selection module is respectively connected to the control module, the first clock phase controller, and the second clock phase controller; the second selection module is connected to the control module respectively The data signal transmission module is connected to the clock signal transmission module; the first clock phase controller is connected to the control module and the data signal transmission module respectively; the second clock phase controller is connected to the The control module is connected to the clock signal transmission module; the data signal transmission module is connected to the timing unit to be tested and the control module, respectively; the clock signal transmission module is connected to the timing unit to be tested and the control module, respectively The control module is connected; and the sequence unit to be tested is connected to the control module;
    所述第一时钟相位控制器用于输出第一脉冲信号并为所述数据信号传输模块提供时钟信号,所述第二时钟相位控制器用于输出第二脉冲信号并为所述时钟信号传输模块提供时钟信号,The first clock phase controller is used to output a first pulse signal and provide a clock signal for the data signal transmission module, and the second clock phase controller is used to output a second pulse signal and provide a clock for the clock signal transmission module Signal,
    所述控制模块用于控制所述第一选择模块和所述第二选择模块分别形成第一测试路径、第二测试路径和第三测试路径,以基于所述第一测试路径、所述第二测试路径和所述第三测试路径确定时序单元的保持时间,其中,所述第一测试路径包括所述时钟信号发生模块、所述第一时钟相位控制器、所述第二时钟相位控制器、所述数据信号传输模块、所述时钟信号传输模块、所述待测时序单元和所述控制模块,所述第二测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第一时钟相位控制器、所述数据信号传输模块和所述控制模块,并且所述第三测试路径包括所述时钟信号发生模块、所述延迟检测模块、所述第二时钟相位控制器、所述时钟信号传输模块和所述控制模块。The control module is configured to control the first selection module and the second selection module to form a first test path, a second test path, and a third test path, respectively, so as to be based on the first test path and the second test path. The test path and the third test path determine the retention time of the timing unit, wherein the first test path includes the clock signal generation module, the first clock phase controller, the second clock phase controller, The data signal transmission module, the clock signal transmission module, the timing unit to be tested, and the control module, and the second test path includes the clock signal generation module, the delay detection module, and the first The clock phase controller, the data signal transmission module, and the control module, and the third test path includes the clock signal generation module, the delay detection module, the second clock phase controller, and the clock The signal transmission module and the control module.
  6. 根据权利要求5所述的时序单元的保持时间的测量电路,其中,所述时钟信号发生模块包括时钟调频单元和时钟脉冲控制单元,所述时钟调频单元与所述时钟脉冲控制单元连接,所述时钟脉冲控制单元分别与所述延迟检测模块和所述第一选择模块的第一输入端连接,所述控制模块分别与所述时钟调频单元和所述时钟脉冲控制单元连接。The circuit for measuring the retention time of a sequential unit according to claim 5, wherein the clock signal generation module includes a clock frequency modulation unit and a clock pulse control unit, the clock frequency modulation unit is connected to the clock pulse control unit, and the The clock pulse control unit is respectively connected to the first input end of the delay detection module and the first selection module, and the control module is respectively connected to the clock frequency modulation unit and the clock pulse control unit.
  7. 根据权利要求5所述的时序单元的保持时间的测量电路,其中,所述延迟检测模块包括第一发送寄存器和接收寄存器,所述第一发送寄存器的第一输入端与所述时钟信号发生模块连接,所述第一发送寄存器的第二输入端连接外部数据信号,并且所述第一发送寄存器的输出端与所述第一选择模块的第二输入端连接,The circuit for measuring the retention time of a timing unit according to claim 5, wherein the delay detection module includes a first sending register and a receiving register, and the first input terminal of the first sending register and the clock signal generating module Connected, the second input terminal of the first sending register is connected to an external data signal, and the output terminal of the first sending register is connected to the second input terminal of the first selection module,
    所述接收寄存器的第一输入端与所述时钟信号发生模块连接,所述接收寄存器的第二输入端与所述第二选择模块的输出端连接,并且所述接收寄存器的输出端与所述控制模块连接。The first input terminal of the receiving register is connected to the clock signal generating module, the second input terminal of the receiving register is connected to the output terminal of the second selection module, and the output terminal of the receiving register is connected to the Control module connection.
  8. 根据权利要求5所述的时序单元的保持时间的测量电路,其中,所述数据信号传输模块包括第二发送寄存器,所述第二发送寄存器的第一输入端与所述第一时钟相位控制器连接,所述第二发送寄存器的第二输入端连接外部数据信号,并且所述第二发送寄存器的输出端分别与所述第二选择模块的第二输入端和所述待测时序单元的第二输入端连接。The circuit for measuring the retention time of a sequential unit according to claim 5, wherein the data signal transmission module includes a second sending register, and the first input terminal of the second sending register is connected to the first clock phase controller Connected, the second input terminal of the second sending register is connected to an external data signal, and the output terminal of the second sending register is respectively connected to the second input terminal of the second selection module and the second input terminal of the sequence unit to be tested Two input terminals are connected.
  9. 根据权利要求5所述的时序单元的保持时间的测量电路,其中,所述时钟信号传输模块包括至少一个第一缓冲模块,所述第一缓冲模块的输入端与所述第二时钟相位控制器连接,并且所述第一缓冲模块的输出端分别与所述第二选择模块的第一输入端和所述待测时序单元的第一输入端连接。The circuit for measuring the retention time of a sequential unit according to claim 5, wherein the clock signal transmission module includes at least one first buffer module, and an input terminal of the first buffer module is connected to the second clock phase controller Connected, and the output terminal of the first buffer module is respectively connected with the first input terminal of the second selection module and the first input terminal of the sequence unit to be tested.
  10. 根据权利要求5所述的时序单元的保持时间的测量电路,其中,The circuit for measuring the retention time of the sequential unit according to claim 5, wherein:
    响应于所述控制模块控制所述第一选择模块的第一输入端闭合且第二输入端断开、所述第二选择模块的第一输入端和第二输入端均断开,形成所述第一测试路径;In response to the control module controlling the first input terminal of the first selection module to be closed and the second input terminal to be disconnected, the first input terminal and the second input terminal of the second selection module are both disconnected, forming the The first test path;
    响应于所述控制模块控制所述第一选择模块的第一输入端断开且第二输入端闭合、所述第二选择模块的第一输入端断开且第二输入端闭合,形成所述第二测试路径;In response to the control module controlling the first input terminal of the first selection module to be opened and the second input terminal closed, the first input terminal of the second selection module is opened and the second input terminal is closed, forming the The second test path;
    响应于所述控制模块控制所述第一选择模块的第一输入端断开且第二输入端闭合、所述第二选择模块的第一输入端闭合且第二输入端断开,形成所述第三测试路径。In response to the control module controlling the first input terminal of the first selection module to open and the second input terminal to close, the first input terminal of the second selection module to close and the second input terminal to open, the formation of the The third test path.
PCT/CN2021/095441 2020-05-29 2021-05-24 Method and circuit for measuring retention time of time sequence unit WO2021238838A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010476276.2 2020-05-29
CN202010476276.2A CN113740717A (en) 2020-05-29 2020-05-29 Method and circuit for measuring retention time of time sequence unit

Publications (1)

Publication Number Publication Date
WO2021238838A1 true WO2021238838A1 (en) 2021-12-02

Family

ID=78722973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/095441 WO2021238838A1 (en) 2020-05-29 2021-05-24 Method and circuit for measuring retention time of time sequence unit

Country Status (2)

Country Link
CN (1) CN113740717A (en)
WO (1) WO2021238838A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114167264A (en) * 2021-12-03 2022-03-11 中国人民解放军国防科技大学 Device for detecting digital circuit holding time violation in nuclear radiation environment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1176607A2 (en) * 2000-07-19 2002-01-30 Infineon Technologies AG Method and device for testing signals setup and hold time in a circuit with synchronous data transfer
JP2003058273A (en) * 2001-08-13 2003-02-28 Oki Electric Ind Co Ltd Hold time measuring circuit
US20080071489A1 (en) * 2006-09-15 2008-03-20 International Business Machines Corporation Integrated circuit for measuring set-up and hold times for a latch element
US20080141198A1 (en) * 2006-12-08 2008-06-12 Faraday Technology Corp. Methodology and system for setup/hold time characterization of analog ip
US20090323447A1 (en) * 2008-06-27 2009-12-31 Hynix Semiconductor Inc. Apparatus for measuring data setup/hold time
CN103440882A (en) * 2008-09-24 2013-12-11 海力士半导体有限公司 Apparatus and method for testing setup/hold time
CN104134463A (en) * 2014-08-01 2014-11-05 中国科学院微电子研究所 Resistive random access memory (RRAM) maintenance time parameter test method
CN105629158A (en) * 2015-12-31 2016-06-01 上海华虹宏力半导体制造有限公司 Measuring circuit of data keeping time of D triggers
CN105759195A (en) * 2016-02-24 2016-07-13 复旦大学 Setup-hold time test system and setup-hold time test method based on fine phase modulation
CN106771990A (en) * 2016-12-07 2017-05-31 武汉新芯集成电路制造有限公司 The measuring circuit and measuring method of d type flip flop setup time
CN106771965A (en) * 2016-12-02 2017-05-31 武汉新芯集成电路制造有限公司 The measuring circuit and measuring method of d type flip flop retention time
CN110033819A (en) * 2018-01-11 2019-07-19 中芯国际集成电路制造(上海)有限公司 SRAM establishes retention time test circuit

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1176607A2 (en) * 2000-07-19 2002-01-30 Infineon Technologies AG Method and device for testing signals setup and hold time in a circuit with synchronous data transfer
JP2003058273A (en) * 2001-08-13 2003-02-28 Oki Electric Ind Co Ltd Hold time measuring circuit
US20080071489A1 (en) * 2006-09-15 2008-03-20 International Business Machines Corporation Integrated circuit for measuring set-up and hold times for a latch element
US20080141198A1 (en) * 2006-12-08 2008-06-12 Faraday Technology Corp. Methodology and system for setup/hold time characterization of analog ip
US20090323447A1 (en) * 2008-06-27 2009-12-31 Hynix Semiconductor Inc. Apparatus for measuring data setup/hold time
CN103440882A (en) * 2008-09-24 2013-12-11 海力士半导体有限公司 Apparatus and method for testing setup/hold time
CN104134463A (en) * 2014-08-01 2014-11-05 中国科学院微电子研究所 Resistive random access memory (RRAM) maintenance time parameter test method
CN105629158A (en) * 2015-12-31 2016-06-01 上海华虹宏力半导体制造有限公司 Measuring circuit of data keeping time of D triggers
CN105759195A (en) * 2016-02-24 2016-07-13 复旦大学 Setup-hold time test system and setup-hold time test method based on fine phase modulation
CN106771965A (en) * 2016-12-02 2017-05-31 武汉新芯集成电路制造有限公司 The measuring circuit and measuring method of d type flip flop retention time
CN106771990A (en) * 2016-12-07 2017-05-31 武汉新芯集成电路制造有限公司 The measuring circuit and measuring method of d type flip flop setup time
CN110033819A (en) * 2018-01-11 2019-07-19 中芯国际集成电路制造(上海)有限公司 SRAM establishes retention time test circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114167264A (en) * 2021-12-03 2022-03-11 中国人民解放军国防科技大学 Device for detecting digital circuit holding time violation in nuclear radiation environment
CN114167264B (en) * 2021-12-03 2024-03-15 中国人民解放军国防科技大学 Device for detecting digital circuit hold time violations in nuclear radiation environment

Also Published As

Publication number Publication date
CN113740717A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
EP2026469B1 (en) Circuit device and method of measuring clock jitter
US8736338B2 (en) High precision single edge capture and delay measurement circuit
US9000817B2 (en) Apparatuses and methods for altering a forward path delay of a signal path
US7038466B1 (en) Measurement of circuit delay
US20070089076A1 (en) Application of consistent cycle context for related setup and hold tests for static timing analysis
US20050222789A1 (en) Automatic test system
TW201643445A (en) On-chip apparatus and method for jitter measurement
WO2021238838A1 (en) Method and circuit for measuring retention time of time sequence unit
US20080175343A1 (en) Phase adjusting function evaluating method, transmission margin measuring method, information processing apparatus, program and computer readable information recording medium
US7945404B2 (en) Clock jitter measurement circuit and integrated circuit having the same
US20200409408A1 (en) Low latency fifo with auto sync
US7504857B2 (en) Functional cells for automated I/O timing characterization of an integrated circuit
US8395946B2 (en) Data access apparatus and associated method for accessing data using internally generated clocks
WO2021238829A1 (en) Timing unit establishing time measuring method and measuring circuit
US8191033B1 (en) In situ clock jitter measurement
US7593831B2 (en) Method and apparatus for testing delay lines
US7043683B2 (en) Data transmission update technique in low power modes
US20170365355A1 (en) Memory controller for selecting read clock signal
US20140009168A1 (en) Detecting operating conditions
CN112152596B (en) Circuit and method for generating pulse output
WO2022088748A1 (en) Clock generation circuit, memory, and clock duty cycle calibration method
JP5269701B2 (en) Test apparatus and strobe signal timing adjustment method
KR20120126242A (en) Data output timing control circuit of semiconductor apparatus
Machado et al. Designing Synchronizers for Nutt-TDCs
JP2001228213A (en) Semiconductor integrated circuit device and method for inspecting clock skew

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21814131

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21814131

Country of ref document: EP

Kind code of ref document: A1