Volatile memory and control method of power-off mechanism thereof

By calculating the time difference between the power-off command and the next refresh action in the volatile memory, deciding whether to enter the low current working mode, the power consumption problem of the volatile memory between the power-off and the automatic refresh action is solved, and the power consumption problem of the volatile memory is realized. More efficient power management.

CN119068924APending Publication Date: 2024-12-03WINBOND ELECTRONICS CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310902301.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-02
Filing Date
2023-07-21
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Volatile memory can generate additional power consumption when state switching between power off and automatic refresh action, especially when the running time of power off action is close to the automatic refresh action, which may lead to higher power consumption.

Method used

By receiving the power-off command and the occurrence status of the automatic refresh action, the time difference between the power-off command and the next refresh action is calculated, and whether to start the low-current operation mode of the volatile memory is activated to save unnecessary power Consumption.

Benefits of technology

It effectively reduces the power consumption of volatile memory, improves its power usage efficiency, and ensures that additional power consumption is reduced without affecting data accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068924A_ABST
    Figure CN119068924A_ABST
Patent Text Reader

Abstract

The invention provides a volatile memory and a control method of a power-off mechanism thereof. The control method of the power-off mechanism comprises the following steps: receiving a power-off command at a first time point; judging whether the first time point is in an operation period of the cluster refresh action or not; and when the first time point is not in the operation period of the cluster refresh action, calculating a time difference between the first time point and the next refresh action according to a second time point at which the previous refresh action occurs and the refresh action time interval, and determining whether to start a low-current working mode of the volatile memory according to the time difference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a volatile memory and a control method for its power-off mechanism, and in particular to a volatile memory capable of effectively saving power consumption and a control method for its power-off mechanism. Background Art

[0002] In the technical field of volatile memory, the power consumption of volatile memory can be reduced by a power-off command. However, in order to maintain the correctness of the stored data, the volatile memory will periodically perform an automatic refresh action. Therefore, if the power is off, when the automatic refresh action occurs, the volatile memory must be awakened to perform the automatic refresh action. It is worth noting that the volatile memory requires additional power consumption when switching between the normal operating state and the power-off state. Therefore, if the running time point of the power-off action is close to the time point of the automatic refresh action, more power consumption may be generated. Summary of the invention

[0003] The present invention is directed to a volatile memory and a control method of its power-off mechanism, which can effectively save unnecessary power consumption.

[0004] According to an embodiment of the present invention, a control method for a power-off mechanism includes: receiving a power-off command at a first time point; determining whether the first time point is in an operation period of a burst refresh action; when the first time point is not in an operation period of a burst refresh action: calculating a time difference between the first time point and a next refresh action based on a second time point at which a previous refresh action occurred and a time interval between the refresh actions, and determining whether to start a low-current operating mode of the volatile memory based on the time difference.

[0005] According to an embodiment of the present invention, a volatile memory includes a memory cell array and a controller. The controller is coupled to the memory cell array and is used for the control method of the power-off mechanism.

[0006] Based on the above, the volatile memory of the present invention can determine whether executing the power-off command to enter the low-current working mode can actually achieve the benefit of saving power according to the time point of receiving the power-off command and the occurrence status of the automatic refresh action, and execute the switching action of the low-current working mode accordingly, and effectively achieve the effect of saving power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 A flow chart showing a method for controlling a power-off mechanism according to an embodiment of the present invention;

[0008] Figure 2A as well as Figure 2B An action schematic diagram showing the first implementation details of the method for controlling a power-off mechanism in an embodiment of the present invention;

[0009] Figure 3A as well as Figure 3B An action schematic diagram showing the second implementation details of the method for controlling the power-off mechanism in an embodiment of the present invention;

[0010] Figure 4A as well as Figure 4B An action schematic diagram showing the third implementation details of the method for controlling a power-off mechanism in an embodiment of the present invention;

[0011] Figure 5 A schematic diagram showing a volatile memory according to an embodiment of the present invention;

[0012] Figure 6 A schematic diagram showing an implementation of a controller of a volatile memory according to an embodiment of the present invention;

[0013] Figure 7 A schematic diagram showing the operation of the low current operation mode of the volatile memory according to an embodiment of the present invention. DETAILED DESCRIPTION

[0014] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.

[0015] Figure 1 The embodiment is for a volatile memory, such as a dynamic random access memory (DRAM). In step S110, a controller of the volatile memory may receive a power-off command at a first time point. In step S120, the controller may determine whether the volatile memory is in an operation period of a burst refresh action at the first time point. If it is determined in step S120 that the volatile memory is not in an operation period of a burst refresh action, steps S130 and S140 may be executed. If it is determined in step S120 that the volatile memory is in an operation period of a burst refresh action, the volatile memory may execute a waiting action, and only execute steps S130 and S140 when the volatile memory is not in an operation period of a burst refresh action.

[0016] In step S130, the controller can calculate the time difference between the first time point of receiving the power-off command and the next refresh action according to the second time point of the previous refresh action and the refresh time interval (tREFI). In addition, the controller can determine whether the time difference is long enough to determine whether to start the low current working mode of the volatile memory (step S140).

[0017] In detail, the controller may preset a time threshold, and compare the time threshold with the time difference between the first time point of the power-off command and the next refresh action to determine whether the time difference is long enough. When the time difference is greater than the preset time threshold, the controller may start the low-current working mode of the volatile memory to save power consumption; conversely, when the time difference is not greater than the preset time threshold, the controller does not start the low-current working mode of the volatile memory.

[0018] It is worth noting that in this embodiment, since the volatile memory needs to perform the automatic refresh action at a fixed time, arbitrarily starting the low-current working mode of the volatile memory may not be able to effectively save power consumption. Therefore, in the embodiment of the present invention, by calculating whether the time difference between the first time point of the power-off command and the next refresh action is long enough, as a basis for whether to start the low-current working mode of the volatile memory, the power consumption of the volatile memory can be more effectively reduced.

[0019] Figure 2A as well as Figure 2B The following is a schematic diagram showing the first implementation details of the method for controlling the power-off mechanism in an embodiment of the present invention. Figure 2A In the figure, the horizontal axis is the time axis, and the multiple pulse signals on the time axis represent the automatic refresh action performed on each row of the volatile memory. The automatic refresh action of the volatile memory can be divided into a burst refresh action and a distributed refresh action. In the area 210, the multiple pulse signals are adjacent to each other, and the time interval between the adjacent pulses is equal to the period tRFC of the row automatic refresh cycle, which is the time interval for performing the burst refresh action. Outside the area 210, the multiple pulses whose time interval between adjacent pulses is equal to the refresh action time interval tREFI are used to perform the distributed refresh action. In addition, there is a relatively long time interval between the pulse PS1 and the pulse PS2 (equal to n times the refresh action time interval tREFI, where n is an integer greater than 1), indicating that the postponed refresh mode is executed. When the normal distributed refresh action collides with the access action, the postponed refresh mode can be executed.

[0020] exist Figure 2BIn the embodiment, the controller of the volatile memory can determine whether the first time point of receiving the power-off command PD is in the operation period of the burst refresh action. The controller can first receive the refresh action ARi at the second time point TP2, and receive the power-off command PD at the first time point TP1 after the time interval Ta generated by the no-operation NOP state. At this time, the controller can determine whether the time interval between the first time point TP1 of receiving the power-off command PD and the second time point TP2 of receiving the refresh action ARi is greater than the period tRFC of the row automatic refresh cycle. The period tRFC of the row automatic refresh cycle is equal to the time interval between the second time point TP2 and the third time point TP3 when the controller receives the next refresh action ARi+1.

[0021] according to Figure 2B It can be known that during the operation period of the burst refresh action (interval 210), the time Ta must be less than the period tRFC of the row auto-refresh cycle. Therefore, the controller of the volatile memory can set the period tRFC of the row auto-refresh cycle to be equal to the target value tX, and compare the target value tX with the time interval Ta between the first time point TP1 and the second time point TP2, and when the time interval Ta is greater than the period tRFC of the row auto-refresh cycle, it can be determined that the first time point TP1 at which the power-off command PD occurs must not be during the operation period of the burst refresh action.

[0022] In contrast, if the controller of the volatile memory determines that the time interval Ta is not greater than the period tRFC of the row auto-refresh cycle, it cannot determine whether the first time point TP1 of the power-off command PD is within the operation period of the burst refresh action. At this time, the controller does not perform any action and must wait until the subsequent time point of the power-off command is determined to be not within the operation period of the burst refresh action before performing subsequent actions related to the power-off command.

[0023] Figure 3A as well as Figure 3B An action schematic diagram showing the second implementation details of the method for controlling the power-off mechanism in an embodiment of the present invention. Figure 3A and Figure 2A In this implementation detail, the main focus is on Figure 3A The illustration is given in the area 310 in FIG. 1 , where in the area 310 the volatile memory is in the operation period of the distributed refresh action.

[0024] In region 310, Figure 3BIn the embodiment, the volatile memory completes the refresh action ARi at the second time point TP2, receives the power-off command PD at the first time point TP1, and receives other commands OCMD between the second time point TP2 and the first time point TP1. The controller of the volatile memory can determine that the time interval Ta between the first time point TP1 at which the power-off command PD is received and the second time point TP2 at which the previous refresh action ARi occurs is greater than the period tRFC of the row automatic refresh cycle, and therefore can determine that the first time point TP1 is not in the operation period of the burst refresh action. Next, the controller of the volatile memory can set the refresh operation time interval tREFI defined in the specification of the volatile memory to be equal to the target value tX. By further comparing the target value tX with the time interval Ta, and when the target value tX is greater than the time interval Ta, the controller can determine that the first time point TP1 at which the power-off command PD is received may occur during the operation period of a general distributed refresh action.

[0025] At this time, the controller can obtain the time difference Tb by subtracting the difference between the second time point TP2 and the first time point TP2 from the refresh action time interval tREFI, wherein the time difference Tb can be equal to the time difference between the first time point TP1 of receiving the power-off command PD and the third time point TP3 of the next refresh action ARi+1. The controller can further compare the time difference Tb with a preset time threshold. If the time difference Tb is greater than the preset time threshold, the controller can start the low current working mode of the volatile memory; on the contrary, if the time difference Tb is not greater than the preset time threshold, the controller will not temporarily start the low current working mode of the volatile memory.

[0026] Figure 4A as well as Figure 4B An action schematic diagram showing the third implementation details of the method for controlling a power-off mechanism in an embodiment of the present invention. Figure 4A and Figure 2A In this implementation detail, the main focus is on Figure 4A This is illustrated in area 410 in which the volatile memory is in operation during a delayed refresh mode of a distributed refresh action.

[0027] exist Figure 4B In the example, the volatile memory completes the refresh action ARi at the second time point TP2, receives the power-off command PD at the first time point TP1, and receives other commands OCMD between the second time point TP2 and the first time point TP1. Figure 3BAs described above, when the time difference Tb is not greater than the preset time threshold, the controller can continuously monitor the state of the external command. If the external command continues to maintain the power-off command state, the time difference Tb will be extended. If at the current time point (equal to the third time point TP3), the refresh action ARi+1 is not executed, and the sum of the time interval Ta and the time difference Tb is extended to be greater than the sum of the refresh action time interval tREFI and the threshold value. Correspondingly, the controller can determine that the distributed refresh action operation of the volatile memory is in the delayed refresh mode. The above-mentioned threshold value can be any number greater than 0, and can be determined by the designer without specific restrictions.

[0028] In this implementation detail, the next refresh action ARi+1 is executed at time point TP4.

[0029] When the controller determines that the distributed refresh operation of the volatile memory is in the delayed refresh mode, the controller can calculate the product of the refresh action time interval tREFI and the setting parameter n according to the setting parameter of the delayed refresh mode of the volatile memory (for example, equal to n), and further set the above product as the target value tX, and then compare the target value tX with the time threshold. When the product of the refresh action time interval tREFI and the setting parameter n is greater than the time threshold, the controller can start the low current operation mode of the volatile memory. In this embodiment, the setting parameter n can be an integer between 2 and 9.

[0030] It is worth noting that, in the embodiment of the present invention, the above-mentioned time threshold can be set according to the power consumption required to switch the volatile memory to the low current working mode, compared with the power consumption that can be saved by maintaining the low current working mode for a certain period of time. Specifically, when the length of time maintained in the low current working mode is equal to the time threshold, the power consumption that can be saved must be greater than the power consumption required to switch the volatile memory to the low current working mode.

[0031] Incidentally, the time threshold may be associated with the ambient temperature. The volatile memory may set the corresponding time threshold according to the power consumption state under different ambient temperatures to improve the efficiency of power consumption control.

[0032] Figure 5 Schematic diagram of a volatile memory according to an embodiment of the present invention is shown. The volatile memory 500 includes a memory cell array 510 and a controller 520. The memory cell array 510 and the controller 520 are coupled to each other. The memory cell array 510 is a dynamic random access memory cell array. The controller 520 can be used to perform the following operations: Figure 1 The multiple steps of the control method of the power-off mechanism described in the embodiment. The relevant details are in FIG. 2A to FIG. 4B The multiple implementation details are described in detail in the specification and will not be repeated here.

[0033] Figure 6 A schematic diagram showing an implementation of a controller of a volatile memory according to an embodiment of the present invention. The controller includes a command decoder 610, a time threshold generator 640, a timer 630, a comparator 650, a power-off controller 660, a power gate control circuit 670, a temperature sensor 641, and a storage element 642. The command decoder 610 is used to decode an external command EXTCMD and generate a refresh command AR and a power-off command PD in a time-sharing manner. The timer 630 is coupled to the command decoder 610. The timer 630 can perform timing according to the refresh command AR and the power-off command PD, and generate a time difference Tx. The timer 630 performs timing based on the clock signal CK provided by the oscillator 620.

[0034] The time threshold generator 640 is coupled to a temperature sensor 641, a storage element 642, and a comparator 650. The temperature sensor 641 is used to sense the ambient temperature AT. The storage element 642 is used to provide a preset parameter CODE to the time threshold generator 640. The time threshold generator 640 can select the preset parameter CODE provided by the storage element 642 according to the ambient temperature AT, and obtain the time threshold Ts. Among them, the preset parameter CODE stored in the storage element 642 is used to represent the relationship information between multiple temperatures and multiple time thresholds. The storage element 642 can be a non-volatile memory, such as a read-only memory in any form.

[0035] The comparator 650 is used to compare the time threshold Ts with the time difference Tx and generate a start signal CR. The start signal CR is used to indicate whether to start the low current working mode of the volatile memory.

[0036] The power-off controller 660 is coupled to the command decoder 610, and enables the power-off control signal CTL according to the power-off command PD. The power gate control circuit 670 is coupled to the comparator 650 and the power-off controller 660. The power gate control circuit 670 cuts off the path for the circuit components of the volatile memory to receive the power voltage in the low current operation mode according to the power-off control signal CTL and the start signal CR.

[0037] In this embodiment, the command decoder 610, the time threshold generator 640, the timer 630, the comparator 650, the power-off controller 660 and the power gate control circuit 670 can be implemented using digital circuits, and the relevant hardware architecture can be generated using the design method of digital circuits well known to ordinary technicians in the field without specific restrictions.

[0038] For details on the low current mode operation, refer to Figure 7 FIG. 1 is a schematic diagram showing the operation mode of the low current working mode of the volatile memory of the embodiment of the present invention. Figure 7 In the embodiment, the circuit 710 in the volatile memory can receive the power supply voltage VDD through the transistor MP and receive the reference ground voltage VSS through the transistor MN. The controller can generate control signals CT1 and CT2 and provide the control signals CT1 and CT2 to the control terminals of the transistors MP and MN, respectively. When the volatile memory enters the low current operation mode, the controller turns off the transistors MP and MN through the generated control signals CT1 and CT2, and cuts off the path for the circuit 710 to receive the power supply voltage VDD and the reference ground voltage VSS, so as to reduce the power consumption of the circuit 710.

[0039] In this embodiment, the circuit 710 includes one or more electronic components. The circuit 710 is a circuit in a volatile memory that does not need to be operated in a low current operation mode.

[0040] In summary, the volatile memory of the present invention does not directly enter the low current working mode when receiving the power-off command. The volatile memory of the present invention determines the state of the automatic refresh action and enters the low current working mode only after confirming that the switching action of executing the low current working mode has the benefit of saving power loss. In this way, the power usage efficiency of the volatile memory can be further improved.

[0041] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for controlling a power-off mechanism, applicable to a volatile memory, comprising: receiving a power-off command at a first point in time; Determining whether the first time point is within an operation period of a burst refresh action; When the first time point is not in the operation period of the burst refresh action: Calculating the time difference between the first time point and the next refresh action according to the second time point at which the previous refresh action occurred and the refresh action time interval; and Whether to start the low current working mode of the volatile memory is determined according to the time difference.

2. The control method according to claim 1, wherein the step of determining whether to activate the low current working mode of the volatile memory according to the time difference comprises: When the time difference is greater than a preset time threshold, the low current operation mode of the volatile memory is started.

3. The control method according to claim 2, further comprising: Subtract the difference between the second time point and the first time point from the refresh action time interval to obtain the time difference value; as well as The time difference is compared with the time threshold to determine whether to start the low current operation mode.

4. The control method according to claim 2, wherein when the time difference is not greater than the time threshold, further comprising: Determining whether the volatile memory enters a delayed refresh mode; as well as When the volatile memory enters the delayed refresh mode, whether to start the low current working mode of the volatile memory is determined according to the setting parameters of the delayed refresh mode, the refresh action time interval and the time threshold.

5. The control method according to claim 4, further comprising: When the power-off command is continued and when the time interval between the second time point and the current time is greater than the sum of the refresh time interval and a threshold value, it is determined that the volatile memory enters the delayed refresh mode.

6. The control method according to claim 5, further comprising: In the delayed refresh mode, determining whether the product of the refresh action time interval and the set parameter is greater than the time threshold; as well as When the product of the refresh action time interval and the setting parameter is greater than the time threshold, the low current working mode is started.

7. The control method according to claim 1, further comprising: In the low current operation mode, a path through which the circuit components of the volatile memory receive a power supply voltage is cut off.

8. The control method according to claim 1, wherein the step of determining whether the first time point is within the operation period of the burst refresh action comprises: Determine whether the time interval between the second time point of the previous refresh action and the first time point is greater than the period of the row automatic refresh cycle; as well as When the time interval between the second time point and the first time point is greater than the period of the row automatic refresh cycle, it is determined that the first time point is not in the operation period of the burst refresh action.

9. A volatile memory comprising: A memory cell array; as well as A controller, coupled to the memory cell array, for: receiving a power-off command at a first point in time; Determining whether the first time point is within an operation period of a burst refresh action; When the first time point is not in the operation period of the burst refresh action: Calculating the time difference between the first time point and the next refresh action according to the second time point at which the previous refresh action occurred and the refresh action time interval; and Whether to start the low current working mode of the volatile memory is determined according to the time difference.

10. The volatile memory according to claim 9, wherein the controller is further configured to: When the time difference is greater than a preset time threshold, the low current operation mode of the volatile memory is started.

11. The volatile memory according to claim 10, wherein the controller is further configured to: Subtracting the difference between the second time point and the first time point from the refresh action time interval to obtain the time difference value; and The time difference is compared with the time threshold to determine whether to start the low current operation mode.

12. The volatile memory according to claim 10, wherein the controller is further configured to: determining whether the volatile memory enters a delayed refresh mode; and When the volatile memory enters the delayed refresh mode, whether to start the low current working mode of the volatile memory is determined according to the setting parameters of the delayed refresh mode, the refresh action time interval and the time threshold.

13. The volatile memory according to claim 12, wherein the controller is further configured to: When the power-off command is continued and when the time interval between the second time point and the current time point is greater than the sum of the refresh time interval and a threshold value, it is determined that the volatile memory enters the delayed refresh mode.

14. The volatile memory according to claim 13, wherein the controller is further configured to: In the delayed refresh mode, determining whether the product of the refresh action time interval and the set parameter is greater than the time threshold; and When the product of the refresh action time interval and the setting parameter is greater than the time threshold, the low current working mode is started.

15. The volatile memory according to claim 9, wherein the controller is further configured to: In the low current operation mode, a path through which the circuit components of the volatile memory receive a power supply voltage is cut off.

16. The volatile memory according to claim 9, wherein the controller is further configured to: Determine whether the time interval between the second time point of the previous refresh action and the first time point is greater than the period of the row automatic refresh cycle; and When the time interval between the second time point and the first time point is greater than the period of the row automatic refresh cycle, it is determined that the first time point is not in the operation period of the burst refresh action.

17. The volatile memory according to claim 9, wherein the controller comprises: Command decoder, decoding external commands and generating refresh commands and power-off commands; A time threshold generator, generating the time threshold; A timer, coupled to the command decoder, performs timing according to the refresh command and the power-off command, and generates the time difference; a comparator, comparing the time threshold and the time difference to generate a start signal; A power-off controller, enabling a power-off control signal according to the power-off command; as well as The power gate control circuit is coupled to the comparator and the power-off controller to cut off the path for the circuit components of the volatile memory to receive the power voltage according to the power-off control signal and the start signal.

18. The volatile memory according to claim 17, wherein the controller further comprises: A temperature sensor for sensing ambient temperature; as well as A storage element, coupled to the time threshold generator, for providing a preset parameter, The time threshold generator generates the time threshold according to the ambient temperature and the preset parameter.