Embodiments of the invention relate to memory systems. In particular, embodiments of the invention relate to memory systems with a secondary power supply.
A memory system with a secondary power supply including those that include a volatile memory subsystem and a non-volatile memory subsystem configured to write contents of volatile memory into non-volatile memory. For example, such a memory system is configured to perform a backup operation upon detection of a power disruption or an impending disruption or failure. These memory systems include a secondary power supply to power the memory system during a power failure such that the memory system may perform a backup operation and transfer the information in the volatile memory subsystem into the non-volatile memory subsystem.
One problem with current memory systems is that it takes a significant amount of time for a secondary power supply to fully charge for a backup operation. During the time it takes the secondary power supply to fully charge, the memory system is not capable of performing a backup operation.
A memory system is described. The memory system includes one or more memory subsystems. The memory system also includes a power module coupled with at least one of the one or more memory subsystems. Further, the memory system includes a controller coupled with the one or more memory subsystems and the power module. The controller is configured to generate an energy threshold based on energy used for a backup operation.
Other features and advantages of embodiments of the present invention will be apparent from the accompanying drawings and from the detailed description that follows.
Embodiments of the present invention are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:
Embodiments of a system and method for determining a charge of a secondary power supply for a memory system are described. In particular, a memory system with a power module including a secondary power supply for the memory system is described that is configured to determine the energy used to perform a backup operation. The memory system then uses the energy used to perform the previous backup to set an energy threshold required for the next backup operation. Further, the memory system is configured to determine when the secondary power supply reaches the energy threshold.
Determining an energy threshold based on the energy used for a previous backup operation provides advantages over implementations that determined a threshold based on a charge voltage threshold set based on estimated worst case conditions and the end of life capacitance of the secondary power supply. Because such implementations are set up for worst-case conditions, these implementations are not based on actual operating conditions of a memory system. The worst case conditions and end of life capacitance charge voltage threshold are greater requiring more time for a secondary power supply to reach the charge voltage threshold. Further, a charge voltage threshold based on the worst case conditions and/or end of life capacitance charge voltage threshold are not based on actual operation conditions of a memory system. Thus, a memory system according to embodiments described herein are configured to determine an energy threshold for a power module based on a previous backup operation providing the benefit of reducing the amount of time a power module needs to charge before it is ready for a backup operation.
For an embodiment the power module 80 includes a secondary power source for a memory system 10 that is used to power one or more memory subsystems of the memory system. By way of example and not limitation, a power module is used to power at least one volatile-memory subsystem 30 and at least one non-volatile memory subsystem 40 for a backup operation which includes transferring information from the volatile memory subsystem 30 to the non-volatile memory subsystem 40 during an interruption or failure of the primary power source of the memory system.
For an embodiment, a power module 80 optionally includes a storage device 85. The storage device 85 may be any type of memory including, but not limited to, electrically erasable programmable read-only memory (“EEPROM”), Flash, or other type of device used to store information. The storage device 85 may be used to store information related to the power module 80 including voltages, capacitance values, and energy values such as those described herein. A power module 80 also may optionally include a power-module controller 90 and one or more sensors 92. The one or more sensors 92 may be sensors including those known in the art configured to measure one or more characteristics of the power module 80 including, but not limited to, voltages, capacitance values, and energy values such as those described herein. The power-module controller 90 may be an I2C microcontroller slave or other type of controller such as those described herein. The power-module controller 90, according to an embodiment, is configured to manage the one or more sensors 92, communications with controller 62, or perform other operations including those known in the art.
The memory system 10, according to the embodiment illustrated in
The memory system 10, according to the embodiment illustrated in
According to the embodiment illustrated in
For an embodiment, controller 62 is configured to determine the energy used for a backup operation. The controller 62 determines the energy used for a back operation by measuring values of the capacitor array 86. The values measured by the controller 62 included the array voltage (“VSA”) and the array capacitance (“CSA”). For an embodiment, the controller 62 is configured to measure the array voltage periodically during the operation of the memory system when the memory system is not performing a backup operation. For another embodiment, the controller 62 is configured to measure the array voltage continuously. The controller 62 is also configured to measure the array voltage before a backup operation (“VSA,BB”) is initiated by the controller 62. Further, controller 62 is configured to measure the array voltage after a backup operation (“VSA,AB”). For an embodiment, the controller is configured to store the measured values in a memory internal to the controller 62 using techniques including those known in the art. For another embodiment, the controller 62 is configured to store measured values in a storage device 85 on the power module 80.
The controller 62 is further configured to calculate energy used for a backup operation (“EBU”) based on the measured values according to the following equation:
For an embodiment, the controller 62 is configured to use the calculated energy used for a backup operation as an energy threshold for determining that the secondary power supply, such as the power module 80, has enough energy to perform a backup operation. For another embodiment, the controller 62 is configured to use the calculated energy used for a backup operation as a basis for an energy threshold. For such an embodiment, the controller 62 is configured to generate an energy threshold by adding a guard-band energy (“EGB”) to the calculated energy to perform a backup operation. The guard-band energy may be selected to ensure proper operation of a backup operation.
According to an embodiment, the guard-band energy may be determined empirically or may be based on design specifications of a power module. The guard band energy ensures a memory system operates reliability in different operation conditions. More guard band means that the system can accommodate larger fluctuations in either backup time or backup power draw. Adding additional guard band comes at the expense of adding additional charging time. For example, a guard-band energy is set to be in a range including 10% to 100% of the energy used for a backup operation.
For another embodiment, the controller 62 is configured to use the calculated energy used for a backup operation in addition to a drop-out energy (“EDO”) as a basis for an energy threshold. For such an embodiment, controller 62 is configured to generate an energy threshold by adding a drop-out energy (“EDO”) to the calculated energy to perform a backup operation. The drop-out energy, according to an embodiment, is determined based on a minimum voltage at which a secondary power supply can no longer provide power to a memory system. By way of example, a drop-out energy may be equal to the energy left in a power module 80 when the voltage level of the power module reaches 2.5 volts. The drop-out energy, according to an embodiment, is based on a minimum voltage requirement for one or more circuits of the memory system 10. For example, the drop-out energy may be based on the minimum voltage need by a voltage regulator or step-down voltage circuit to function to provide power from the secondary power supply to the memory system 10, otherwise referred to herein as the drop-out voltage (“VDO”). For an embodiment, the drop-out energy may be calculated according to the follow equation:
For an embodiment, the controller 62 is configured to generate an energy threshold by adding a drop-out energy (“EDO”) to the calculated energy threshold to perform a backup operation in addition to a guard-band energy. For such an embodiment, the controller 62 is configured to generate an energy threshold (“ETH”) according to the following equation:
E
TH
=E
BU
+E
DO
E
GB.
For any of the embodiments described herein, the controller 62 is configured to determine if a secondary power supply such as a power module 80 has enough energy to perform a backup operation when the energy of the power module is equal to or greater than the generated energy threshold based on techniques including those described herein. For such embodiments, when the energy of the power module is equal to or greater than the threshold energy, the controller 62 determines that the power module 80 has enough energy for a backup operation. The controller 62 is configured to compare the energy of the power module 80 with the energy threshold using techniques known in the art for comparing the magnitudes of two values.
For another embodiment, the controller 62 is configured to determine if a secondary power supply such as a power module 80 has enough energy to perform a backup operation based on the voltage of the power module 80. The controller 62 is configured to calculate a voltage threshold (“VTH”) according to the following equation:
The controller 62 is further configured to compare the voltage of the power module 80, such as an array voltage, with the threshold voltage. The controller 62 is configured to compare the voltage of the power module 80 with the voltage threshold using techniques known in the art for comparing the magnitudes of two values. When the voltage of the power module is equal to or greater than the threshold voltage, the controller 62 determines that the power module 80 has enough energy for a backup operation. The values described herein used to generate a threshold energy or threshold voltage may be based on the values measured, calculated, or otherwise determined by a controller 62 during a previous backup operation. Alternatively, the values may be based on average values measured, calculated, or otherwise determined by the controller 62 over a number of backup operations. When the controller 62 determines that the energy or the voltage of the power module 80 is equal to or greater than the threshold energy or the threshold voltage, respectively, the controller 62 determines that the power module 80 is charged for a backup operation.
For an embodiment, the controller may trigger an event or otherwise notify a host system based on the determination of the energy of a secondary power supply. The controller 62, according to an embodiment, may be configured to trigger an event by setting a bit, accessing an address register, accessing a data register, setting a control bit, setting a status bit, setting an error bit or using other techniques known in the art for notifying a system of a condition.
In the foregoing specification, specific exemplary embodiments of the invention have been described. It will, however, be evident that various modifications and changes may be made thereto. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Number | Date | Country | |
---|---|---|---|
62102996 | Jan 2015 | US |