[go: up one dir, main page]

HK1245453B - Apparatus and scheme for io-pin-less calibration or trimming of on-chip regulators - Google Patents

Apparatus and scheme for io-pin-less calibration or trimming of on-chip regulators Download PDF

Info

Publication number
HK1245453B
HK1245453B HK18104896.7A HK18104896A HK1245453B HK 1245453 B HK1245453 B HK 1245453B HK 18104896 A HK18104896 A HK 18104896A HK 1245453 B HK1245453 B HK 1245453B
Authority
HK
Hong Kong
Prior art keywords
voltage
signal
count
oscillator
voltage regulator
Prior art date
Application number
HK18104896.7A
Other languages
Chinese (zh)
Other versions
HK1245453A1 (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 华为技术有限公司
Publication of HK1245453A1 publication Critical patent/HK1245453A1/en
Publication of HK1245453B publication Critical patent/HK1245453B/en

Links

Description

片上调节器的IO无管脚校准或微调的装置和方案Device and solution for IO pinless calibration or fine-tuning of on-chip regulator

相关申请案交叉申请Cross-application of related applications

本申请要求2015年8月6日递交的发明名称为“片上调节器的IO无管脚校准或微调的装置和方案(Apparatus and Scheme for IO-Pin-Less Calibration or Trimming ofOn-Chip Regulators)”的第14/820,380号美国非临时专利申请案的在先申请优先权,该在先申请的全部内容以引用的方式并入本文本中。This application claims priority to U.S. non-provisional patent application No. 14/820,380, filed on August 6, 2015, entitled “Apparatus and Scheme for IO-Pin-Less Calibration or Trimming of On-Chip Regulators,” which is incorporated herein by reference in its entirety.

技术领域Technical Field

本发明大体上涉及一种片上调节器的I/O无管脚校准或微调的系统和方法,且在具体实施例中,涉及一种片上低压差电压调节器(on-chip low dropout voltageregulator,OCLDO)的I/O无管脚校准或微调的系统和方法。The present invention generally relates to a system and method for pinless calibration or trimming of an on-chip I/O regulator, and in a specific embodiment, to a system and method for pinless calibration or trimming of an on-chip low dropout voltage regulator (OCLDO).

背景技术Background Art

许多移动设备使用多核或多处理器系统,以进行高性能且低功率操作。这些移动设备在芯片上拥有许多功率域,而且片上低压差电压调节器(low dropout voltageregulator,LDO)广泛用于提供这些功率域。Many mobile devices use multi-core or multi-processor systems for high performance and low power operation. These mobile devices have many power domains on the chip, and on-chip low dropout voltage regulators (LDOs) are widely used to supply these power domains.

发明内容Summary of the Invention

根据本发明一实施例,一种用于控制电源电压的方法包括:通过向振荡器提供参考电压来提供第一周期信号,通过向所述振荡器提供电压源的所述电源电压(Vout)来提供第二周期信号,通过测量所述第一周期信号的第一周期来提供第一计数,通过测量所述第二周期信号的第二周期来提供第二计数,以及将所述第一计数与所述第二计数进行比较。According to an embodiment of the present invention, a method for controlling a power supply voltage includes: providing a first periodic signal by providing a reference voltage to an oscillator, providing a second periodic signal by providing the power supply voltage (V out ) of a voltage source to the oscillator, providing a first count by measuring a first period of the first periodic signal, providing a second count by measuring a second period of the second periodic signal, and comparing the first count with the second count.

根据本发明的另一实施例,一种电路包括:振荡器,用于提供来自于第一传入信号的第一周期信号和来自于第二传入信号的第二周期信号;计数器,用于对所述第一周期信号的第一周期和所述第二周期信号的第二周期进行统计;以及比较器,用于将所述第一计数与所述第二计数进行比较。According to another embodiment of the present invention, a circuit includes: an oscillator for providing a first periodic signal from a first incoming signal and a second periodic signal from a second incoming signal; a counter for counting a first period of the first periodic signal and a second period of the second periodic signal; and a comparator for comparing the first count with the second count.

根据本发明的又一实施例,一种芯片包括:第一处理单元、为所述第一处理单元提供输出电压的第一片上低压差电压调节器(on-chip low drop out voltage regulator,OCLDO)以及电连接到所述第一处理单元和所述第一OCLDO的电压控制电路,其中,所述电压控制电路用于控制所述OCLDO的所述输出电压,所述电压控制电路不向所述芯片的管脚提供信号。According to another embodiment of the present invention, a chip includes: a first processing unit, a first on-chip low dropout voltage regulator (OCLDO) that provides an output voltage for the first processing unit, and a voltage control circuit electrically connected to the first processing unit and the first OCLDO, wherein the voltage control circuit is used to control the output voltage of the OCLDO and does not provide a signal to a pin of the chip.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更完整地理解本发明及其优点,现在参考下文结合附图进行的描述,其中:For a more complete understanding of the present invention and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which:

图1所示为根据一实施例的一种电压测量电路;FIG1 shows a voltage measurement circuit according to an embodiment;

图2所示为根据一实施例的一种环形振荡器;FIG2 shows a ring oscillator according to an embodiment;

图3所示为根据一实施例的由环形振荡器提供的时钟信号;FIG3 shows a clock signal provided by a ring oscillator according to one embodiment;

图4所示为根据一实施例的一种数字计频器;以及FIG4 shows a digital frequency counter according to an embodiment; and

图5所示为根据一实施例的一种测量电压信号的方法。FIG5 shows a method for measuring a voltage signal according to an embodiment.

具体实施方式DETAILED DESCRIPTION

传统的片上LOD(或OCLDO)存在以下问题:如何在没有将这些OCLDO的输出信号从芯片按特定路线传送出去的情况下测试这些信号。例如,当LDO(例如IDLE_OCLDO)的输出信号不受控制时,输出信号的准确性明显受到影响,而且相应地影响到芯片节能。提供一个或多个额外的管脚需要真实的基板面,而现有规模不允许。可选地,使用可用管脚的优点很多,不仅仅是提供测试功能。然而,在没有测试和校准的情况下,电压调节器的准确性由于其高功耗而变得不可接受。本发明实施例为电压调节器提供了无管脚测量、控制和校准电路。本发明实施例还提供一种测量、控制和校准电压调节器的方法。Conventional on-chip LDOs (or OCLDOs) present the following problem: how to test the output signals of these OCLDOs without routing them out of the chip along a specific route. For example, when the output signal of an LDO (e.g., IDLE_OCLDO) is not controlled, the accuracy of the output signal is significantly affected, and the chip energy saving is correspondingly affected. Providing one or more additional pins requires real substrate space, which is not allowed by existing scale. Alternatively, there are many advantages to using available pins, not just providing test functions. However, without testing and calibration, the accuracy of the voltage regulator becomes unacceptable due to its high power consumption. An embodiment of the present invention provides a pinless measurement, control, and calibration circuit for a voltage regulator. An embodiment of the present invention also provides a method for measuring, controlling, and calibrating a voltage regulator.

(电池供电)芯片的功耗可能需要控制,从而提供有效的功率管理。一个芯片通常使用一个电压调节器来提供特定的电压域。该芯片可在特定的操作点处或工作范围内进行最有效的运行。这些操作点/工作范围可取决于电源电压和其它环境参数,例如芯片的温度和负荷。为了更准确且更有效地运行该芯片,在其它参数中,电压调节器的电源电压可能需要进行控制并且如果需要可进行调整。The power consumption of a (battery-powered) chip may need to be controlled to provide efficient power management. A chip typically uses a voltage regulator to provide a specific voltage domain. The chip may operate most efficiently at a specific operating point or operating range. These operating points/operating ranges may depend on the supply voltage and other environmental parameters, such as the chip's temperature and load. To operate the chip more accurately and efficiently, the supply voltage of the voltage regulator, among other parameters, may need to be controlled and adjusted as needed.

现代芯片可包括多个处理器,每个处理器可包括多个执行单元(内核)或控制器,并且可能需要若干个电压域。电压调节器可提供这些电压域,而且每个电压调节器可能需要进行控制、调整、校准或微调。Modern chips may include multiple processors, each of which may include multiple execution units (cores) or controllers and may require several voltage domains. Voltage regulators provide these voltage domains, and each voltage regulator may need to be controlled, adjusted, calibrated, or fine-tuned.

在一些实施例中,电压调节器为无帽片上LDO(on-chip LDO,OCLDO),测量电路为无管脚测量或控制电路。因此,无帽OCLDO的微调或校准不需要任何额外的管脚。换言之,无需额外的管脚来控制、测量、校准和微调电压调节器。In some embodiments, the voltage regulator is a capless on-chip LDO (OCLDO), and the measurement circuit is a pinless measurement or control circuit. Therefore, no additional pins are required for fine-tuning or calibration of the capless OCLDO. In other words, no additional pins are required to control, measure, calibrate, and fine-tune the voltage regulator.

图1所示为包括控制器105、电压调节器(例如OCLDO)110和电压控制或测量电路115的集成芯片(integrated chip,IC)100。电压控制电路115包括环形振荡器120等振荡器、选择器130、第一计数器140、第二计数器150、比较器160和又一选择器170。控制器105可以是校准电路的一部分,该校准电路校准电压调节器110的电源电压(输出电压)。控制器105可校准或微调电压调节器110,使得IC 100的工作范围或操作点在不考虑过程、温度、电源和负荷变化的情况下进行准确设置和控制。FIG1 shows an integrated chip (IC) 100 including a controller 105, a voltage regulator (e.g., OCLDO) 110, and a voltage control or measurement circuit 115. The voltage control circuit 115 includes an oscillator such as a ring oscillator 120, a selector 130, a first counter 140, a second counter 150, a comparator 160, and another selector 170. The controller 105 may be part of a calibration circuit that calibrates the supply voltage (output voltage) of the voltage regulator 110. The controller 105 may calibrate or fine-tune the voltage regulator 110 so that the operating range or operating point of the IC 100 is accurately set and controlled regardless of process, temperature, power supply, and load variations.

电压调节器110可具有三个端子。第一端子处有非调节输入电压VDDIN,第二端子处有参考电压,第三端子处有调节输出(电源电压)VOUT。振荡器120可具有至少两个端子。第一端子是一个输入端子,可以通过选择器130连接到电压调节器110的输出端子,或者还是通过选择器130连接到参考电压VREF。第二端子是一个输出端子,可提供包括循环或周期信号的输出信号,例如具有一定频率的电压。The voltage regulator 110 may have three terminals. A first terminal may provide an unregulated input voltage V DDIN , a second terminal may provide a reference voltage, and a third terminal may provide a regulated output (power supply voltage) V OUT . The oscillator 120 may have at least two terminals. The first terminal may be an input terminal that can be connected to an output terminal of the voltage regulator 110 via a selector 130 or to a reference voltage V REF , also via the selector 130. The second terminal may be an output terminal that can provide an output signal including a cyclic or periodic signal, such as a voltage having a certain frequency.

选择器130可以是复用器(multiplexer,MUX)。可选地,该选择器可以是一个开关或开关组合。该MUX可以选择性地将电压调节器110的输出端子连接到振荡器120或将参考电压VREF连接到振荡器120。可选地,当开关S2闭合、开关S1断开时,振荡器120连接到电压调节器110的输出端子且提供有输出电压VOUT。当开关S2断开、开关S1闭合时,振荡器120连接到参考电压输入端且提供有参考电压VREF。开关可以进行切换,使得参考电压在第一时间段内连接到振荡器120,而在第二时间段内连接到电压调节器110的输出电压。这些时间段可以不重叠。Selector 130 may be a multiplexer (MUX). Alternatively, the selector may be a switch or a combination of switches. The MUX may selectively connect the output terminal of voltage regulator 110 to oscillator 120 or the reference voltage V REF to oscillator 120. Optionally, when switch S2 is closed and switch S1 is open, oscillator 120 is connected to the output terminal of voltage regulator 110 and provided with output voltage V OUT . When switch S2 is open and switch S1 is closed, oscillator 120 is connected to the reference voltage input terminal and provided with reference voltage V REF . The switches may be switched such that the reference voltage is connected to oscillator 120 during a first time period and to the output voltage of voltage regulator 110 during a second time period. These time periods may not overlap.

开关S1和S2可以相同或不同。开关S1、S2可以是半导体开关或者其它合适类型的开关。然而,这些设备用于说明目的,而且可以使用其它选择设备。Switches S1 and S2 may be the same or different. Switches S1, S2 may be semiconductor switches or other suitable types of switches. However, these devices are for illustration purposes and other selection devices may be used.

振荡器120的输出端子连接到计数器140、150。计数器140、150可以是两个计数器或单个集成计数器。振荡器120的输出端可以通过又一选择器170连接到计数器140、150。选择器170可以是一个解复用器(demultiplexer,DEMUX)。可选地,又一选择器170可以是一个开关或开关组合。与输入选择器130类似,输出选择器170可以包括第一开关和第二开关。这些开关可以相同或不同。这些开关可以是半导体开关或者其它合适类型的开关。然而,这些设备用于说明目的,而且可以使用其它选择设备。The output terminal of oscillator 120 is connected to counters 140 and 150. Counters 140 and 150 can be two counters or a single integrated counter. The output terminal of oscillator 120 can be connected to counters 140 and 150 via another selector 170. Selector 170 can be a demultiplexer (DEMUX). Alternatively, another selector 170 can be a switch or a combination of switches. Similar to input selector 130, output selector 170 can include a first switch and a second switch. These switches can be the same or different. These switches can be semiconductor switches or other suitable types of switches. However, these devices are for illustrative purposes, and other selection devices can be used.

振荡器120提供具有循环或周期信号的模拟输出信号,例如具有一定频率的电压。该频率可取决于施加到振荡器120的输入端子的电压。输入电压越高,振荡器120的输出的频率越高,而输入电压越低,振荡器120的输出电压的频率越低。当选择器130(例如,开关S1闭合)将参考端子(VREF)连接到振荡器120时,选择器(例如DEMUX)170可将振荡器120的输出端子连接到第一计数器140的输入端子,而当选择器(例如,第二开关S2闭合)将电压调节器110的输出电压(VOUT)连接到振荡器120时,选择器(例如DEMUX)170可将振荡器120的输出端子连接到第二计数器150。Oscillator 120 provides an analog output signal having a cyclic or periodic signal, such as a voltage having a certain frequency. This frequency may depend on the voltage applied to the input terminal of oscillator 120. The higher the input voltage, the higher the frequency of the output of oscillator 120, while the lower the input voltage, the lower the frequency of the output voltage of oscillator 120. When selector 130 (e.g., switch S1 is closed) connects the reference terminal (V REF ) to oscillator 120, selector (e.g., DEMUX) 170 may connect the output terminal of oscillator 120 to the input terminal of first counter 140. When selector (e.g., second switch S2 is closed) connects the output voltage (V OUT ) of voltage regulator 110 to oscillator 120, selector (e.g., DEMUX) 170 may connect the output terminal of oscillator 120 to the second counter 150.

计数器140、150可以是数字计数器,它们对振荡器120的模拟输出信号的频率进行统计并提供数字输出信号,例如n比特数字。这些数字在比较器160中进行比较。如果数字匹配,例如符合预定值,则记录相应的输入电压VDDIN。比较器160可基于通过/失败分析提供输出信号。可向控制器105提供比较器160的输出信号。控制器105可控制向电压调节器110提供的输入信号(VDDIN)。如果进行比较的数字与输入电压不匹配,则调整VDDIN,例如降低;并且基于电压调节器110的输出电压(VOUT),通过计数器150重新测量振荡器120的输出频率且在比较器160处将输出频率与参考电压VREF进行比较。该过程迭代执行,直到计数器140、150的输出数字相匹配。Counters 140 and 150 may be digital counters that count the frequency of the analog output signal of oscillator 120 and provide digital output signals, such as n-bit numbers. These numbers are compared in comparator 160. If the numbers match, for example, if they meet a predetermined value, the corresponding input voltage V DDIN is recorded. Comparator 160 may provide an output signal based on a pass/fail analysis. The output signal of comparator 160 may be provided to controller 105. Controller 105 may control the input signal (V DDIN ) provided to voltage regulator 110. If the compared numbers do not match the input voltage, V DDIN is adjusted, for example, by being lowered. Based on the output voltage (V OUT ) of voltage regulator 110, the output frequency of oscillator 120 is remeasured by counter 150 and compared to reference voltage V REF at comparator 160. This process is iterated until the output numbers of counters 140 and 150 match.

匹配可包括一个范围。实际上,振荡器120和计数器140、150进行一种模数转换(analog-to-digital conversion,ADC)。ADC的一部分量化为连续的范围。将X映射到范围Y内的较低数字集,而且量化误差(分辨率),单位通常是比特,取决于设计和其规格。例如,8比特设计可提供100mV分辨率,而16比特设计可提供10mV分辨率。由于比较器160的输入是数字的,所以与n比特数字类似。换言之,比较器160的“匹配”可取决于振荡器120和计数器140、150的分辨率。因此,匹配(所以其实是通过)可以指所测量的VOUT在参考电压VREF的200mV范围内或500mV范围内。可选地,匹配可以指所测量的VOUT在参考电压的20mV范围内或50mV范围内。Matching can include a range. In practice, oscillator 120 and counters 140 and 150 perform an analog-to-digital conversion (ADC). A portion of the ADC is quantized into a continuous range. X is mapped to a lower set of numbers within range Y, and the quantization error (resolution), typically in bits, depends on the design and its specifications. For example, an 8-bit design can provide 100mV resolution, while a 16-bit design can provide 10mV resolution. Since the input to comparator 160 is digital, it is similar to an n-bit number. In other words, the "match" of comparator 160 can depend on the resolution of oscillator 120 and counters 140 and 150. Therefore, a match (or, in fact, a pass) can mean that the measured V OUT is within 200mV or 500mV of the reference voltage V REF . Alternatively, a match can mean that the measured V OUT is within 20mV or 50mV of the reference voltage V REF.

电路100的不同元件(电压调节器110、振荡器120、计数器140、150等)可通过导线或总线系统连接。在一些实施例中,这些元件可以在没有任何中间元件的情况下直接相互连接。The different components of circuit 100 (voltage regulator 110, oscillator 120, counters 140, 150, etc.) can be connected by wires or a bus system. In some embodiments, these components can be directly connected to each other without any intermediate components.

电压调节器110可以是低压差线性调节器(low dropout linear regulator,LOD)或标准线性调节器。在其它实施例中,电压调节器110包括其它调节器。该LDO可以调节来自较高电压输入端的输出电压。该LDO可能需要较小电压穿过调节器以维持调节。The voltage regulator 110 can be a low dropout linear regulator (LOD) or a standard linear regulator. In other embodiments, the voltage regulator 110 includes other regulators. The LDO can regulate the output voltage from a higher voltage input. The LDO may require a smaller voltage across the regulator to maintain regulation.

振荡器120可以是环形振荡器。在其它实施例中,振荡器包括RC振荡器或LC振荡器。图2示出了环形振荡器120的一实施例。环形振荡器120可以是一个多级环形振荡器。环形振荡器120包括奇数个串联的逆变器来形成具有正反馈的闭合环路。在一些实施例中,环形振荡器120可能包括三级,包括第一逆变器202、第二逆变器204和第三逆变器206。所有逆变器202至206通过电源电压VDD供电,或者在实现中,通过VREF或VOUT供电。第一逆变器202的输出端子连接到第二逆变器204的输入端子,而第二逆变器204的输出端子连接到第三逆变器206的输入端子。最后一个逆变器206的输出信号反馈到第一逆变器202。Oscillator 120 may be a ring oscillator. In other embodiments, the oscillator includes an RC oscillator or an LC oscillator. FIG2 illustrates an embodiment of ring oscillator 120. Ring oscillator 120 may be a multi-stage ring oscillator. Ring oscillator 120 includes an odd number of inverters connected in series to form a closed loop with positive feedback. In some embodiments, ring oscillator 120 may include three stages, including a first inverter 202, a second inverter 204, and a third inverter 206. All inverters 202 through 206 are powered by a power supply voltage VDD , or in implementations, by VREF or VOUT . The output terminal of first inverter 202 is connected to the input terminal of second inverter 204, and the output terminal of second inverter 204 is connected to the input terminal of third inverter 206. The output signal of the last inverter 206 is fed back to first inverter 202.

当给环形振荡器120供电时,第三逆变器206的输出端子提供频率信号,例如时钟信号CLK。信号CLK的振荡频率取决于电源电压VDD。图3所示为在振荡器120的输出端子处提供的示例性时钟信号CLK。时钟信号可包括任何其它周期或循环信号,例如正弦信号。在一些实施例中,环形振荡器120包括NAND或NOR元件。When power is supplied to ring oscillator 120, the output terminal of third inverter 206 provides a frequency signal, such as a clock signal CLK. The oscillation frequency of signal CLK depends on power supply voltage VDD . FIG3 illustrates an exemplary clock signal CLK provided at the output terminal of oscillator 120. The clock signal may include any other periodic or cyclic signal, such as a sinusoidal signal. In some embodiments, ring oscillator 120 includes a NAND or NOR element.

计数器140、150可以是数字计频器。在其它实施例中,计数器140、150可以是对循环信号部分进行统计的模拟计数器、计时器或其它设备。图4所示为数字计频器的一实施例。数字计频器140、150对振荡器的输出频率进行统计。计数器值直接对应于振荡器的频率输出。Counters 140 and 150 may be digital frequency counters. In other embodiments, counters 140 and 150 may be analog counters, timers, or other devices that count the frequency of a cyclic signal. FIG4 illustrates an embodiment of a digital frequency counter. Digital frequency counters 140 and 150 count the frequency output of an oscillator. The counter value directly corresponds to the frequency output of the oscillator.

数字计频器可以基于对一个(连续)信号的零交叉进行统计的原则。在可选实施例中,其它原则可以用来对一个连续或周期信号(例如频率)进行统计。数字计频器可包括混频器、内设或外设的本地振荡器频率、一个或若干个乘法器,以及数字计数器。图4中的计数器包括三个输入端子和一个输出端子。其中一个输入端子接收振荡器120等振荡器的输出信号。其它输入端子可以用于重置和启动/停止。输出端子可以提供一个数字,例如一个n比特数字。A digital frequency counter can be based on the principle of counting the zero crossings of a (continuous) signal. In alternative embodiments, other principles can be used to count a continuous or periodic signal (e.g., frequency). The digital frequency counter can include a mixer, an internal or external local oscillator frequency, one or more multipliers, and a digital counter. The counter in Figure 4 includes three input terminals and one output terminal. One of the input terminals receives the output signal of an oscillator, such as oscillator 120. The other input terminals can be used for resetting and starting/stopping. The output terminal can provide a number, such as an n-bit number.

比较器160可以是一个n比特比较器。例如,n比特比较器可以将数字计频器的输出进行比较。如果计数器的输出的两个值相同,则输出“1”,而如果两个值不相同,则输出“0”。比较器的输出信号(逻辑信号)可以路由到控制器105。控制器105可以将相关电压(电压调节器110的输入电压(VDDIN))存储在片上寄存器或存储器中。在一些实施例中,相关电压可以通过任一复用数字信号管脚路由到芯片(chip,IC)的外部,以在测试仪上进行监测。Comparator 160 can be an n-bit comparator. For example, the n-bit comparator can compare the output of a digital frequency counter. If the two values of the counter output are the same, a "1" is output, and if the two values are different, a "0" is output. The output signal (logic signal) of the comparator can be routed to controller 105. Controller 105 can store the relevant voltage (the input voltage (V DDIN ) of voltage regulator 110) in an on-chip register or memory. In some embodiments, the relevant voltage can be routed to the outside of the chip (IC) via any multiplexed digital signal pin for monitoring on a tester.

在一些实施例中,控制电路115可以动态地连接到芯片(chip,IC)100上的若干个电压调节器(例如LDO)。因此,控制电路115可控制若干个LDO。例如,将第一电压提供给第一电压域的第一LDO在第一时间段内(通过开关等)连接到控制电路115,其中控制电路115对第一LDO的输出电压进行测量和比较。之后,将第二电压提供给第二电压域的第二LDO在第二时间段内通过第二开关等连接到控制电路115,以对第二LDO的输出电压进行测量和比较,以此类推。在一些实施例中,控制电路115可以在软件、硬件或部分软件和硬件中实施。In some embodiments, the control circuit 115 can be dynamically connected to multiple voltage regulators (e.g., LDOs) on the chip (IC) 100. Thus, the control circuit 115 can control multiple LDOs. For example, a first LDO that provides a first voltage to a first voltage domain is connected to the control circuit 115 (via a switch, etc.) during a first time period, where the control circuit 115 measures and compares the output voltage of the first LDO. Subsequently, a second LDO that provides a second voltage to a second voltage domain is connected to the control circuit 115 via a second switch, etc., during a second time period, where the control circuit 115 measures and compares the output voltage of the second LDO, and so on. In some embodiments, the control circuit 115 can be implemented in software, hardware, or a combination of software and hardware.

控制电路115可不包括I/O管脚。电压可以在没有将测试信号(通过I/O管脚)路由离开芯片的情况下在芯片(chip,IC)100内进行测试和控制。Control circuit 115 may not include I/O pins. Voltages may be tested and controlled within chip (IC) 100 without routing test signals (through I/O pins) off the chip.

在其它实施例中,电路115可以用来测试模式片上信号。例如,电路115可以通过将片上LDO 110替换为片上电压调节器(on-chip voltage regulator,IVR)或片上开关电源(switch mode power supply,SMPS)来进行调整。电路115可以用来测量或测试任何参考电压,例如带隙参考电压或任一电压域。这种结构的优点如下:测试成本降低且系统简化。In other embodiments, circuit 115 can be used to test mode on-chip signals. For example, circuit 115 can be modified by replacing on-chip LDO 110 with an on-chip voltage regulator (IVR) or an on-chip switch-mode power supply (SMPS). Circuit 115 can be used to measure or test any reference voltage, such as a bandgap reference voltage or any voltage domain. This architecture offers the following advantages: reduced test costs and simplified system.

电路100可以与其它设备或元件集成在一起并作为一个模块或组件放置在智能手机、移动设备、电池供电移动设备、电池供电穿戴式设备、便携式设备或无线设备中,这里仅列举了一部分。The circuit 100 can be integrated with other devices or components and placed as a module or component in a smartphone, a mobile device, a battery-powered mobile device, a battery-powered wearable device, a portable device, or a wireless device, to name a few.

图5所示为一种用于校准和微调低压差电压调节器(low dropout voltageregulator,LDO)或片上LDO(OCLDO)等电压调节器的输出电压的方法500。该过程开始于第一步骤502,将环形振荡器等振荡器通过选择器(例如复用器、开关等)连接到电压调节器的输出电压(VOUT)。例如,开关S2将振荡器与电压调节器的输出端子断开,而开关S1将振荡器连接到提供参考电压(VREF)的参考端子。振荡器基于参考电压(VREF)产生一个输出频率。在下一步骤504处,振荡器的输出频率由第一数字计数器等第一计数器来测量。第一计数器将振荡器的输出频率的第一计数(例如一个n比特数字)提供给比较器。FIG5 illustrates a method 500 for calibrating and fine-tuning the output voltage of a voltage regulator, such as a low dropout voltage regulator (LDO) or an on-chip LDO (OCLDO). The process begins with a first step 502 where an oscillator, such as a ring oscillator, is connected to the output voltage (V OUT ) of the voltage regulator via a selector (e.g., a multiplexer, a switch, etc.). For example, switch S2 disconnects the oscillator from the output terminal of the voltage regulator, while switch S1 connects the oscillator to a reference terminal providing a reference voltage (V REF ). The oscillator generates an output frequency based on the reference voltage (V REF ). At the next step 504, the output frequency of the oscillator is measured by a first counter, such as a first digital counter. The first counter provides a first count (e.g., an n-bit number) of the output frequency of the oscillator to a comparator.

在下一步骤506处,切换振荡器,使得参考电压与参考电压端子断开且连接到电压调节器的输出电压端子。例如,振荡器通过开关S1与参考电压端子断开,并通过开关S2连接到电压调节器的输出电压端子。然后,振荡器基于电压调节器的输入电压(VOUT)运行并提供第二输出频率。提供给振荡器的输入电压(电压调节器的输出电压)越高,振荡器的输出频率越高,而输入电压越低,振荡器的输出频率越低。重新测量第二输出频率,这次是由第二计数器,例如第二数字计数器进行测量。这种情况在过程步骤508中示出。将测得的第二输出频率的第二计数(例如另一个n比特数字)提供给比较器。At the next step 506, the oscillator is switched so that the reference voltage is disconnected from the reference voltage terminal and connected to the output voltage terminal of the voltage regulator. For example, the oscillator is disconnected from the reference voltage terminal via switch S1 and connected to the output voltage terminal of the voltage regulator via switch S2. The oscillator then operates based on the input voltage ( VOUT ) of the voltage regulator and provides a second output frequency. The higher the input voltage provided to the oscillator (the output voltage of the voltage regulator), the higher the output frequency of the oscillator, while the lower the input voltage, the lower the output frequency of the oscillator. The second output frequency is measured again, this time using a second counter, such as a second digital counter. This is shown in process step 508. A second count (e.g., another n-bit number) of the measured second output frequency is provided to the comparator.

接着,比较器在决策块510中对两个计数进行比较。当第一计数与第二计数相同时,在步骤512中记录提供给电压调节器的输入VDDIN。当第一计数与第二计数不同时,在步骤514中对输入电压VDDIN进行调整。当对输入电压VDDIN进行调整(例如降低)时,第二计数器重新测量输入电压VDDIN的振荡器频率,将第二计数转发给比较器,比较器重新对第一计数(基于参考电压VREF)和第二计数(基于电压调节器的输出电压VOUT)进行比较。当第一计数与第二计数匹配时,记录输入电压VDDIN;当两个计数不匹配时,通过处理/决策步骤508/510重新迭代重复该过程,直到两个值匹配。Next, the comparator compares the two counts in decision block 510. When the first count and the second count are the same, the input V DDIN provided to the voltage regulator is recorded in step 512. When the first count and the second count are different, the input voltage V DDIN is adjusted in step 514. When the input voltage V DDIN is adjusted (e.g., decreased), the second counter remeasures the oscillator frequency of the input voltage V DDIN and forwards the second count to the comparator, which recompares the first count (based on the reference voltage V REF ) with the second count (based on the output voltage V OUT of the voltage regulator). When the first count and the second count match, the input voltage V DDIN is recorded; when the two counts do not match, the process iterates through processing/decision blocks 508 / 510 until the two values match.

虽然已参考说明性实施例描述了本发明,但此描述并不意图限制本发明。所属领域的技术人员在参考该描述后,将会明白说明性实施例的各种修改和组合,以及本发明其他实施例。因此,所附权利要求书意图涵盖任何此类修改或实施例。Although the present invention has been described with reference to illustrative embodiments, this description is not intended to limit the invention. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will become apparent to those skilled in the art upon reference to this description. Accordingly, the appended claims are intended to cover any such modifications or embodiments.

Claims (6)

1.一种用于控制电源电压的方法,其特征在于,所述方法包括:1. A method for controlling power supply voltage, characterized in that the method comprises: 通过向振荡器提供参考电压来提供第一周期信号,通过测量所述第一周期信号的第一周期来提供第一计数;A first periodic signal is provided by providing a reference voltage to the oscillator, and a first count is provided by measuring the first periodic signal. 通过向所述振荡器提供电压源的所述电源电压(VOUT)来提供第二周期信号,通过测量所述第二周期信号的第二周期来提供第二计数,所述电压源是一个电压调节器;以及A second periodic signal is provided by supplying a power supply voltage (VOUT) to the oscillator, and a second count is provided by measuring the second period of the second periodic signal; wherein the voltage source is a voltage regulator; and 将所述第一计数与所述第二计数进行比较;Compare the first count with the second count; 当所述第一计数与所述第二计数匹配时,存储所述电压调节器的输入电压;When the first count matches the second count, the input voltage of the voltage regulator is stored; 当所述第一计数与所述第二计数不匹配时,调整所述电压调节器的输入电压;When the first count and the second count do not match, adjust the input voltage of the voltage regulator; 所述方法,还包括:The method further includes: 通过向所述振荡器提供又一电压源的又一输出电压来提供又一第二周期信号;A second cycle signal is provided by supplying another output voltage from another voltage source to the oscillator; 通过测量所述第二周期信号的又一第二周期来提供又一第二计数;以及A second count is provided by measuring another second cycle of the second cycle signal; and 将所述第一计数与所述又一第二计数进行比较。The first count is compared with the second count. 2.根据权利要求1所述的方法,其特征在于,调整所述电压调节器的所述输入电压包括降低所述输入电压。2. The method according to claim 1, wherein adjusting the input voltage of the voltage regulator includes reducing the input voltage. 3.根据权利要求1所述的方法,其特征在于,所述电压调节器是一个片上低压差电压调节器(on-chip low drop out voltage regulator,OCLDO)。3. The method according to claim 1, wherein the voltage regulator is an on-chip low dropout voltage regulator (OCLDO). 4.根据权利要求1所述的方法,其特征在于,所述振荡器是一个环形振荡器。4. The method according to claim 1, wherein the oscillator is a ring oscillator. 5.一种电路,其特征在于,包括:5. A circuit, characterized in that it comprises: 振荡器,用于提供来自于第一传入信号的第一周期信号和来自于第二传入信号的第二周期信号;An oscillator is used to provide a first-period signal from a first input signal and a second-period signal from a second input signal; 计数器,用于对所述第一周期信号的第一周期和所述第二周期信号的第二周期进行统计;以及A counter is used to count the first period of the first periodic signal and the second period of the second periodic signal; and 比较器,用于将所述第一计数与所述第二计数进行比较;A comparator is used to compare the first count with the second count; 电压调节器,其中,所述电压调节器用于接收输入信号并且提供所述第二传入信号,所述第二传入信号是一个电压输出信号;A voltage regulator, wherein the voltage regulator is configured to receive an input signal and provide a second input signal, the second input signal being a voltage output signal; 第一选择器,用于:在第一时间段内向所述振荡器提供所述第一传入信号且不向所述振荡器提供所述电压输出信号,以及在第二时间段内向所述振荡器提供所述电压输出信号且不向所述振荡器提供所述第一传入信号;所述第一传入信号是一种参考信号(VREF);A first selector is configured to: provide the first input signal to the oscillator and not provide the voltage output signal to the oscillator during a first time period, and provide the voltage output signal to the oscillator and not provide the first input signal to the oscillator during a second time period; the first input signal is a reference signal (VREF). 第二选择器,所述第二选择器用于向第一计数器提供所述第一周期信号且向第二计数器提供第二周期信号;A second selector is used to provide the first period signal to the first counter and the second period signal to the second counter; 连接到所述比较器的控制器,其中,所述控制器在所述第一计数和所述第二计数不匹配时调整所述输入信号,所述控制器在所述第一计数与所述第二计数匹配时存储所述输入信号。A controller connected to the comparator, wherein the controller adjusts the input signal when the first count and the second count do not match, and the controller stores the input signal when the first count and the second count match. 6.一种芯片,其特征在于,包括:6. A chip, characterized in that it comprises: 第一处理单元;First processing unit; 为所述第一处理电路提供输出电压的第一片上低压差电压调节器(on-chip low dropout voltage regulator,OCLDO);以及A first on-chip low dropout voltage regulator (OCLDO) provides the output voltage to the first processing circuit; and 电连接到所述第一处理单元和所述第一片上低压差电压调节器的电压控制电路,其中,所述电压控制电路用于控制所述第一片上低压差电压调节器的所述输出电压,所述电压控制电路不向所述芯片的管脚提供信号;A voltage control circuit electrically connected to the first processing unit and the first on-chip low dropout voltage regulator, wherein the voltage control circuit is used to control the output voltage of the first on-chip low dropout voltage regulator, and the voltage control circuit does not provide signals to the pins of the chip; 所述电压控制电路包括环形振荡器、数字计数器和比较器,其中,所述环形振荡器用于:基于参考信号来提供第一周期信号,基于所述第一片上低压差电压调节器的所述输出电压来提供第二周期信号;第一数字计数器用于基于所述第一周期信号来提供第一数字信号;第二数字计数器用于基于所述第二周期信号来提供第二数字信号;以及所述比较器用于将所述第一数字信号与所述第二数字信号进行比较;The voltage control circuit includes a ring oscillator, a digital counter, and a comparator, wherein the ring oscillator is used to: provide a first periodic signal based on a reference signal, and provide a second periodic signal based on the output voltage of the first on-chip low-dropout voltage regulator; the first digital counter is used to provide a first digital signal based on the first periodic signal; the second digital counter is used to provide a second digital signal based on the second periodic signal; and the comparator is used to compare the first digital signal with the second digital signal. 第二处理单元;Second processing unit; 为所述第二处理单元提供第二电压的第二片上低压差电压调节器(on-chip low dropout voltage regulator,OCLDO);以及A second on-chip low dropout voltage regulator (OCLDO) provides a second voltage to the second processing unit; and 选择器,其中,所述电压控制电路选择性地电连接到所述第一处理单元和所述第一片上低压差电压调节器或者所述第二处理单元和所述第二片上低压差电压调节器,所述电压控制电路用于控制所述第一片上低压差电压调节器的所述输出电压或者所述第二片上低压差电压调节器的所述输出电压。Selector, wherein the voltage control circuit is selectively electrically connected to the first processing unit and the first on-chip low-dropout voltage regulator or the second processing unit and the second on-chip low-dropout voltage regulator, the voltage control circuit being used to control the output voltage of the first on-chip low-dropout voltage regulator or the output voltage of the second on-chip low-dropout voltage regulator.
HK18104896.7A 2015-08-06 2016-08-04 Apparatus and scheme for io-pin-less calibration or trimming of on-chip regulators HK1245453B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US14/820,380 2015-08-06

Publications (2)

Publication Number Publication Date
HK1245453A1 HK1245453A1 (en) 2018-08-24
HK1245453B true HK1245453B (en) 2021-04-30

Family

ID=

Similar Documents

Publication Publication Date Title
CN107850929B (en) Device and scheme for on-chip regulator IO without pin calibration or trimming
JP6676188B2 (en) Reference circuit for measurement system
US7714635B2 (en) Digital adaptive voltage supply
KR100947571B1 (en) Power supply and semiconductor test system using the same
US8710913B2 (en) Circuit arrangement and method for operating a circuit arrangement
US10461721B2 (en) Semiconductor apparatus, degradation value determination system and processing system
CN105988493A (en) Voltage regulating device and method
US7504847B2 (en) Mechanism for detection and compensation of NBTI induced threshold degradation
WO2013085506A1 (en) Apparatus, systems and methods for for digital testing of adc/dac combination
CN115482874A (en) Voltage level detector for performing state detection
EP3121964B1 (en) Apparatus for performing resistance control on a current sensing component in an electronic device, and associated method
JP7132022B2 (en) Voltage supervisor
JP4905354B2 (en) Power supply voltage adjustment device
US10033355B2 (en) Electric power supply device and semiconductor device
US7757110B2 (en) Timer circuit that bypasses frequency divider in response to receiving short-time mode instruction on dual-function external terminal
HK1245453B (en) Apparatus and scheme for io-pin-less calibration or trimming of on-chip regulators
HK1245453A1 (en) Apparatus and scheme for io-pin-less calibration or trimming of on-chip regulators
CN108139763B (en) Voltage regulating circuit and circuit voltage regulating method
CN109428596A (en) Semiconductor device, signal processing system and signal processing method
US10698008B2 (en) Current-sense ratio calibration
KR100606896B1 (en) Voltage supply sequence automatic control device and method
US8624766B2 (en) Method and system for auto-ranging analog-to-digital converter for current sensing
JP5053577B2 (en) Output voltage adjustment method
JP2008102094A (en) Voltage monitoring method and apparatus
JP2010139243A (en) Test method of semiconductor device, test system therefor, and the semiconductor device