[go: up one dir, main page]

TWI820769B - Apparatus, method, system and medium for measuring pulse signal width - Google Patents

Apparatus, method, system and medium for measuring pulse signal width Download PDF

Info

Publication number
TWI820769B
TWI820769B TW111123817A TW111123817A TWI820769B TW I820769 B TWI820769 B TW I820769B TW 111123817 A TW111123817 A TW 111123817A TW 111123817 A TW111123817 A TW 111123817A TW I820769 B TWI820769 B TW I820769B
Authority
TW
Taiwan
Prior art keywords
delay
output
pulse signal
width
signal
Prior art date
Application number
TW111123817A
Other languages
Chinese (zh)
Other versions
TW202401021A (en
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 英屬開曼群島商臉萌有限公司
Priority to TW111123817A priority Critical patent/TWI820769B/en
Application granted granted Critical
Publication of TWI820769B publication Critical patent/TWI820769B/en
Publication of TW202401021A publication Critical patent/TW202401021A/en

Links

Landscapes

  • Manipulation Of Pulses (AREA)
  • Pulse Circuits (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

An apparatus, method, system and medium are provided. The apparatus includes: a buffer chain, including N first buffers connected end to end, N first AND gates with one input connected to a pulse signal and the other input connected to an output of a corresponding first buffer, and N flip-flops coupled with outputs of respective first AND gates; a path time delay adjustment circuit, with an input receiving a pulse signal, and an output connected to an input terminal of the first buffer; a control apparatus, controlling the time delay produced by the adjustment circuit to be reduced by at least one step from a preset time delay during each adjustment until an output of a P thflip-flop flips; a measuring device measuring the pulse signal’s width according to an output of each flip-flop, the time delay of each first buffer and the time delay of the adjustment circuit.

Description

脈衝信號寬度測量裝置、方法、系統和介質Pulse signal width measurement device, method, system and medium

本發明涉及積體電路領域,且更具體地,涉及用於測量關鍵路徑的時延的脈衝信號寬度測量裝置、方法、系統和介質。The present invention relates to the field of integrated circuits, and more specifically, to a pulse signal width measurement device, method, system and medium for measuring the delay of a critical path.

現代積體電路在製造過程中會受到製程偏差的影響,導致不同成品之間性能有所差異,例如有些積體電路可以在3GHz的頻率下運行,而有些積體電路只能在2.8GHz下運行。積體電路運行速度通常由晶片內部的關鍵路徑時延決定。關鍵路徑一般是積體電路內部時延最長的一批路徑。為了對積體電路進行性能標定,可以在出廠測量中,直接測量積體電路關鍵路徑的時延,測量可以使用時間-數位轉化電路。Modern integrated circuits are affected by process deviations during the manufacturing process, resulting in performance differences between different finished products. For example, some integrated circuits can operate at a frequency of 3GHz, while some can only operate at 2.8GHz. . Integrated circuit operating speed is often determined by critical path delays within the chip. The critical path is generally a batch of paths with the longest delay within the integrated circuit. In order to perform performance calibration of integrated circuits, the delay of the critical path of the integrated circuit can be directly measured during factory measurements. The measurement can use a time-to-digit conversion circuit.

此外,積體電路在運行過程中,由於受到老化、溫度、供電電壓的影響,積體電路內部路徑的時延也會隨之發生波動,可能使得積體電路中某些關鍵路徑的時延超過時鐘周期,導致積體電路運行發生錯誤。In addition, during the operation of the integrated circuit, due to the influence of aging, temperature, and supply voltage, the delay of the internal path of the integrated circuit will also fluctuate, which may cause the delay of some critical paths in the integrated circuit to exceed clock cycles, causing errors in integrated circuit operation.

因此需要對積體電路中某些關鍵路徑的時延進行準確的測量。Therefore, it is necessary to accurately measure the delay of certain critical paths in integrated circuits.

根據本發明的一個方面,提供一種脈衝信號寬度測量裝置,包括:緩衝器鏈路,包括N個第一緩衝器、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器的輸出的N個第一及閘、和與每個第一及閘的輸出端耦合的相應的N個觸發器,而且所述N個第一緩衝器各自的輸出端與下一第一緩衝器的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路,其中所述路徑時延調節電路的輸入端接收脈衝信號,所述路徑時延調節電路的輸出端連接到緩衝器鏈路中的第一個緩衝器的輸入端;控制裝置,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器的輸出改變,其中P是正整數且小於或等於N;測量裝置,連接到各個觸發器的輸出端和所述控制裝置,且至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度。According to one aspect of the present invention, a pulse signal width measuring device is provided, including: a buffer link, including N first buffers, one input end connected to the pulse signal and the other input end connected to the output of the corresponding first buffer. N first AND gates, and corresponding N flip-flops coupled to the output terminals of each first AND gate, and the respective output terminals of the N first buffers are connected to the input terminals of the next first buffer. are connected, where N is a positive integer greater than 1; a path delay adjustment circuit, wherein an input end of the path delay adjustment circuit receives a pulse signal, and an output end of the path delay adjustment circuit is connected to the buffer link The input end of the first buffer; the control device controls the delay generated by the path delay adjustment circuit according to the preset adjustment step during each adjustment to reduce the delay from the preset delay by at least one preset adjustment step until The output of the P-th flip-flop changes, where P is a positive integer and less than or equal to N; the measuring device is connected to the output end of each flip-flop and the control device, and is at least based on the result output by the output end of each flip-flop and each The width of the pulse signal is measured by the delay of the first buffer and the delay of the path delay adjustment circuit just before the output of the P-th flip-flop changes.

根據本發明的另一個方面,提供一種脈衝信號寬度測量裝置的脈衝信號寬度測量方法,其中所述脈衝信號寬度測量裝置包括:緩衝器鏈路,包括N個第一緩衝器、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器的輸出的N個第一及閘、和與每個第一及閘的輸出端耦合的相應的N個觸發器,而且所述N個第一緩衝器各自的輸出端與下一第一緩衝器的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路,其中所述路徑時延調節電路的輸入端接收脈衝信號,所述路徑時延調節電路的輸出端連接到緩衝器鏈路中的第一個緩衝器的輸入端;其中所述脈衝信號寬度測量方法包括:在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器的輸出改變,其中P是正整數且小於或等於N;至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度。According to another aspect of the present invention, a pulse signal width measurement method using a pulse signal width measurement device is provided, wherein the pulse signal width measurement device includes: a buffer link, including N first buffers, an input end connected to the pulse signal and another input terminal connected to N first AND gates corresponding to the outputs of the first buffers and corresponding N flip-flops coupled to the output terminals of each first AND gate, and the N first buffers Each output end of the buffer is connected to the input end of the next first buffer, where N is a positive integer greater than 1; a path delay adjustment circuit, wherein the input end of the path delay adjustment circuit receives a pulse signal, and the The output end of the path delay adjustment circuit is connected to the input end of the first buffer in the buffer chain; wherein the pulse signal width measurement method includes: controlling the path according to a preset adjustment step during each adjustment The delay generated by the delay adjustment circuit is reduced from the preset delay by at least one preset adjustment step until the output of the P-th flip-flop changes, where P is a positive integer and less than or equal to N; at least according to the output of each flip-flop. The width of the pulse signal is measured as a result of the delay of each first buffer and the delay of the path delay adjustment circuit just before the output of the P-th flip-flop changes.

根據本發明的另一個方面,提供一種電腦系統,包括:處理器;儲存器,耦合於處理器,且在其中儲存電腦可執行指令,用於在由處理器執行時進行脈衝信號寬度測量方法。According to another aspect of the present invention, a computer system is provided, including: a processor; and a memory coupled to the processor and storing computer-executable instructions therein for performing a pulse signal width measurement method when executed by the processor.

根據本發明的另一個方面,提供一種電腦可讀介質,其上儲存有電腦程式,其中,所述程式被處理器執行時實現脈衝信號寬度測量方法。According to another aspect of the present invention, a computer-readable medium is provided on which a computer program is stored, wherein the pulse signal width measurement method is implemented when the program is executed by a processor.

本發明的各個方面採用路徑時延調節電路,大幅度提升了測量精度;將測量結構轉換為環形振盪器測量,更加準確的測量,降低了製程偏差、老化、走線等因素對測量結構精度的誤差影響;採用信號鎖存電路產生觸發器的時鐘信號,避免觸發器出現亞穩態現象;測量精度高;相比於使用數位類比轉化電路、電阻電容等方式,本結構可使用純數位結構(例如多路選擇器、邏輯電路和鎖存結構等),利用標準裝置庫中的元件即可實現,可直接進行綜合,對積體電路設計流程反常友好;本結構抗老化干擾,即便電路因老化導致時延增加,測量精度受到影響較小;本結構只需極小的面積開銷,對原積體電路設計影響很小。All aspects of the present invention adopt a path delay adjustment circuit, which greatly improves the measurement accuracy; the measurement structure is converted into a ring oscillator measurement, which enables more accurate measurement and reduces the impact of factors such as process deviation, aging, wiring, etc. on the accuracy of the measurement structure. Error effects; the signal latch circuit is used to generate the clock signal of the flip-flop to avoid the metastable phenomenon of the flip-flop; the measurement accuracy is high; compared with the use of digital analog conversion circuits, resistors and capacitors, etc., this structure can use pure digital structures ( For example, multiplexers, logic circuits and latch structures, etc.) can be realized by using components in the standard device library, and can be directly synthesized, which is extremely friendly to the integrated circuit design process; this structure is resistant to aging interference, even if the circuit is due to aging As a result, the delay is increased and the measurement accuracy is less affected; this structure only requires a very small area overhead and has little impact on the original integrated circuit design.

現在將詳細參照本發明的具體實施例,在附圖中例示了本發明的例子。儘管將結合具體實施例描述本發明,但將理解,不是想要將本發明限於描述的實施例。相反,想要覆蓋由所附申請專利範圍限定的在本發明的精神和範圍內包括的變更、修改和等價物。應注意,這裡描述的方法步驟都可以由任何功能塊或功能佈置來實現,且任何功能塊或功能佈置可被實現為物理實體或邏輯實體、或者兩者的組合。Reference will now be made in detail to the specific embodiments of the invention, examples of which are illustrated in the accompanying drawings. Although the present invention will be described in conjunction with specific embodiments, it will be understood that there is no intention to limit the invention to the described embodiments. On the contrary, the intention is to cover alterations, modifications and equivalents included within the spirit and scope of the invention as defined by the appended claims. It should be noted that the method steps described here can be implemented by any functional block or functional arrangement, and any functional block or functional arrangement can be implemented as a physical entity or a logical entity, or a combination of both.

傳統技術中,可以使用時間-數位轉化電路對關鍵路徑的時延進行測量,判斷積體電路的狀態,如是否處於過度老化、供電電壓不足等狀態。In traditional technology, a time-to-digital conversion circuit can be used to measure the delay of the critical path and determine the status of the integrated circuit, such as whether it is in a state of excessive aging, insufficient supply voltage, etc.

時間-數位轉化電路還被廣泛應用於兩個信號的時間間隔測量,如超聲波流量儀、高能物理和核物理、各種手持/機載或固定工作的高精度激光測距儀、激光雷達、激光掃描儀等領域。Time-to-digital conversion circuits are also widely used in measuring the time interval between two signals, such as ultrasonic flowmeters, high-energy physics and nuclear physics, various handheld/airborne or fixed-working high-precision laser rangefinders, lidar, and laser scanning. Instruments and other fields.

通常時間-數位轉化電路所要測量的關鍵路徑時延或者兩個信號的時間間隔在幾ns、甚至幾百ps。在測量時,首先將關鍵路徑時延或者兩個信號時間間隔轉換為一個脈衝信號,脈衝信號的寬度即為關鍵路徑時延或者兩個信號時間間隔。時間-數位轉化電路一般是利用被測信號通過邏輯閘電路的個數進行測量,其精度取決於單位邏輯閘電路的時延。Usually the critical path delay or the time interval between two signals to be measured by the time-to-digital conversion circuit is several ns or even hundreds of ps. During measurement, the critical path delay or the time interval of two signals is first converted into a pulse signal. The width of the pulse signal is the critical path delay or the time interval of the two signals. Time-to-digital conversion circuits generally measure the number of signals passing through logic gate circuits, and their accuracy depends on the delay of the unit logic gate circuit.

但是,現有技術設計結構複雜,且精度取決於緩衝器的時延,存在精度不足的問題,同時受到老化等影響,緩衝器的時延會發生變化,導致測量不準確;對路徑時延測量需要較長的時間,進而影響了關鍵路徑正常工作;部分設計採用模擬電路,設計複雜且在先進制程中難以實現。However, the design structure of the existing technology is complex, and the accuracy depends on the delay of the buffer. There is a problem of insufficient accuracy. At the same time, due to aging and other effects, the delay of the buffer will change, resulting in inaccurate measurement; path delay measurement requires It takes a long time, which affects the normal operation of the critical path; some designs use analog circuits, which are complex designs and difficult to implement in advanced processes.

本發明的方案通過路徑時延調節方案,進一步提升脈衝寬度的測量精度,可達到單個緩衝器時延的25%;進一步通過將測量結構轉換為環形振盪器,降低了老化、走線等因素帶來的誤差對本發明的測量精度的影響;本發明最快僅需4個時鐘周期就能完成對關鍵路徑時延的測量,對關鍵路徑影響較小;而且本發明可以採用純數位電路實現,實現方便,易於集成。The solution of the present invention further improves the measurement accuracy of pulse width through the path delay adjustment scheme, which can reach 25% of the delay of a single buffer; further, by converting the measurement structure into a ring oscillator, it reduces factors such as aging and wiring. The impact of the error on the measurement accuracy of the present invention; the present invention can complete the measurement of the critical path delay in only 4 clock cycles at the fastest, and has little impact on the critical path; and the present invention can be implemented using pure digital circuits to achieve Convenient and easy to integrate.

圖1示出了根據本發明的實施例的時間-數位轉換電路100的總體方塊圖。Figure 1 shows an overall block diagram of a time-to-digit conversion circuit 100 according to an embodiment of the present invention.

如圖1所示,本發明設計的時間-數位轉換電路100主要包括三個部分:脈衝信號轉換裝置101、脈衝信號寬度測量裝置102和控制裝置103。脈衝信號轉換裝置101主要將待測對象(例如,關鍵路徑的時延,或兩個信號的待測時間間隔等)轉換為一個脈衝信號,脈衝信號的寬度即為待測對象的值(即時間間隔)。脈衝信號寬度測量裝置用於測量脈衝信號轉換裝置101輸出的脈衝信號的寬度。控制裝置用於控制脈衝信號轉換裝置101和脈衝信號寬度測量裝置的運行。As shown in Figure 1, the time-digit conversion circuit 100 designed in the present invention mainly includes three parts: a pulse signal conversion device 101, a pulse signal width measurement device 102 and a control device 103. The pulse signal conversion device 101 mainly converts the object to be measured (for example, the time delay of the critical path, or the time interval to be measured between two signals, etc.) into a pulse signal. The width of the pulse signal is the value of the object to be measured (i.e., time). interval). The pulse signal width measuring device is used to measure the width of the pulse signal output by the pulse signal converting device 101. The control device is used to control the operation of the pulse signal converting device 101 and the pulse signal width measuring device.

圖2A示出了用於將關鍵路徑時延轉換為脈衝信號的電路和波形示意圖。Figure 2A shows a circuit and waveform schematic for converting critical path delays into pulse signals.

利用同一個信號經過兩條路徑(一條路徑存在關鍵路徑的延時,一條路徑不存在延時)再輸入互斥或閘來得到以關鍵路徑的延時為寬度的脈衝信號。The same signal is used to pass through two paths (one path has the delay of the critical path, and one path does not have the delay) and then input a mutually exclusive OR gate to obtain a pulse signal with the delay of the critical path as the width.

具體地,通常,路徑的起點是例如一個觸發器的輸出信號,將該觸發器的輸出信號經過關鍵路徑得到的輸出和該觸發器的輸出直接經過導線(即還是對關鍵路徑的輸入信號)同時輸入一個二端口的互斥或閘。由於關鍵路徑存在時延,因此輸入到互斥或閘中的兩個信號之間存在時延差。根據互斥或閘的特性,兩個輸入信號存在差異的時刻(例如,觸發器輸出的高準位輸出經過關鍵路徑得到的輸出仍為低準位(由於此時高準位在關鍵路徑中還沒有走完),而觸發器的直接輸出為高準位)會導致互斥或閘輸出為高準位,否則,在兩個輸入信號都是高準位(即,觸發器輸出的高準位走完了關鍵路徑而輸出了高準位,觸發器的直接輸出還是高準位)或低準位(例如沒有信號輸入)時,互斥或閘的輸出為低準位。Specifically, usually, the starting point of the path is, for example, the output signal of a flip-flop, and the output obtained by passing the output signal of the flip-flop through the critical path and the output of the flip-flop directly passing through the wire (that is, it is still the input signal to the critical path) are simultaneously Enter a two-port exclusive OR gate. Because there is a delay in the critical path, there is a delay difference between the two signals input to the mutex OR gate. According to the characteristics of the mutually exclusive OR gate, when there is a difference between the two input signals (for example, the high-level output of the flip-flop output passes through the critical path and the output is still low-level (because the high-level level is still in the critical path at this time) has not finished), and the direct output of the flip-flop is high) will cause the mutex or gate output to be high, otherwise, when both input signals are high (i.e., the flip-flop output is high) After completing the critical path and outputting a high level, the direct output of the flip-flop is still a high level) or a low level (for example, there is no signal input), the output of the mutually exclusive OR gate is a low level.

具體地,圖2B展示了關鍵路徑時延轉換為脈衝信號的波形示意圖。通過對關鍵路徑起始點的觸發器進行配置,使得關鍵路徑的輸入為一個上升沿信號,關鍵路徑的輸出為一個延遲關鍵路徑時延長度的上升沿信號,兩個信號經過互斥或閘之後,就可以輸出一個寬度為關鍵路徑時延的脈衝信號。即,脈衝信號是將積體電路的關鍵路徑的起始點的信號通過關鍵路徑得到的信號和起始點的信號作為互斥或閘的兩個輸入而得到的互斥或閘的輸出。Specifically, Figure 2B shows a schematic waveform diagram of the critical path delay converted into a pulse signal. By configuring the trigger at the starting point of the critical path, the input of the critical path is a rising edge signal, and the output of the critical path is a rising edge signal that delays the duration of the critical path. After the two signals pass through a mutually exclusive OR gate , a pulse signal with a width of the critical path delay can be output. That is, the pulse signal is the output of a mutually exclusive OR gate obtained by using the signal at the starting point of the critical path of the integrated circuit through the critical path and the signal at the starting point as two inputs of the mutually exclusive OR gate.

在此,用互斥或閘來得到具有上述特定的輸出僅是示例,只要能在接收上述兩種輸入後能夠得到上述特定的輸出的其他電路也被包括在本公開中,在此不贅述。Here, using a mutually exclusive OR gate to obtain the above-mentioned specific output is only an example. Other circuits that can obtain the above-mentioned specific output after receiving the above two inputs are also included in the present disclosure and will not be described again here.

除了對於關鍵路徑時延的測量可以採用上述方式來得到寬度為關鍵路徑時延的脈衝信號,對於兩個待測信號上升沿到來的時延差的測量也可以採用上述方式轉換後脈衝信號的寬度。In addition to measuring the critical path delay, the above method can be used to obtain a pulse signal with a width of the critical path delay. For measuring the delay difference between the rising edges of the two signals to be measured, the above method can also be used to convert the width of the pulse signal. .

圖3A示出了用於將兩個上升信號時延差轉換為脈衝信號的電路和波形示意圖。兩個待測信號上升沿到來的時延差即為轉換後脈衝信號的寬度。圖3B示出了兩個上升信號時延差轉換為脈衝信號的波形示意圖。在兩個信號經過互斥或閘之後,就可以輸出一個寬度為待測信號上升沿到來的時延差的脈衝信號。FIG. 3A shows a circuit and waveform schematic diagram for converting the delay difference of two rising signals into pulse signals. The difference in delay between the rising edges of the two signals to be measured is the width of the converted pulse signal. Figure 3B shows a schematic waveform diagram of two rising signal delay differences converted into pulse signals. After the two signals pass through the mutually exclusive OR gate, a pulse signal with a width equal to the delay difference between the rising edge of the signal to be measured can be output.

當然,上述各個例子都是用上升沿作為時延差的起始點,但是實際電路中,也可以用下降沿作為時延差的起始點,並且輸出一個寬度為待測信號下降沿到來的時延差的脈衝信號,同時相應地,互斥或閘也要轉變為其他閘,以實現上述轉換。Of course, each of the above examples uses the rising edge as the starting point of the delay difference, but in the actual circuit, the falling edge can also be used as the starting point of the delay difference, and output a width equal to the arrival of the falling edge of the signal to be measured. For pulse signals with different time delays, correspondingly, mutually exclusive OR gates must also be converted into other gates to achieve the above conversion.

圖4示出了根據本發明的實施例的脈衝信號寬度測量裝置400的一個實施例的方方塊圖。Figure 4 shows a block diagram of one embodiment of a pulse signal width measuring device 400 according to an embodiment of the present invention.

該脈衝信號寬度測量裝置400包括:緩衝器鏈路401,包括N個第一緩衝器4011、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器4011的輸出的N個第一及閘4012、和與每個第一及閘4012的輸出端耦合的相應的N個觸發器4013(觸發器1到觸發器N),而且N個第一緩衝器4011各自的輸出端與下一第一緩衝器4011的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路402,其中路徑時延調節電路402的輸入端接收脈衝信號,路徑時延調節電路402的輸出端連接到緩衝器鏈路401中的第一個緩衝器4011的輸入端;控制裝置403,在每次調節時根據預設調節步長控制路徑時延調節電路402產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器4013的輸出改變,其中P是正整數且小於或等於N;測量裝置404,連接到各個觸發器4013的輸出端和控制裝置403,且根據各個觸發器4013的輸出端輸出的結果和每個第一緩衝器4011的延時、就在第P個觸發器4013的輸出改變之前的路徑時延調節電路402的延時,來測量脈衝信號的高精度寬度。The pulse signal width measuring device 400 includes: a buffer link 401, including N first buffers 4011, one input terminal connected to the pulse signal and the other input terminal connected to the output of the corresponding first buffer 4011. gate 4012, and corresponding N flip-flops 4013 (flip-flop 1 to flip-flop N) coupled to the output of each first and gate 4012, and the respective outputs of the N first buffers 4011 are coupled to the next The input end of a buffer 4011 is connected, where N is a positive integer greater than 1; the path delay adjustment circuit 402, where the input end of the path delay adjustment circuit 402 receives the pulse signal, and the output end of the path delay adjustment circuit 402 is connected to the input end of the first buffer 4011 in the buffer chain 401; the control device 403 controls the delay generated by the path delay adjustment circuit 402 according to the preset adjustment step size during each adjustment to reduce the delay generated by the preset delay by at least A preset adjustment step until the output of the P-th flip-flop 4013 changes, where P is a positive integer and less than or equal to N; the measuring device 404 is connected to the output end of each flip-flop 4013 and the control device 403, and according to each trigger The high-precision width of the pulse signal is measured by using the output result of the output terminal of the buffer 4013, the delay of each first buffer 4011, and the delay of the path delay adjustment circuit 402 just before the output of the P-th flip-flop 4013 changes.

如此,加入路徑時延調節電路402的方案將測量精度提升到了路徑時延調節電路402的預設調節步長。In this way, the solution of adding the path delay adjustment circuit 402 improves the measurement accuracy to the preset adjustment step of the path delay adjustment circuit 402.

圖5示出了根據本發明的實施例的脈衝信號寬度測量裝置500的另一實施例的方塊圖。圖5中與圖4中相同的部分採用相同的附圖標記來標識。稍後還將詳細描述圖5。FIG. 5 shows a block diagram of another embodiment of a pulse signal width measuring device 500 according to an embodiment of the present invention. The same parts in Figure 5 as in Figure 4 are identified with the same reference numerals. Figure 5 will also be described in detail later.

接下來先結合其他附圖說明圖4中的各個裝置的結構和操作。Next, the structure and operation of each device in Figure 4 will be described with reference to other figures.

圖6示出了根據本發明的實施例的在輸入示例的脈衝信號波形且不考慮路徑時延調節電路402的情況下緩衝器鏈路401中的各個第一緩衝器4011和第一及閘4012的輸出波形圖。FIG. 6 shows each first buffer 4011 and the first AND gate 4012 in the buffer chain 401 when an example pulse signal waveform is input and the path delay adjustment circuit 402 is not considered according to an embodiment of the present invention. The output waveform diagram.

如圖6所示,在輸入了具有待測寬度的待測脈衝信號的情況下,經過第1個第一緩衝器4011的延時之後,第1個第一緩衝器4011的輸出如圖6所示具有相同的寬度的波形,然後經過第2個第一緩衝器4011的延時之後,第2個第一緩衝器4011的輸出如圖6所示,以此類推,可見每個第一緩衝器4011都是輸出的波形與待測脈衝信號相同,只是每個第一緩衝器4011的輸出之後會將待測脈衝信號進一步延遲該第一緩衝器4011的延時。As shown in Figure 6, when a pulse signal to be measured with a width to be measured is input, after the delay of the first first buffer 4011, the output of the first first buffer 4011 is as shown in Figure 6 Waveforms with the same width, and then after the delay of the second first buffer 4011, the output of the second first buffer 4011 is as shown in Figure 6, and so on, it can be seen that each first buffer 4011 The output waveform is the same as the pulse signal to be measured, except that the output of each first buffer 4011 will further delay the pulse signal to be measured by the delay of the first buffer 4011.

而加入第一及閘4012使得待測脈衝信號與第一緩衝器4011的輸出進行與操作之後,當待測脈衝信號為高準位時,第一及閘4012輸出和連接到第一及閘4012的第一緩衝器4011輸出信號相同,即當待測脈衝信號為高準位且輸入到第一及閘4012的第一緩衝器4011輸出信號也為高準位時,此第一及閘4012的輸出為高準位;否則第一及閘4012一直輸出為低準位。於是,結合圖6的脈衝信號的波形,第1個第一及閘4012的輸出信號如圖6所示,第2個第一及閘4012的輸出信號如圖6所示,以此類推,直到第m個第一及閘4012的輸出存在高準位,而第m+1個第一及閘4012的輸出不存在高準位,其中m是正整數。After adding the first AND gate 4012 so that the pulse signal to be measured performs an AND operation with the output of the first buffer 4011, when the pulse signal to be measured is at a high level, the output of the first AND gate 4012 and is connected to the first AND gate 4012 The output signal of the first buffer 4011 is the same, that is, when the pulse signal to be measured is a high level and the output signal of the first buffer 4011 input to the first AND gate 4012 is also a high level, the first AND gate 4012 The output is a high level; otherwise the first AND gate 4012 always outputs a low level. Therefore, combined with the waveform of the pulse signal in Figure 6, the output signal of the first first AND gate 4012 is as shown in Figure 6, the output signal of the second first AND gate 4012 is as shown in Figure 6, and so on, until The output of the mth first AND gate 4012 has a high level, but the output of the m+1th first AND gate 4012 does not have a high level, where m is a positive integer.

受到用於信號傳播控制的第一及閘4012的控制,待測脈衝信號上升沿在脈衝信號寬度對應時間內傳播只能通過m個第一緩衝器4011,其中m<=N,使得這m個第一緩衝器4011所連接的用於信號傳播控制的第一及閘4012能夠輸出一個脈衝信號,如圖6所示。通過記錄輸出過高準位脈衝信號的第一及閘4012的數目,就可以記錄由相同數目的第一緩衝器4011測量的脈衝信號的寬度,即該數目乘以第一緩衝器4011的時延。Under the control of the first AND gate 4012 for signal propagation control, the rising edge of the pulse signal to be measured can only propagate through m first buffers 4011 within the time corresponding to the width of the pulse signal, where m <= N, so that these m The first AND gate 4012 for signal propagation control connected to the first buffer 4011 can output a pulse signal, as shown in FIG. 6 . By recording the number of first AND gates 4012 that output excessively high level pulse signals, the width of the pulse signals measured by the same number of first buffers 4011 can be recorded, that is, the number multiplied by the delay of the first buffers 4011 .

當然,該測量結果是粗略的,因為只要脈衝信號的寬度比第m-1個第一緩衝器4011的總延時多不到一個第一緩衝器4011的延時,則待測脈衝信號上升沿在脈衝信號寬度對應時間內傳播都會通過m個第一緩衝器4011,至於脈衝信號的寬度比第m-1個第一緩衝器4011的總延時多多少是不精確的。根據本發明的實施例,後續可以通過路徑時延調節電路402進一步精確測量脈衝信號的寬度。Of course, this measurement result is rough, because as long as the width of the pulse signal is less than one delay of the first buffer 4011 than the total delay of the m-1 first buffer 4011, then the rising edge of the pulse signal to be measured will The signal width will propagate through m first buffers 4011 within a time period corresponding to the signal width. It is not accurate as to how much the width of the pulse signal is greater than the total delay of the m-1th first buffer 4011. According to an embodiment of the present invention, the width of the pulse signal can be further accurately measured later through the path delay adjustment circuit 402 .

下面介紹根據本發明的實施例的路徑時延調節電路402的具體高精度測量操作和所起的作用。The following describes the specific high-precision measurement operations and functions of the path delay adjustment circuit 402 according to the embodiment of the present invention.

在傳統技術中,沒有路徑時延調節電路402,只有第一緩衝器4011和第一及閘4012,則這種單純使用緩衝器鏈路401進行測量,脈衝信號的測量的分辨率就等於緩衝器鏈路401上單個緩衝器的時延。即,已知第一緩衝器4011的延時大概是5ps,假如如圖6所示,第m個第一及閘4012的輸出存在高準位,而第m+1個第一及閘4012的輸出不存在高準位,則粗略測量脈衝信號的寬度為m×5ps。但是實際上脈衝信號的寬度可能在(m-1)×5 ps到m×5ps之間,因為只要脈衝信號的寬度比m-1個第一緩衝器4011的時延多、且比m+1個第一緩衝器4011的時延少,則第m個第一緩衝器4011的第一及閘4012輸出就會是高準位脈衝。因此這種單純使用緩衝器鏈路401進行測量的精度不足。在實際試驗中,若是待測脈衝信號寬度為300ps,則5ps時延的緩衝器對應的測量差錯為1.67%,會面臨精度不足問題。In traditional technology, there is no path delay adjustment circuit 402, only the first buffer 4011 and the first AND gate 4012. If the buffer link 401 is simply used for measurement, the measurement resolution of the pulse signal is equal to the buffer. Delay of a single buffer on link 401. That is, it is known that the delay of the first buffer 4011 is about 5 ps. As shown in Figure 6, the output of the m-th first AND gate 4012 has a high level, and the output of the m+1-th first AND gate 4012 If there is no high level, the width of the roughly measured pulse signal is m×5ps. But in fact, the width of the pulse signal may be between (m-1)×5 ps to m×5ps, because as long as the width of the pulse signal is more than the delay of m-1 first buffers 4011, and is more than m+1 The delay of the mth first buffer 4011 is small, so the output of the first AND gate 4012 of the mth first buffer 4011 will be a high-level pulse. Therefore, the measurement accuracy using the buffer link 401 alone is insufficient. In actual experiments, if the pulse signal width to be measured is 300ps, the measurement error corresponding to the 5ps delay buffer is 1.67%, which will face the problem of insufficient accuracy.

因此,本發明進一步引入了一個路徑時延調節電路402,則各個第一緩衝器4011和第一及閘4012的輸出波形與圖6不同但是可以參考圖6,即,第1個第一緩衝器4011輸出的波形要在圖6的基礎上進一步延遲路徑時延調節電路402的延時本身(注意,圖6中未示出路徑時延調節電路402的延時),後續的第一緩衝器4011也都要進一步延遲。然後,這個路徑時延調節電路402受到控制裝置403的控制,能夠以極小的步長逐步減小路徑時延調節電路402的整體時延。Therefore, the present invention further introduces a path delay adjustment circuit 402, then the output waveforms of each first buffer 4011 and the first AND gate 4012 are different from Figure 6, but you can refer to Figure 6, that is, the first first buffer The waveform output by 4011 is further delayed by the delay itself of the path delay adjustment circuit 402 on the basis of Figure 6 (note that the delay of the path delay adjustment circuit 402 is not shown in Figure 6), and the subsequent first buffer 4011 is also To delay further. Then, this path delay adjustment circuit 402 is controlled by the control device 403, and can gradually reduce the overall delay of the path delay adjustment circuit 402 in very small steps.

假設緩衝器鏈路401中耽擱第一緩衝器4011的時延為5ps,路徑時延調節電路402的預設時延初始為10ps,預設調節步長為1ps,假設待測脈衝信號的實際寬度為58ps。這裡,預設調節步長通常小於一個第一緩衝器4011的時延,從而對第一緩衝器4011的時延進行進一步精度化。在最初測量時,若結果顯示前10個第一觸發器4013的輸出由低準位變為高準位,則可推測待測脈衝信號的粗略寬度為(10ps+10×5 ps)=60ps,與實際脈衝信號寬度相比差異較大,精度不夠。Assume that the delay delay of the first buffer 4011 in the buffer link 401 is 5ps, the preset delay of the path delay adjustment circuit 402 is initially 10ps, and the preset adjustment step is 1ps. Assume that the actual width of the pulse signal to be measured is is 58ps. Here, the preset adjustment step size is usually smaller than a delay of the first buffer 4011, so as to further refine the delay of the first buffer 4011. During the initial measurement, if the results show that the output of the first 10 first flip-flops 4013 changes from low level to high level, it can be inferred that the rough width of the pulse signal to be measured is (10ps+10×5 ps)=60ps, Compared with the actual pulse signal width, the difference is large and the accuracy is not enough.

此時可以通過例如1ps的預設調節步長逐步減小路徑時延調節電路402的時延,當路徑時延調節電路402的時延減小為8ps時,測量結果顯示前10個觸發器4013輸出仍然是高準位,則此時推測待測脈衝信號的寬度為68ps;繼續減小路徑時延調節電路402的時延,當路徑時延調節電路402的時延減小為7ps時,測量結果顯示第11個觸發器4013輸出由低準位變為高準位,即測量結果發生了變化,說明調節過度,應當以上一次測量結果為准,即以就在第11個觸發器4013輸出由低準位變為高準位之前的路徑時延調節電路402的時延為准,即8ps。因此,測量結果顯示待測脈衝信號的高精度寬度為(8ps+10×5 ps)=58ps,這與只利用第一緩衝器4011和第一及閘4012進行測量的傳統技術相比,精度提高到1ps的精細度,而不是第一緩衝器4011的5ps精細度。At this time, the delay of the path delay adjustment circuit 402 can be gradually reduced through a preset adjustment step of, for example, 1 ps. When the delay of the path delay adjustment circuit 402 is reduced to 8 ps, the measurement results show the first 10 flip-flops 4013 The output is still high level, then it is estimated that the width of the pulse signal to be measured is 68ps at this time; continue to reduce the delay of the path delay adjustment circuit 402, when the delay of the path delay adjustment circuit 402 is reduced to 7ps, measure The result shows that the output of the 11th flip-flop 4013 changes from low level to high level, that is, the measurement result has changed, indicating that the adjustment is excessive. The last measurement result should prevail, that is, the output of the 11th flip-flop 4013 changes from The delay of the path delay adjustment circuit 402 before the low level changes to the high level is subject to 8ps. Therefore, the measurement results show that the high-precision width of the pulse signal to be measured is (8ps+10×5 ps)=58ps. Compared with the traditional technology that only uses the first buffer 4011 and the first AND gate 4012 for measurement, the accuracy is improved. to 1ps fineness instead of the 5ps fineness of the first buffer 4011.

因此,根據本發明的實施例的加入路徑時延調節電路402的方案將測量精度提升到了路徑時延調節電路402的預設調節步長的精細度。Therefore, the solution of adding the path delay adjustment circuit 402 according to the embodiment of the present invention improves the measurement accuracy to the precision of the preset adjustment step of the path delay adjustment circuit 402 .

如此,通過這種結構的緩衝器鏈路401,根據該圖6的示意,可以直觀地得知該脈衝信號的寬度中經過了路徑時延調節電路402的延時和幾個第一緩衝器4011的延時,從而測量待測脈衝信號的高精度的寬度。In this way, through the buffer link 401 with this structure, according to the diagram of FIG. 6, it can be intuitively known that the width of the pulse signal has gone through the delay of the path delay adjustment circuit 402 and the delay of several first buffers 4011. Delay to measure the high-precision width of the pulse signal to be measured.

當然,只有第一緩衝器4011和第一及閘4012的這種結構直接連接到觸發器4013的時鐘輸入端口可能導致當第一及閘4012輸出高準位時觸發器4013就進行資料採樣,則會面臨第一及閘4012輸出高準位脈衝寬度太窄的可能,導致不符合觸發器4013時序要求,使得採樣失敗或者出現亞穩態。Of course, only this structure of the first buffer 4011 and the first AND gate 4012 directly connected to the clock input port of the flip-flop 4013 may cause the flip-flop 4013 to perform data sampling when the first AND gate 4012 outputs a high level, then There is a possibility that the output high-level pulse width of the first AND gate 4012 is too narrow, resulting in failure to meet the timing requirements of the flip-flop 4013, resulting in sampling failure or metastable state.

因此本發明的另一實施例引入信號鎖存電路(參考圖5以及圖7),當用於信號傳播控制的第一及閘4012產生的高準位脈衝寬度較窄時,信號鎖存電路也能穩定的將輸出由低準位轉變為高準位,為觸發器4013時鐘端口提供一個穩定的上升沿採樣信號。Therefore, another embodiment of the present invention introduces a signal latch circuit (refer to FIGS. 5 and 7 ). When the high-level pulse width generated by the first AND gate 4012 used for signal propagation control is narrow, the signal latch circuit also It can stably change the output from low level to high level, providing a stable rising edge sampling signal for the flip-flop 4013 clock port.

圖7示出了根據本發明的實施例的信號鎖存電路700的示意電路圖。Figure 7 shows a schematic circuit diagram of a signal latch circuit 700 according to an embodiment of the invention.

對於第m個第一及閘4012(m是正整數,且可以取1-N中任一整數),加入了由一個或閘701和一個第二及閘702構成的信號鎖存電路700(如圖7所示)中,或閘701和第二及閘702均有兩個輸入和一個輸出端口。或閘701的一個輸入為用於信號傳播控制的第m個第一及閘4012的輸出,或閘701的另一個輸入為信號鎖存電路700中第二及閘702的輸出,或閘701的輸出端口連接到信號鎖存電路700中第二及閘702的一個輸入端口,同時作為信號鎖存電路700的輸出,連接到第m個第一觸發器4013的時鐘信號輸入端口。信號鎖存電路700中第二及閘702的另一個輸入信號為信號鎖存電路700重置信號,由控制裝置403控制,且在重置時為低準位。For the m-th first AND gate 4012 (m is a positive integer, and can be any integer from 1 to N), a signal latch circuit 700 composed of an OR gate 701 and a second AND gate 702 is added (as shown in the figure 7), the OR gate 701 and the second AND gate 702 each have two inputs and one output port. One input of the OR gate 701 is the output of the mth first AND gate 4012 for signal propagation control, and the other input of the OR gate 701 is the output of the second AND gate 702 in the signal latch circuit 700. The output port is connected to an input port of the second AND gate 702 in the signal latch circuit 700, and at the same time, as the output of the signal latch circuit 700, is connected to the clock signal input port of the m-th first flip-flop 4013. Another input signal of the second AND gate 702 in the signal latch circuit 700 is the reset signal of the signal latch circuit 700, which is controlled by the control device 403 and is at a low level during reset.

結合圖5,信號鎖存電路700工作模式如下:1)在測量開始前,控制裝置403將信號鎖存電路700重置信號設為低準位,同時由於不在測量狀態,脈衝信號寬度測量裝置500的輸入一直為低準位,使得用於信號傳播控制的第一及閘4012的輸出為低準位,因此,信號鎖存電路700的輸出也保持低準位;2)信號鎖存電路700重置之後,控制裝置403將信號鎖存電路700重置信號設為高準位,此時信號鎖存電路700可以用來捕捉用於信號傳播控制的第一及閘4012輸出的高準位;3)一旦用於信號傳播控制的第一及閘4012輸出由低準位變為高準位,那麼或閘701的輸出為高準位,從而第二及閘702的輸出為高準位,或閘701的輸出即使在第一及閘4012的輸出變為低準位之後、由於或閘701的一個輸入(即第二及閘702的輸出)為高準位而仍然是高準位。也就是說,或閘701的輸出由原來的低準位轉換為高準位,信號鎖存電路700就會鎖存這個高準位值,在觸發器4013的時鐘端口產生了一個上升沿信號,進行觸發器4013資料採樣。當然,觸發器4013在測量前也會進行重置,使得輸出為低準位;在測量過程中,觸發器4013的資料端口D保持為高準位,一旦或閘701所連接的時鐘端口有(或閘701輸出的)上升沿信號進行採樣,觸發器4013的輸出端Q的輸出就會由低準位變為高準位。Combined with Figure 5, the working mode of the signal latch circuit 700 is as follows: 1) Before the measurement starts, the control device 403 sets the reset signal of the signal latch circuit 700 to a low level. At the same time, since it is not in the measurement state, the pulse signal width measurement device 500 The input of is always at a low level, so that the output of the first AND gate 4012 used for signal propagation control is at a low level. Therefore, the output of the signal latch circuit 700 also remains at a low level; 2) The signal latch circuit 700 re- After setting, the control device 403 sets the reset signal of the signal latch circuit 700 to a high level. At this time, the signal latch circuit 700 can be used to capture the high level output of the first AND gate 4012 for signal propagation control; 3 ) Once the output of the first AND gate 4012 used for signal propagation control changes from low level to high level, then the output of the OR gate 701 is a high level, so the output of the second AND gate 702 is a high level, or gate The output of 701 is still high even after the output of the first AND gate 4012 becomes low because one input of the OR gate 701 (ie, the output of the second AND gate 702) is high. That is to say, the output of the OR gate 701 is converted from the original low level to a high level, and the signal latch circuit 700 will latch this high level value, and generate a rising edge signal at the clock port of the flip-flop 4013, Perform trigger 4013 data sampling. Of course, the flip-flop 4013 will also be reset before measurement, so that the output is low; during the measurement process, the data port D of the flip-flop 4013 remains high. Once the clock port connected to the OR gate 701 has ( The rising edge signal output by the OR gate 701 is sampled, and the output of the output terminal Q of the flip-flop 4013 changes from a low level to a high level.

通過信號鎖存電路700,可以即使當用於信號傳播控制的第一及閘4012產生的高準位脈衝寬度較窄時,信號鎖存電路700也能鎖存這個高準位,為觸發器4013時鐘端口提供一個穩定的上升沿採樣信號,使得符合觸發器4013時序要求,消除採樣失敗或者亞穩態的現象。Through the signal latch circuit 700, even when the high-level pulse width generated by the first AND gate 4012 used for signal propagation control is narrow, the signal latch circuit 700 can latch the high-level level, which is the flip-flop 4013. The clock port provides a stable rising edge sampling signal to meet the trigger 4013 timing requirements and eliminate the phenomenon of sampling failure or metastability.

接下來介紹路徑時延調節電路402的具體電路實施例。Next, a specific circuit embodiment of the path delay adjustment circuit 402 is introduced.

圖8A示出了根據本發明的實施例的路徑時延調節電路402的一個實施例的電路圖。FIG. 8A shows a circuit diagram of one embodiment of a path delay adjustment circuit 402 according to an embodiment of the present invention.

在該實施例中,路徑時延調節電路402包括M個第一多路選擇器(multiplexer,MUX)801,M是正整數,每個第一多路選擇器801的輸入端與緩衝時間不同的至少2個第二緩衝器802相連接,且在每次調節時,控制裝置403向每個第一多路選擇器801的選通信號端輸入各自的路徑延時調節信號以選通至少2個第二緩衝器802之一,以控制路徑時延調節電路402產生的延時從預設時延減少至少一個預設調節步長。可以通過控制裝置403來對每個第一多路選擇器801輸入各自的路徑時延調節信號,來分別調節各個第一多路選擇器801所經過的第二緩衝器802導致的時延大小。In this embodiment, the path delay adjustment circuit 402 includes M first multiplexers (multiplexers, MUX) 801, M is a positive integer, and the input terminal of each first multiplexer 801 is different from the buffering time by at least The two second buffers 802 are connected, and during each adjustment, the control device 403 inputs respective path delay adjustment signals to the strobe signal terminal of each first multiplexer 801 to gate at least two second buffers 802 . One of the buffers 802 is used to control the delay generated by the path delay adjustment circuit 402 to be reduced by at least one preset adjustment step from the preset delay. The control device 403 can input respective path delay adjustment signals to each first multiplexer 801 to adjust the delay caused by the second buffer 802 that each first multiplexer 801 passes through.

例如,一共5個第一多路選擇器801,每個第一多路選擇器801的輸入端與緩衝時間不同(例如,緩衝1ps、2ps等)的2個第二緩衝器802相連接,也就是說,根據多路選擇哪個第二緩衝器802,每個第一多路選擇器801可以導致1ps或2ps的延時。如果初始延時是10ps,則這5個第一多路選擇器801都被選擇了延時為2ps的第二緩衝器802。假設預設調節步長為1ps,如果要控制路徑時延調節電路402產生的延時從預設時延減少一個預設調節步長,即1ps,則可以控制將某個第一多路選擇器801選擇延時為1ps的第二緩衝器802,而不是2ps的第二緩衝器802,則可以將整個5個第一多路選擇器801的總延時降低為9ps。以此類推,如果其他數量的第一多路選擇器801和其他緩存時間以及其他預設調節步長的情況,可以如上進行調節。For example, there are a total of five first multiplexers 801, and the input end of each first multiplexer 801 is connected to two second buffers 802 with different buffering times (for example, buffering 1ps, 2ps, etc.), also That is, each first multiplexer 801 can result in a delay of 1 ps or 2 ps, depending on which second buffer 802 is demultiplexed. If the initial delay is 10ps, then the five first multiplexers 801 are all selected to the second buffer 802 with a delay of 2ps. Assume that the preset adjustment step is 1 ps. If you want to control the delay generated by the path delay adjustment circuit 402 to be reduced from the preset delay by a preset adjustment step, that is, 1 ps, you can control a first multiplexer 801 to By selecting the second buffer 802 with a delay of 1 ps instead of the second buffer 802 with a delay of 2 ps, the total delay of the entire five first multiplexers 801 can be reduced to 9 ps. By analogy, if there are other numbers of first multiplexers 801 and other cache times and other preset adjustment steps, the adjustment can be performed as above.

圖8B示出了根據本發明的實施例的路徑時延調節電路402的另一個實施例的電路圖。FIG. 8B shows a circuit diagram of another embodiment of the path delay adjustment circuit 402 according to an embodiment of the present invention.

在該實施例中,路徑時延調節電路402包括1個第一多路選擇器801’,該第一多路選擇器801’具有多個輸入端,各個輸入端與總緩衝時間不同的至少2個第二緩衝器組802’相連接。這裡的緩衝時間不同可以通過第二緩衝器組802’中的不同數量的第二緩衝器來實現。且在每次調節時,控制裝置403向第一多路選擇器801’的選通信號端輸入路徑延時調節信號以選通至少2個第二緩衝器組802’中的一個第二緩衝器組,以控制路徑時延調節電路402產生的延時從預設時延減少至少一個預設調節步長。可以通過控制裝置403來對該第一多路選擇器801’輸入各自的路徑時延調節信號,來分別調節第一多路選擇器801’所經過的第二緩衝器導致的時延大小。In this embodiment, the path delay adjustment circuit 402 includes a first multiplexer 801', the first multiplexer 801' has a plurality of input terminals, each input terminal is different from the total buffering time by at least 2 A second buffer group 802' is connected. The difference in buffering time here can be achieved by using different numbers of second buffers in the second buffer group 802'. And during each adjustment, the control device 403 inputs a path delay adjustment signal to the strobe signal terminal of the first multiplexer 801' to select one of the at least two second buffer groups 802'. , to control the delay generated by the path delay adjustment circuit 402 to be reduced by at least one preset adjustment step from the preset delay. The control device 403 can be used to input respective path delay adjustment signals to the first multiplexer 801' to respectively adjust the delay caused by the second buffer passed by the first multiplexer 801'.

例如,每個緩衝器的延時是1ps,一共5個第二緩衝器組802’,第一個第二緩衝器組802’包括5個緩衝器,第二個第二緩衝器組802’包括4個緩衝器,以此類推。假設預設調節步長為1ps,如果要控制路徑時延調節電路402產生的延時從預設時延5ps減少一個預設調節步長,即1ps,則可以控制將第一多路選擇器801’選擇第二個第二緩衝器組802’,以實現延時為4ps。其他延時以此類推。For example, the delay of each buffer is 1ps, there are 5 second buffer groups 802' in total, the first second buffer group 802' includes 5 buffers, and the second second buffer group 802' includes 4 buffer, and so on. Assume that the preset adjustment step is 1ps. If you want to control the delay generated by the path delay adjustment circuit 402 to be reduced from the preset delay of 5ps by a preset adjustment step, that is, 1ps, you can control the first multiplexer 801' The second second buffer group 802' is selected to achieve a latency of 4ps. Other delays can be deduced in the same way.

當然圖8A和圖8B僅是示出了路徑時延調節電路402的兩個示例的實施例,但本發明不限於此,只要能滿足調節時延效果的電路結構,都被包括在本公開中。Of course, FIG. 8A and FIG. 8B only show two example embodiments of the path delay adjustment circuit 402, but the present invention is not limited thereto. As long as the circuit structure can satisfy the effect of adjusting the delay, it is included in the present disclosure. .

以上通過路徑時延調節電路402來更精細地調節時延,從而在調節到臨界點之前停止,即超過臨界點(例如路徑時延調節電路402的時延為7ps),則第P個第一緩衝器4011的第一及閘4012連接的鎖存器的輸出翻轉(從低準位變為高準位),然後再往回調節(例如路徑時延調節電路402的時延為8ps),使得第P個第一緩衝器4011的第一及閘4012連接的鎖存器回到低準位,即固定路徑時延調節電路402的時延為8ps是最佳時延。如此,測量裝置404通過如下步驟來測量脈衝信號的高精度寬度:將前(P-1)個第一緩衝器4011的總延時加上在第P個觸發器4013的輸出改變之前的路徑時延調節電路402的延時、來得到脈衝信號的高精度寬度。在該例子中,假設P=11,則計算脈衝信號的高精度寬度為(10×5 ps+8ps)=58ps。The above is used to adjust the delay more finely through the path delay adjustment circuit 402, so that it stops before the adjustment reaches the critical point, that is, exceeds the critical point (for example, the delay of the path delay adjustment circuit 402 is 7ps), then the Pth first The output of the latch connected to the first AND gate 4012 of the buffer 4011 flips (from low level to high level), and then adjusts back (for example, the delay of the path delay adjustment circuit 402 is 8ps), so that The latch connected to the first AND gate 4012 of the P-th first buffer 4011 returns to the low level, that is, the delay of the fixed path delay adjustment circuit 402 is 8 ps, which is the optimal delay. In this way, the measuring device 404 measures the high-precision width of the pulse signal through the following steps: adding the total delay of the first (P-1) first buffer 4011 to the path delay before the output of the P-th flip-flop 4013 changes. The delay of the circuit 402 is adjusted to obtain the high-precision width of the pulse signal. In this example, assuming P=11, the calculated high-precision width of the pulse signal is (10×5 ps+8ps)=58ps.

當然,上述測量的例子是基於第一緩衝器4011和第二緩衝器802的延時是已知的,但是,需要說明的是,由於晶片製造製程偏差影響,即便設計的時候選擇相同的緩衝器構成緩衝器鏈路401,晶片在製造出來之後,同一個緩衝器鏈路401中的緩衝器時延之間也可能存在差異,此外老化、溫度等因素也可能影響緩衝器的時延,緩衝器的時延也可能隨著時間推移而變化,因此緩衝器的實際時延可能與測量值之間存在誤差,因此不能直接按照設計的已知值進行累加計算。同時,用於信號傳播控制的第一及閘4012要輸出高準位信號,就要求兩個輸入信號的高準位重合時間要維持超過一個最小閾值時間,這就導致使用上述方法測量可能還存在誤差,這個誤差包括上述最小閾值時間。Of course, the above measurement example is based on the known delays of the first buffer 4011 and the second buffer 802. However, it should be noted that due to the influence of wafer manufacturing process deviations, even if the same buffer configuration is selected during design After the buffer link 401 and the chip are manufactured, there may be differences in the buffer delays in the same buffer link 401. In addition, factors such as aging and temperature may also affect the buffer delay. Latency may also change over time, so the actual latency of the buffer may differ from the measured value and therefore cannot be directly accumulated from the known value of the design. At the same time, in order for the first AND gate 4012 used for signal propagation control to output a high-level signal, the high-level coincidence time of the two input signals must be maintained to exceed a minimum threshold time. This leads to the possibility that there may still be problems measured using the above method. Error, this error includes the minimum threshold time mentioned above.

為了消除用於信號傳播控制的第一及閘4012和走線帶來的誤差,可以在實際測量之前,對已知寬度的時鐘信號進行測量,得到測量結果和時鐘信號的已知寬度之間的差,即為上述誤差。待測信號的脈衝寬度即為:實際測量結果和誤差之差,而隨機誤差可以路徑時延調節電路402的調節步長。這是因為待測信號的脈衝寬度是N個緩衝器的粗略時延加上路徑時延調節電路402的所調節到的延時,假設路徑時延調節電路402的調節步長為7ps,那麼待測信號的脈衝寬度就通常在N個緩衝器的粗略時延加上7ps*j和N個緩衝器的粗略時延加上7ps*(j+1)之間(7ps*j和7ps*(j+1)是兩次相鄰的調節得到的路徑時延調節電路402的延時)。待測信號的脈衝寬度可能和(N個緩衝器的粗略時延加上7ps*j))很接近,也可能和(N個緩衝器的粗略時延加上7ps*(j+1))很接近,所以在最差的情況下的誤差是7ps(即路徑時延調節電路402的調節步長)。In order to eliminate errors caused by the first AND gate 4012 and wiring used for signal propagation control, the clock signal with a known width can be measured before the actual measurement, and the difference between the measurement result and the known width of the clock signal can be obtained. The difference is the above error. The pulse width of the signal to be measured is the difference between the actual measurement result and the error, and the random error can be the adjustment step of the path delay adjustment circuit 402 . This is because the pulse width of the signal to be measured is the rough delay of the N buffers plus the delay adjusted by the path delay adjustment circuit 402. Assuming that the adjustment step of the path delay adjustment circuit 402 is 7ps, then the value to be measured The pulse width of the signal is usually between the rough delay of N buffers plus 7ps*j and the rough delay of N buffers plus 7ps*(j+1) (7ps*j and 7ps*(j+ 1) is the delay of the path delay adjustment circuit 402 obtained by two adjacent adjustments). The pulse width of the signal under test may be very close to (the rough delay of N buffers plus 7ps*j)), or it may be very close to (the rough delay of N buffers plus 7ps*(j+1)) Close, so the error in the worst case is 7 ps (ie, the adjustment step size of the path delay adjustment circuit 402).

本發明的如下方案能夠進一步解決上述問題、實現上述效果,進一步提高測量的精度。The following solution of the present invention can further solve the above problems, achieve the above effects, and further improve the accuracy of measurement.

在一個實施例中,為了消除設計和實際緩衝器時延的差別、以及消除走線帶來的時延影響,本設計引入了第二多路選擇器。In one embodiment, in order to eliminate the difference between the designed and actual buffer delays and eliminate the delay effects caused by wiring, the design introduces a second multiplexer.

參考圖5,脈衝信號寬度測量裝置404還包括第二多路選擇器501、多組奇數個反閘502、計數器503和定時器504。其中圖5中示例地示出了每組奇數個反閘502只包括1個反閘(用圓圈表示“反”操作)。然而為了實現環形振盪,實際上每組奇數個反閘502可以包括其他數量的反閘,例如,每組奇數個反閘502可以包括3個反閘,在此不限制。當然,每組反閘的數量最好相互相同,如此這些組反閘引起的電路延時或誤差也是基本相同的。Referring to FIG. 5 , the pulse signal width measuring device 404 also includes a second multiplexer 501 , a plurality of odd-numbered reverse gates 502 , a counter 503 and a timer 504 . FIG. 5 exemplarily shows that each group of odd-numbered reverse gates 502 only includes one reverse gate (a circle represents the "reverse" operation). However, in order to achieve ring oscillation, each group of odd-numbered anti-gates 502 may actually include other numbers of anti-gates. For example, each group of odd-numbered anti-gates 502 may include three anti-gates, which is not limited here. Of course, the number of reverse gates in each group is preferably the same, so that the circuit delays or errors caused by these groups of reverse gates are basically the same.

該第二多路選擇器501的多個輸入端分別通過多組奇數個反閘502接收N個第一緩衝器4011的輸出端的輸出信號且接收脈衝信號和具有預定脈衝寬度的時鐘信號,第二多路選擇器501的輸出端連接路徑時延調節電路402,路徑時延調節電路402的輸出端還連接計數器503,計數器503還連接定時器504。The multiple input terminals of the second multiplexer 501 respectively receive the output signals of the output terminals of the N first buffers 4011 through multiple sets of odd-numbered reverse gates 502 and receive pulse signals and clock signals with predetermined pulse widths. The second The output end of the multiplexer 501 is connected to the path delay adjustment circuit 402, the output end of the path delay adjustment circuit 402 is also connected to the counter 503, and the counter 503 is also connected to the timer 504.

該加入了第二多路選擇器501、多組奇數個反閘502、計數器503和定時器504的脈衝信號寬度測量裝置500的測量過程如下:The measurement process of the pulse signal width measuring device 500 that adds a second multiplexer 501, multiple groups of odd-numbered reverse gates 502, a counter 503 and a timer 504 is as follows:

為了測量出上述由於緩衝器的實際時延、閾值時間和走線導致的誤差,控制裝置403向第二多路選擇器501的選通信號端輸出環形振盪器切換信號,以用已知脈衝寬度的時鐘信號來測量誤差:In order to measure the above-mentioned errors caused by the actual delay, threshold time and wiring of the buffer, the control device 403 outputs a ring oscillator switching signal to the strobe signal terminal of the second multiplexer 501 to use a known pulse width. clock signal to measure the error:

首先,在高精度測量步驟中:First, in the high-precision measurement step:

控制第二多路選擇器501選通具有預定脈衝寬度的時鐘信號,測量裝置404通過路徑時延調節電路402和控制裝置403的時延調節,在每次調節時根據預設調節步長控制路徑時延調節電路402產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器4013的輸出改變,將路徑時延調節電路402的延時固定在就在第Q個觸發器4013的輸出改變之前的狀態,其中Q是正整數且小於或等於N。The second multiplexer 501 is controlled to select a clock signal with a predetermined pulse width. The measurement device 404 adjusts the path delay through the path delay adjustment circuit 402 and the control device 403, and controls the path according to the preset adjustment step during each adjustment. The delay generated by the delay adjustment circuit 402 is reduced from the preset delay by at least one preset adjustment step until the output of the Q-th flip-flop 4013 changes, and the delay of the path delay adjustment circuit 402 is fixed at the Q-th trigger. The output of controller 4013 changes to the state before it changes, where Q is a positive integer and less than or equal to N.

此時,就在第Q個觸發器4013的輸出改變之前的狀態即第1個第一緩衝器4011到第(Q-1)個第一緩衝器4011對應的第1個第一及閘4012第(Q-1)個第一及閘4012的輸出是高準位,其他第一及閘4012的輸出的低準位。At this time, the state just before the output of the Q-th flip-flop 4013 changes, that is, the first first buffer 4011 to the first first AND gate 4012 corresponding to the (Q-1)-th first buffer 4011 The output of the (Q-1) first AND gate 4012 is a high level, and the output of the other first AND gates 4012 is a low level.

這個步驟是為了固定最合適的路徑時延調節電路402的延時,以得到脈衝寬度的高精度測量結果。但該測量結果中仍然存在由於緩衝器的實際時延、閾值時間和走線導致的上述誤差。This step is to fix the most appropriate delay of the path delay adjustment circuit 402 to obtain a high-precision measurement result of the pulse width. However, the above-mentioned errors due to the actual delay, threshold time, and routing of the buffer still exist in this measurement.

接下來,在校準步驟中:Next, in the calibration step:

控制裝置403控制第二多路選擇器501選通第Q-1個第一緩衝器4011的輸出,利用定時器504在預定定時內利用計數器503進行環形振盪計數,來測量得到時鐘信號的帶誤差的寬度,並將預定脈衝寬度與帶誤差的寬度之間的差作為誤差。The control device 403 controls the second multiplexer 501 to select the output of the Q-1 first buffer 4011, and uses the timer 504 to perform ring oscillation counting using the counter 503 within a predetermined time to measure the band error of the clock signal. width, and the difference between the predetermined pulse width and the width with error is taken as the error.

在此,由於第二多路選擇器501選通第Q-1個第一緩衝器4011的輸出,該輸出經過奇數個反閘502、以及路徑時延調節電路402、以及第1個第一緩衝器4011到第Q-1個第一緩衝器4011,這形成了包括奇數個反閘502、以及路徑時延調節電路402、以及第1個第一緩衝器4011到第Q-1個第一緩衝器4011的環形振盪器。Here, since the second multiplexer 501 gates the output of the Q-1 first buffer 4011, the output passes through the odd number of reverse gates 502, the path delay adjustment circuit 402, and the first first buffer. 4011 to the Q-1 first buffer 4011, which forms an odd-numbered reverse gate 502, a path delay adjustment circuit 402, and the 1st first buffer 4011 to the Q-1 first buffer. ring oscillator of the 4011.

在一個例子中,脈衝信號寬度測量裝置404通過調節路徑時延調節電路402,例如此時結果顯示路徑時延調節電路402的時延為8ps,前10個觸發器4013的及閘的輸出由低準位變為高準位,如果路徑時延調節電路402的時延為7ps,第11個觸發器4013的及閘的輸出由低準位變為高準位,則控制裝置403會調節第二多路資料選擇器501選擇第10個觸發器4013的輸出信號。這樣,脈衝信號寬度測量裝置404就被配置成包括奇數個反閘502、以及路徑時延調節電路402、以及第1個第一緩衝器4011到第10個第一緩衝器4011的環形振盪器。In one example, the pulse signal width measuring device 404 adjusts the path delay adjustment circuit 402. For example, the result shows that the delay of the path delay adjustment circuit 402 is 8 ps, and the outputs of the AND gates of the first 10 flip-flops 4013 change from low to low. level changes to a high level. If the delay of the path delay adjustment circuit 402 is 7ps and the output of the AND gate of the 11th flip-flop 4013 changes from a low level to a high level, the control device 403 will adjust the second The multiplexer 501 selects the output signal of the 10th flip-flop 4013. In this way, the pulse signal width measuring device 404 is configured as a ring oscillator including an odd number of reverse gates 502, a path delay adjustment circuit 402, and the first to tenth first buffers 4011 to 4011.

然後,利用定時器504在預定定時內利用計數器503進行環形振盪計數,來測量得到時鐘信號的帶誤差的寬度包括將預定定時除以在預定定時內計數器503對環形振盪的計數來測量得到時鐘信號的帶誤差的寬度。Then, using the timer 504 to count ring oscillations using the counter 503 within a predetermined timing to measure the width of the clock signal with an error includes dividing the predetermined timing by the count of ring oscillations by the counter 503 within the predetermined timing to measure the clock signal. The width of the band error.

在一個例子中,在用定時器504設置預定定時,例如1μs,在該預定定時內,計數器503計數振盪了10000次,則脈衝信號寬度測量裝置500測量時鐘信號的帶誤差的寬度為0.1ns。如此,利用計數器503和定時器504對環形振盪器進行計數測量,就可以得到待測脈衝信號寬度的帶誤差的精確時延。但是,假設輸入的時鐘信號的預定脈衝寬度是1/12ns,則將預定脈衝寬度1/12ns與帶誤差的寬度1/10ns之間的差作為誤差,即1/10ns-1/12ns≈0.0167ns。In one example, when the timer 504 is used to set a predetermined timing, such as 1 μs, and within the predetermined timing, the counter 503 counts oscillations 10,000 times, then the pulse signal width measuring device 500 measures the width with error of the clock signal to be 0.1 ns. In this way, by using the counter 503 and the timer 504 to count and measure the ring oscillator, the accurate time delay with error of the pulse signal width to be measured can be obtained. However, assuming that the predetermined pulse width of the input clock signal is 1/12ns, the difference between the predetermined pulse width 1/12ns and the width with error 1/10ns is regarded as the error, that is, 1/10ns-1/12ns≈0.0167ns .

如此,將脈衝信號寬度測量裝置500配置成一個環形振盪器進行精確測量,通過本發明的實施例得到了整個脈衝信號寬度測量裝置500的由於緩衝器的實際時延、閾值時間和走線導致的誤差,可以有效地抵抗老化導致的緩衝器鏈路401時延變化,降低老化對測量精度的影響。In this way, the pulse signal width measuring device 500 is configured as a ring oscillator for accurate measurement. Through the embodiment of the present invention, the actual delay, threshold time and wiring of the entire pulse signal width measuring device 500 caused by the buffer are obtained. Error can effectively resist the change in buffer link 401 delay caused by aging and reduce the impact of aging on measurement accuracy.

接下來,介紹實際測量任何脈衝信號的高精度和去誤差的寬度。Next, the practical measurement of any pulse signal with high accuracy and error-free width is introduced.

在高精度和去誤差的測量模式中:In high-precision and error-free measurement mode:

控制裝置403控制第二多路選擇器501選通待測脈衝信號,測量裝置404經過高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去誤差,得到脈衝信號的高精度和去誤差的寬度。The control device 403 controls the second multiplexer 501 to select the pulse signal to be measured, and the measuring device 404 obtains the error-width of the pulse signal to be measured through high-precision mode and calibration steps. From the error-band width of the pulse signal to be measured, The error is subtracted from the width to obtain the high accuracy of the pulse signal and the error-free width.

具體地,對於待測脈衝信號,經過高精度模式和校準步驟的測量,包括:首先,在高精度測量步驟中:Specifically, for the pulse signal to be measured, the measurement after high-precision mode and calibration steps includes: First, in the high-precision measurement step:

控制第二多路選擇器501選通待測脈衝信號,測量裝置404通過路徑時延調節電路402和控制裝置403的時延調節,在每次調節時根據預設調節步長控制路徑時延調節電路402產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器4013的輸出改變,將路徑時延調節電路402的延時固定在就在第Q個觸發器4013的輸出改變之前的狀態,其中Q是正整數且小於或等於N。The second multiplexer 501 is controlled to select the pulse signal to be measured. The measurement device 404 adjusts the path delay through the path delay adjustment circuit 402 and the control device 403, and controls the path delay adjustment according to the preset adjustment step during each adjustment. The delay generated by the circuit 402 is reduced by at least one preset adjustment step from the preset delay until the output of the Q-th flip-flop 4013 changes, fixing the delay of the path delay adjustment circuit 402 at just the Q-th flip-flop 4013 The state before the output changes, where Q is a positive integer less than or equal to N.

接下來,在校準步驟中:Next, in the calibration step:

控制裝置403控制第二多路選擇器501選通第Q-1個第一緩衝器4011的輸出,利用定時器504在預定定時內利用計數器503進行環形振盪計數,來測量得到待測脈衝信號的帶誤差的寬度。The control device 403 controls the second multiplexer 501 to select the output of the Q-1 first buffer 4011, and uses the timer 504 to perform ring oscillation counting using the counter 503 within a predetermined time to measure the pulse signal to be measured. Width with error.

接下來,從待測脈衝信號的帶誤差的寬度減去誤差,得到脈衝信號的高精度和去誤差的寬度包括:Next, subtract the error from the error-bearing width of the pulse signal to be measured to obtain the high-precision and error-free width of the pulse signal including:

在去誤差步驟中:In the error removal step:

控制裝置403從待測脈衝信號的帶誤差的寬度減去之前通過預定寬度的時鐘信號計算的誤差,得到脈衝信號的高精度和去誤差的寬度。The control device 403 subtracts the error previously calculated using a clock signal of a predetermined width from the error-bearing width of the pulse signal to be measured to obtain a high-precision and error-free width of the pulse signal.

需要說明的是,為了降低走線對時延測量的干擾,可以要求在布線的時候,每個第一緩衝器4011到第二多路選擇器501的走線距離是相等的。It should be noted that in order to reduce the interference of wiring on delay measurement, it may be required that the wiring distance from each first buffer 4011 to the second multiplexer 501 is equal during wiring.

綜上,本發明的各個實施例提出的時間-數位轉換電路的測量過程如下:In summary, the measurement process of the time-to-digit conversion circuit proposed by various embodiments of the present invention is as follows:

1)  首先進行校準,將脈衝寬度已知的時鐘信號輸入到脈衝信號寬度測量裝置,通過調節路徑時延調節電路,直到觸發器的輸出發生變化,獲取時鐘脈衝信號的高精度值,然後,控制裝置通過控制多路選擇器,將脈衝信號寬度測量裝置轉換為環形振盪器,利用計數器和定時器精確測量待測時鐘脈衝信號的寬度,將其與時鐘信號的已知脈衝寬度值比較,得到本結構測量的誤差。1) Calibrate first, input the clock signal with known pulse width to the pulse signal width measurement device, adjust the path delay adjustment circuit until the output of the flip-flop changes, obtain the high-precision value of the clock pulse signal, and then control The device converts the pulse signal width measurement device into a ring oscillator by controlling the multiplexer, uses counters and timers to accurately measure the width of the clock pulse signal to be measured, and compares it with the known pulse width value of the clock signal to obtain the current pulse width measurement device. Structural measurement errors.

2)  將待測關鍵路徑或者兩個待測時間間隔的信號,利用脈衝轉換裝置,轉換為待測脈衝信號,輸入到脈衝信號寬度測量裝置進行測量,從測量結果移除誤差即為實際的高精度且去誤差的測量結果。2) Use the pulse conversion device to convert the signal of the critical path to be measured or the two time intervals to be measured into the pulse signal to be measured, and input it to the pulse signal width measuring device for measurement. The actual high value is obtained by removing the error from the measurement result. Accurate and error-free measurement results.

當本發明的各個實施例用於關鍵路徑時延測量時,由於積體電路中存在不止一條關鍵路徑,因此可以在關鍵路徑存在的每個區域都放置一個本發明設計的時間數位轉換電路,如圖9所示。圖9示出了在關鍵路徑存在的每個區域都放置一個本發明設計的時間數位轉換電路的示意圖。若是某個區域同時存在多條關鍵路徑,則這些關鍵路徑可以共用一個時間-數位轉換電路,只需要將不同關鍵路徑的輸出通過一個多路選擇器,輸入到時間-數位轉換電路中。When various embodiments of the present invention are used for critical path delay measurement, since there is more than one critical path in the integrated circuit, a time-to-digital conversion circuit designed by the present invention can be placed in each area where the critical path exists, such as As shown in Figure 9. Figure 9 shows a schematic diagram in which a time-to-digital conversion circuit designed according to the present invention is placed in each area where a critical path exists. If there are multiple critical paths in a certain area at the same time, these critical paths can share a time-digit conversion circuit, and the outputs of different critical paths only need to be input to the time-digit conversion circuit through a multiplexer.

本發明的各個實施例採用路徑時延調節電路,大幅度提升了測量精度;將測量結構轉換為環形振盪器測量,更加準確的測量,降低了製程偏差、老化、走線等因素對測量結構精度的誤差影響;採用信號鎖存電路產生觸發器的時鐘信號,避免觸發器出現亞穩態現象;測量精度高,在12nm製程下,測量隨機誤差小於1ps;相比於使用數位類比轉化電路、電阻電容等方式,本結構使用純數位結構(例如多路選擇器、邏輯電路和鎖存結構等),利用標準裝置庫中的元件即可實現,可直接進行綜合,對積體電路設計流程非常友好;本結構抗老化干擾,即便電路因老化導致時延增加,測量精度受到影響較小;本結構只需極小的面積開銷,對原積體電路設計影響很小。Each embodiment of the present invention adopts a path delay adjustment circuit, which greatly improves the measurement accuracy; the measurement structure is converted into a ring oscillator measurement, which enables more accurate measurement and reduces the impact of factors such as process deviation, aging, wiring, etc. on the accuracy of the measurement structure. Error effects; a signal latch circuit is used to generate the clock signal of the flip-flop to avoid metastable phenomena in the flip-flop; the measurement accuracy is high, and the random measurement error is less than 1 ps under the 12nm process; compared with the use of digital analog conversion circuits and resistors Capacitors, etc., this structure uses pure digital structures (such as multiplexers, logic circuits and latch structures, etc.), which can be realized using components in the standard device library, can be directly synthesized, and is very friendly to the integrated circuit design process. ; This structure is resistant to aging interference. Even if the delay of the circuit increases due to aging, the measurement accuracy is less affected; this structure only requires a very small area overhead and has little impact on the original integrated circuit design.

圖10示出了根據本發明的實施例的脈衝信號寬度測量裝置的脈衝信號寬度測量方法1000的流程圖。FIG. 10 shows a flow chart of a pulse signal width measurement method 1000 of a pulse signal width measurement device according to an embodiment of the present invention.

在脈衝信號寬度測量裝置的脈衝信號寬度測量方法1000中,其中脈衝信號寬度測量裝置包括:緩衝器鏈路,包括N個第一緩衝器、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器的輸出的N個第一及閘、和與每個第一及閘的輸出端耦合的相應的N個觸發器,而且N個第一緩衝器各自的輸出端與下一第一緩衝器的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路,其中路徑時延調節電路的輸入端接收脈衝信號,路徑時延調節電路的輸出端連接到緩衝器鏈路中的第一個緩衝器的輸入端。In the pulse signal width measurement method 1000 of the pulse signal width measurement device, the pulse signal width measurement device includes: a buffer link including N first buffers, one input end is connected to the pulse signal, and the other input end is connected to the corresponding first buffer. N first AND gates at the output of a buffer, and corresponding N flip-flops coupled to the output terminals of each first AND gate, and the respective output terminals of the N first buffers are coupled to the next first buffer The input end of the path delay adjustment circuit is connected to the input end of the device, where N is a positive integer greater than 1; the path delay adjustment circuit, where the input end of the path delay adjustment circuit receives the pulse signal, and the output end of the path delay adjustment circuit is connected to the buffer link the input of the first buffer.

脈衝信號寬度測量方法包括:步驟1001,在每次調節時根據預設調節步長控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器的輸出改變,其中P是正整數且小於或等於N;步驟1002,至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的路徑時延調節電路的延時,來測量脈衝信號的寬度。The pulse signal width measurement method includes: step 1001, during each adjustment, the delay generated by the path delay adjustment circuit is controlled according to the preset adjustment step size and is reduced from the preset time delay by at least one preset adjustment step size until the P-th flip-flop The output changes, where P is a positive integer and less than or equal to N; step 1002, at least according to the results output by the output terminals of each flip-flop and the delay of each first buffer, just before the output of the P-th flip-flop changes The path delay adjusts the delay of the circuit to measure the width of the pulse signal.

如此,加入路徑時延調節電路並進行具體調節的方案將測量精度提升到了路徑時延調節電路的預設調節步長。In this way, the solution of adding a path delay adjustment circuit and performing specific adjustments improves the measurement accuracy to the preset adjustment step of the path delay adjustment circuit.

在一個實施例中,路徑時延調節電路包括M個第一多路選擇器,M是正整數,每個第一多路選擇器的輸入端與緩衝時間不同的至少2個第二緩衝器相連接,且在每次調節時根據預設調節步長控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長的步驟1001包括:在每次調節時,向每個第一多路選擇器的選通信號端輸入各自的路徑延時調節信號以選通至少2個第二緩衝器之一,以控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。In one embodiment, the path delay adjustment circuit includes M first multiplexers, M is a positive integer, and the input end of each first multiplexer is connected to at least 2 second buffers with different buffering times. , and the step 1001 of reducing the delay generated by the path delay adjustment circuit from the preset delay by at least one preset adjustment step according to the preset adjustment step size during each adjustment includes: during each adjustment, A strobe signal terminal of a multiplexer inputs respective path delay adjustment signals to strobe at least one of the two second buffers to control the delay generated by the path delay adjustment circuit to reduce by at least one preset delay from the preset delay Adjust the step size.

在一個實施例中,路徑時延調節電路包括1個第一多路選擇器,第一多路選擇器的輸入端與總緩衝時間不同的至少2個第二緩衝器組相連接。在每次調節時根據預設調節步長控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長的步驟1001包括:在每次調節時,向第一多路選擇器的選通信號端輸入路徑延時調節信號以選通至少2個第二緩衝器組中的一個第二緩衝器組,以控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。In one embodiment, the path delay adjustment circuit includes a first multiplexer, and the input end of the first multiplexer is connected to at least two second buffer groups with different total buffering times. The step 1001 of reducing the delay generated by the path delay adjustment circuit by controlling the path delay adjustment circuit according to the preset adjustment step size from the preset delay time by at least one preset adjustment step size at each adjustment time includes: at each adjustment time, The path delay adjustment signal is input to the strobe signal terminal of the device to gate one of the at least two second buffer groups to control the delay generated by the path delay adjustment circuit to be reduced by at least one preset delay from the preset delay. Set the adjustment step size.

如此,通過路徑時延調節電路的不同實施例,用不同的 時延調節方式,來實現控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。 In this way, through different embodiments of the path delay adjustment circuit, different The delay adjustment method is used to reduce the delay generated by the control path delay adjustment circuit from the preset delay by at least one preset adjustment step.

在一個實施例中,脈衝信號寬度測量裝置還包括第二多路選擇器、多組奇數個反閘、計數器和定時器,其中,該第二多路選擇器的多個輸入端分別通過多組奇數個反閘接收N個緩衝器的輸出端的輸出信號且接收脈衝信號和具有預定脈衝寬度的時鐘信號,第二多路選擇器的輸出端連接路徑時延調節電路,路徑時延調節電路的輸出端還連接計數器,計數器還連接定時器。In one embodiment, the pulse signal width measuring device further includes a second multiplexer, multiple groups of odd-numbered anti-gates, counters and timers, wherein multiple input terminals of the second multiplexer pass through multiple groups respectively. An odd number of reverse gates receive output signals from the output terminals of the N buffers and receive pulse signals and clock signals with a predetermined pulse width. The output terminal of the second multiplexer is connected to the path delay adjustment circuit, and the output of the path delay adjustment circuit The terminal is also connected to the counter, and the counter is also connected to the timer.

在一個實施例中,該方法還包括:向第二多路選擇器的選通信號端輸出環形振盪器切換信號,以:In one embodiment, the method further includes: outputting a ring oscillator switching signal to the strobe signal terminal of the second multiplexer to:

在高精度測量步驟中:控制第二多路選擇器選通具有預定脈衝寬度的時鐘信號,在每次調節時根據預設調節步長控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N,In the high-precision measurement step: control the second multiplexer to gate a clock signal with a predetermined pulse width, and control the delay generated by the path delay adjustment circuit according to the preset adjustment step to reduce from the preset delay at each adjustment At least one preset adjustment step until the output of the Q-th flip-flop changes, fixing the delay of the path delay adjustment circuit at the state just before the output of the Q-th flip-flop changes, where Q is a positive integer and less than or equal to N,

在校準步驟中:During the calibration step:

控制第二多路選擇器選通第Q-1個第一緩衝器的輸出,利用定時器在預定定時內利用計數器進行環形振盪計數,來測量得到時鐘信號的帶誤差的寬度,並將預定脈衝寬度與帶誤差的寬度之間的差作為誤差;Control the second multiplexer to select the output of the Q-1 first buffer, use a timer to perform ring oscillation counting within a predetermined time, and use a counter to measure the width of the clock signal with error, and convert the predetermined pulse The difference between the width and the width with error is taken as the error;

其中,至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的路徑時延調節電路的延時,來測量脈衝信號的寬度的步驟1002包括:Among them, the width of the pulse signal is measured at least based on the output result of the output terminal of each flip-flop, the delay of each first buffer, and the delay of the path delay adjustment circuit just before the output of the P-th flip-flop changes. Step 1002 includes:

在高精度和去誤差的測量模式中:In high-precision and error-free measurement mode:

控制第二多路選擇器選通脈衝信號,經過高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去誤差,得到脈衝信號的高精度和去誤差的寬度。Control the second multiplexer strobe pulse signal, and obtain the width with error of the pulse signal to be measured through high-precision mode and calibration steps. Subtract the error from the width with error of the pulse signal to be measured to obtain the pulse signal. High precision and error-free width.

在一個實施例中,控制第二多路選擇器選通脈衝信號,測量裝置經過高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去誤差,得到脈衝信號的高精度和去誤差的寬度的步驟包括:In one embodiment, the second multiplexer strobe pulse signal is controlled, and the measuring device undergoes measurement in a high-precision mode and a calibration step to obtain the width of the pulse signal to be measured with error, from the width of the pulse signal to be measured with error. The steps to subtract the error from the width to obtain the high accuracy of the pulse signal and the error-free width include:

在高精度測量步驟中:控制第二多路選擇器選通待測脈衝信號,測量裝置通過路徑時延調節電路和控制裝置的時延調節,在每次調節時根據預設調節步長控制路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N;In the high-precision measurement step: the second multiplexer is controlled to select the pulse signal to be measured, and the measurement device adjusts the path delay through the path delay adjustment circuit and the control device, and controls the path according to the preset adjustment step during each adjustment. The delay generated by the delay adjustment circuit is reduced from the preset delay by at least one preset adjustment step until the output of the Q-th flip-flop changes, and the delay of the path delay adjustment circuit is fixed at the output of the Q-th flip-flop. Change the previous state, where Q is a positive integer and less than or equal to N;

在校準步驟中:控制裝置控制第二多路選擇器選通第Q-1個第一緩衝器的輸出,利用定時器在預定定時內利用計數器進行環形振盪計數,來測量得到待測脈衝信號的帶誤差的寬度;In the calibration step: the control device controls the second multiplexer to select the output of the Q-1 first buffer, and uses a timer to perform ring oscillation counting within a predetermined time using a counter to measure the pulse signal to be measured. Width with error;

在去誤差步驟中:In the error removal step:

控制裝置從待測脈衝信號的帶誤差的寬度減去之前通過預定寬度的時鐘信號計算的誤差,得到脈衝信號的高精度和去誤差的寬度。The control device subtracts the error previously calculated by the clock signal of a predetermined width from the error-bearing width of the pulse signal to be measured to obtain a high-precision and error-free width of the pulse signal.

如此,將脈衝信號寬度測量裝置配置成一個環形振盪器進行精確測量,通過本發明的實施例得到了整個脈衝信號寬度測量裝置的由於緩衝器的實際時延、閾值時間和走線導致的誤差,可以有效地抵抗老化導致的緩衝器鏈路時延變化,降低老化對測量精度的影響。In this way, the pulse signal width measurement device is configured as a ring oscillator for accurate measurement. Through the embodiment of the present invention, the error caused by the actual delay, threshold time and wiring of the buffer of the entire pulse signal width measurement device is obtained. It can effectively resist changes in buffer link delay caused by aging and reduce the impact of aging on measurement accuracy.

在一個實施例中,利用定時器在預定定時內利用計數器進行環形振盪計數,來測量得到時鐘信號的帶誤差的寬度的步驟包括:將預定定時除以在預定定時內計數器對環形振盪的計數來測量得到時鐘信號的帶誤差的寬度。In one embodiment, the step of using a timer to count ring oscillations with a counter within a predetermined timing to measure the width of the clock signal with an error includes: dividing the predetermined timing by the count of ring oscillations by the counter within the predetermined timing. Measure the width of the clock signal with error.

在一個實施例中,至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的路徑時延調節電路的延時,來測量脈衝信號的寬度的步驟1002包括:將前(P-1)個第一緩衝器的總延時加上在第P個觸發器的輸出改變之前的路徑時延調節電路的延時、來得到脈衝信號的高精度寬度。In one embodiment, the pulse is measured based on at least the result of the output of each flip-flop and the delay of each first buffer and the delay of the path delay adjustment circuit just before the output of the P-th flip-flop changes. The signal width step 1002 includes: adding the total delay of the first (P-1) first buffer to the delay of the path delay adjustment circuit before the output of the P-th flip-flop changes to obtain the high value of the pulse signal. Precision width.

在一個實施例中,脈衝信號寬度測量裝置還包括:N個信號鎖存電路,其中每個緩衝器經過各自的信號鎖存電路連接到相應的觸發器的時鐘輸入端,其中各個觸發器的輸入端接收高準位, 其中,每個信號鎖存電路包括:第一及閘,其第一輸入端與相應的緩衝器的輸出端相連接,其第二輸入端接收脈衝信號;或閘,其第一輸入端與第一及閘的輸出端相連接,其輸出端與相應的觸發器的時鐘輸入端相連接;第二及閘,其輸出端與或閘的第二輸入端相連接,其第一輸入端與或閘的輸出端相連接,其第二輸入端接收信號鎖存電路重置信號,其在重置時是低準位。In one embodiment, the pulse signal width measuring device further includes: N signal latch circuits, wherein each buffer is connected to the clock input end of the corresponding flip-flop through its respective signal latch circuit, wherein the input of each flip-flop terminal receives a high level, wherein each signal latch circuit includes: a first AND gate, whose first input terminal is connected to the output terminal of the corresponding buffer, and whose second input terminal receives the pulse signal; or gate, whose The first input terminal is connected to the output terminal of the first AND gate, and its output terminal is connected to the clock input terminal of the corresponding flip-flop; the output terminal of the second AND gate is connected to the second input terminal of the OR gate, and its output terminal is connected to the second input terminal of the OR gate. The first input terminal is connected to the output terminal of the OR gate, and the second input terminal receives the reset signal of the signal latch circuit, which is at a low level during reset.

在一個實施例中,脈衝信號是將積體電路的關鍵路徑的起始點的信號通過關鍵路徑得到的信號和起始點的信號作為互斥或閘的兩個輸入而得到的互斥或閘的輸出。In one embodiment, the pulse signal is a mutually exclusive OR gate obtained by using the signal at the starting point of the critical path of the integrated circuit through the critical path and the signal at the starting point as two inputs of the mutually exclusive OR gate. output.

綜上,本發明的各個實施例提出的時間-數位轉換電路的測量過程如下:In summary, the measurement process of the time-to-digit conversion circuit proposed by various embodiments of the present invention is as follows:

1)  首先進行校準,將脈衝寬度已知的時鐘信號輸入到脈衝信號寬度測量裝置,通過調節路徑時延調節電路,直到觸發器的輸出發生變化,獲取時鐘脈衝信號的高精度值,然後,控制裝置通過控制多路選擇器,將脈衝信號寬度測量裝置轉換為環形振盪器,利用計數器和定時器精確測量待測時鐘脈衝信號的寬度,將其與時鐘信號的已知脈衝寬度值比較,得到本結構測量的誤差。1) Calibrate first, input the clock signal with known pulse width to the pulse signal width measurement device, adjust the path delay adjustment circuit until the output of the flip-flop changes, obtain the high-precision value of the clock pulse signal, and then control The device converts the pulse signal width measurement device into a ring oscillator by controlling the multiplexer, uses counters and timers to accurately measure the width of the clock pulse signal to be measured, and compares it with the known pulse width value of the clock signal to obtain the current pulse width measurement device. Structural measurement errors.

2)  將待測關鍵路徑或者兩個待測時間間隔的信號,利用脈衝轉換裝置,轉換為待測脈衝信號,輸入到脈衝信號寬度測量裝置進行測量,從測量結果移除誤差即為實際的高精度且去誤差的測量結果。2) Use the pulse conversion device to convert the signal of the critical path to be measured or the two time intervals to be measured into the pulse signal to be measured, and input it to the pulse signal width measuring device for measurement. The actual high value is obtained by removing the error from the measurement result. Accurate and error-free measurement results.

本發明的各個實施例採用路徑時延調節電路,大幅度提升了測量精度;將測量結構轉換為環形振盪器測量,更加準確的測量,降低了製程偏差、老化、走線等因素對測量結構精度的誤差影響;採用信號鎖存電路產生觸發器的時鐘信號,避免觸發器出現亞穩態現象;測量精度高,在12nm製程下,測量隨機誤差小於1ps;相比於使用數位類比轉化電路、電阻電容等方式,本結構使用純數位結構(例如多路選擇器、邏輯電路和鎖存結構等),利用標準裝置庫中的元件即可實現,可直接進行綜合,對積體電路設計流程非常友好;本結構抗老化干擾,即便電路因老化導致時延增加,測量精度受到影響較小;本結構只需極小的面積開銷,對原積體電路設計影響很小。Each embodiment of the present invention adopts a path delay adjustment circuit, which greatly improves the measurement accuracy; the measurement structure is converted into a ring oscillator measurement, which enables more accurate measurement and reduces the impact of factors such as process deviation, aging, wiring, etc. on the accuracy of the measurement structure. Error effects; a signal latch circuit is used to generate the clock signal of the flip-flop to avoid metastable phenomena in the flip-flop; the measurement accuracy is high, and the random measurement error is less than 1 ps under the 12nm process; compared with the use of digital analog conversion circuits and resistors Capacitors, etc., this structure uses pure digital structures (such as multiplexers, logic circuits and latch structures, etc.), which can be realized using components in the standard device library, can be directly synthesized, and is very friendly to the integrated circuit design process. ; This structure is resistant to aging interference. Even if the delay of the circuit increases due to aging, the measurement accuracy is less affected; this structure only requires a very small area overhead and has little impact on the original integrated circuit design.

圖11示出了適於用來實現本發明實施方式的示例性電腦系統的方塊圖。Figure 11 illustrates a block diagram of an exemplary computer system suitable for implementing embodiments of the invention.

電腦系統可以包括處理器(H1);儲存器(H2),耦合於處理器(H1),且在其中儲存電腦可執行指令,用於在由處理器執行時進行本發明的實施例的各個方法的步驟。The computer system may include a processor (H1); a memory (H2) coupled to the processor (H1) and storing therein computer-executable instructions for performing various methods of embodiments of the invention when executed by the processor steps.

處理器(H1)可以包括但不限於例如一個或者多個處理器或者或微處理器等。The processor (H1) may include but is not limited to, for example, one or more processors or microprocessors.

儲存器(H2)可以包括但不限於例如,隨機存取儲存器(RAM)、唯讀儲存器(ROM)、快閃儲存器、EPROM儲存器、EEPROM儲存器、暫存器、電腦儲存介質(例如硬碟、軟碟、固態硬碟、可移動碟、CD-ROM、DVD-ROM、藍光盤等)。Storage (H2) may include, but is not limited to, for example, random access memory (RAM), read only memory (ROM), flash memory, EPROM memory, EEPROM memory, scratchpad, computer storage media ( For example, hard disk, floppy disk, solid state disk, removable disk, CD-ROM, DVD-ROM, Blu-ray disk, etc.).

除此之外,該電腦系統還可以包括資料匯流排(H3)、輸入/輸出(I/O)匯流排(H4),顯示器(H5)以及輸入/輸出設備(H6)(例如,鍵盤、鼠標、揚聲器等)等。In addition, the computer system may also include a data bus (H3), an input/output (I/O) bus (H4), a monitor (H5), and input/output devices (H6) (e.g., keyboard, mouse , speakers, etc.) etc.

處理器(H1)可以通過I/O匯流排(H4)經由有線或無線網絡(未示出)與外部設備(H5、H6等)通信。The processor (H1) can communicate with external devices (H5, H6, etc.) via the I/O bus (H4) via a wired or wireless network (not shown).

儲存器(H2)還可以儲存至少一個電腦可執行指令,用於在由處理器(H1)運行時執行本技術所描述的實施例中的各個功能和/或方法的步驟。The memory (H2) may also store at least one computer-executable instruction for performing various functions and/or method steps in the embodiments described in the present technology when executed by the processor (H1).

在一個實施例中,該至少一個電腦可執行指令也可以被編譯為或組成一種軟體產品,其中一個或多個電腦可執行指令被處理器運行時執行本技術所描述的實施例中的各個功能和/或方法的步驟。In one embodiment, the at least one computer-executable instruction can also be compiled into or constitute a software product, in which one or more computer-executable instructions are executed by a processor to perform various functions in the embodiments described in the present technology. and/or method steps.

圖12示出了根據本公開的實施例的非暫時性電腦可讀儲存介質的示意圖。Figure 12 shows a schematic diagram of a non-transitory computer-readable storage medium according to an embodiment of the present disclosure.

如圖12所示,電腦可讀儲存介質1220上儲存有指令,指令例如是電腦可讀指令1210。當電腦可讀指令1210由處理器運行時,可以執行參照以上附圖描述的供電電壓檢測方法。電腦可讀儲存介質包括但不限於例如揮發性儲存器和/或非揮發性儲存器。揮發性儲存器例如可以包括隨機存取儲存器(RAM)和/或高速緩沖儲存器(cache)等。反揮發性儲存器例如可以包括只讀儲存器(ROM)、硬碟、快閃記憶體等。例如,電腦可讀儲存介質1220可以連接於諸如電腦等的計算設備,接著,在計算設備運行電腦可讀儲存介質1220上儲存的電腦可讀指令1210的情況下,可以進行如上的各個方法。As shown in Figure 12, instructions are stored on the computer-readable storage medium 1220, such as computer-readable instructions 1210. When the computer readable instructions 1210 are executed by the processor, the supply voltage detection method described with reference to the above figures may be performed. Computer-readable storage media includes, but is not limited to, volatile storage and/or non-volatile storage, for example. Volatile storage may include, for example, random access memory (RAM) and/or cache memory (cache), etc. Anti-volatile storage may include, for example, read-only memory (ROM), hard disk, flash memory, etc. For example, the computer-readable storage medium 1220 can be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions 1210 stored on the computer-readable storage medium 1220, the above methods can be performed.

當然,上述的具體實施例僅是例子而非限制,且本領域技術人員可以根據本發明的構思從上述分開描述的各個實施例中合並和組合一些步驟和裝置來實現本發明的效果,這種合並和組合而成的實施例也被包括在本發明中,在此不一一描述這種合並和組合。Of course, the above-mentioned specific embodiments are only examples and not limitations, and those skilled in the art can combine and combine some steps and devices from the above-mentioned separately described embodiments according to the concept of the present invention to achieve the effects of the present invention. Embodiments that are combined and combined are also included in the present invention, and such combinations and combinations are not described one by one here.

注意,在本公開中提及的優點、優勢、效果等僅是示例而反限制,不能認為這些優點、優勢、效果等是本發明的各個實施例必須具備的。另外,上述公開的具體細節僅是為了示例的作用和便於理解的作用,而反限制,上述細節並不限制本發明為必須採用上述具體的細節來實現。Note that the advantages, advantages, effects, etc. mentioned in this disclosure are only examples rather than limitations, and it cannot be considered that these advantages, advantages, effects, etc. are necessary for each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and to facilitate understanding, and are not limiting. The above details do not limit the present invention to the fact that the invention must be implemented using the above specific details.

本公開中涉及的元件、裝置、設備、系統的方塊圖僅作為例示性的例子並且不意圖要求或暗示必須按照方方塊圖示出的方式進行連接、佈置、配置。如本領域技術人員將認識到的,可以按任意方式連接、佈置、配置這些元件、裝置、設備、系統。諸如“包括”、“包含”、“具有”等等的詞語是開放性詞匯,指“包括但不限於”,且可與其互換使用。這裡所使用的詞匯“或”和“和”指詞匯“和/或”,且可與其互換使用,除反上下文明確指示不是如此。這裡所使用的詞匯“諸如”指詞組“諸如但不限於”,且可與其互換使用。The block diagrams of the components, devices, equipment, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these elements, devices, equipment, systems may be connected, arranged, and configured in any manner. Words such as "includes," "includes," "having," etc. are open-ended terms that mean "including, but not limited to," and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the words "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as, but not limited to," and may be used interchangeably therewith.

本公開中的步驟流程圖以及以上方法描述僅作為例示性的例子並且不意圖要求或暗示必須按照給出的順序進行各個實施例的步驟。如本領域技術人員將認識到的,可以按任意順序進行以上實施例中的步驟的順序。諸如“其後”、“然後”、“接下來”等等的詞語不意圖限制步驟的順序;這些詞語僅用於引導讀者通讀這些方法的描述。此外,例如使用冠詞“一個”、“一”或者“該”對於單數的要素的任何引用不被解釋為將該要素限制為單數。The step flow diagrams and method descriptions above in this disclosure are intended to be illustrative examples only and are not intended to require or imply that the steps of various embodiments must be performed in the order presented. As those skilled in the art will recognize, the sequence of steps in the above embodiments may be performed in any order. Words such as "thereafter," "then," "next," and the like are not intended to limit the order of the steps; these words are merely used to guide the reader through the description of these methods. Furthermore, any reference to an element in the singular, such as using the articles "a," "an," or "the," is not to be construed as limiting the element to the singular.

另外,本文中的各個實施例中的步驟和裝置並反僅限定於某個實施例中實行,事實上,可以根據本發明的概念來結合本文中的各個實施例中相關的部分步驟和部分裝置以構思新的實施例,而這些新的實施例也包括在本發明的範圍內。In addition, the steps and devices in each embodiment in this article are not limited to implementation in a certain embodiment. In fact, some of the relevant steps and some of the devices in each embodiment in this article can be combined according to the concept of the present invention. New embodiments are contemplated and are included within the scope of the present invention.

以上描述的方法的各個操作可以通過能夠進行相應的功能的任何適當的手段而進行。該手段可以包括各種硬體和/或軟體組件和/或模組,包括但不限於硬體的電路、專用積體電路(ASIC)或處理器。Each operation of the method described above can be performed by any appropriate means capable of performing the corresponding function. This means may include various hardware and/or software components and/or modules, including but not limited to hardware circuits, application specific integrated circuits (ASICs) or processors.

可以利用被設計用於進行在此描述的功能的通用處理器、數位信號處理器(DSP)、ASIC、場可編程閘陣列信號(FPGA)或其他可編程邏輯元件(PLD)、離散閘或電晶體邏輯、離散的硬體組件或者其任意組合而實現或進行描述的各個例示的邏輯塊、模組和電路。通用處理器可以是微處理器,但是作為替換,該處理器可以是任何商業上可獲得的處理器、控制器、微控制器或狀態機。處理器還可以實現為計算設備的組合,例如DSP和微處理器的組合,多個微處理器、與DSP核協作的微處理器或任何其他這樣的配置。A general purpose processor, digital signal processor (DSP), ASIC, field programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or electronic device designed to perform the functions described herein may be utilized. Each illustrated logic block, module, and circuit is implemented or described as crystal logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but alternatively the processor may be any commercially available processor, controller, microcontroller or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, a microprocessor cooperating with a DSP core, or any other such configuration.

結合本公開描述的方法或算法的步驟可以直接嵌入在硬體中、處理器執行的軟體模組中或者這兩種的組合中。軟體模組可以存在於任何形式的有形儲存介質中。可以使用的儲存介質的一些例子包括隨機存取儲存器(RAM)、只讀儲存器(ROM)、快閃儲存器、EPROM儲存器、EEPROM儲存器、暫存器、硬碟、可移動碟、CD-ROM等。儲存介質可以耦接到處理器以便該處理器可以從該儲存介質讀取信息以及向該儲存介質寫信息。在替換方式中,儲存介質可以與處理器是整體的。軟體模組可以是單個指令或者許多指令,並且可以分布在幾個不同的代碼段上、不同的程式之間以及跨過多個儲存介質。The steps of the method or algorithm described in conjunction with the present disclosure may be embedded directly in hardware, in a software module executed by a processor, or in a combination of the two. Software modules may exist in any form of tangible storage medium. Some examples of storage media that can be used include random access memory (RAM), read only memory (ROM), flash memory, EPROM memory, EEPROM memory, scratchpad, hard disk, removable disk, CD-ROM etc. The storage medium can be coupled to the processor so that the processor can read information from and write information to the storage medium. In the alternative, the storage medium may be integral with the processor. A software module can be a single instruction or many instructions, and can be distributed over several different code segments, between different programs, and across multiple storage media.

在此公開的方法包括用於實現描述的方法的動作。方法和/或動作可以彼此互換而不脫離申請專利範圍的範圍。換句話說,除非指定了動作的具體順序,否則可以修改具體動作的順序和/或使用而不脫離申請專利範圍的範圍。The methods disclosed herein include acts for implementing the described methods. Methods and/or acts may be interchanged with each other without departing from the scope of the claimed claims. In other words, unless a specific order of actions is specified, the order and/or use of specific actions may be modified without departing from the scope of the claimed claims.

上述功能可以按硬體、軟體、韌體或其任意組合而實現。如果以軟體實現,功能可以作為指令儲存在切實的電腦可讀介質上。儲存介質可以是可以由電腦存取的任何可用的切實介質。通過例子而不是限制,這樣的電腦可讀介質可以包括RAM、ROM、EEPROM、CD-ROM或其他光碟儲存、磁碟儲存或其他磁儲存元件或者可以用於攜帶或儲存指令或資料結構形式的期望的程式代碼並且可以由電腦存取的任何其他切實介質。如在此使用的,碟(disk)和盤(disc)包括緊湊盤(CD)、激光盤、光盤、數位通用盤(DVD)、軟碟和藍光盤,其中碟通常磁地再現資料,而盤利用激光光學地再現資料。The above functions can be implemented by hardware, software, firmware or any combination thereof. If implemented in software, functions can be stored as instructions on a tangible computer-readable medium. Storage media can be any available physical media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage elements or may be used to carry or store instructions or data structures in the form of desired Any other tangible medium that contains program code and can be accessed by a computer. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where discs typically reproduce data magnetically, while discs typically reproduce data magnetically. Use lasers to optically reproduce data.

因此,電腦程式產品可以進行在此給出的操作。例如,這樣的電腦程式產品可以是具有有形儲存(和/或編碼)在其上的指令的電腦可讀的有形介質,該指令可由處理器執行以進行在此描述的操作。電腦程式產品可以包括包裝的材料。Therefore, the computer program product can perform the operations given here. For example, such a computer program product may be a computer-readable tangible medium having instructions tangibly stored (and/or encoded) thereon, the instructions executable by a processor to perform the operations described herein. Computer program products may include packaging materials.

軟體或指令也可以通過傳輸介質而傳輸。例如,可以使用諸如同軸電纜、光纖光纜、雙絞線、數位訂戶線(DSL)或諸如紅外、無線電或微波的無線技術的傳輸介質從網站、服務器或者其他遠程源傳輸軟體。Software or instructions may also be transmitted over a transmission medium. For example, the Software may be transmitted from a website, server, or other remote source using a transmission medium such as coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, or microwave.

此外,用於進行在此描述的方法和技術的模組和/或其他適當的手段可以在適當時由使用者終端和/或基站下載和/或其他方式獲得。例如,這樣的設備可以耦接到服務器以促進用於進行在此描述的方法的手段的傳送。或者,在此描述的各種方法可以經由儲存部件(例如RAM、ROM、諸如CD或軟碟等的物理儲存介質)提供,以便使用者終端和/或基站可以在耦接到該設備或者向該設備提供儲存部件時獲得各種方法。此外,可以利用用於將在此描述的方法和技術提供給設備的任何其他適當的技術。In addition, modules and/or other appropriate means for performing the methods and techniques described herein may be downloaded and/or otherwise obtained by user terminals and/or base stations as appropriate. For example, such a device may be coupled to a server to facilitate the transfer of means for performing the methods described herein. Alternatively, the various methods described herein may be provided via storage means (e.g., RAM, ROM, physical storage media such as CD or floppy disk, etc.) so that the user terminal and/or the base station can be coupled to or to the device. Provides various methods for obtaining parts when storing them. Additionally, any other suitable technology for providing the methods and techniques described herein to a device may be utilized.

其他例子和實現方式在本公開和所附申請專利範圍的範圍和精神內。例如,由於軟體的本質,以上描述的功能可以使用由處理器、硬體、韌體、硬連線或這些的任意的組合執行的軟體實現。實現功能的特徵也可以物理地位於各個位置,包括被分發以便功能的部分在不同的物理位置處實現。而且,如在此使用的,包括在申請專利範圍中使用的,在以“至少一個”開始的項的列舉中使用的“或”指示分離的列舉,以便例如“A、B或C的至少一個”的列舉意味著A或B或C,或AB或AC或BC,或ABC(即A和B和C)。此外,措辭“示例的”不意味著描述的例子是優選的或者比其他例子更好。Other examples and implementations are within the scope and spirit of the disclosure and appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwiring, or any combination of these. Features that implement the functionality may also be physically located in various locations, including being distributed so that portions of the functionality are implemented at different physical locations. Furthermore, as used herein, including as used within the scope of the claim, the use of "or" in a list of items beginning with "at least one" indicates a discrete list, such that, for example, "at least one of A, B, or C "An enumeration means A or B or C, or AB or AC or BC, or ABC (that is, A and B and C). Furthermore, the word "exemplary" does not mean that the described example is preferred or better than other examples.

可以不脫離由所附申請專利範圍定義的教導的技術而進行對在此描述的技術的各種改變、替換和更改。此外,本公開的申請專利範圍的範圍不限於以上描述的處理、機器、製造、事件的組成、手段、方法和動作的具體方面。可以利用與在此描述的相應方面進行基本相同的功能或者實現基本相同的結果的當前存在的或者稍後要開發的處理、機器、製造、事件的組成、手段、方法或動作。因而,所附申請專利範圍包括在其範圍內的這樣的處理、機器、製造、事件的組成、手段、方法或動作。Various changes, substitutions and alterations to the technology described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the process, machine, manufacture, composition of events, means, methods and acts described above. A currently existing or later developed process, machine, manufacture, composition of events, means, method or act may be utilized that performs substantially the same function or achieves substantially the same results as described herein. Accordingly, the scope of the appended claims includes within its scope such processes, machines, manufactures, compositions of events, means, methods or acts.

提供所公開的方面的以上描述以使本領域的任何技術人員能夠做出或者使用本發明。對這些方面的各種修改對於本領域技術人員而言是反常顯而易見的,並且在此定義的一般原理可以應用於其他方面而不脫離本發明的範圍。因此,本發明不意圖被限制到在此示出的方面,而是按照與在此公開的原理和新穎的特徵一致的最寬範圍。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

為了例示和描述的目的已經給出了以上描述。此外,此描述不意圖將本發明的實施例限制到在此公開的形式。儘管以上已經討論了多個示例方面和實施例,但是本領域技術人員將認識到其某些變型、修改、改變、添加和子組合。The foregoing description has been presented for the purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. Although various example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

100:時間-數位轉換電路 101:脈衝信號轉換裝置 102、500:脈衝信號寬度測量裝置 401:緩衝器鏈路 402:路徑時延調節電路 103、403:控制裝置 404:測量裝置 4011、802:緩衝器 4012、702:及閘 4013:觸發器 700:信號鎖存電路 701:或閘 801、801’:多路選擇器 802’:緩衝器組 1000:脈衝信號寬度測量方法 1001、1002:步驟 1210:指令 1220:電腦可讀儲存介質 H1:處理器 H2:儲存器 H3:資料匯流排 H4:匯流排 H5、H6:外部設備 100: Time-digital conversion circuit 101: Pulse signal conversion device 102, 500: Pulse signal width measurement device 401: buffer link 402: Path delay adjustment circuit 103, 403: Control device 404: Measuring device 4011, 802: buffer 4012, 702: and gate 4013:Trigger 700: Signal latch circuit 701:OR gate 801, 801’: multiplexer 802’: Buffer group 1000: Pulse signal width measurement method 1001, 1002: steps 1210:Command 1220: Computer readable storage media H1: Processor H2: Storage H3: Data bus H4:Bus H5, H6: External equipment

為了更清楚地說明本公開實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本公開的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 圖1示出了根據本發明的實施例的時間-數位轉換電路的總體方塊圖。 圖2A示出了用於將關鍵路徑時延轉換為脈衝信號的電路和波形示意圖。圖2B展示了關鍵路徑時延轉換為脈衝信號的波形示意圖。 圖3A示出了用於將兩個上升信號時延差轉換為脈衝信號的電路和波形示意圖。圖3B示出了兩個上升信號時延差轉換為脈衝信號的波形示意圖。 圖4示出了根據本發明的實施例的脈衝信號寬度測量裝置的一個實施例的方塊圖。 圖5示出了根據本發明的實施例的脈衝信號寬度測量裝置的另一實施例的方塊圖。 圖6示出了根據本發明的實施例的在輸入示例的脈衝信號波形且不考慮路徑時延調節電路的情況下緩衝器鏈路中的各個第一緩衝器和第一及閘的輸出波形圖。 圖7示出了根據本發明的實施例的信號鎖存電路的示意電路圖。 圖8A示出了根據本發明的實施例的路徑時延調節電路的一個實施例的電路圖。 圖8B示出了根據本發明的實施例的路徑時延調節電路的另一個實施例的電路圖。 圖9示出了根據本發明的實施例的在關鍵路徑存在的每個區域都放置一個本發明設計的時間數位轉換電路的示意圖。 圖10示出了根據本發明的實施例的脈衝信號寬度測量裝置的脈衝信號寬度測量方法的流程圖。 圖11示出了適於用來實現本發明實施方式的示例性電腦系統的方塊圖。 圖12示出了根據本公開的實施例的反暫時性電腦可讀儲存介質的示意圖。 In order to more clearly explain the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of explaining the embodiments or the technical solutions in the prior art. For some disclosed embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts. Figure 1 shows an overall block diagram of a time-to-digital conversion circuit according to an embodiment of the present invention. Figure 2A shows a circuit and waveform schematic for converting critical path delays into pulse signals. Figure 2B shows a schematic waveform diagram of the critical path delay converted into a pulse signal. FIG. 3A shows a circuit and waveform schematic diagram for converting the delay difference of two rising signals into pulse signals. Figure 3B shows a schematic waveform diagram of two rising signal delay differences converted into pulse signals. FIG. 4 shows a block diagram of an embodiment of a pulse signal width measuring device according to an embodiment of the present invention. FIG. 5 shows a block diagram of another embodiment of a pulse signal width measuring device according to an embodiment of the present invention. 6 shows an output waveform diagram of each first buffer and the first AND gate in the buffer chain when the pulse signal waveform of the example is input and the path delay adjustment circuit is not considered according to an embodiment of the present invention. . Figure 7 shows a schematic circuit diagram of a signal latch circuit according to an embodiment of the present invention. FIG. 8A shows a circuit diagram of an embodiment of a path delay adjustment circuit according to an embodiment of the present invention. FIG. 8B shows a circuit diagram of another embodiment of a path delay adjustment circuit according to an embodiment of the present invention. FIG. 9 shows a schematic diagram of placing a time-to-digital conversion circuit designed according to the present invention in each area where a critical path exists, according to an embodiment of the present invention. FIG. 10 shows a flow chart of a pulse signal width measurement method of a pulse signal width measurement device according to an embodiment of the present invention. Figure 11 illustrates a block diagram of an exemplary computer system suitable for implementing embodiments of the invention. Figure 12 shows a schematic diagram of a non-transitory computer-readable storage medium according to an embodiment of the present disclosure.

401:緩衝器鏈路 401: buffer link

402:路徑時延調節電路 402: Path delay adjustment circuit

403:控制裝置 403:Control device

404:測量裝置 404: Measuring device

4011:緩衝器 4011:Buffer

4012:及閘 4012: and gate

4013:觸發器 4013:Trigger

Claims (20)

一種脈衝信號寬度測量裝置,包括:緩衝器鏈路,包括N個第一緩衝器、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器的輸出的N個第一及閘、和與每個第一及閘的輸出端耦合的相應的N個觸發器,而且所述N個第一緩衝器各自的輸出端與下一第一緩衝器的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路,其中所述路徑時延調節電路的輸入端接收脈衝信號,所述路徑時延調節電路的輸出端連接到緩衝器鏈路中的第一個緩衝器的輸入端;控制裝置,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器的輸出改變,其中P是正整數且小於或等於N;測量裝置,連接到各個觸發器的輸出端和所述控制裝置,且至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度。 A pulse signal width measuring device, including: a buffer link, including N first buffers, one input terminal connected to the pulse signal and the other input terminal connected to the output of the corresponding first buffer, and N first AND gates, and There are corresponding N flip-flops coupled to the output terminals of each first AND gate, and the respective output terminals of the N first buffers are connected to the input terminals of the next first buffer, where N is greater than 1 a positive integer; a path delay adjustment circuit, wherein an input end of the path delay adjustment circuit receives a pulse signal, and an output end of the path delay adjustment circuit is connected to the input of the first buffer in the buffer chain end; a control device that controls the delay generated by the path delay adjustment circuit according to the preset adjustment step during each adjustment to reduce the delay generated by the preset delay by at least one preset adjustment step until the output of the P-th flip-flop changes , where P is a positive integer and less than or equal to N; the measuring device is connected to the output end of each flip-flop and the control device, and is at least based on the result output by the output end of each flip-flop and the delay of each first buffer, The width of the pulse signal is measured by adjusting the delay of the path delay circuit just before the output of the P-th flip-flop changes. 如請求項1所述的裝置,其中,所述路徑時延調節電路包括M個第一多路選擇器,M是正整數,每個第一多路選擇器的輸入端與緩衝時間不同的至少2個第二緩衝器相連接,且在每次調節時,所述控制裝置向每個第一多路選擇器的選通信號端輸入各自的路徑延時調節信號以選通所述至 少2個第二緩衝器之一,以控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。 The device according to claim 1, wherein the path delay adjustment circuit includes M first multiplexers, M is a positive integer, and the input end of each first multiplexer is different from the buffering time by at least 2 are connected to the second buffers, and during each adjustment, the control device inputs respective path delay adjustment signals to the strobe signal terminals of each first multiplexer to strobe the to One of the two second buffers is used to control the delay generated by the path delay adjustment circuit to be reduced from the preset delay by at least one preset adjustment step. 如請求項1所述的裝置,其中,所述路徑時延調節電路包括1個第一多路選擇器,所述第一多路選擇器的輸入端與總緩衝時間不同的至少2個第二緩衝器組相連接,且在每次調節時,所述控制裝置向所述第一多路選擇器的選通信號端輸入路徑延時調節信號以選通所述至少2個第二緩衝器組中的一個第二緩衝器組,以控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。 The device according to claim 1, wherein the path delay adjustment circuit includes a first multiplexer, and at least two second input terminals of the first multiplexer are different from the total buffering time. The buffer groups are connected, and during each adjustment, the control device inputs a path delay adjustment signal to the strobe signal terminal of the first multiplexer to gate the at least two second buffer groups. A second buffer group is provided to control the delay generated by the path delay adjustment circuit to be reduced from the preset delay by at least one preset adjustment step. 如請求項1所述的裝置,還包括第二多路選擇器、多組奇數個反閘、計數器和定時器,其中,該第二多路選擇器的多個輸入端分別通過所述多組奇數個反閘接收所述N個緩衝器的輸出端的輸出信號且接收所述脈衝信號和具有預定脈衝寬度的時鐘信號,所述第二多路選擇器的輸出端連接所述路徑時延調節電路,所述路徑時延調節電路的輸出端還連接所述計數器,所述計數器還連接所述定時器。 The device according to claim 1, further comprising a second multiplexer, a plurality of odd-numbered reverse gates, a counter and a timer, wherein multiple input terminals of the second multiplexer pass through the plurality of groups respectively. An odd number of reverse gates receive output signals from the output terminals of the N buffers and receive the pulse signal and a clock signal with a predetermined pulse width. The output terminal of the second multiplexer is connected to the path delay adjustment circuit. , the output end of the path delay adjustment circuit is also connected to the counter, and the counter is also connected to the timer. 如請求項4所述的裝置,其中,所述控制裝置向所述第二多路選擇器的選通信號端輸出環形振盪器切換信號,以:在高精度測量步驟模式中: 控制所述第二多路選擇器選通所述具有預定脈衝寬度的時鐘信號,所述測量裝置通過所述路徑時延調節電路和控制裝置的時延調節,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將所述路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N,在校準步驟中:控制所述第二多路選擇器選通所述第Q-1個第一緩衝器的輸出,利用所述定時器在預定定時內利用計數器進行環形振盪計數,來測量得到所述時鐘信號的帶誤差的寬度,並將所述預定脈衝寬度與所述帶誤差的寬度之間的差作為誤差;在高精度和去誤差的測量模式中:控制所述第二多路選擇器選通所述脈衝信號,所述測量裝置經過所述高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去所述誤差,得到脈衝信號的高精度和去誤差的寬度,其中,所述利用所述定時器在預定定時內利用計數器進行環形振盪計數,來測量得到所述時鐘信號的帶誤差的寬度包括將預定定時除以在預定定時內計數器對環形振盪的計數來測量得到所述時鐘信號的帶誤差的寬度。 The device of claim 4, wherein the control device outputs a ring oscillator switching signal to the strobe signal terminal of the second multiplexer to: in the high-precision measurement step mode: The second multiplexer is controlled to gate the clock signal with a predetermined pulse width, and the measuring device adjusts the delay according to the preset during each adjustment through the path delay adjustment circuit and the control device. The step size controls the delay generated by the path delay adjustment circuit to be reduced by at least one preset adjustment step from the preset delay until the output of the Qth flip-flop changes, and the delay of the path delay adjustment circuit is fixed at the current value. The state before the output of the Q-th flip-flop changes, where Q is a positive integer and less than or equal to N, in the calibration step: control the second multiplexer to gate the Q-1 first buffer The output of the clock signal is measured by using the timer to perform ring oscillation counting with a counter within a predetermined timing, and the difference between the predetermined pulse width and the width with error is calculated. As an error; in the high-precision and error-free measurement mode: control the second multiplexer to gate the pulse signal, and the measurement device undergoes measurement in the high-precision mode and calibration steps to obtain the pulse to be measured The error is subtracted from the error-bearing width of the signal to be measured to obtain the high-precision and error-free width of the pulse signal, wherein the timer is used to use the counter within the predetermined timing. Performing ring oscillation counting to measure the error-bearing width of the clock signal includes dividing a predetermined timing by the count of ring oscillations by a counter within the predetermined timing to measure the error-bearing width of the clock signal. 如請求項5所述的裝置,其中,控制所述第二多路選擇器選通所述脈衝信號,所述測量裝置經過所述高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去所述誤差,得到脈衝信號的高精度和去誤差的寬度包括:在高精度測量步驟中:控制所述第二多路選擇器選通所述待測脈衝信號,所述測量裝置通過所述路徑時延調節電路和控制裝置的時延調節,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將所述路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N;在校準步驟中:控制裝置控制所述第二多路選擇器選通所述第Q-1個第一緩衝器的輸出,利用所述定時器在預定定時內利用計數器進行環形振盪計數,來測量得到所述待測脈衝信號的帶誤差的寬度;在去誤差步驟中:控制裝置從待測脈衝信號的帶誤差的寬度減去之前通過預定寬度的時鐘信號計算的誤差,得到脈衝信號的高精度和去誤差的寬度。 The device according to claim 5, wherein the second multiplexer is controlled to gate the pulse signal, and the measuring device undergoes measurement in the high-precision mode and calibration steps to obtain the band of the pulse signal to be measured. The width of the error, subtracting the error from the width of the pulse signal to be measured with error, to obtain the high accuracy of the pulse signal and the error-free width includes: in the high-precision measurement step: controlling the selection of the second multiplexer Through the pulse signal to be measured, the measuring device adjusts the delay generated by the path delay adjustment circuit and the control device according to the preset adjustment step size during each adjustment. Reduce at least one preset adjustment step from the preset delay until the output of the Q-th flip-flop changes, and fix the delay of the path delay adjustment circuit at the state just before the output of the Q-th flip-flop changes, Where Q is a positive integer and less than or equal to N; in the calibration step: the control device controls the second multiplexer to select the output of the Q-1 first buffer, and uses the timer to A counter is used to perform ring oscillation counting to measure the error-bearing width of the pulse signal to be measured; in the error removal step: the control device subtracts the clock signal that has previously passed the predetermined width from the error-bearing width of the pulse signal to be measured. Calculate the error to obtain the high accuracy of the pulse signal and the error-free width. 如請求項1所述的裝置,其中, 所述測量裝置通過如下步驟來測量所述脈衝信號的高精度寬度:將所述前(P-1)個第一緩衝器的總延時加上在所述第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時、來得到所述脈衝信號的高精度寬度。 The device according to claim 1, wherein, The measuring device measures the high-precision width of the pulse signal through the following steps: adding the total delay of the first (P-1) first buffer before the output of the P-th flip-flop changes. The path delay adjusts the delay of the circuit to obtain the high-precision width of the pulse signal. 如請求項1所述的裝置,還包括:N個信號鎖存電路,其中每個緩衝器經過各自的信號鎖存電路連接到相應的觸發器的時鐘輸入端,其中各個觸發器的輸入端接收高準位,其中,每個信號鎖存電路包括:第一及閘,其第一輸入端與相應的緩衝器的輸出端相連接,其第二輸入端接收脈衝信號;或閘,其第一輸入端與所述第一及閘的輸出端相連接,其輸出端與相應的觸發器的時鐘輸入端相連接;第二及閘,其輸出端與所述或閘的第二輸入端相連接,其第一輸入端與所述或閘的輸出端相連接,其第二輸入端接收信號鎖存電路重置信號,其在重置時是低準位。 The device as described in claim 1, further comprising: N signal latch circuits, wherein each buffer is connected to the clock input end of the corresponding flip-flop through its respective signal latch circuit, wherein the input end of each flip-flop receives High level, wherein each signal latch circuit includes: a first AND gate, whose first input terminal is connected to the output terminal of the corresponding buffer, and whose second input terminal receives the pulse signal; or gate, whose first The input terminal is connected to the output terminal of the first AND gate, and its output terminal is connected to the clock input terminal of the corresponding flip-flop; the output terminal of the second AND gate is connected to the second input terminal of the OR gate. , its first input terminal is connected to the output terminal of the OR gate, and its second input terminal receives the reset signal of the signal latch circuit, which is at a low level during reset. 如請求項1所述的裝置,其中,所述脈衝信號是將積體電路的關鍵路徑的起始點的信號通過所述關鍵路徑得到的信號和所述起始點的信號作為互斥或閘的兩個輸入而得到的互斥或閘的輸出。 The device according to claim 1, wherein the pulse signal is a signal obtained by passing a starting point signal of a critical path of the integrated circuit through the critical path and a signal of the starting point as a mutually exclusive OR gate The output of the mutually exclusive OR gate is obtained from the two inputs. 一種脈衝信號寬度測量裝置的脈衝信號寬度測量方法,其中所述脈衝信號寬度測量裝置包括:緩衝器鏈路,包括N個第一緩衝器、一個輸入端連接脈衝信號且另一個輸入端連接相應第一緩衝器的輸出的N個第一及閘、和與每個第一及閘的輸出端耦合的相應的N個觸發器,而且所述N個第一緩衝器各自的輸出端與下一第一緩衝器的輸入端相連接,其中N是大於1的正整數;路徑時延調節電路,其中所述路徑時延調節電路的輸入端接收脈衝信號,所述路徑時延調節電路的輸出端連接到緩衝器鏈路中的第一個緩衝器的輸入端;其中所述脈衝信號寬度測量方法包括:在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第P個觸發器的輸出改變,其中P是正整數且小於或等於N;至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度。 A pulse signal width measurement method of a pulse signal width measurement device, wherein the pulse signal width measurement device includes: a buffer link, including N first buffers, one input end is connected to the pulse signal, and the other input end is connected to the corresponding first buffer. N first AND gates at the output of a buffer, and corresponding N flip-flops coupled to the output terminals of each first AND gate, and the respective output terminals of the N first buffers are coupled to the next The input end of a buffer is connected, where N is a positive integer greater than 1; a path delay adjustment circuit, wherein the input end of the path delay adjustment circuit receives a pulse signal, and the output end of the path delay adjustment circuit is connected to the input end of the first buffer in the buffer chain; wherein the pulse signal width measurement method includes: controlling the delay generated by the path delay adjustment circuit according to the preset adjustment step size during each adjustment from the preset Assume that the time delay is reduced by at least one preset adjustment step until the output of the P-th flip-flop changes, where P is a positive integer and less than or equal to N; at least according to the results output by the output terminals of each flip-flop and each first buffer The width of the pulse signal is measured by the delay of the path delay adjustment circuit just before the output of the P-th flip-flop changes. 如請求項10所述的方法,其中,所述路徑時延調節電路包括M個第一多路選擇器,M是正整數,每個第一多路選擇器的輸入端與緩衝時間不同的至少2個第二緩衝器相連接,且 在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長的步驟包括:在每次調節時,向每個第一多路選擇器的選通信號端輸入各自的路徑延時調節信號以選通所述至少2個第二緩衝器之一,以控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。 The method of claim 10, wherein the path delay adjustment circuit includes M first multiplexers, M is a positive integer, and the input end of each first multiplexer is different from the buffering time by at least 2 connected to a second buffer, and The step of controlling the delay generated by the path delay adjustment circuit to reduce the delay by at least one preset adjustment step from the preset delay according to the preset adjustment step during each adjustment includes: during each adjustment, The strobe signal terminal of the multiplexer inputs respective path delay adjustment signals to strobe one of the at least two second buffers to control the delay generated by the path delay adjustment circuit to be reduced from the preset delay by at least A preset adjustment step size. 如請求項10所述的方法,其中,所述路徑時延調節電路包括1個第一多路選擇器,所述第一多路選擇器的輸入端與總緩衝時間不同的至少2個第二緩衝器組相連接,且在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長的步驟包括:在每次調節時,向所述第一多路選擇器的選通信號端輸入路徑延時調節信號以選通所述至少2個第二緩衝器組中的一個第二緩衝器組,以控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長。 The method of claim 10, wherein the path delay adjustment circuit includes a first multiplexer, and at least two second input terminals of the first multiplexer are different from the total buffering time. The buffer group is connected, and the step of controlling the delay generated by the path delay adjustment circuit to reduce the delay by at least one preset adjustment step from the preset delay according to the preset adjustment step during each adjustment includes: When , a path delay adjustment signal is input to the strobe signal terminal of the first multiplexer to gate one of the at least two second buffer groups to control the path delay. The delay generated by the adjustment circuit is reduced by at least one preset adjustment step from the preset time delay. 如請求項10所述的方法,其中,所述脈衝信號寬度測量裝置還包括第二多路選擇器、多組奇數個反閘、計數器和定時器,其中,該第二多路選擇器的多個輸入端分別通過所述多組奇數個反閘接收所述N個緩衝器的輸出端的輸出信號且接收所述脈衝信號和具有預定脈衝寬度的時鐘信號, 所述第二多路選擇器的輸出端連接所述路徑時延調節電路,所述路徑時延調節電路的輸出端還連接所述計數器,所述計數器還連接所述定時器。 The method according to claim 10, wherein the pulse signal width measuring device further includes a second multiplexer, a plurality of odd-numbered reverse gates, counters and timers, wherein the multiplexers of the second multiplexer The input terminals respectively receive the output signals of the output terminals of the N buffers through the plurality of odd-numbered reverse gates and receive the pulse signal and the clock signal with a predetermined pulse width, The output end of the second multiplexer is connected to the path delay adjustment circuit, the output end of the path delay adjustment circuit is also connected to the counter, and the counter is also connected to the timer. 如請求項13所述的方法,還包括:向所述第二多路選擇器的選通信號端輸出環形振盪器切換信號,以:在高精度測量步驟中:控制所述第二多路選擇器選通所述具有預定脈衝寬度的時鐘信號,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將所述路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N,在校準步驟中:控制所述第二多路選擇器選通所述第Q-1個第一緩衝器的輸出,利用所述定時器在預定定時內利用計數器進行環形振盪計數,來測量得到所述時鐘信號的帶誤差的寬度,並將所述預定脈衝寬度與所述帶誤差的寬度之間的差作為誤差;其中,至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度的步驟包括:在高精度和去誤差的測量模式中: 控制所述第二多路選擇器選通所述脈衝信號,經過所述高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去所述誤差,得到脈衝信號的高精度和去誤差的寬度,其中,所述利用所述定時器在預定定時內利用計數器進行環形振盪計數,來測量得到所述時鐘信號的帶誤差的寬度的步驟包括:將預定定時除以在預定定時內計數器對環形振盪的計數來測量得到所述時鐘信號的帶誤差的寬度。 The method according to claim 13, further comprising: outputting a ring oscillator switching signal to the strobe signal terminal of the second multiplexer to: in the high-precision measurement step: control the second multiplexer The clock signal with the predetermined pulse width is gated by the device, and the delay generated by the path delay adjustment circuit is controlled according to the preset adjustment step during each adjustment, and the delay generated by the path delay adjustment circuit is reduced from the preset delay by at least one preset adjustment step until The output of the Q-th flip-flop changes, and the delay of the path delay adjustment circuit is fixed at the state just before the output of the Q-th flip-flop changes, where Q is a positive integer and less than or equal to N, in the calibration step: Control the second multiplexer to select the output of the Q-1th first buffer, and use the timer to perform ring oscillation counting with a counter within a predetermined time to measure the bandwidth of the clock signal. The width of the error, and the difference between the predetermined pulse width and the width with error is used as the error; wherein, at least according to the results output by the output terminals of each flip-flop and the delay of each first buffer, just The step of measuring the width of the pulse signal by changing the delay of the path delay adjustment circuit before the output of the P-th flip-flop changes: in the high-precision and error-free measurement mode: The second multiplexer is controlled to select the pulse signal, and the error-bearing width of the pulse signal to be measured is obtained through the measurement of the high-precision mode and the calibration step, and the error-bearing width of the pulse signal to be measured is reduced from The error is removed to obtain high accuracy and error-free width of the pulse signal, wherein the timer is used to perform ring oscillation counting using a counter within a predetermined timing to measure the width of the clock signal with error. The step includes: dividing the predetermined timing by the count of the ring oscillation by the counter within the predetermined timing to measure the width with error of the clock signal. 如請求項14所述的方法,其中,控制所述第二多路選擇器選通所述脈衝信號,所述測量裝置經過所述高精度模式和校準步驟的測量以得到待測脈衝信號的帶誤差的寬度,從待測脈衝信號的帶誤差的寬度減去所述誤差,得到脈衝信號的高精度和去誤差的寬度的步驟包括:在高精度測量步驟中:控制所述第二多路選擇器選通所述待測脈衝信號,所述測量裝置通過所述路徑時延調節電路和控制裝置的時延調節,在每次調節時根據預設調節步長控制所述路徑時延調節電路產生的延時從預設時延減少至少一個預設調節步長,直到第Q個觸發器的輸出改變,將所述路徑時延調節電路的延時固定在就在第Q個觸發器的輸出改變之前的狀態,其中Q是正整數且小於或等於N;在校準步驟中:控制裝置控制所述第二多路選擇器選通所述第Q-1個第一緩衝器的輸出,利用所述定時器在預定定時內利用計 數器進行環形振盪計數,來測量得到所述待測脈衝信號的帶誤差的寬度;在去誤差步驟中:控制裝置從待測脈衝信號的帶誤差的寬度減去之前通過預定寬度的時鐘信號計算的誤差,得到脈衝信號的高精度和去誤差的寬度。 The method of claim 14, wherein the second multiplexer is controlled to gate the pulse signal, and the measurement device undergoes measurement in the high-precision mode and calibration steps to obtain the band of the pulse signal to be measured. The error width is subtracted from the error-bearing width of the pulse signal to be measured. The step of obtaining the high accuracy of the pulse signal and the error-free width includes: in the high-precision measurement step: controlling the second multiplexing The pulse signal to be measured is gated by the device, and the measurement device adjusts the delay through the path delay adjustment circuit and the control device, and controls the path delay adjustment circuit to generate the output according to the preset adjustment step during each adjustment. The delay is reduced from the preset delay by at least one preset adjustment step until the output of the Q-th flip-flop changes, and the delay of the path delay adjustment circuit is fixed at the time just before the output of the Q-th flip-flop changes. state, where Q is a positive integer and less than or equal to N; in the calibration step: the control device controls the second multiplexer to gate the output of the Q-1 first buffer, and uses the timer to Usage plan within scheduled time The counter performs ring oscillation counting to measure the error-bearing width of the pulse signal to be measured; in the error removal step: the control device subtracts the previously calculated clock signal with a predetermined width from the error-bearing width of the pulse signal to be measured. Error, the high accuracy of the pulse signal and the error-free width are obtained. 如請求項10所述的方法,其中,至少根據各個觸發器的輸出端輸出的結果和每個第一緩衝器的延時、就在第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時,來測量所述脈衝信號的寬度的步驟包括:將所述前(P-1)個第一緩衝器的總延時加上在所述第P個觸發器的輸出改變之前的所述路徑時延調節電路的延時、來得到所述脈衝信號的高精度寬度。 The method of claim 10, wherein the path delay adjustment just before the output of the P-th flip-flop is changed is at least based on the result output by the output terminal of each flip-flop and the delay of each first buffer. The step of measuring the width of the pulse signal according to the delay of the circuit includes: adding the total delay of the first (P-1) first buffer to the delay before the output of the P-th flip-flop changes. The path delay adjusts the delay of the circuit to obtain the high-precision width of the pulse signal. 如請求項10所述的方法,其中,所述脈衝信號寬度測量裝置還包括:N個信號鎖存電路,其中每個緩衝器經過各自的信號鎖存電路連接到相應的觸發器的時鐘輸入端,其中各個觸發器的輸入端接收高準位,其中,每個信號鎖存電路包括:第一及閘,其第一輸入端與相應的緩衝器的輸出端相連接,其第二輸入端接收脈衝信號; 或閘,其第一輸入端與所述第一及閘的輸出端相連接,其輸出端與相應的觸發器的時鐘輸入端相連接;第二及閘,其輸出端與所述或閘的第二輸入端相連接,其第一輸入端與所述或閘的輸出端相連接,其第二輸入端接收信號鎖存電路重置信號,其在重置時是低準位。 The method of claim 10, wherein the pulse signal width measuring device further includes: N signal latch circuits, wherein each buffer is connected to the clock input end of the corresponding flip-flop through its respective signal latch circuit. , wherein the input end of each flip-flop receives a high level, wherein each signal latch circuit includes: a first AND gate, the first input end of which is connected to the output end of the corresponding buffer, and the second input end of which receives pulse signal; An OR gate, the first input end of which is connected to the output end of the first AND gate, and the output end of which is connected to the clock input end of the corresponding flip-flop; the second AND gate, the output end of which is connected to the output end of the OR gate The second input terminal is connected, the first input terminal is connected to the output terminal of the OR gate, and the second input terminal receives the reset signal of the signal latch circuit, which is at a low level during reset. 如請求項10所述的方法,其中,所述脈衝信號是將積體電路的關鍵路徑的起始點的信號通過所述關鍵路徑得到的信號和所述起始點的信號作為互斥或閘的兩個輸入而得到的互斥或閘的輸出。 The method of claim 10, wherein the pulse signal is a signal obtained by passing a starting point signal of a critical path of the integrated circuit through the critical path and a signal of the starting point as a mutually exclusive OR gate The output of the mutually exclusive OR gate is obtained from the two inputs. 一種電腦系統,包括:處理器;儲存器,耦合於處理器,且在其中儲存電腦可執行指令,用於在由處理器執行時進行如請求項10-18中任一所述的方法。 A computer system includes: a processor; a storage coupled to the processor and storing computer-executable instructions therein for performing the method described in any one of claims 10-18 when executed by the processor. 一種電腦可讀介質,其上儲存有電腦程式,其中,所述程式被處理器執行時實現如請求項10-18中任一所述的方法。 A computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the method described in any one of claims 10-18 is implemented.
TW111123817A 2022-06-27 2022-06-27 Apparatus, method, system and medium for measuring pulse signal width TWI820769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111123817A TWI820769B (en) 2022-06-27 2022-06-27 Apparatus, method, system and medium for measuring pulse signal width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111123817A TWI820769B (en) 2022-06-27 2022-06-27 Apparatus, method, system and medium for measuring pulse signal width

Publications (2)

Publication Number Publication Date
TWI820769B true TWI820769B (en) 2023-11-01
TW202401021A TW202401021A (en) 2024-01-01

Family

ID=89722173

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111123817A TWI820769B (en) 2022-06-27 2022-06-27 Apparatus, method, system and medium for measuring pulse signal width

Country Status (1)

Country Link
TW (1) TWI820769B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112499A1 (en) * 2007-07-16 2009-04-30 Himax Technologies Limited Device for jitter measurement and method thereof
US8531196B1 (en) * 2009-02-03 2013-09-10 Altera Corporation Delay test circuitry
CN104460304A (en) * 2014-12-11 2015-03-25 电子科技大学 High-resolution time interval measurer with function of automatic correction
US20190346504A1 (en) * 2017-08-03 2019-11-14 Samsung Electronics Co., Ltd. Method of measuring clock jitter, clock jitter measurement circuit, and semiconductor devices including the same
CN110827875A (en) * 2018-08-14 2020-02-21 美光科技公司 Electronic device with time sequence adjusting mechanism
CN112751554A (en) * 2019-10-30 2021-05-04 意法半导体研发(深圳)有限公司 Filter circuit for pulse width modulated signals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112499A1 (en) * 2007-07-16 2009-04-30 Himax Technologies Limited Device for jitter measurement and method thereof
US8531196B1 (en) * 2009-02-03 2013-09-10 Altera Corporation Delay test circuitry
CN104460304A (en) * 2014-12-11 2015-03-25 电子科技大学 High-resolution time interval measurer with function of automatic correction
US20190346504A1 (en) * 2017-08-03 2019-11-14 Samsung Electronics Co., Ltd. Method of measuring clock jitter, clock jitter measurement circuit, and semiconductor devices including the same
CN110827875A (en) * 2018-08-14 2020-02-21 美光科技公司 Electronic device with time sequence adjusting mechanism
CN112751554A (en) * 2019-10-30 2021-05-04 意法半导体研发(深圳)有限公司 Filter circuit for pulse width modulated signals

Also Published As

Publication number Publication date
TW202401021A (en) 2024-01-01

Similar Documents

Publication Publication Date Title
CN115542021B (en) Pulse signal width measurement device, method, system and medium
TWI821549B (en) Phase predictor and associated method of use
KR101200233B1 (en) Circuit device and method of measuring clock jitter
US7791330B2 (en) On-chip jitter measurement circuit
KR101150618B1 (en) Apparatus and method for estimating data relating to a time difference and apparatus and method for calibrating a delay line
KR102224031B1 (en) A circuit delay monitoring apparatus and method
US20080144423A1 (en) Timing synchronization circuit with loop counter
US8553503B2 (en) On-die signal timing measurement
CN103580656B (en) Triggering shake real time correction circuit during a kind of grab sample and method
WO2015085825A1 (en) Frequency calibration methods and apparatus
US8837239B2 (en) Latency control circuit and semiconductor device including the circuit
CN106597097A (en) High-precision frequency measurement method
CN106443184B (en) Phase detection device and phase detection method
TWI820769B (en) Apparatus, method, system and medium for measuring pulse signal width
CN102254569B (en) Quad-data rate (QDR) controller and realization method thereof
TW202141493A (en) Duty cycle adjustment system
TW202101908A (en) Circuit for generating a pulse output having a controllable pulse width
KR101541175B1 (en) Delay line time-to-digital converter
TW201721164A (en) High precision time measurement apparatus
CN112558519A (en) A digital signal delay method based on FPGA and high-precision delay chip
KR101839883B1 (en) Circuit for counting, circuit for quantizing delay value and latency control circuit
CN115826678B (en) Method, device, system and storage medium for calibrating clock phases of multiple FPGAs
JP2002139556A (en) Semiconductor testing apparatus
US20250392315A1 (en) Delay measurement circuit and memory
JPH04264810A (en) Variable self-calibrating digital delay circuit