ADAPTIVE VOLTAGE SCALING SYSTEM FOR OUT OF CONTEXT FUNCTIONAL SAFETY SoC
20240178832 ยท 2024-05-30
Inventors
- Venkateswar Reddy Kowkutla (Allen, TX, US)
- Chunhua Hu (Plano, TX, US)
- Erkan Bilhan (Dallas, TX, US)
- Sumant Dinkar Kale (Allen, TX, US)
Cpc classification
H03K17/22
ELECTRICITY
H03K17/30
ELECTRICITY
G05B2219/21119
PHYSICS
International classification
H03K17/22
ELECTRICITY
Abstract
Systems and methods are provided for voltage monitoring and reset sequencing. One such system includes a voltage detector including multiple voltage level detectors to output multiple power OK signals, respectively; a trim adjustment circuit to output multiple trim values to the multiple voltage level detectors, respectively; and a sequencer circuit coupled to the trim adjustment circuit and the voltage detector. In response to receiving the power OK signals from the multiple voltage level detectors, the sequencer circuit controls output of a reset signal to a target voltage domain.
Claims
1. A method comprising: receiving, from a set of voltage detectors, a set of power OK signals; receiving, a set of mask signals; providing a reset signal based on the set of power OK signals such that the reset signal is de-asserted based on each of the power OK signals being asserted; masking the set of power OK signals based on the set of mask signals such that a response of the reset signal to the set of power OK signals is inhibited; thereafter, updating a voltage threshold of the set of voltage detectors; and thereafter, unmasking the set of power OK signals based on the set of mask signals.
2. The method of claim 1, wherein the providing of the reset signal includes: applying an AND logic function to each power OK signal of the set of power OK signals and a respective mask signal of the set of mask signals to produce a set of intermediate signals; and applying an OR logic function to the set of intermediate signals.
3. The method of claim 1, further comprising, after the masking the set of power OK signals, programming a set of power regulating circuits.
4. The method of claim 1, further comprising, based on a timer, causing the unmasking of the set of power OK signals to occur a settling time after the updating of the voltage threshold.
5. The method of claim 1, further comprising determining the voltage threshold of the set of voltage detectors.
6. The method of claim 1, further comprising, prior to the receiving of the set of power OK signals: providing a set of trim values to the set of voltage detectors; and thereafter, enabling the set of voltage detectors.
7. The method of claim 6, further comprising: performing a coarse voltage level measurement of a power supply voltage; and based on the coarse voltage level measurement, retrieving the set of trim values to provide to the set of voltage detectors.
8. The method of claim 7, further comprising: performing a first voltage level measurement of the power supply voltage, wherein the performing of the coarse voltage level measurement is performed based on the first voltage level measurement.
9. A method comprising: comparing each supply voltage of a set of supply voltages with a select one of a plurality of trim values; generating a set of power OK signals based on the comparing operations; providing a reset signal; masking the set of power OK signals by applying the set of power OK signals and a set of mask signals to AND circuitry such that a response of the reset signal to the set of power OK signals is inhibited; updating the trim values while the response of the reset signal is inhibited; and unmasking the set of power OK signals.
10. The method of claim 9, wherein the updating of the trim values while the response of the reset signal is inhibited includes: calculating new trim values based on a signal input to AND logic coupled to the AND circuitry; and using the new trim values for subsequent comparing operations.
11. The method of claim 10, further comprising: determining that new trim values are required; and waiting a delay time period after determining that new trim values are required before calculating the new trim values.
12. The method of claim 11, further comprising: waiting a settling time period before unmaking the power OK signals.
13. A system comprising: a voltage detector including multiple voltage level detectors configured to output multiple power OK signals, respectively; a trim adjustment circuit configured to output multiple trim values to the multiple voltage level detectors, respectively; and a sequencer circuit coupled to the trim adjustment circuit and the voltage detector, wherein, in response to receiving the power OK signals from the multiple voltage level detectors, the sequencer circuit is configured to control output of a reset signal to a target voltage domain.
14. The system of claim 13, wherein the sequencer circuit is configured to de-assert the reset signal based on the multiple power OK signals being asserted.
15. The system of claim 14, wherein the sequencer circuit is configured to mask the power OK signals based on mask signals such that a response of the reset signal to the power OK signals is inhibited.
16. The system of claim 15, wherein the sequencer circuit is configured to, after masking the power OK signals, update a voltage threshold of the voltage detector.
17. The system of claim 16, wherein the sequencer circuit is configured to, after updating the voltage threshold, unmask the power OK signals based on mask signals.
18. The system of claim 13, wherein the voltage detector is configured to, in outputting the power OK signals, compare each supply voltage of a set of supply voltages with a select one of the multiple trim values received by the multiple voltage level detectors from the trim adjustment circuit, and output the power OK signals based on the comparing operations.
19. The system of claim 18, wherein the system is configured to: provide a reset signal; mask the power OK signals by applying the power OK signals and mask signals to AND logic circuitry such that a response of the reset signal to the power OK signals is inhibited; update the trim values while the response of the reset signal is inhibited; and unmask the power OK signals.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007] These and other aspects of this invention are illustrated in the drawings, in which:
[0008]
[0009]
[0010]
[0011]
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
[0012] A fully integrated power on reset generation circuitry which can provide continuous voltage monitoring and reset sequencing is shown in
[0013] The apparatus includes internal oscillators, a plurality of voltage detection stages and a power on reset (PoR) sequencer.
[0014] The internal RC oscillator 101 and crystal oscillator 112 are used to generate the clocks required by the power on reset (PoR) sequencer 102 and eFuse module 103. The outputs of voltage monitors 104, 105 and 106 are passed through deglitching circuits to filter out false signals such as glitches and noise from the analog sensors.
[0015] The first stage voltage detection circuit 104 is an analog power supply level detectorthis is to ensure that the voltage has reached a threshold level at which analog circuits can safely and reliably operate. The second stage voltage detection circuit 105 is a coarse level detector on analog voltage rails and some critical digital voltage rails, which are required for fine tuning analog sensors for process and temperature variations. The third stage voltage detection circuit 106 is a plurality of more accurate level detectors, which ensures that all voltage rails are operating within specified limits. The circuits implemented in first and second stage do not require any trim values to fine tune the analog circuits for process and temperature variation compensations. The first stage voltage detection circuit 104 controls the reset to the second stage voltage detection circuit 105, and second stage controls the reset to the third stage voltage detection circuit 106. Final master reset signal 108 to the SoC will be a combined version of resets from all 3 stages. This ensures that the device will always receive a reset even if one of the stages is defective therefore providing the required redundancy needed for safety critical applications.
[0016] Once the voltage levels are valid, the second stage voltage detection circuit 105 releases reset to only a small portion of the device which enables the device to initiate the eFuse scanning. The eFuse block 103 contain analog trim values for the voltage detection circuits implemented in the third stage voltage detection circuit 106 for accurate voltage level monitoring. The third stage holds the reset to the designated voltage domains until it detects proper voltage levels on the rails.
[0017] After the eFuse scanning in eFuse block 103 is complete, the power on reset (PoR) sequencer 102 applies the trim values read out from the eFuse block 103 to the analog circuits for the voltage monitors in the third stage voltage detection circuit 106. The sequencer then enables the voltage monitors for accurate detection of voltage levels on the rails. The sequencer then waits for a power OK (POK) signal 107 response from each individual detector circuit. When all the voltage monitors indicate power OK on the rails, power on reset sequencer 102 waits for all IOs and clock oscillators in the device to stabilize and then de-asserts the reset signal 108 to the designated voltage domain.
[0018] Provision is made for external reset signals 109 and 110 that will override the internally generated resets when selected by selector 111.
[0019] All reset signals are properly level shifted to the destination voltage level with appropriate pull-up or pull-down functions. This is to ensure that if the source voltage dies, the reset signal is still at an appropriate level to put the destination voltage domain in the reset state.
[0020]
[0021] If an external power on reset signal is detected in block 201, and internal PoR is bypassed, block 212 introduces a wait until the external power on reset signal is deasserted. Once the external power on reset signal is deasserted in block 215, the trim eFuse scan is enabled by the sequencer in block 213. Once trim auto load is completed in block 214, flow returns to block 211.
[0022] If an external power on reset signal is detected in block 201, block 212 introduces a wait until the external power on reset signal is deasserted. Once that is detected, the trim eFuse scan is enabled in block 213. Once trim auto load is completed, flow returns to block 211.
[0023] Adaptive Voltage Scaling (AVS) provides mechanism to dynamically adjust voltage settings for a given voltage domain for Process and Temperature variations. To improve performance certain processor/core voltage levels may be overdriven to higher voltages than nominal levels. In lower power modes, these same voltages may be lowered to reduce leakage. However, the voltage monitor's thresholds are set based on nominal voltage at power up stage. To accurately monitor new voltage levels after applying Adaptive Voltage Scaling, the voltage monitoring circuit's thresholds have to be reprogrammed to reflect the voltage changes. This invention provides an apparatus and method to allow re-configuration of the threshold settings which aligns with the new operating voltages for an out of context functional safety SoC.
[0024] To support Adaptive Voltage Scaling (AVS) and new operating voltages, the solution shown allows a safe sequence and circuitry to change the voltage monitor circuit thresholds to correspond to the new settings.
[0025] Prior to re-configuring the new threshold, the power OK signal coming out of that particular voltage monitor circuit must be masked as shown in
[0026]