TWI804290B - Power supply voltage detector, power supply voltage detection apparatus, system and medium - Google Patents

Power supply voltage detector, power supply voltage detection apparatus, system and medium Download PDF

Info

Publication number
TWI804290B
TWI804290B TW111115742A TW111115742A TWI804290B TW I804290 B TWI804290 B TW I804290B TW 111115742 A TW111115742 A TW 111115742A TW 111115742 A TW111115742 A TW 111115742A TW I804290 B TWI804290 B TW I804290B
Authority
TW
Taiwan
Prior art keywords
latch
supply voltage
power supply
buffer
clock signal
Prior art date
Application number
TW111115742A
Other languages
Chinese (zh)
Other versions
TW202343197A (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 TW111115742A priority Critical patent/TWI804290B/en
Application granted granted Critical
Publication of TWI804290B publication Critical patent/TWI804290B/en
Publication of TW202343197A publication Critical patent/TW202343197A/en

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)
  • Power Sources (AREA)
  • Control Of Voltage And Current In General (AREA)
  • Burglar Alarm Systems (AREA)

Abstract

The application provides an apparatus, a system, a detector and a method. The apparatus includes: a power supply voltage detector, including: N buffers, an input terminal of a first buffer being connected to a clock signal, output terminals of other buffers being connected to the input terminal of an adjacent buffer; N latch chains, each of which includes M latches, a clock input terminal of each latch being connected to a clock signal, a D terminal of a first latch of each latch chain being connected to the output terminal of a corresponding buffer, Q terminals of other latches being connected to the D terminal of an adjacent latch, M and N being positive integers, the D terminal of each latch being connected to an area where a power supply voltage is to be detected; and a voltage regulation module connected to the Q terminal of each latch.

Description

供電電壓檢測器、供電電壓檢測裝置、系統和 介質 Supply voltage detector, supply voltage detection device, system and medium

本發明是有關於積體電路領域,且特別是有關於一種供電電壓檢測器、供電電壓檢測裝置、系統和電腦可讀介質。 The present invention relates to the field of integrated circuits, and in particular to a supply voltage detector, a supply voltage detection device, a system and a computer-readable medium.

對於積體電路而言,其運行需要外部電壓源透過電壓接腳供電,外部電壓源經過積體電路內部的電源網路連接到不同的閂鎖器電路。對於55nm及以下工藝的積體電路,往往集成著數以億計的閂鎖器電路,當積體電路一個區域內大量的閂鎖器電路同時翻轉運行時或者運行頻率升高,即該區域的負載增大,該區域的供電電壓就可能發生下降,低於預期。此外,當積體電路受到電源雜訊干擾的時候,其供電電壓也會發生波動。 For the integrated circuit, its operation requires an external voltage source to supply power through the voltage pin, and the external voltage source is connected to different latch circuits through the internal power network of the integrated circuit. For integrated circuits with a technology of 55nm and below, hundreds of millions of latch circuits are often integrated. When a large number of latch circuits in one area of the integrated circuit are turned over at the same time or the operating frequency is increased, that is, the load in this area Increase, the supply voltage in this area may drop, lower than expected. In addition, when an integrated circuit is disturbed by power noise, its power supply voltage will also fluctuate.

電壓下垂是用於指當電源驅動負載時電壓從期望電壓電位的下降的術語。在積體電路中,當負載突然非常迅速地增加時,輸出電壓可能下跌。例如,可能發生瞬態負載狀況,導致電壓下 垂。如果電壓下垂的幅度過大,則導致電路故障。 Voltage droop is a term used to refer to the drop in voltage from a desired voltage level when a power supply drives a load. In integrated circuits, when the load is suddenly and very rapidly increased, the output voltage may drop. For example, a transient load condition may occur that causes the voltage to drop hang down. If the voltage sags too much, it will cause circuit failure.

因此有必要對積體電路內部的供電電壓進行即時檢測,當電壓低於預期時及時發出預警訊號,提醒電壓調節模組對電壓進行調節。當然,也存在對電壓高於預期時需要調節電壓的需要。 Therefore, it is necessary to detect the power supply voltage inside the integrated circuit in real time, and send an early warning signal in time when the voltage is lower than expected, reminding the voltage regulation module to adjust the voltage. Of course, there is also a need to regulate the voltage when the voltage is higher than expected.

根據本公開的一個或多個實施例,提供一種供電電壓檢測裝置,連接到積體電路電源網路上,包括:供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;和電壓調節模組,連接到每條閂鎖器鏈的每個閂鎖器的資料輸出端,被配置為檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detection device connected to an integrated circuit power grid, comprising: a supply voltage detector including a buffer string including N buffers, wherein the first buffer The input terminal of the buffer is connected to the clock signal, the output terminal of the first buffer is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latch chains, each latch chain includes M latches, and the clock input terminal of each latch is connected to the clock signal, each The data input terminal of the first latch of the latch chain is connected to the output terminal of a buffer corresponding to the N buffers, and the data output terminal of the first latch is connected to the second latch The data input terminal of the mth latch is connected to the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, the power supply of each latch The input terminal VDD is connected to the area in the integrated circuit power network where the supply voltage is to be sensed, the ground terminal of each latch is connected to ground; and the voltage regulation module is connected to each latch of each latch chain The data output terminal of the latch is configured to detect the data output of each latch to determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power network.

根據本公開的一個或多個實施例,提供一種供電電壓檢測系統,包括:在積體電路電源網路的多個區域上連接的多個根據本公開的實施例的供電電壓檢測裝置。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detection system, comprising: a plurality of supply voltage detection devices according to the embodiments of the present disclosure connected to multiple regions of an integrated circuit power network.

根據本公開的一個或多個實施例,提供一種供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detector, including a buffer string, including N buffers, wherein the input end of the first buffer is connected to the clock signal, and the input end of the first buffer The output terminal is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latches A chain of latches, each chain of latches includes M latches, the clock input of each latch is connected to the clock signal, and the data input of the first latch of each chain of latches Connect to the output end of a buffer corresponding to the N buffers, the data output end of the first latch is connected to the data input end of the second latch, and the data output end of the mth latch is connected to To the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal VDD of each latch is connected to the power supply network of the integrated circuit to detect the power supply voltage area, the ground terminal of each latch is connected to ground.

根據本公開的一個或多個實施例,提供一種供電電壓檢測方法,包括:提供供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂 鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;和檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 According to one or more embodiments of the present disclosure, there is provided a power supply voltage detection method, including: providing a power supply voltage detector, including a buffer string, including N buffers, wherein the input end of the first buffer is connected to the clock Signal, the output of the first buffer is connected to the input of the second buffer, the output of the nth buffer is connected to the input of the n+1th buffer, N and n are positive integers, and n is greater than 1 and less than N; N latch chains, each latch chain includes M latches, the clock pulse input of each latch is connected to the clock signal, the first latch of each latch chain latch The data input terminal of the latch is connected to the output terminal of a buffer corresponding to the N buffers, the data output terminal of the first latch is connected to the data input terminal of the second latch, and the mth latch The data output terminal of the latch is connected to the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal VDD of each latch is connected to the power supply network of the integrated circuit In the region where the supply voltage is to be sensed in the circuit, the ground terminal of each latch is connected to the ground; and the data output of each latch is detected to determine the power supply voltage of the region where the power supply voltage is to be sensed in the integrated circuit power network size.

根據本公開的一個或多個實施例,提供一種電腦可讀介質,其上存儲有電腦程式,其中,所述程式被處理器執行時實現本公開的供電電壓檢測方法。 According to one or more embodiments of the present disclosure, there is provided a computer-readable medium on which a computer program is stored, wherein the program implements the power supply voltage detection method of the present disclosure when executed by a processor.

本申請的技術方案相比于現有技術的優點包括但不限於:1.相比於使用數模轉化電路、電阻電容等方式,本結構使用純數位結構,利用標準單元庫中的器件即可實現,可直接進行綜合,對積體電路設計流程非常友好;2.本結構具有較高的回應頻率,可以每個時脈週期都輸出一個電壓檢測結果;3.本結構具有較高的檢測精度,在1.5GHz的工作頻率下,可以實現約6mV的電壓變化檢測精度;4.本結構可以適應不同的工作頻率,無需使用額外的時延調節電路;5.本結構只需極小的面積開銷,對原積體電路設計影響很小;6.本結構中所有的閂鎖器電路和附近其他的閂鎖器電路都接入同一個電源網路,無需特別接入理想電源,易於在積體電路後端集成。 Compared with the prior art, the advantages of the technical solution of the present application include but are not limited to: 1. Compared with the use of digital-to-analog conversion circuits, resistors and capacitors, etc., this structure uses a pure digital structure, which can be realized by using the devices in the standard cell library , can be synthesized directly, and is very friendly to the integrated circuit design process; 2. This structure has a high response frequency, and can output a voltage detection result every clock cycle; 3. This structure has high detection accuracy, At a working frequency of 1.5GHz, a voltage change detection accuracy of about 6mV can be achieved; 4. This structure can adapt to different working frequencies without using additional delay adjustment circuits; The design of the original integrated circuit has very little influence; 6. All latch circuits in this structure and other nearby latch circuits are connected to the same power supply network, without special access to the ideal power supply, which is easy to install after the integrated circuit terminal integration.

H1:處理器 H1: Processor

H2:存儲介質 H2: storage medium

H3:資料匯流排 H3: data bus

H4:I/O匯流排 H4: I/O bus bar

11:智慧財產核心 11: Intellectual property core

12:智慧財產核心 12: Intellectual property core

13:客製化電路 13: Customized circuit

21:供電電壓檢測器 21: Supply voltage detector

22:電壓調節模組 22:Voltage regulation module

23:電源網路 23: Power network

100:積體電路晶片 100: integrated circuit chip

101:供電電壓檢測裝置 101: Power supply voltage detection device

102:供電電壓檢測裝置 102: Power supply voltage detection device

103:供電電壓檢測裝置 103: Power supply voltage detection device

104:供電電壓檢測裝置 104: Power supply voltage detection device

105:供電電壓檢測裝置 105: Power supply voltage detection device

106:供電電壓檢測裝置 106: Power supply voltage detection device

107:供電電壓檢測裝置 107: Power supply voltage detection device

200:供電電壓檢測裝置 200: power supply voltage detection device

201:緩衝器串 201: buffer string

202:N條閂鎖器鏈 202: N latch chains

500:供電電壓檢測方法 500: Power supply voltage detection method

501、502、503:步驟 501, 502, 503: steps

5021、5022:步驟 5021, 5022: steps

5021’、5022’、5023’、5024’:步驟 5021', 5022', 5023', 5024': steps

50221’、50222’、50223’、50224’:步驟 50221', 50222', 50223', 50224': steps

1010:指令 1010: instruction

1020:電腦可讀存儲介質 1020: computer-readable storage medium

為了更清楚地說明本公開實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本公開的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only the present invention. For some disclosed embodiments, those skilled in the art can also obtain other drawings based on these drawings without any creative work.

圖1示出了根據本公開的實施例的供電電壓檢測系統的方塊圖。 FIG. 1 shows a block diagram of a supply voltage detection system according to an embodiment of the present disclosure.

圖2示出了根據本公開的實施例的供電電壓檢測裝置的方塊圖。 Fig. 2 shows a block diagram of a power supply voltage detection device according to an embodiment of the present disclosure.

圖3示出了根據本公開的實施例的供電電壓檢測器的結構的示意圖。 FIG. 3 shows a schematic diagram of the structure of a supply voltage detector according to an embodiment of the present disclosure.

圖4示出了根據本公開的實施例的時脈訊號和一條閂鎖器鏈上的各個閂鎖器的資料輸入端的輸入訊號的時序圖。 FIG. 4 shows a timing diagram of a clock signal and an input signal at a data input terminal of each latch in a latch chain according to an embodiment of the disclosure.

圖5示出了根據本公開的實施例的一種供電電壓檢測方法的流程圖。 Fig. 5 shows a flowchart of a method for detecting a power supply voltage according to an embodiment of the present disclosure.

圖6A示出了根據本公開的實施例的檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小的步驟的一個實施例。 FIG. 6A shows an embodiment of the step of detecting the data output of each latch to determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power network according to an embodiment of the present disclosure.

圖6B示出了根據本公開的實施例的檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電 壓的大小的步驟的另一個實施例。 FIG. 6B shows detecting the data output of each latch to determine the supply voltage of the area in the integrated circuit power network to detect the supply voltage according to an embodiment of the present disclosure. Another example of pressing the size step.

圖7示出了根據本公開的實施例的、根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度、得到多條閂鎖器鏈中各自的閂鎖器的時延範圍的步驟的具體步驟的流程圖。 FIG. 7 shows, according to an embodiment of the present disclosure, according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal, the respective latches in the plurality of latch chains are obtained. A flow chart of specific steps in the steps of the delay range.

圖8示出了根據本公開的另一實施例的供電電壓檢測方法的流程圖。 Fig. 8 shows a flowchart of a power supply voltage detection method according to another embodiment of the present disclosure.

圖9示出了適於用來實現本公開實施方式的示例性電腦系統的方塊圖。 Figure 9 shows a block diagram of an exemplary computer system suitable for implementing embodiments of the present disclosure.

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

圖11A和圖11B分別示出了4條閂鎖器鏈的範圍約束和第1條閂鎖器鏈的範圍約束得到的x、y的取值範圍在二維坐標軸上的表示。 FIG. 11A and FIG. 11B respectively show the representations of the value ranges of x and y obtained by the range constraints of the four latch chains and the range constraint of the first latch chain on the two-dimensional coordinate axes.

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

圖1示出了根據本公開的實施例的供電電壓檢測系統的方塊圖。該供電電壓檢測系統包括在積體電路晶片100的電源網路的多個區域上連接的供電電壓檢測裝置101、102、……、X。 FIG. 1 shows a block diagram of a supply voltage detection system according to an embodiment of the present disclosure. The supply voltage detection system comprises supply voltage detection devices 101 , 102 , .

多個區域上連接的供電電壓檢測裝置101、102、……、X可以分佈在積體電路晶片100內部的電源網路的不同區域,可以即時檢測各個區域的電壓波動。這些區域可以包括智慧財產權核(IP核)11、12和定制化電路13中的不同區域等。通常來說,如果IP核比較大,那麼經常工作的區域更容易受到電源雜訊的干擾,可以在這種區域上接入供電電壓檢測裝置。或者供電電壓檢測裝置分佈的區域可以透過事先模擬來得到,透過模擬,瞭解哪些區域的工作負載較高,可能存在較大的電壓下降,則在這些區域的上接入供電電壓檢測裝置。 The supply voltage detection devices 101, 102, . . . , X connected to multiple areas can be distributed in different areas of the power network inside the integrated circuit chip 100, and can detect voltage fluctuations in each area in real time. These areas may include intellectual property cores (IP cores) 11, 12 and different areas in the customized circuit 13, etc. Generally speaking, if the IP core is relatively large, the area that is often used is more likely to be disturbed by power noise, and a power supply voltage detection device can be connected to this area. Alternatively, the areas where the power supply voltage detection devices are distributed can be obtained through prior simulation. Through the simulation, it is known which areas have higher workloads and may have larger voltage drops, and then the power supply voltage detection devices are connected to these areas.

圖2示出了根據本公開的實施例的供電電壓檢測裝置200的方塊圖。 FIG. 2 shows a block diagram of a power supply voltage detection device 200 according to an embodiment of the present disclosure.

供電電壓檢測裝置200連接到積體電路電源網路23上,包括:供電電壓檢測器21和電壓調節模組22。 The power supply voltage detection device 200 is connected to the integrated circuit power network 23 and includes: a power supply voltage detector 21 and a voltage regulation module 22 .

供電電壓檢測器21包括緩衝器串201,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈202,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的 資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路23中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地。 The supply voltage detector 21 includes a buffer string 201, including N buffers, wherein the input end of the first buffer is connected to the clock signal, and the output end of the first buffer is connected to the input end of the second buffer. , the output end of the nth buffer is connected to the input end of the n+1th buffer, N, n are positive integers, n is greater than 1 and less than N; N latch chains 202, each latch chain includes M latches, the clock input of each latch is connected to the clock signal, and the first latch of each latch chain The data input terminal is connected to the output terminal of a buffer corresponding to the N buffers, the data output terminal of the first latch is connected to the data input terminal of the second latch, and the data input terminal of the mth latch The output terminal is connected to the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal VDD of each latch is connected to the integrated circuit power supply network 23 To detect the area of the supply voltage, the ground terminal of each latch is connected to ground.

電壓調節模組22連接到每條閂鎖器鏈的每個閂鎖器的資料輸出端,被配置為檢測每個閂鎖器的資料輸出來確定積體電路電源網路23中要檢測供電電壓的區域的供電電壓的大小。 The voltage regulation module 22 is connected to the data output terminal of each latch of each latch chain, and is configured to detect the data output of each latch to determine the power supply voltage to be detected in the integrated circuit power network 23 The size of the supply voltage of the area.

供電電壓檢測器21的結構主要採用閂鎖器這種數位電路器件實現對積體電路供電電壓的間接測量。閂鎖器是一種對電位敏感的存儲單元電路,當閂鎖器被觸發電位致能的時候,輸出會隨著輸入發生變化,當致能訊號結束後,閂鎖器會存儲致能時的訊號,直到下一次致能。閂鎖器的資料輸入端(D端)到資料輸出端(Q端)的時延也會受到供電電壓的影響。 The structure of the power supply voltage detector 21 mainly uses a digital circuit device such as a latch to realize indirect measurement of the power supply voltage of the integrated circuit. A latch is a potential-sensitive storage unit circuit. When the latch is enabled by the trigger potential, the output will change with the input. When the enabling signal ends, the latch will store the enabling signal , until the next enable. The time delay from the data input terminal (D terminal) to the data output terminal (Q terminal) of the latch is also affected by the supply voltage.

圖3示出了根據本公開的實施例的供電電壓檢測器21的結構的示意圖。 FIG. 3 shows a schematic diagram of the structure of the supply voltage detector 21 according to an embodiment of the present disclosure.

如圖3所示,供電電壓檢測器21包括緩衝器串201,包括N個緩衝器。供電電壓檢測器21還包括N條閂鎖器鏈202。 As shown in FIG. 3 , the supply voltage detector 21 includes a buffer string 201 including N buffers. The supply voltage detector 21 also includes N latch chains 202 .

在N個緩衝器中,第一個緩衝器的輸入端連接到時脈訊號。第一個緩衝器的輸出端連接到第二個緩衝器的輸入端。第一個緩衝器的輸出端同時也連接到第一個閂鎖器鏈中的第一個閂鎖 器的資料輸入端(D端)。在此,第一個閂鎖器的資料輸入端之前的第一個緩衝器,可以將時脈訊號延時一個緩衝器的時延時間,再輸入到第一個閂鎖器的資料輸入端作為資料輸入訊號,這是為了將第一個閂鎖器的資料輸入訊號和時脈致能訊號的上升沿錯開,避免因為不滿足建立時間而產生亞穩態。 Among the N buffers, the input terminal of the first buffer is connected to the clock signal. The output of the first buffer is connected to the input of the second buffer. The output of the first buffer is also connected to the first latch in the first latch chain The data input terminal (D terminal) of the device. Here, the first buffer before the data input of the first latch can delay the clock signal by a delay time of the buffer, and then input it to the data input of the first latch as a data Input signal, this is to stagger the rising edge of the data input signal of the first latch and the clock enable signal, so as to avoid metastability due to insufficient setup time.

第2個緩衝器的輸出端連接到第3個緩衝器的輸入端,以此類推,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N。第N個緩衝器的輸出端連接到第N條閂鎖器鏈中的第一個閂鎖器的資料輸入端(D端)。 The output of the second buffer is connected to the input of the third buffer, and so on, the output of the nth buffer is connected to the input of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N. The output terminal of the Nth buffer is connected to the data input terminal (D terminal) of the first latch in the Nth latch chain.

在N條閂鎖器鏈202中,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端(CLK端)連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端(D端)連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端(Q端)連接到第二個閂鎖器的資料輸入端(D端),第m個閂鎖器的資料輸出端(Q端)連接到第m+1個閂鎖器的資料輸入端(D端),M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路23中要檢測供電電壓的區域,每個閂鎖器的接地端(GND)連接到地。 In the N latch chains 202, each latch chain includes M latches, the clock input end (CLK end) of each latch is connected to the clock signal, and each latch chain The data input terminal (D terminal) of the first latch is connected to the output terminal of a buffer corresponding to the N buffers, and the data output terminal (Q terminal) of the first latch is connected to the second latch The data input terminal (D terminal) of the latch, the data output terminal (Q terminal) of the mth latch is connected to the data input terminal (D terminal) of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, the power input terminal VDD of each latch is connected to the area where the power supply voltage is to be detected in the integrated circuit power network 23 , and the ground terminal (GND) of each latch is connected to ground.

也就是說,在一條閂鎖器鏈中,所有閂鎖器的時脈輸入端都接入時脈訊號,同樣的時脈訊號經過一個緩衝器再接入第一個閂鎖器(在此,第一個閂鎖器是與緩衝器最近的那個閂鎖器)的資料輸入端,第一個閂鎖器的資料輸出端和第二個閂鎖器的資 料輸入端連接,第二個閂鎖器的資料輸出端和第三個閂鎖器的資料輸入端連接,以此類推,第m-1個閂鎖器的資料輸出端和第m個閂鎖器的資料輸入端連接,第m個閂鎖器的資料輸出端和第m+1個閂鎖器的資料輸入端連接……。每個閂鎖器的資料輸出端都與電壓調節模組相連接。 That is, in a chain of latches, the clock input terminals of all latches are connected to the clock signal, and the same clock signal is connected to the first latch through a buffer (here, The data input of the first latch is the one closest to the buffer), the data output of the first latch and the data of the second latch The data input terminal of the second latch is connected to the data input terminal of the third latch, and so on, the data output terminal of the m-1th latch is connected to the mth latch The data input end of the latch is connected, the data output end of the mth latch is connected to the data input end of the m+1th latch... . The data output terminal of each latch is connected with the voltage regulation module.

在一個實施例中,N是對單個閂鎖器的時延除以單個緩衝器的時延的結果的上取整。N的取值是考慮在一個閂鎖器的時延之內時脈訊號大概能夠經過多少個緩衝器。在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1倍以上。在一個更優的實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1.5倍。M取值大一些,可以看出輸入訊號在閂鎖器鏈中的傳遞時延具體是在什麼範圍內。假設一個閂鎖器在正常電壓(或額定電壓)下的時延約為100ps,一個緩衝器在正常電壓(或額定電壓)下的時延約為30ps,則取N=4,M=10。 In one embodiment, N is the rounded up result of dividing the latency of a single latch by the latency of a single buffer. The value of N is to consider how many buffers the clock signal can pass through within the delay of a latch. In one embodiment, M is greater than or equal to 1 times the period of the clock signal divided by the delay of a single latch. In a more preferred embodiment, M is greater than or equal to 1.5 times the period of the clock signal divided by the delay of a single latch. The larger the value of M, the specific range of the transmission delay of the input signal in the latch chain can be seen. Assuming that the time delay of a latch at normal voltage (or rated voltage) is about 100ps, and that of a buffer at normal voltage (or rated voltage) is about 30ps, then N=4 and M=10.

注意,每個閂鎖器的RSTB重定端可以接收重定訊號,使得閂鎖器復位。每個閂鎖器的QN端輸出與資料輸出端Q輸出的訊號相反的訊號,可以懸空。 Note that the RSTB reset terminal of each latch can receive a reset signal to reset the latch. The QN end of each latch outputs a signal opposite to the signal output by the data output end Q, which can be suspended.

觀察發現,電壓的高低會影響閂鎖器的時延。在電壓低於正常電壓的情況下,閂鎖器的時延會變長,可能導致沒法工作。在電壓高於正常電壓的情況下,閂鎖器的時延會變短,功耗高。所以考慮利用在一個時脈週期內時脈訊號能傳播的閂鎖器鏈中的 閂鎖器的多少來檢測電壓的大小,相比于正常電壓(或某種預定電壓)是電壓下降了還是電壓上升了。 Observation found that the level of voltage will affect the delay of the latch. In the case of lower than normal voltage, the delay of the latch will become longer, which may cause it to fail to work. At higher than normal voltages, the latch has a short delay and high power consumption. So consider using a latch chain in which the clock signal can propagate within one clock cycle The number of latches is used to detect the magnitude of the voltage, whether the voltage has dropped or increased compared to the normal voltage (or a certain predetermined voltage).

在一個實施例中,電壓調節模組根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串。 In one embodiment, the voltage regulating module obtains a logical value according to the comparison between the data output of each latch and a reference potential to obtain a logical value string of each latch chain.

在一個實施例中,如果閂鎖器的資料輸出比參考電位高,則邏輯數值為第一值,如果閂鎖器的資料輸出比參考電位低,則邏輯數值為第二值。 In one embodiment, if the data output of the latch is higher than the reference potential, the logical value is a first value, and if the data output of the latch is lower than the reference potential, the logical value is a second value.

圖4示出了根據本公開的實施例的時脈訊號和一條閂鎖器鏈上的各個閂鎖器的資料輸入端的輸入訊號的時序圖。 FIG. 4 shows a timing diagram of a clock signal and an input signal at a data input terminal of each latch in a latch chain according to an embodiment of the disclosure.

假如,這些閂鎖器均為高電位致能。當時脈訊號(clk)為高電位的時候,時脈訊號可以從閂鎖器的資料輸入端傳輸,依次經過第一個、第二個……第p個閂鎖器的資料輸入端,直到時脈訊號變為低電位,此時,前p個閂鎖器存儲和輸出的值是高電位,即高於或等於參考電位,為邏輯‘1’(第一值為1),而後(m-p)個閂鎖器存儲和輸出的值是低電位,即低於參考電位,為邏輯‘0’(第二值為0)。即前p個閂鎖器的資料輸出端輸出的電位高於或等於參考電位,而後(m-p)個閂鎖器的資料輸出端輸出的電位低於參考電位。該閂鎖器鏈的邏輯數值串為p個1和(m-p)個0的串。 If so, these latches are enabled high. When the clock signal (clk) is at a high potential, the clock signal can be transmitted from the data input end of the latch, and then pass through the data input end of the first, second...pth latch until the clock The pulse signal becomes low potential. At this time, the value stored and output by the first p latches is high potential, that is, higher than or equal to the reference potential, which is logic '1' (the first value is 1), and then (m-p) The value stored and output by each latch is a low potential, ie lower than the reference potential, which is logic '0' (the second value is 0). That is, the output potentials of the data output terminals of the first p latches are higher than or equal to the reference potential, and the output potentials of the data output terminals of the next (m-p) latches are lower than the reference potential. The logical value string of the latch chain is a string of p 1s and (m-p) 0s.

當閂鎖器鏈的供電電壓發生波動時,閂鎖器的時延也會隨之波動,在電壓低於正常電壓的情況下,閂鎖器的時延會變長, 在電壓高於正常電壓的情況下,閂鎖器的時延會變短。因此,對於同樣的時脈訊號,測量一次後存儲值為邏輯‘1’的閂鎖的器數目p也會變化。例如,當電壓為1.05V、高於1V時,閂鎖器的時延變短,在一個時脈週期內時脈訊號能傳播的閂鎖器越多,p為8;而當電壓為0.9V、低於1V時,閂鎖器的時延變長,在一個時脈週期內時脈訊號能傳播的閂鎖器越少,p為4。因此,本申請用一條閂鎖器鏈中的各個閂鎖器輸出的值組成的邏輯數值串中的第一值的數量、即p的變化能間接反映供電電壓的變化。 When the supply voltage of the latch chain fluctuates, the delay of the latch will also fluctuate. When the voltage is lower than the normal voltage, the delay of the latch will become longer. At higher than normal voltages, the latency of the latch becomes shorter. Therefore, for the same clock signal, the number p of latches storing logic '1' after one measurement will also vary. For example, when the voltage is 1.05V and higher than 1V, the delay of the latch becomes shorter, and the more latches the clock signal can propagate in one clock cycle, p is 8; and when the voltage is 0.9V , When it is lower than 1V, the delay of the latch becomes longer, and the fewer latches the clock signal can propagate in one clock cycle, p is 4. Therefore, in the present application, the quantity of the first value in the logical value string composed of the output values of each latch in a latch chain, that is, the change of p can indirectly reflect the change of the supply voltage.

在一個實施例中,電壓調節模組根據N條閂鎖器鏈的邏輯數值串、和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。在一個實施例中,N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係透過實驗測量得到。 In one embodiment, the voltage regulation module determines the power supply network of the integrated circuit according to the relationship between the logical value strings of the N latch chains and the value of the logical value strings of the N latch chains and the magnitude of the supply voltage. The magnitude of the power supply voltage in the area where the power supply voltage is to be detected on the road. In one embodiment, the relationship between the values of the logical value strings of the N latch chains and the magnitude of the power supply voltage is obtained through experimental measurement.

也就是說,由於得知了閂鎖器鏈的供電電壓發生波動時,閂鎖器的時延也會隨之波動,會導致一條閂鎖器鏈中的各個閂鎖器輸出的值組成的邏輯數值串中的第一值的數量、即p的變化,因此可以實現透過一系列實驗來測量N條閂鎖器鏈中每條閂鎖器鏈中的p的取值與電壓大小之間的關係。例如用低電壓、0.9V、0.95V等分別輸入到閂鎖器鏈中,可以分別得到不同低電壓下的N條閂鎖器鏈中每條閂鎖器鏈中的p的取值。高電壓也同理。可以得出電壓大小與N條閂鎖器鏈中每條閂鎖器鏈中的p的取值之間的映射表。這樣,可以迅速地從N條閂鎖器鏈的邏輯數值串、 和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係(例如,實現生成的映射表),確定積體電路電源網路中要檢測供電電壓的區域的供電電壓,或直接得出電壓下垂的幅度。 That is to say, since it is known that when the supply voltage of the latch chain fluctuates, the delay of the latches will also fluctuate accordingly, which will lead to a logic composed of the output values of each latch in a latch chain The number of the first value in the numerical string, that is, the change of p, so it is possible to measure the relationship between the value of p in each of the N latch chains and the voltage through a series of experiments . For example, by inputting low voltage, 0.9V, 0.95V, etc. into the latch chains respectively, the value of p in each of the N latch chains under different low voltages can be obtained respectively. The same goes for high voltage. A mapping table between the magnitude of the voltage and the value of p in each of the N latch chains can be obtained. In this way, the logical value strings of N latch chains, and the relationship between the values of the logical value strings of the N latch chains and the magnitude of the power supply voltage (for example, to realize the generated mapping table), determine the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network, or The magnitude of the voltage droop is obtained directly.

可替換地,在另一實施例中,電壓調節模組根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍;根據多條閂鎖器鏈中各自的閂鎖器的時延範圍,得到單個閂鎖器的實際時延範圍;根據單個閂鎖器的實際時延範圍與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 Alternatively, in another embodiment, the voltage regulation module obtains the respective latches in the plurality of latch chains according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal The delay range of the latch; according to the delay range of each latch in multiple latch chains, the actual delay range of a single latch is obtained; according to the actual delay range of a single latch and the size of the supply voltage To determine the magnitude of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power supply network.

首先,根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍可以透過如下方式得到。 Firstly, according to the logic value strings of the multiple latch chains and the time length of the high potential of the clock signal, the delay ranges of the respective latches in the multiple latch chains can be obtained in the following manner.

在第一實施例中,電壓調節模組被配置為透過如下步驟來根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍:確定預定的一條閂鎖器鏈中的邏輯數值串中的第一值的數量;確定預定的一條閂鎖器鏈與輸入的時脈訊號之間存在的緩衝器的數量;確定時脈訊號的高電位的時間長度為大於緩衝器的數量和單個緩衝器的時延的乘積與第一值的數量和單個閂鎖器的時延的乘積的和,且小於該閂鎖器鏈條之前的緩衝器的數量與單個緩衝器的時延的乘積和第一值的數量加1之後與單個閂鎖器的時延的乘積的和;計算得到單個閂鎖器的實際時延範圍。 In the first embodiment, the voltage regulation module is configured to obtain each of the plurality of latch chains according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal through the following steps: The delay range of the latch: determine the number of the first value in the logical value string in a predetermined chain of latches; determine the buffer that exists between a predetermined chain of latches and the input clock signal The number of; determine the time length of the high potential of the clock signal is greater than the sum of the product of the number of buffers and the time delay of a single buffer and the product of the number of first values and the time delay of a single latch, and less than the sum of the The sum of the product of the number of buffers before the latch chain and the delay of a single buffer and the product of the delay of a single latch after adding 1 to the number of the first value; calculate the actual time of a single latch extended range.

具體地,由於單個閂鎖器的延遲相對較高,如果只使用單條閂鎖器鏈進行監測,則其電壓檢測精度會比較低,即當電壓變化幅度較大時,才能使得p的值發生變化。為了提高監測精度,本申請使用了N條閂鎖器鏈,所有的閂鎖器均使用同一個時脈訊號進行致能,因此所有的閂鎖器均具有相同的測試時間,即一個時脈週期。 Specifically, due to the relatively high delay of a single latch, if only a single latch chain is used for monitoring, the voltage detection accuracy will be relatively low, that is, the value of p can only be changed when the voltage changes greatly. . In order to improve monitoring accuracy, this application uses N latch chains, all latches are enabled with the same clock signal, so all latches have the same test time, that is, one clock cycle .

另外,這一時脈訊號經過一個緩衝器輸入到第一條閂鎖器鏈的各閂鎖器的資料輸入端,這個緩衝器主要用來避免因為不滿足閂鎖器的建立時間而產生亞穩態;之後再經過第二個緩衝器輸入到第二條閂鎖器鏈的各閂鎖器的資料輸入端,經過第三個緩衝器輸入到第三條閂鎖器鏈的各閂鎖器的資料輸入端……經過第N個緩衝器輸入到第N條閂鎖器鏈的各閂鎖器的資料輸入端。這樣每條閂鎖器鏈的輸入訊號都依次後延一個緩衝器的時延。 In addition, this clock signal is input to the data input terminals of the latches of the first latch chain through a buffer. This buffer is mainly used to avoid metastable states due to failure to meet the settling time of the latches. ; After that, it is input to the data input end of each latch of the second latch chain through the second buffer, and the data of each latch of the third latch chain is input through the third buffer The input end...is input to the data input end of each latch of the Nth latch chain through the Nth buffer. In this way, the input signal of each latch chain is sequentially delayed by one buffer delay.

由於電壓的高低會帶來閂鎖器的時延和緩衝器的時延的長短,下面論證時脈訊號的高電位的時間長度與閂鎖器的時延和緩衝器的時延之間的關係、以及採用N條閂鎖器鏈能帶來更高的檢測精度的原理。 Since the voltage level will bring the delay of the latch and the delay of the buffer, the following demonstrates the relationship between the time length of the high potential of the clock signal and the delay of the latch and the buffer , and the principle that adopting N latch chains can bring higher detection accuracy.

假設在已知某個數值(例如0.95V)的電源電壓的情況下,已知相應地,一個閂鎖器的時延為100ps,一個緩衝器的時延為30ps,取N=4,M=10,時脈訊號在一個時脈週期內致能4條閂鎖器鏈一次後,4條閂鎖器鏈中所存的資料的邏輯值分別為1111110000,1111110000,1111100000,1111100000。那麼在一個 時脈週期內,輸入訊號的實際傳遞時延(即,時脈訊號的高電位的時間長度)應滿足如下條件: 對於第一條閂鎖器鏈,輸入訊號的實際傳遞時延(即,時脈訊號的高電位的時間長度)在大於緩衝器的數量和單個緩衝器的時延的乘積與第一值的數量和單個閂鎖器的時延的乘積的和(即>6*100+1*30=630ps),且小於該閂鎖器鏈條之前的緩衝器的數量與單個緩衝器的時延的乘積和第一值的數量加1之後與單個閂鎖器的時延的乘積的和;計算得到輸入訊號的傳遞時延(即<7*100+1*30=730ps)、即630ps-730ps之間,對於第二條閂鎖器鏈,輸入訊號的傳遞時延(即,時脈訊號的高電位的時間長度)(即>6*100+2*30=660ps且<7*100+2*30=760ps)在660ps-760ps之間,對於第三條閂鎖器鏈,輸入訊號的傳遞時延(即,時脈訊號的高電位的時間長度)(即>5*100+3*30=590ps且<6*100+3*30=690ps)在590ps-690ps之間,對於第四條閂鎖器鏈,輸入訊號的傳遞時延(即,時脈訊號的高電位的時間長度)(即>5*100+4*30=620ps且<6*100+4*30=720ps)在620ps-720ps之間,由於這四條閂鎖器連結入的是同一個輸入訊號,因此可以判斷輸入訊號的實際傳遞時延(即,時脈訊號的高電位的時間長度)受到對4條閂鎖器鏈計算得到的4個範圍的約束,即最終被約束在660ps-690ps之間。 Assuming that the power supply voltage of a certain value (such as 0.95V) is known, it is known that correspondingly, the delay of a latch is 100ps, and the delay of a buffer is 30ps, taking N=4, M= 10. After the clock signal enables the four latch chains once in one clock cycle, the logic values of the data stored in the four latch chains are 1111110000, 1111110000, 1111100000, 1111100000 respectively. then in a In the clock cycle, the actual transmission delay of the input signal (that is, the time length of the high potential of the clock signal) should meet the following conditions: For the first chain of latches, the actual propagation delay of the input signal (i.e., the length of time the clock signal is high) is greater than the number of buffers times the delay of a single buffer multiplied by the first value and the delay of a single latch (ie >6*100+1*30=630ps), and less than the product of the number of buffers before the latch chain and the delay of a single buffer and the first The sum of the product of the number of values plus 1 and the delay of a single latch; calculate the transmission delay of the input signal (ie <7*100+1*30=730ps), that is, between 630ps-730ps, for The second latch chain, the transmission delay of the input signal (that is, the time length of the high potential of the clock signal) (ie >6*100+2*30=660ps and <7*100+2*30=760ps ) between 660ps-760ps, for the third latch chain, the transfer delay of the input signal (that is, the time length of the high potential of the clock signal) (ie>5*100+3*30=590ps and < 6*100+3*30=690ps) between 590ps-690ps, for the fourth latch chain, the transmission delay of the input signal (ie, the time length of the high potential of the clock signal) (ie>5* 100+4*30=620ps and <6*100+4*30=720ps) between 620ps-720ps, because these four latches are connected to the same input signal, so the actual transmission time of the input signal can be judged The delay (that is, the time length of the high potential of the clock signal) is constrained by 4 ranges calculated for the 4 latch chains, that is, it is finally constrained between 660ps-690ps.

因此,相比使用單條閂鎖器鏈(只能得到例如630ps-730ps之間),極大地提升了檢測輸入訊號的實際傳遞時延(即,時脈訊 號的高電位的時間長度)的精度(能夠得到例如660ps-690ps之間)。 Therefore, the actual propagation delay (i.e., clock signal The time length of the high potential of the signal) accuracy (can be obtained, for example, between 660ps-690ps).

當然,上述例子只是為了說明單個閂鎖器的時延、單個緩衝器的時延與輸入訊號的實際傳遞時延(即,時脈訊號的高電位的時間長度)之間的關係。而本申請是為了得到單個閂鎖器的時延,從而得知電源電壓的大小。因此,在電源電壓大小未知、在此種電源電壓情況下的單個閂鎖器的時延和緩衝器的時延也未知的情況下,由於已知輸入的時脈訊號的高電位的時間長度,也可以透過與上述例子相同的公式和關係來推導並求出單個閂鎖器的時延的範圍。 Of course, the above examples are just to illustrate the relationship between the delay of a single latch, the delay of a single buffer and the actual transmission delay of the input signal (ie, the time length of the high potential of the clock signal). However, the purpose of this application is to obtain the time delay of a single latch, so as to obtain the magnitude of the power supply voltage. Therefore, when the magnitude of the power supply voltage is unknown, and the time delay of a single latch and the time delay of the buffer are also unknown in the case of this power supply voltage, since the time length of the high potential of the input clock signal is known, The time delay range of a single latch can also be derived and obtained through the same formula and relationship as the above example.

具體地,在實際測試使用中,本申請採用固定的輸入訊號(時脈訊號),即已知輸入的時脈訊號的高電位的時間長度,透過確定該固定的輸入訊號能傳輸的路徑長短(對應於輸入的時脈訊號的高電位的時間長度),來確定單個閂鎖器的時延範圍。 Specifically, in actual test use, this application uses a fixed input signal (clock signal), that is, the time length of the high potential of the known input clock signal, by determining the length of the transmission path of the fixed input signal ( Corresponding to the time length of the high potential of the input clock signal), to determine the delay range of a single latch.

例如,假設時脈訊號的高電位致能訊號長度(即高電位的時間長度)為500ps(例如週期為1000ps的占空比50%的時脈訊號),仍然從在正常電壓下的閂鎖器的時延和緩衝器的時延的關係來取N=4,M=10,假設當前供電電壓下單個緩衝器的時延為x,單個閂鎖器的時延為y(此時x、y由於供電電壓不一定是正常電壓因此是不確定的),在時脈訊號致能一次(持續一個高電位的時間長度)後,4條閂鎖器鏈中所存的資料分別為1111110000,1111110000,1111100000,1111100000。 For example, assuming that the high-potential enable signal length of the clock signal (that is, the time length of the high potential) is 500ps (for example, a clock signal with a duty cycle of 1000ps and a duty cycle of 50%), the latch is still under normal voltage. The relationship between the delay and the delay of the buffer is taken as N=4, M=10, assuming that the delay of a single buffer under the current supply voltage is x, and the delay of a single latch is y (at this time, x, y Since the power supply voltage is not necessarily a normal voltage, it is uncertain), after the clock signal is enabled once (for a duration of high potential), the data stored in the four latch chains are 1111110000, 1111110000, 1111100000 , 1111100000.

則根據上述例子得到的關係,可以判斷,對於第一條閂鎖器鏈,x+5y<500ps<x+6y;對於第二條閂鎖器鏈,2x+5y<500ps<2x+6y;對於第三條閂鎖器鏈,3x+4y<500ps<3x+5y;對於第四條閂鎖器鏈,4x+4y<500ps<4x+5y。 According to the relationship obtained from the above example, it can be judged that for the first latch chain, x+5y<500ps<x+6y; for the second latch chain, 2x+5y<500ps<2x+6y; for For the third latch chain, 3x+4y<500ps<3x+5y; for the fourth latch chain, 4x+4y<500ps<4x+5y.

根據上述4條閂鎖器鏈的範圍約束,經過變換得到:

Figure 111115742-A0305-02-0020-1
According to the range constraints of the above four latch chains, after transformation:
Figure 111115742-A0305-02-0020-1

其中^為邏輯與函數。再變換得到:

Figure 111115742-A0305-02-0020-2
Where ^ is the logical AND function. Then transform to get:
Figure 111115742-A0305-02-0020-2

Figure 111115742-A0305-02-0020-3
Figure 111115742-A0305-02-0020-3

Figure 111115742-A0305-02-0020-4
Figure 111115742-A0305-02-0020-4

可以求得:

Figure 111115742-A0305-02-0020-5
can be obtained:
Figure 111115742-A0305-02-0020-5

其中x、y的取值範圍在二維坐標軸上表示如圖11A所示:求得,單個閂鎖器的時延y的範圍為75ps<y<100ps。 Wherein, the value ranges of x and y are represented on the two-dimensional coordinate axes as shown in FIG. 11A : obtained, the time delay y range of a single latch is 75ps<y<100ps.

相比之下,第一條閂鎖器鏈的約束x+5y<500ps<x+6y以及x>0只能得到:

Figure 111115742-A0305-02-0020-6
In contrast, the constraints x+5y<500ps<x+6y and x>0 for the first latch chain yield only:
Figure 111115742-A0305-02-0020-6

x、y的取值範圍在二維坐標軸上表示如圖11B所示:只能確定其中第一條閂鎖器鏈上的單個閂鎖器的時延y的範圍為0ps<y<100ps。 The value ranges of x and y are represented on the two-dimensional coordinate axes as shown in FIG. 11B : only the range of time delay y of a single latch on the first latch chain can be determined as 0ps<y<100ps.

因此使用多條閂鎖器鏈進行測試,可明顯提升測試得到 單個閂鎖器的時延的精度。 Therefore, using multiple latch chains for testing can significantly improve the test obtained The precision of the time delay of a single latch.

不同供電電壓下,閂鎖器的時延會發生變化。在一個實施例中,單個閂鎖器的實際時延範圍與供電電壓的大小的關係可以透過實驗測量得到。例如透過測試不同供電電壓下,N條閂鎖器鏈的輸出結果,從而計算出單個閂鎖器的實際時延範圍,使得測試人員可以建立一張查閱資料表,將單個閂鎖器的實際時延範圍與相應的供電電壓相映射。在實際使用的時候,根據N條閂鎖器鏈的輸出結果,計算出單個閂鎖器的實際時延範圍,根據查閱資料表反向推斷出目前的供電電壓,並使得電壓調節單元進行相應的調節。 The time delay of the latch will vary under different supply voltages. In one embodiment, the relationship between the actual delay range of a single latch and the power supply voltage can be obtained through experimental measurement. For example, by testing the output results of N latch chains under different supply voltages, the actual delay range of a single latch can be calculated, so that the tester can create a look-up data table to compare the actual delay range of a single latch. The extension range is mapped to the corresponding supply voltage. In actual use, the actual delay range of a single latch is calculated according to the output results of the N latch chains, and the current power supply voltage is deduced inversely according to the reference table, and the voltage adjustment unit is made to perform corresponding adjust.

在一個實施例中,電壓調節模組被配置為:根據確定的供電電壓的大小,在確定的供電電壓低於預定電壓時升高供電電壓以補償電壓下垂,或者在確定的供電電壓高於預定電壓時降低供電電壓以補償電壓上升。也就是說,在該實施例中,電壓調節模組可以不僅檢測是否存在電壓下垂,還可以根據判斷的電壓下垂的幅度,升高區域的電壓以補償電壓下垂。當然,電壓調節模組也可以根據推斷的供電電壓高於目標電壓,來降低該電壓以將該電壓維持在目標電壓。 In one embodiment, the voltage regulation module is configured to increase the supply voltage to compensate for voltage droop when the determined supply voltage is lower than a predetermined voltage, or increase the supply voltage when the determined supply voltage is higher than a predetermined voltage according to the magnitude of the determined supply voltage. Reduce the supply voltage to compensate for the voltage rise. That is to say, in this embodiment, the voltage regulation module can not only detect whether there is a voltage sag, but also increase the voltage of the region to compensate for the voltage sag according to the determined magnitude of the voltage sag. Of course, the voltage regulation module can also reduce the voltage to maintain the voltage at the target voltage according to the inferred power supply voltage being higher than the target voltage.

注意,每個閂鎖器的RSTB重定端可以接收重定訊號,使得閂鎖器復位。 Note that the RSTB reset terminal of each latch can receive a reset signal to reset the latch.

在一個實施例中,供電電壓檢測器中的N條閂鎖器鏈在時脈訊號的上升沿致能,且在時脈訊號的下降沿輸出資料。在輸 出資料之後透過重定訊號使得每個閂鎖器復位。然後,在下一時脈訊號的上升沿致能,且在時脈訊號的下降沿輸出資料並重定,以此類推。本結構在時脈高電位的時候進行測試,在時脈低電位的時候輸出測試結果,並對所有閂鎖器進行復位,等待下一次測試。 In one embodiment, the N latch chains in the supply voltage detector are enabled at the rising edge of the clock signal, and output data at the falling edge of the clock signal. losing After the data is out, each latch is reset by resetting the signal. Then, it is enabled at the rising edge of the next clock signal, and the data is output and reset at the falling edge of the clock signal, and so on. In this structure, the test is performed when the clock pulse is at a high potential, and the test result is output when the clock pulse is at a low potential, and all latches are reset to wait for the next test.

如果為了提高回應速度,可以使用兩組閂鎖器鏈,分別在時脈高電位和低電位期間測量,然後在時脈低電位和高電位期間輸出測試結果,以達到每個時脈週期內輸出兩次測試結果。這樣就可以對持續時間很短的電壓下垂脈衝或電壓上升脈衝實現檢測。即,在一個替換實施例中,供電電壓檢測器中還包括與N條閂鎖器鏈具有相同結構的另外N條閂鎖器鏈和另外N個緩衝器,且在時脈訊號的上升沿致能N條閂鎖器鏈、且在時脈訊號的下降沿輸出資料。然後,在輸出資料之後透過重定訊號使得這N條閂鎖器鏈的閂鎖器復位。且在時脈訊號的下降沿致能另外N條閂鎖器鏈、且在時脈訊號的上升沿輸出資料。然後,在輸出資料之後透過重定訊號使得這另外N條閂鎖器鏈的閂鎖器復位。 If in order to improve the response speed, two sets of latch chains can be used to measure during the high potential and low potential of the clock respectively, and then output the test results during the low potential and high potential of the clock to achieve output in each clock cycle Two test results. This enables the detection of voltage droop pulses or voltage rise pulses of very short duration. That is, in an alternative embodiment, the supply voltage detector further includes another N latch chains having the same structure as the N latch chains and another N buffers, and the rising edge of the clock signal N latches can be chained, and data can be output on the falling edge of the clock signal. Then, after outputting the data, the latches of the N latch chains are reset through a reset signal. And the other N latch chains are enabled at the falling edge of the clock signal, and data are output at the rising edge of the clock signal. Then, reset the latches of the other N latch chains by resetting the signal after outputting the data.

本申請的技術方案相比于現有技術的優點包括但不限於:1.相比於使用數模轉化電路、電阻電容等方式,本結構使用純數位結構,利用標準單元庫中的器件即可實現,可直接進行綜合,對積體電路設計流程非常友好;2.本結構具有較高的回應頻率,可以每個時脈週期都輸出一個電壓檢測結果;3.本結構具有較高的檢測精度,在1.5GHz的工作頻率下,可以實現約6mV的 電壓變化檢測精度;4.本結構可以適應不同的工作頻率,無需使用額外的時延調節電路;5.本結構只需極小的面積開銷,對原積體電路設計影響很小;6.本結構中所有的閂鎖器電路和附近其他的閂鎖器電路都接入同一個電源網路,無需特別接入理想電源,易於在積體電路後端集成。 Compared with the prior art, the advantages of the technical solution of the present application include but are not limited to: 1. Compared with the use of digital-to-analog conversion circuits, resistors and capacitors, etc., this structure uses a pure digital structure, which can be realized by using the devices in the standard cell library , can be synthesized directly, and is very friendly to the integrated circuit design process; 2. This structure has a high response frequency, and can output a voltage detection result every clock cycle; 3. This structure has high detection accuracy, At 1.5GHz operating frequency, about 6mV of Voltage change detection accuracy; 4. This structure can adapt to different operating frequencies without using additional delay adjustment circuits; 5. This structure only requires a very small area overhead, which has little impact on the original integrated circuit design; 6. This structure All the latch circuits in the circuit and other nearby latch circuits are connected to the same power supply network, no special connection to the ideal power supply is required, and it is easy to integrate at the back end of the integrated circuit.

圖5示出了根據本公開的實施例的一種供電電壓檢測方法500的流程圖。該方法500包括:步驟501,提供供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;和步驟502,檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 FIG. 5 shows a flowchart of a method 500 for detecting a power supply voltage according to an embodiment of the present disclosure. The method 500 includes: step 501, providing a power supply voltage detector, including a buffer string, including N buffers, wherein the input end of the first buffer is connected to the clock signal, and the output end of the first buffer is connected to The input end of the second buffer, the output end of the nth buffer is connected to the input end of the n+1th buffer, N, n are positive integers, n is greater than 1 and less than N; N latch chains, Each latch chain includes M latches, the clock input of each latch is connected to the clock signal, and the data input of the first latch of each latch chain is connected to N The output end of a corresponding buffer in the buffer, the data output end of the first latch is connected to the data input end of the second latch, and the data output end of the mth latch is connected to the m+th The data input terminals of one latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal VDD of each latch is connected to the area where the power supply voltage is to be detected in the power supply network of the integrated circuit. The ground terminal of each latch is connected to the ground; and step 502, detecting the data output of each latch to determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power network.

在此,第一個閂鎖器的資料輸入端之前的第一個緩衝器,可以將時脈訊號延時一個緩衝器的時延時間,再輸入到第一 個閂鎖器的資料輸入端作為資料輸入訊號,這是為了將第一個閂鎖器的資料輸入訊號和時脈致能訊號的上升沿錯開,避免因為不滿足建立時間而產生亞穩態。 Here, the first buffer before the data input end of the first latch can delay the clock signal by a delay time of the buffer, and then input it to the first The data input terminal of the first latch is used as the data input signal, which is to stagger the rising edge of the data input signal of the first latch and the clock enable signal, so as to avoid metastability due to insufficient setup time.

注意,每個閂鎖器的RSTB重定端可以接收重定訊號,使得閂鎖器復位。每個閂鎖器的QN端懸空。 Note that the RSTB reset terminal of each latch can receive a reset signal to reset the latch. The QN terminal of each latch is floating.

如此,可以透過檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。相比於使用數模轉化電路、電阻電容等方式,本結構使用純數位結構,利用標準單元庫中的器件即可實現,可直接進行綜合,對積體電路設計流程非常友好,本結構具有較高的回應頻率,可以每個時脈週期都輸出一個電壓檢測結果;本結構具有較高的檢測精度,在1.5GHz的工作頻率下,可以實現約6mV的電壓變化檢測精度;本結構可以適應不同的工作頻率,無需使用額外的時延調節電路;本結構只需極小的面積開銷,對原積體電路設計影響很小。本結構中所有的閂鎖器電路和附近其他的閂鎖器電路都接入同一個電源網路,無需特別接入理想電源,易於在積體電路後端集成。 In this way, the magnitude of the power supply voltage in the region where the power supply voltage is to be detected in the integrated circuit power network can be determined by detecting the data output of each latch. Compared with the use of digital-to-analog conversion circuits, resistors and capacitors, etc., this structure uses a pure digital structure, which can be realized by using the devices in the standard cell library, and can be directly synthesized. It is very friendly to the design process of integrated circuits. With a high response frequency, a voltage detection result can be output every clock cycle; this structure has high detection accuracy, and can achieve a voltage change detection accuracy of about 6mV at a working frequency of 1.5GHz; this structure can adapt to different There is no need to use an additional delay adjustment circuit; this structure only requires a very small area cost, and has little impact on the original integrated circuit design. All latch circuits in this structure and other nearby latch circuits are connected to the same power supply network, without special connection to an ideal power supply, and are easy to integrate at the back end of the integrated circuit.

在一個實施例中,單個閂鎖器的實際時延範圍與供電電壓的大小的關係透過實驗測量得到,或者N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係透過實驗測量得到。 In one embodiment, the relationship between the actual delay range of a single latch and the magnitude of the power supply voltage is obtained through experimental measurement, or the relationship between the values of the logic value strings of the N latch chains and the magnitude of the power supply voltage is obtained through experiments measured.

在一個實施例中,N是對單個閂鎖器的時延除以單個緩衝器的時延的結果的上取整。 In one embodiment, N is the rounded up result of dividing the latency of a single latch by the latency of a single buffer.

在一個實施例中,M大於或等於時脈訊號的週期除以單 個閂鎖器的時延的結果的1倍以上。 In one embodiment, M is greater than or equal to the period of the clock signal divided by a single The result of the delay of a latch is more than 1 times.

在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1.5倍。 In one embodiment, M is greater than or equal to 1.5 times the period of the clock signal divided by the delay of a single latch.

假設在已知某個數值的電源電壓的情況下,已知相應地,一個閂鎖器的時延為100ps,一個緩衝器的時延為30ps,取N=4,M=10。 Assuming that the power supply voltage of a certain value is known, it is known that correspondingly, the time delay of a latch is 100 ps, and the time delay of a buffer is 30 ps, N=4, M=10.

圖6A示出了根據本公開的實施例的檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小502的步驟的一個實施例。 FIG. 6A shows an embodiment of the step of detecting the data output of each latch to determine the magnitude 502 of the power supply voltage in the region where the power supply voltage is to be detected in the IC power network according to an embodiment of the present disclosure.

在該實施例中,檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小502的步驟包括:步驟5021,根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;步驟5022,根據N條閂鎖器鏈的邏輯數值串、和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 In this embodiment, the step of detecting the data output of each latch to determine the magnitude 502 of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network includes: Step 5021, according to the output of each latch Comparing the data output with the reference potential to obtain a logical value to obtain a logical value string of each latch chain; step 5022, according to the logical value string of the N latch chains and the logical value string of the N latch chains The relationship between the value and the magnitude of the power supply voltage determines the magnitude of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network.

在一個實施例中,如果閂鎖器的資料輸出比參考電位高,則邏輯數值為第一值,如果閂鎖器的資料輸出比參考電位低,則邏輯數值為第二值。例如,閂鎖器的資料輸出高於或等於參考電位,為邏輯‘1’(第一值為1),而閂鎖器的資料輸出低於參考電位,為邏輯‘0’(第二值為0)。 In one embodiment, if the data output of the latch is higher than the reference potential, the logical value is a first value, and if the data output of the latch is lower than the reference potential, the logical value is a second value. For example, the data output of the latch is higher than or equal to the reference potential, which is a logic '1' (the first value is 1), and the data output of the latch is lower than the reference potential, which is a logic '0' (the second value is 0).

時脈訊號在一個時脈週期內致能4條閂鎖器鏈一次後,4 條閂鎖器鏈中所存的資料的邏輯值分別為1111110000,1111110000,1111100000,1111100000。假如事先N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係透過實驗測量得到,例如事先已經透過實驗測量得到了4條閂鎖器鏈中所存的資料的邏輯值分別為1111110000,1111110000,1111100000,1111100000時,供電電壓大小為0.95V。 After the clock signal enables the chain of 4 latches once in a clock cycle, the 4 The logical values of the data stored in the latch chains are 1111110000, 1111110000, 1111100000, 1111100000 respectively. If the relationship between the value of the logical value string of the N latch chains and the magnitude of the supply voltage is obtained through experimental measurement, for example, the logical values of the data stored in the four latch chains have been obtained through experimental measurement in advance. 1111110000, 1111110000, 1111100000, 1111100000, the power supply voltage is 0.95V.

如此,可以直接根據N條閂鎖器鏈的邏輯數值串1111110000,1111110000,1111100000,1111100000、和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小為0.95V。該方案方便快捷。 In this way, the integrated circuit power supply can be determined directly according to the relationship between the logical value strings 1111110000, 1111110000, 1111100000, 1111100000 of the N latch chains and the value of the logical value strings of the N latch chains and the power supply voltage The magnitude of the power supply voltage in the area where the power supply voltage is to be detected in the network is 0.95V. The program is convenient and quick.

圖6B示出了根據本公開的實施例的檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小502的步驟的另一個實施例。 FIG. 6B shows another embodiment of the step 502 of detecting the data output of each latch to determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the IC power network according to an embodiment of the present disclosure.

在該實施例中,檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小502的步驟包括:步驟5021’,根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;步驟5022’,根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍; 步驟5023’,根據多條閂鎖器鏈中各自的閂鎖器的時延範圍,得到單個閂鎖器的實際時延範圍;步驟5024’,根據單個閂鎖 器的實際時延範圍與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 In this embodiment, the step of detecting the data output of each latch to determine the magnitude 502 of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network includes: step 5021', according to each latch Comparing the data output of the data output with the reference potential to obtain a logic value to obtain a logic value string of each latch chain; step 5022', according to the logic value string of multiple latch chains and the time length of the high potential of the clock signal , to obtain the delay range of each latch in multiple latch chains; Step 5023', according to the delay range of each latch in multiple latch chains, obtain the actual delay range of a single latch; Step 5024', according to a single latch The relationship between the actual delay range of the device and the size of the power supply voltage determines the size of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network.

圖7示出了根據本公開的實施例的、根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度、得到多條閂鎖器鏈中各自的閂鎖器的時延範圍5022’的步驟的具體步驟的流程圖。 FIG. 7 shows, according to an embodiment of the present disclosure, according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal, the respective latches in the plurality of latch chains are obtained. A flow chart of the specific steps of the steps in the delay range 5022'.

根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍的步驟5022’包括:步驟50221’,確定預定的一條閂鎖器鏈中的邏輯數值串中的第一值的數量;步驟50222’,確定預定的一條閂鎖器鏈與輸入的時脈訊號之間存在的緩衝器的數量;步驟50223’,確定時脈訊號的高電位的時間長度為大於緩衝器的數量和單個緩衝器的時延的乘積與第一值的數量和單個閂鎖器的時延的乘積的和,且小於該閂鎖器鏈條之前的緩衝器的數量與單個緩衝器的時延的乘積和第一值的數量加1之後與單個閂鎖器的時延的乘積的和;步驟50224’,計算得到單個閂鎖器的實際時延範圍。 The step 5022' of obtaining the delay ranges of the respective latches in the plurality of latch chains according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal includes: step 50221', Determine the number of first values in the logical value string in a predetermined chain of latches; step 50222', determine the number of buffers existing between a predetermined chain of latches and the input clock signal; step 50223 ', determine that the time length of the high potential of the clock signal is greater than the sum of the product of the number of buffers and the time delay of a single buffer and the product of the number of first values and the time delay of a single latch, and is less than the sum of the product of the number of buffers and the time delay of a single latch The sum of the product of the number of buffers before the locker chain and the time delay of a single buffer and the product of the time delay of a single latch after the number of the first value is added to 1; step 50224', calculate and obtain a single latch the actual delay range.

例如,假設時脈訊號的高電位致能訊號長度(即高電位的時間長度)為500ps。N=4,M=10,假設當前供電電壓下單個緩衝器的時延為x,單個閂鎖器的時延為y。在時脈訊號致能一次(持續一個高電位的時間長度)後,4條閂鎖器鏈中所存的資料分別為1111110000,1111110000,1111100000,1111100000。 For example, suppose the length of the high potential enabling signal (ie, the time length of the high potential) of the clock signal is 500 ps. N=4, M=10, assuming that the time delay of a single buffer under the current supply voltage is x, and the time delay of a single latch is y. After the clock signal is enabled once (for a duration of high potential), the data stored in the four latch chains are 1111110000, 1111110000, 1111100000, 1111100000 respectively.

則根據上述例子得到的關係,可以判斷,對於第一條閂 鎖器鏈,x+5y<500ps<x+6y;對於第二條閂鎖器鏈,2x+5y<500ps<2x+6y;對於第三條閂鎖器鏈,3x+4y<500ps<3x+5y;對於第四條閂鎖器鏈,4x+4y<500ps<4x+5y。 Then according to the relationship obtained in the above example, it can be judged that for the first latch For the latch chain, x+5y<500ps<x+6y; for the second latch chain, 2x+5y<500ps<2x+6y; for the third latch chain, 3x+4y<500ps<3x+ 5y; for the fourth latch chain, 4x+4y<500ps<4x+5y.

求得單個閂鎖器的時延y的範圍為75ps<y<100ps。 The range of time delay y obtained for a single latch is 75ps<y<100ps.

假如事先單個閂鎖器的實際時延範圍與供電電壓的大小的關係透過實驗測量得到,例如事先得到單個閂鎖器的實際時延範圍為75ps<y<100ps時,供電電壓為0.95V,則可以直接根據單個閂鎖器的實際時延範圍與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小為0.95V。該方法方便快捷。 If the relationship between the actual delay range of a single latch and the power supply voltage is obtained through experimental measurement, for example, when the actual delay range of a single latch is 75ps<y<100ps, the power supply voltage is 0.95V, then According to the relationship between the actual time delay range of a single latch and the power supply voltage, the power supply voltage of the area to detect the power supply voltage in the integrated circuit power network can be determined to be 0.95V. This method is convenient and quick.

圖8示出了根據本公開的另一實施例的供電電壓檢測方法500的流程圖。 FIG. 8 shows a flowchart of a power supply voltage detection method 500 according to another embodiment of the present disclosure.

在該實施例中,除了步驟501和502以外,供電電壓檢測方法500還可以包括:步驟503,根據確定的供電電壓的大小,在確定的供電電壓低於預定電壓時升高供電電壓以補償電壓下垂,或者在確定的供電電壓高於預定電壓時降低供電電壓以補償電壓上升。 In this embodiment, in addition to steps 501 and 502, the power supply voltage detection method 500 may further include: step 503, according to the magnitude of the determined power supply voltage, when the determined power supply voltage is lower than a predetermined voltage, the power supply voltage is increased to compensate the voltage Drooping, or reducing the supply voltage to compensate for the voltage rise when the determined supply voltage is higher than a predetermined voltage.

如此,可以不僅檢測供電電壓的大小,還可以根據供電電壓與預定電壓之間的大小關係,來進行電壓調節以穩定供電電壓在預定電壓上。當然,本方案不限於此,還可以在檢測到供電電壓大小之後,進行其他電壓調節,或利用供電電壓大小進行其他處理,在此不一一詳述。 In this way, not only the magnitude of the power supply voltage can be detected, but also voltage regulation can be performed according to the magnitude relationship between the power supply voltage and the predetermined voltage to stabilize the power supply voltage at the predetermined voltage. Of course, this solution is not limited thereto, and other voltage adjustments may be performed after the magnitude of the power supply voltage is detected, or other processing may be performed using the magnitude of the power supply voltage, which will not be detailed here.

在一個實施例中,供電電壓檢測器中的N條閂鎖器鏈在時脈訊號的上升沿致能,且在時脈訊號的下降沿輸出資料並重定。如此,在一個時脈週期內,可以進行一次檢測和輸出。 In one embodiment, the chain of N latches in the supply voltage detector is enabled on the rising edge of the clock signal, and outputs data and resets on the falling edge of the clock signal. In this way, within one clock cycle, detection and output can be performed once.

或者,在另一實施例中,供電電壓檢測器中還包括與N條閂鎖器鏈具有相同結構的另外N條閂鎖器鏈和另外N個緩衝器,且在時脈訊號的上升沿致能N條閂鎖器鏈、且在時脈訊號的下降沿輸出資料並重定,且在時脈訊號的下降沿致能另外N條閂鎖器鏈、且在時脈訊號的上升沿輸出資料並重定。這樣,使用兩組閂鎖器鏈,分別在時脈高電位和低電位期間測量,然後在時脈低電位和高電位期間輸出測試結果,以達到每個時脈週期內輸出兩次測試結果,可以提高回應速度,也可以對持續時間很短的電壓下垂脈衝或電壓上升脈衝實現檢測。 Or, in another embodiment, the power supply voltage detector further includes another N latch chains and another N buffers having the same structure as the N latch chains, and the rising edge of the clock signal corresponds to Enable N latch chains, and output data and reset on the falling edge of the clock signal, and enable another N latch chains on the falling edge of the clock signal, and output data and reset on the rising edge of the clock signal Certainly. In this way, two sets of latch chains are used to measure during the high potential and low potential of the clock respectively, and then output the test results during the low potential and high potential of the clock, so as to output two test results in each clock cycle, The response speed can be improved, and the detection of voltage sag pulses or voltage rising pulses with a short duration can also be realized.

總之,本申請的技術方案相比于現有技術的優點包括但不限於:1.相比於使用數模轉化電路、電阻電容等方式,本結構使用純數位結構,利用標準單元庫中的器件即可實現,可直接進行綜合,對積體電路設計流程非常友好;2.本結構具有較高的回應頻率,可以每個時脈週期都輸出一個電壓檢測結果;3.本結構具有較高的檢測精度,在1.5GHz的工作頻率下,可以實現約6mV的電壓變化檢測精度;4.本結構可以適應不同的工作頻率,無需使用額外的時延調節電路;5.本結構只需極小的面積開銷,對原積體電路設計影響很小;6.本結構中所有的閂鎖器電路和附近其他的閂鎖器電路都接入同一個電源網路,無需特別接入理想電 源,易於在積體電路後端集成。 In short, the advantages of the technical solution of the present application compared with the prior art include but are not limited to: 1. Compared with the use of digital-to-analog conversion circuits, resistors and capacitors, etc., this structure uses a pure digital structure, using the devices in the standard cell library, namely Realizable, can be synthesized directly, and is very friendly to the integrated circuit design process; 2. This structure has a high response frequency, and can output a voltage detection result every clock cycle; 3. This structure has a high detection Accuracy, at a working frequency of 1.5GHz, a voltage change detection accuracy of about 6mV can be achieved; 4. This structure can adapt to different operating frequencies without using additional delay adjustment circuits; 5. This structure only requires a very small area overhead , has little impact on the design of the original integrated circuit; 6. All latch circuits in this structure and other nearby latch circuits are connected to the same power supply network, and there is no need to connect to the ideal circuit source, easy to integrate in the back end of the integrated circuit.

圖9示出了適於用來實現本公開實施方式的示例性電腦系統的方塊圖。 Figure 9 shows a block diagram of an exemplary computer system suitable for implementing embodiments of the present disclosure.

電腦系統可以包括處理器(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 present disclosure when executed by the processor A step of.

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

記憶體(H2)可以包括但不限於例如,隨機存取記憶體(RAM)、唯讀記憶體(ROM)、快閃記憶體、EPROM記憶體、EEPROM記憶體、寄存器、電腦存儲介質(例如硬碟、軟碟、固態硬碟、可移動碟、CD-ROM、DVD-ROM、藍光碟等)。 The memory (H2) may include, but is not limited to, for example, random access memory (RAM), read only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (such as hard disk, floppy disk, solid state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray, 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 display (H5) and an input/output device (H6) (for example, a keyboard, a slider mouse, speakers, etc.) etc.

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

記憶體(H2)還可以存儲至少一個電腦可執行指令,用於在由處理器(H1)運行時執行本技術所描述的實施例中的各個功能和/或方法的步驟。 The memory (H2) can also store at least one computer-executable instruction for executing 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 or constitute a power supply voltage detection software product, wherein the one or more When the computer-executable instructions are executed by the processor, various functions and/or method steps in the embodiments described in the present technology are executed.

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

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

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

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

根據本公開的一個或多個實施例,提供一種供電電壓檢測裝置,連接到積體電路電源網路上,包括:供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;和電壓調節模組,連接到每條閂鎖器鏈的每個閂鎖器的資料輸出端,被配置為檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detection device connected to an integrated circuit power grid, comprising: a supply voltage detector including a buffer string including N buffers, wherein the first buffer The input terminal of the buffer is connected to the clock signal, the output terminal of the first buffer is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latch chains, each latch chain includes M latches, and the clock input terminal of each latch is connected to the clock signal, each The data input terminal of the first latch of the latch chain is connected to the output terminal of a buffer corresponding to the N buffers, and the data output terminal of the first latch is connected to the second latch The data input terminal of the mth latch is connected to the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, the power supply of each latch The input terminal VDD is connected to the area in the integrated circuit power network where the supply voltage is to be sensed, the ground terminal of each latch is connected to ground; and the voltage regulation module is connected to each latch of each latch chain The data output terminal of the latch is configured to detect the data output of each latch to determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power network.

在一個實施例中,電壓調節模組被配置為:根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;根據N條閂鎖器鏈的邏輯數值串、和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定積體 電路電源網路中要檢測供電電壓的區域的供電電壓的大小;或者電壓調節模組被配置為:根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍;根據多條閂鎖器鏈中各自的閂鎖器的時延範圍,得到單個閂鎖器的實際時延範圍;根據單個閂鎖器的實際時延範圍與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 In one embodiment, the voltage regulation module is configured to: obtain a logical value according to a comparison between the data output of each latch and a reference potential to obtain a logical value string of each latch chain; The relationship between the logical value string of the chain and the value of the logical value string of the N latch chains and the size of the supply voltage determines the integrated body The magnitude of the power supply voltage in the area where the power supply voltage is to be detected in the circuit power supply network; or the voltage regulation module is configured to: obtain a logic value according to the comparison between the data output of each latch and the reference potential to obtain each latch The logic value string of the chain; according to the logic value string of the multiple latch chains and the time length of the high potential of the clock signal, the delay range of each latch in the multiple latch chains is obtained; according to the multiple According to the delay range of each latch in the latch chain, the actual delay range of a single latch is obtained; according to the relationship between the actual delay range of a single latch and the power supply voltage, the power supply network of the integrated circuit is determined The magnitude of the power supply voltage in the area where the power supply voltage is to be detected on the road.

在一個實施例中,如果閂鎖器的資料輸出比參考電位高,則邏輯數值為第一值,如果閂鎖器的資料輸出比參考電位低,則邏輯數值為第二值,電壓調節模組被配置為透過如下步驟來根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍:確定預定的一條閂鎖器鏈中的邏輯數值串中的第一值的數量;確定預定的一條閂鎖器鏈與輸入的時脈訊號之間存在的緩衝器的數量;確定時脈訊號的高電位的時間長度為大於緩衝器的數量和單個緩衝器的時延的乘積與第一值的數量和單個閂鎖器的時延的乘積的和,且小於該閂鎖器鏈條之前的緩衝器的數量與單個緩衝器的時延的乘積和第一值的數量加1之後與單個閂鎖器的時延的乘積的和;計算得到單個閂鎖器的實際時延範圍。 In one embodiment, if the data output of the latch is higher than the reference potential, the logic value is a first value, and if the data output of the latch is lower than the reference potential, the logic value is a second value, and the voltage regulation module It is configured to obtain the delay ranges of the respective latches in the plurality of latch chains according to the logic value strings of the plurality of latch chains and the time length of the high potential of the clock signal through the following steps: determine the predetermined The number of the first value in the logical value string in a chain of latches; the number of buffers that exist between a predetermined chain of latches and the input clock signal; the number of high potentials of the clock signal The time length is greater than the sum of the product of the number of buffers and the time delay of a single buffer and the product of the number of the first value and the time delay of a single latch, and is less than the number of buffers before the chain of latches and The sum of the product of the time delay of a single buffer and the product of the time delay of a single latch after adding 1 to the number of the first value; the actual time delay range of a single latch is obtained by calculation.

在一個實施例中,電壓調節模組被配置為:根據確定的 供電電壓的大小,在確定的供電電壓低於預定電壓時升高供電電壓以補償電壓下垂,或者在確定的供電電壓高於預定電壓時降低供電電壓以補償電壓上升。 In one embodiment, the voltage regulation module is configured to: according to the determined The magnitude of the supply voltage. When the determined supply voltage is lower than the predetermined voltage, the supply voltage is increased to compensate for voltage droop, or when the determined supply voltage is higher than the predetermined voltage, the supply voltage is decreased to compensate for voltage rise.

在一個實施例中,單個閂鎖器的實際時延範圍與供電電壓的大小的關係透過實驗測量得到,或者N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係透過實驗測量得到。 In one embodiment, the relationship between the actual delay range of a single latch and the magnitude of the power supply voltage is obtained through experimental measurement, or the relationship between the values of the logic value strings of the N latch chains and the magnitude of the power supply voltage is obtained through experiments measured.

在一個實施例中,N是對單個閂鎖器的時延除以單個緩衝器的時延的結果的上取整。 In one embodiment, N is the rounded up result of dividing the latency of a single latch by the latency of a single buffer.

在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1倍以上。 In one embodiment, M is greater than or equal to 1 times the period of the clock signal divided by the delay of a single latch.

在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1.5倍。 In one embodiment, M is greater than or equal to 1.5 times the period of the clock signal divided by the delay of a single latch.

在一個實施例中,供電電壓檢測器中的N條閂鎖器鏈在時脈訊號的上升沿致能,且在時脈訊號的下降沿輸出資料並重定;或者供電電壓檢測器中還包括與N條閂鎖器鏈具有相同結構的另外N條閂鎖器鏈和另外N個緩衝器,且在時脈訊號的上升沿致能N條閂鎖器鏈、且在時脈訊號的下降沿輸出資料並重定,且在時脈訊號的下降沿致能另外N條閂鎖器鏈、且在時脈訊號的上升沿輸出資料並重定。 In one embodiment, the N latch chains in the supply voltage detector are enabled at the rising edge of the clock signal, and output data and reset at the falling edge of the clock signal; or the supply voltage detector further includes The N latch chains have another N latch chains and another N buffers with the same structure, and the N latch chains are enabled on the rising edge of the clock signal and output on the falling edge of the clock signal The data is reset, and the other N latch chains are enabled on the falling edge of the clock signal, and the data is output and reset on the rising edge of the clock signal.

根據本公開的一個或多個實施例,提供一種供電電壓檢測系統,包括:在積體電路電源網路的多個區域上連接的多個根據本公開的實施例的供電電壓檢測裝置。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detection system, comprising: a plurality of supply voltage detection devices according to the embodiments of the present disclosure connected to multiple regions of an integrated circuit power network.

根據本公開的一個或多個實施例,提供一種供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地。 According to one or more embodiments of the present disclosure, there is provided a supply voltage detector, including a buffer string, including N buffers, wherein the input end of the first buffer is connected to the clock signal, and the input end of the first buffer The output terminal is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latches A chain of latches, each chain of latches includes M latches, the clock input of each latch is connected to the clock signal, and the data input of the first latch of each chain of latches Connect to the output end of a buffer corresponding to the N buffers, the data output end of the first latch is connected to the data input end of the second latch, and the data output end of the mth latch is connected to To the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal VDD of each latch is connected to the power supply network of the integrated circuit to detect the power supply voltage area, the ground terminal of each latch is connected to ground.

根據本公開的一個或多個實施例,提供一種供電電壓檢測方法,包括:提供供電電壓檢測器,包括緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到N個緩衝器中對應的一個緩衝器的輸出端,第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸 入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端VDD連接到積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;和檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 According to one or more embodiments of the present disclosure, there is provided a power supply voltage detection method, including: providing a power supply voltage detector, including a buffer string, including N buffers, wherein the input end of the first buffer is connected to the clock Signal, the output of the first buffer is connected to the input of the second buffer, the output of the nth buffer is connected to the input of the n+1th buffer, N and n are positive integers, and n is greater than 1 and less than N; N latch chains, each latch chain includes M latches, the clock pulse input of each latch is connected to the clock signal, the first latch of each latch chain The data input end of the first latch is connected to the output end of a buffer corresponding to the N buffers, the data output end of the first latch is connected to the data input end of the second latch, and the mth The data output terminal of the latch is connected to the data input of the m+1th latch Input terminals, M and m are positive integers, m is greater than 1 and less than M, the power input terminal VDD of each latch is connected to the area where the power supply voltage is to be detected in the integrated circuit power network, and the ground terminal of each latch connected to ground; and sensing the data output of each latch to determine the magnitude of the supply voltage in the area of the integrated circuit power network where the supply voltage is to be sensed.

在一個實施例中,檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小包括:根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;根據N條閂鎖器鏈的邏輯數值串、和N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 In one embodiment, detecting the data output of each latch to determine the magnitude of the supply voltage in the region where the supply voltage is to be detected in the power supply network of the integrated circuit includes: according to the relationship between the data output of each latch and the reference potential Compare the logical values obtained to obtain the logical value strings of each latch chain; according to the relationship between the logical value strings of N latch chains and the value of the logical value strings of N latch chains and the magnitude of the supply voltage , to determine the size of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power supply network.

或者,在另一實施例中,檢測每個閂鎖器的資料輸出來確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小包括:根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍;根據多條閂鎖器鏈中各自的閂鎖器的時延範圍,得到單個閂鎖器的實際時延範圍;根據單個閂鎖器的實際時延範圍與供電電壓的大小的關係,確定積體電路電源網路中要檢測供電電壓的區域的供電電壓的大小。 Or, in another embodiment, detecting the data output of each latch to determine the magnitude of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network includes: according to the data output of each latch and The comparison of the reference potential obtains the logical value to obtain the logical value string of each latch chain; according to the logical value string of multiple latch chains and the time length of the high potential of the clock signal, multiple latch chains are obtained The delay range of each latch in the chain; according to the delay range of each latch in multiple latch chains, the actual delay range of a single latch is obtained; according to the actual delay range of a single latch The relationship with the size of the power supply voltage determines the size of the power supply voltage in the area where the power supply voltage is to be detected in the integrated circuit power network.

在一個實施例中,如果閂鎖器的資料輸出比參考電位 高,則邏輯數值為第一值,如果閂鎖器的資料輸出比參考電位低,則邏輯數值為第二值,電壓調節模組被配置為透過如下步驟來根據多條閂鎖器鏈的邏輯數值串、以及時脈訊號的高電位的時間長度,得到多條閂鎖器鏈中各自的閂鎖器的時延範圍:確定預定的一條閂鎖器鏈中的邏輯數值串中的第一值的數量;確定預定的一條閂鎖器鏈與輸入的時脈訊號之間存在的緩衝器的數量;確定時脈訊號的高電位的時間長度為大於緩衝器的數量和單個緩衝器的時延的乘積與第一值的數量和單個閂鎖器的時延的乘積的和,且小於該閂鎖器鏈條之前的緩衝器的數量與單個緩衝器的時延的乘積和第一值的數量加1之後與單個閂鎖器的時延的乘積的和;計算得到單個閂鎖器的實際時延範圍。 In one embodiment, if the data output of the latch is higher than the reference potential High, the logic value is the first value, if the data output of the latch is lower than the reference potential, the logic value is the second value, the voltage regulation module is configured to follow the logic of multiple latch chains through the following steps Numerical strings, and the time length of the high potential of the clock signal, to obtain the delay range of each latch in multiple latch chains: determine the first value in the logical numerical string in a predetermined latch chain the number of buffers; determine the number of buffers that exist between a predetermined latch chain and the input clock signal; determine that the time length of the high potential of the clock signal is greater than the number of buffers and the delay of a single buffer The sum of the product and the product of the number of first values and the delay of a single latch is less than the product of the number of buffers before the latch chain and the delay of a single buffer and the number of first values plus 1 Afterwards, the sum of the products with the delay of a single latch; the actual delay range of a single latch is calculated.

在一個實施例中,該方法還包括:根據確定的供電電壓的大小,在確定的供電電壓低於預定電壓時升高供電電壓以補償電壓下垂,或者在確定的供電電壓高於預定電壓時降低供電電壓以補償電壓上升。 In one embodiment, the method further includes: according to the magnitude of the determined power supply voltage, increasing the power supply voltage to compensate for voltage droop when the determined power supply voltage is lower than a predetermined voltage, or decreasing the power supply voltage when the determined power supply voltage is higher than a predetermined voltage supply voltage to compensate for voltage rise.

在一個實施例中,單個閂鎖器的實際時延範圍與供電電壓的大小的關係透過實驗測量得到,或者N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係透過實驗測量得到。 In one embodiment, the relationship between the actual delay range of a single latch and the magnitude of the power supply voltage is obtained through experimental measurement, or the relationship between the values of the logic value strings of the N latch chains and the magnitude of the power supply voltage is obtained through experiments measured.

在一個實施例中,N是對單個閂鎖器的時延除以單個緩衝器的時延的結果的上取整。 In one embodiment, N is the rounded up result of dividing the latency of a single latch by the latency of a single buffer.

在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1倍以上。 In one embodiment, M is greater than or equal to 1 times the period of the clock signal divided by the delay of a single latch.

在一個實施例中,M大於或等於時脈訊號的週期除以單個閂鎖器的時延的結果的1.5倍。 In one embodiment, M is greater than or equal to 1.5 times the period of the clock signal divided by the delay of a single latch.

在一個實施例中,供電電壓檢測器中的N條閂鎖器鏈在時脈訊號的上升沿致能,且在時脈訊號的下降沿輸出資料並重定;或者供電電壓檢測器中還包括與N條閂鎖器鏈具有相同結構的另外N條閂鎖器鏈和另外N個緩衝器,且在時脈訊號的上升沿致能N條閂鎖器鏈、且在時脈訊號的下降沿輸出資料並重定,且在時脈訊號的下降沿致能另外N條閂鎖器鏈、且在時脈訊號的上升沿輸出資料並重定。 In one embodiment, the N latch chains in the supply voltage detector are enabled at the rising edge of the clock signal, and output data and reset at the falling edge of the clock signal; or the supply voltage detector further includes The N latch chains have another N latch chains and another N buffers with the same structure, and the N latch chains are enabled on the rising edge of the clock signal and output on the falling edge of the clock signal The data is reset, and the other N latch chains are enabled on the falling edge of the clock signal, and the data is output and reset on the rising edge of the clock signal.

根據本公開的一個或多個實施例,提供一種電腦可讀介質,其上存儲有電腦程式,其中,所述程式被處理器執行時實現本公開的供電電壓檢測方法。 According to one or more embodiments of the present disclosure, there is provided a computer-readable medium on which a computer program is stored, wherein the program implements the power supply voltage detection method of the present disclosure when executed by a processor.

本公開中涉及的器件、裝置、設備、系統的方塊圖僅作為例示性的例子並且不意圖要求或暗示必須按照方塊圖示出的方式進行連接、佈置、配置。如本領域技術人員將認識到的,可以按任意方式連接、佈置、配置這些器件、裝置、設備、系統。諸如“包括”、“包含”、“具有”等等的詞語是開放性詞彙,指“包括但不限於”,且可與其互換使用。這裡所使用的詞彙“或”和“和”指詞彙“和/或”,且可與其互換使用,除非上下文明確指示不是如此。這裡所使用的詞彙“諸如”指片語“諸如但不限於”,且可與其互換使用。 The block diagrams of devices, devices, devices, 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, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, devices, systems may be connected, arranged, configured in any manner. Words such as "including", "comprising", "having" and the like are open-ended words meaning "including but not limited to" and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the word "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to and can be used interchangeably with the phrase "such as but not limited to".

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

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

以上描述的方法的各個操作可以透過能夠進行相應的功能的任何適當的手段而進行。該手段可以包括各種硬體和/或軟體元件和/或模組,包括但不限於硬體的電路、專用積體電路(ASIC)或處理器。 Each operation of the method described above may be performed by any suitable means capable of performing the corresponding function. The 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核協作的微處理器或任何其他這樣的配置。 General purpose processors, digital signal processors (DSPs), ASICs, field programmable gate arrays (FPGAs) or other programmable logic devices (PLDs), discrete gates designed to perform the functions described herein may be utilized. Each of the illustrated logic blocks, modules, and circuits are implemented or described as being implemented or described as transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in the alternative, 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 DSP and microprocessor, multiple microprocessors, microprocessors cooperating with DSP cores, or any other such configuration.

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

在此公開的方法包括用於實現描述的方法的動作。方法和/或動作可以彼此互換而不脫離申請專利範圍的範圍。換句話說,除非指定了動作的具體順序,否則可以修改具體動作的順序和/或使用而不脫離申請專利範圍的範圍。 The methods disclosed herein include acts for implementing the described methods. The methods and/or acts may be interchanged with one another 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 what is claimed.

上述功能可以按硬體、軟體、韌體或其任意組合而實現。如果以軟體實現,功能可以作為指令存儲在切實的電腦可讀介質上。存儲介質可以是可以由電腦訪問的任何可用的切實介質。透過例子而不是限制,這樣的電腦可讀介質可以包括RAM、ROM、EEPROM、CD-ROM或其他光碟存儲、磁碟存儲或其他磁記憶體件或者可以用於攜帶或存儲指令或資料結構形式的期望的程式碼 並且可以由電腦訪問的任何其他切實介質。如在此使用的,碟(disk)和盤(disc)包括緊湊盤(CD)、雷射盤、光碟、數位影音光碟(DVD)、軟碟和藍光光碟,其中碟通常磁地再現資料,而盤利用鐳射光學地再現資料。 The above functions can be realized by hardware, software, firmware or any combination thereof. If implemented in software, the functions may be stored as instructions on a tangible computer-readable medium. A storage media may be any available tangible 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 memory devices or devices that may be used to carry or store instructions or data in the form of structures expected code and any other tangible medium that can be accessed by a computer. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital video disc (DVD), floppy disc, and blu-ray disc, where discs usually reproduce data magnetically and Disks use lasers to optically reproduce data.

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

軟體或指令也可以透過傳輸介質而傳輸。例如,可以使用諸如同軸電纜、光纖光纜、雙絞線、數位用戶線路(DSL)或諸如紅外、無線電或微波的無線技術的傳輸介質從網站、伺服器或者其他遠端源傳輸軟體。 Software or instructions may also be transmitted via a transmission medium. For example, 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 can 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 disks), so that user terminals and/or base stations may be Various methods are obtained when providing storage parts. In addition, any other suitable technique 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 can be used A software implementation executed by a processor, hardware, firmware, hardwiring, or any combination of these. Features implementing functions may also be physically located at various locations, including being distributed so that portions of functions are implemented at different physical locations. Also, as used herein, including in claims, the use of "or" in a listing of items beginning with "at least one" indicates separate listings such that, for example, "at least one of A, B, or C The enumeration of " means A or B or C, or AB or AC or BC, or ABC (ie A and B and C). Furthermore, the word "exemplary" does not mean that the described examples are preferred or better than other examples.

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

提供所公開的方面的以上描述以使本領域的任何技術人員能夠做出或者使用本公開。對這些方面的各種修改對於本領域技術人員而言是非常顯而易見的,並且在此定義的一般原理可以應用於其他方面而不脫離本公開的範圍。因此,本公開不意圖被限制到在此示出的方面,而是按照與在此公開的原理和新穎的特徵一致的最寬範圍。 The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. 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 present disclosure. Thus, the present disclosure 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 purposes of illustration and description. Furthermore, this description is not intended to limit the disclosed embodiments to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and subcombinations thereof.

21:供電電壓檢測器 21: Supply voltage detector

22:電壓調節模組 22:Voltage regulation module

23:電源網路 23: Power network

200:供電電壓檢測裝置 200: power supply voltage detection device

201:緩衝器串 201: buffer string

202:N條閂鎖器鏈 202: N latch chains

Claims (13)

一種供電電壓檢測裝置,連接到積體電路電源網路上,包括:緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,所述第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到所述時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到所述N個緩衝器中對應的一個緩衝器的輸出端,所述第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端連接到所述積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;以及電壓調節模組,連接到每條閂鎖器鏈的每個閂鎖器的資料輸出端,被配置為檢測每個閂鎖器的資料輸出來確定所述積體電路電源網路中所述要檢測供電電壓的區域的供電電壓的大小。 A power supply voltage detection device connected to an integrated circuit power network, comprising: a buffer string including N buffers, wherein the input end of the first buffer is connected to a clock signal, and the first buffer's The output terminal is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latches A chain of latches, each chain of latches includes M latches, the clock input of each latch is connected to the clock signal, the data of the first latch of each chain of latches The input end is connected to the output end of a corresponding buffer in the N buffers, the data output end of the first latch is connected to the data input end of the second latch, and the mth latch The data output terminal of the device is connected to the data input terminal of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input terminal of each latch is connected to the integrated circuit power supply the region of the network where the supply voltage is to be sensed, the ground terminal of each latch connected to ground; and the voltage regulation module, connected to the data output terminal of each latch of each latch chain, configured as The data output of each latch is detected to determine the magnitude of the power supply voltage in the region where the power supply voltage is to be detected in the integrated circuit power network. 如請求項1所述的供電電壓檢測裝置,其中所述電壓調節模組被配置為:根據每個閂鎖器的資料輸出與參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串; 根據所述N條閂鎖器鏈的邏輯數值串、和所述N條閂鎖器鏈的邏輯數值串的取值與供電電壓的大小的關係,確定所述積體電路電源網路中所述要檢測供電電壓的區域的供電電壓的大小;或者所述電壓調節模組被配置為:根據每個閂鎖器的資料輸出與所述參考電位的比較得到邏輯數值以得到每條閂鎖器鏈的邏輯數值串;根據多條閂鎖器鏈的邏輯數值串、以及所述時脈訊號的高電位的時間長度,得到所述多條閂鎖器鏈中各自的閂鎖器的時延範圍;根據所述多條閂鎖器鏈中各自的閂鎖器的時延範圍,得到單個閂鎖器的實際時延範圍;根據所述單個閂鎖器的實際時延範圍與所述供電電壓的大小的關係,確定所述積體電路電源網路中所述要檢測供電電壓的區域的供電電壓的大小。 The power supply voltage detection device according to claim 1, wherein the voltage regulation module is configured to: obtain a logic value according to a comparison between the data output of each latch and a reference potential to obtain the logic of each latch chain value string; According to the logical value strings of the N latch chains and the relationship between the value of the logical value strings of the N latch chains and the power supply voltage, determine the power supply network of the integrated circuit. The magnitude of the power supply voltage in the region where the power supply voltage is to be detected; or the voltage regulation module is configured to: obtain a logical value according to a comparison between the data output of each latch and the reference potential to obtain each latch chain a logical value string; according to the logical value strings of the multiple latch chains and the time length of the high potential of the clock signal, the delay ranges of the respective latches in the multiple latch chains are obtained; According to the delay range of each latch in the multiple latch chains, the actual delay range of a single latch is obtained; according to the actual delay range of the single latch and the size of the power supply voltage Determine the magnitude of the supply voltage in the area where the supply voltage is to be detected in the integrated circuit power supply network. 如請求項2所述的供電電壓檢測裝置,其中如果所述閂鎖器的資料輸出比所述參考電位高,則所述邏輯數值為第一值,如果所述閂鎖器的資料輸出比所述參考電位低,則所述邏輯數值為第二值,所述電壓調節模組被配置為透過如下步驟來根據所述多條閂鎖器鏈的邏輯數值串、以及所述時脈訊號的高電位的時間長度,得到所述多條閂鎖器鏈中各自的閂鎖器的時延範圍: 確定預定的一條閂鎖器鏈中的邏輯數值串中的第一值的數量;確定所述預定的一條閂鎖器鏈與輸入的所述時脈訊號之間存在的緩衝器的數量;確定所述時脈訊號的高電位的時間長度為大於所述緩衝器的數量和單個緩衝器的時延的乘積與所述第一值的數量和所述單個閂鎖器的時延的乘積的和,且小於該條閂鎖器鏈之前的緩衝器的數量與所述單個緩衝器的時延的乘積和所述第一值的數量加1之後與所述單個閂鎖器的時延的乘積的和;計算得到所述單個閂鎖器的實際時延範圍。 The power supply voltage detection device according to claim 2, wherein if the data output of the latch is higher than the reference potential, the logic value is a first value, and if the data output of the latch is higher than the reference potential If the reference potential is low, the logical value is a second value, and the voltage regulation module is configured to perform the following steps according to the logical value strings of the plurality of latch chains and the high value of the clock signal The time length of the potential is obtained to obtain the delay range of each latch in the plurality of latch chains: determining the number of first values in the logical value string in a predetermined one latch chain; determining the number of buffers existing between the predetermined one latch chain and the input clock signal; determining the The time length of the high potential of the clock signal is greater than the sum of the product of the number of buffers and the time delay of a single buffer and the product of the number of first values and the time delay of a single latch, And less than the sum of the product of the number of buffers before the chain of latches and the time delay of the single buffer and the product of the number of the first value plus 1 and the time delay of the single latch ; Calculate the actual delay range of the single latch. 如請求項2所述的供電電壓檢測裝置,其中所述電壓調節模組被配置為:根據確定的供電電壓的大小,在所述確定的供電電壓低於預定電壓時升高所述供電電壓以補償電壓下垂,或者在所述確定的供電電壓高於預定電壓時降低所述供電電壓以補償電壓上升。 The power supply voltage detection device according to claim 2, wherein the voltage regulation module is configured to: according to the magnitude of the determined power supply voltage, when the determined power supply voltage is lower than a predetermined voltage, increase the power supply voltage to Compensating for voltage droop, or reducing the supply voltage to compensate for voltage rise when the determined supply voltage is higher than a predetermined voltage. 如請求項2所述的供電電壓檢測裝置,其中所述單個閂鎖器的實際時延範圍與所述供電電壓的大小的關係透過實驗測量得到,或者所述N條閂鎖器鏈的邏輯數值串的取值與所述供電電壓的大小的關係透過實驗測量得到。 The power supply voltage detection device according to claim 2, wherein the relationship between the actual delay range of the single latch and the magnitude of the power supply voltage is obtained through experimental measurement, or the logic value of the N latch chains The relationship between the value of the string and the magnitude of the supply voltage is obtained through experimental measurement. 如請求項1所述的供電電壓檢測裝置,其中N是對單個閂鎖器的時延除以單個緩衝器的時延的結果的上取整。 The power supply voltage detecting device as claimed in claim 1, wherein N is the rounded-up result of dividing the time delay of a single latch by the time delay of a single buffer. 如請求項1所述的供電電壓檢測裝置,其中M大於或等於所述時脈訊號的週期除以單個閂鎖器的時延的結果的1倍以上。 The power supply voltage detection device according to claim 1, wherein M is greater than or equal to one time of the period of the clock signal divided by the time delay of a single latch. 如請求項1所述的供電電壓檢測裝置,其中M大於或等於所述時脈訊號的週期除以單個閂鎖器的時延的結果的1.5倍。 The power supply voltage detecting device according to claim 1, wherein M is greater than or equal to 1.5 times the result of dividing the period of the clock signal by the time delay of a single latch. 如請求項1所述的供電電壓檢測裝置,其中所述供電電壓檢測器中的所述N條閂鎖器鏈在所述時脈訊號的上升沿致能,且在所述時脈訊號的下降沿輸出資料並重定;或者所述供電電壓檢測器中還包括與所述N條閂鎖器鏈具有相同結構的另外N條閂鎖器鏈和另外N個緩衝器,且在所述時脈訊號的上升沿致能所述N條閂鎖器鏈、且在所述時脈訊號的下降沿輸出資料並重定,且在所述時脈訊號的下降沿致能所述另外N條閂鎖器鏈、且在所述時脈訊號的上升沿輸出資料並重定。 The supply voltage detection device according to claim 1, wherein the N latch chains in the supply voltage detector are enabled at the rising edge of the clock signal, and are enabled at the falling edge of the clock signal and reset along the output data; or the supply voltage detector also includes another N latch chains and another N buffers having the same structure as the N latch chains, and the clock signal The rising edge of the clock signal enables the N latch chains, outputs data and resets on the falling edge of the clock signal, and enables the other N latch chains on the falling edge of the clock signal , and output data and reset at the rising edge of the clock signal. 一種供電電壓檢測系統,包括:在積體電路電源網路的多個區域上連接的多個如請求項1所述的供電電壓檢測裝置。 A power supply voltage detection system, comprising: a plurality of power supply voltage detection devices according to Claim 1 connected to multiple areas of an integrated circuit power network. 一種供電電壓檢測器,包括:緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,所述第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器 的時脈輸入端連接到所述時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到所述N個緩衝器中對應的一個緩衝器的輸出端,所述第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端連接到所述積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地。 A supply voltage detector, comprising: a buffer string including N buffers, wherein the input end of the first buffer is connected to a clock signal, and the output end of the first buffer is connected to a second buffer The input end of the nth buffer is connected to the input end of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latch chains, each latch The chain consists of M latches, each of which The clock input terminal of the latch is connected to the clock signal, the data input terminal of the first latch of each latch chain is connected to the output terminal of a corresponding buffer in the N buffers, and the The data output terminal of the first latch is connected to the data input terminal of the second latch, the data output terminal of the mth latch is connected to the data input terminal of the m+1th latch, M, m is a positive integer, m is greater than 1 and less than M, the power input terminal of each latch is connected to the area where the power supply voltage is to be detected in the integrated circuit power network, and the ground terminal of each latch is connected to the ground. 一種供電電壓檢測方法,包括:提供供電電壓檢測器,包括:緩衝器串,包括N個緩衝器,其中第一個緩衝器的輸入端連接到時脈訊號,所述第一個緩衝器的輸出端連接到第二個緩衝器的輸入端,第n個緩衝器的輸出端連接到第n+1個緩衝器的輸入端,N、n是正整數,n大於1且小於N;N條閂鎖器鏈,每條閂鎖器鏈包括M個閂鎖器,每個閂鎖器的時脈輸入端連接到所述時脈訊號,每條閂鎖器鏈的第一個閂鎖器的資料輸入端連接到所述N個緩衝器中對應的一個緩衝器的輸出端,所述第一個閂鎖器的資料輸出端連接到第二個閂鎖器的資料輸入端,第m個閂鎖器的資料輸出端連接到第m+1個閂鎖器的資料輸入端,M、m是正整數,m大於1且小於M,每個閂鎖器的電源輸入端連接到所述積體電路電源網路中要檢測供電電壓的區域,每個閂鎖器的接地端連接到地;以及檢測每個閂鎖器的資料輸出來確定所述積體電路電源網路中 所述要檢測供電電壓的區域的供電電壓的大小。 A power supply voltage detection method, comprising: providing a power supply voltage detector, including: a buffer string including N buffers, wherein the input end of the first buffer is connected to a clock signal, and the output of the first buffer The terminal is connected to the input terminal of the second buffer, the output terminal of the nth buffer is connected to the input terminal of the n+1th buffer, N and n are positive integers, n is greater than 1 and less than N; N latches Each latch chain includes M latches, the clock input of each latch is connected to the clock signal, and the data input of the first latch of each latch chain terminal is connected to the output terminal of a corresponding buffer in the N buffers, the data output terminal of the first latch is connected to the data input terminal of the second latch, and the mth latch The data output end of each latch is connected to the data input end of the m+1th latch, M and m are positive integers, m is greater than 1 and less than M, and the power input end of each latch is connected to the integrated circuit power supply network In the area where the power supply voltage is to be detected in the road, the ground terminal of each latch is connected to the ground; and the data output of each latch is detected to determine the power supply network of the integrated circuit The magnitude of the power supply voltage in the region where the power supply voltage is to be detected. 一種電腦可讀介質,其上存儲有電腦程式,其中,所述程式被處理器執行時實現如請求項12所述的供電電壓檢測方法。 A computer-readable medium, on which a computer program is stored, wherein, when the program is executed by a processor, the power supply voltage detection method as described in claim 12 is implemented.
TW111115742A 2022-04-26 2022-04-26 Power supply voltage detector, power supply voltage detection apparatus, system and medium TWI804290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111115742A TWI804290B (en) 2022-04-26 2022-04-26 Power supply voltage detector, power supply voltage detection apparatus, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111115742A TWI804290B (en) 2022-04-26 2022-04-26 Power supply voltage detector, power supply voltage detection apparatus, system and medium

Publications (2)

Publication Number Publication Date
TWI804290B true TWI804290B (en) 2023-06-01
TW202343197A TW202343197A (en) 2023-11-01

Family

ID=87803366

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111115742A TWI804290B (en) 2022-04-26 2022-04-26 Power supply voltage detector, power supply voltage detection apparatus, system and medium

Country Status (1)

Country Link
TW (1) TWI804290B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104136928A (en) * 2012-02-21 2014-11-05 高通股份有限公司 A circuit for detecting a voltage change using a time-to-digital converter
US20140354264A1 (en) * 2013-05-28 2014-12-04 Oracle International Corporation High speed clock cycle rate digital voltage monitor with triggered tracing for integrated circuits
US20170301381A1 (en) * 2016-04-19 2017-10-19 Samsung Electronics Co., Ltd. Voltage monitor for generating delay codes
TW202008717A (en) * 2018-08-02 2020-02-16 崛智科技有限公司 Data latch circuit and pulse signal generator thereof
US10784874B1 (en) * 2020-02-05 2020-09-22 Intel Corporation All-digital voltage monitor (ADVM) with single-cycle latency

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104136928A (en) * 2012-02-21 2014-11-05 高通股份有限公司 A circuit for detecting a voltage change using a time-to-digital converter
US20140354264A1 (en) * 2013-05-28 2014-12-04 Oracle International Corporation High speed clock cycle rate digital voltage monitor with triggered tracing for integrated circuits
US20170301381A1 (en) * 2016-04-19 2017-10-19 Samsung Electronics Co., Ltd. Voltage monitor for generating delay codes
TW202008717A (en) * 2018-08-02 2020-02-16 崛智科技有限公司 Data latch circuit and pulse signal generator thereof
US10784874B1 (en) * 2020-02-05 2020-09-22 Intel Corporation All-digital voltage monitor (ADVM) with single-cycle latency

Also Published As

Publication number Publication date
TW202343197A (en) 2023-11-01

Similar Documents

Publication Publication Date Title
US9689917B2 (en) Digital voltage droop monitor with clock jitter adjustment
US9760672B1 (en) Circuitry and method for critical path timing speculation to enable process variation compensation via voltage scaling
US8669794B2 (en) Circuit for detecting a voltage change using a time-to-digital converter
US8847777B2 (en) Voltage supply droop detector
US8553503B2 (en) On-die signal timing measurement
TW201336047A (en) Determining on-chip voltage and temperature
JP6209978B2 (en) Memory controller, information processing apparatus and reference voltage adjusting method
TW201840992A (en) Variation immune on-die voltage droop detector
JP5577776B2 (en) Memory control apparatus and mask timing control method
WO2016036572A2 (en) Delay circuits and related systems and methods
US7796465B2 (en) Write leveling of memory units designed to receive access requests in a sequential chained topology
KR102191232B1 (en) Flip-flop circuit for inserting zero-delay bypass mux and operating method thereof
TWI804290B (en) Power supply voltage detector, power supply voltage detection apparatus, system and medium
US8395946B2 (en) Data access apparatus and associated method for accessing data using internally generated clocks
US20230003781A1 (en) Apparatus, method, system and medium for measuring pulse signal width
US11761996B2 (en) Power supply voltage detector, power supply voltage detection apparatus, system and medium
JP2016514338A (en) Storage device reading apparatus and method
JP5549474B2 (en) Integrated circuit
JP5773002B2 (en) Integrated circuit
JP2013051511A (en) Electronic component and reflection wave cancellation method
KR20150078012A (en) Semiconductor memory apparatus and test method using the same
US7895005B2 (en) Duty cycle measurement for various signals throughout an integrated circuit device
US20090177424A1 (en) 3-Dimensional method for determining the clock-to-Q delay of a flipflop
US9262362B2 (en) Multi-cycle delay for communication buses
US8867698B2 (en) Counting circuit, delay value quantization circuit, and latency control circuit