Memory refreshing method and equipment

The memory refresh method addresses high power consumption by determining refresh parameters based on data retention time to selectively refresh data lines, reducing power usage without data loss.

CN119068939APending Publication Date: 2024-12-03CHANGXIN MEMORY TECH INC
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202310619356.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing memory technologies require frequent refresh operations on each data line, leading to high power consumption, especially in self-refresh mode, due to the need to periodically switch word lines and recharge capacitors to prevent data loss.

Method used

A memory refresh method that determines refresh parameters based on the data retention time of each data line, allowing selective refresh operations only on lines that need it, reducing the frequency of refresh commands for some lines to minimize power consumption.

Benefits of technology

Reduces power consumption by selectively refreshing only necessary data lines, maintaining data integrity while minimizing unnecessary switching operations, particularly in self-refresh mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068939A_ABST
    Figure CN119068939A_ABST
Patent Text Reader

Abstract

The invention provides a memory refreshing method and device, and relates to the technical field of semiconductors, and the method comprises the steps: obtaining a refreshing parameter corresponding to a data line in a memory; wherein the refresh parameter is determined according to the data retention time of the storage unit connected with the data line; and according to the refreshing parameter corresponding to the data line, determining a refreshing command response interval frequency corresponding to the data line, and according to the refreshing command response interval frequency, carrying out refreshing operation on the data line. In the embodiment of the invention, when the memory executes the refresh command every time, according to the refresh parameter corresponding to each data line, only a part of the data lines are refreshed instead of all the data lines, and some data lines can be refreshed once at intervals of a plurality of refresh commands; therefore, the power consumption of the memory can be reduced on the premise of not losing the data stored in the memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of semiconductor technology, and in particular to a memory refresh method and device. Background Art

[0002] Since the memory stores data in capacitors, it has a characteristic that all the stored data needs to be refreshed continuously within a limited time to prevent data loss.

[0003] At present, the refresh mode of the memory can be divided into automatic refresh mode and self-refresh mode. In the automatic refresh mode, the refresh command is periodically issued by the controller, and the memory is responsible for executing the refresh command; in the self-refresh mode, the controller is only responsible for sending commands to enter the self-refresh mode and exit the self-refresh mode. After the memory enters the self-refresh mode, the refresh command is periodically generated by the memory itself.

[0004] However, the existing memory needs to perform at least one refresh operation on each data line when executing each refresh command, which results in high power consumption of the memory. Summary of the invention

[0005] The present disclosure provides a memory refresh method and device, which can effectively reduce the power consumption of the memory.

[0006] In a first aspect, an embodiment of the present disclosure provides a memory refresh method, wherein the memory includes a plurality of data lines; the method includes:

[0007] Acquire a refresh parameter corresponding to the data line; wherein the refresh parameter is determined according to the data retention time of the storage unit connected to the data line;

[0008] Determining the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line;

[0009] A refresh operation is performed on the data line according to the number of refresh command response intervals corresponding to the data line.

[0010] In some embodiments, performing a refresh operation on the data line according to the number of refresh command response intervals corresponding to the data line includes:

[0011] When the memory responds to a refresh command, determining a refresh number corresponding to the refresh command;

[0012] Determining whether the data line is a data line to be refreshed according to the number of refreshes corresponding to the refresh command and the number of refresh command response intervals corresponding to the data line;

[0013] When the data line is a data line to be refreshed, a refresh operation is performed on the data line; when the data line is not a data line to be refreshed, the switch state of the data line is kept unchanged.

[0014] In some embodiments, before obtaining the refresh parameter corresponding to the data line, the method further includes:

[0015] Detecting the data retention time of the storage unit connected to the data line;

[0016] According to the data retention time of the storage unit, a refresh parameter corresponding to the data line is determined.

[0017] In some embodiments, detecting the data retention time of the storage unit connected to the data line includes:

[0018] Writing first data into the storage unit;

[0019] Reading the second data stored in the storage unit multiple times according to a preset interval length;

[0020] Comparing the first data with the second data read each time to determine the time when the first read error occurs in the storage unit;

[0021] The time when the first read error occurs in the storage unit is determined as the data retention time of the storage unit.

[0022] In some embodiments, determining the refresh parameter corresponding to the data line according to the data retention time of the storage unit includes:

[0023] The refresh parameters corresponding to the data lines are determined according to the data retention time of the storage unit and the time intervals corresponding to the preset refresh parameters.

[0024] In some embodiments, after determining the refresh parameter corresponding to the data line, the method further includes:

[0025] According to the refresh parameter corresponding to the data line, the state of at least one programmable logic device corresponding to the data line is adjusted.

[0026] In some embodiments, obtaining the refresh parameter corresponding to the data line includes:

[0027] reading a state of the at least one programmable logic device;

[0028] A refresh parameter corresponding to the data line is obtained according to the state of the at least one programmable logic device.

[0029] In some embodiments, determining the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line includes:

[0030] The refresh command response interval times corresponding to the data line are determined according to the refresh parameters corresponding to the data line and the correspondence between the preset refresh parameters and the refresh command response interval times; wherein different refresh parameters correspond to different refresh command response interval times.

[0031] In some embodiments, it also includes:

[0032] The data retention time of the storage unit connected to the data line is re-detected at every preset time, and the refresh parameter corresponding to the data line is updated according to the re-detected data retention time.

[0033] In a second aspect, an embodiment of the present disclosure provides a memory refresh device, wherein the memory includes a plurality of data lines; the device includes:

[0034] An acquisition module, used for acquiring a refresh parameter corresponding to the data line; wherein the refresh parameter is determined according to the data retention time of the storage unit connected to the data line;

[0035] A determination module, used to determine the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line;

[0036] The refresh module is used to perform a refresh operation on the data line according to the refresh command response interval number corresponding to the data line.

[0037] In some embodiments, the refresh module is used to:

[0038] When the memory responds to a refresh command, determining a refresh number corresponding to the refresh command;

[0039] Determining whether the data line is a data line to be refreshed according to the number of refreshes corresponding to the refresh command and the number of refresh command response intervals corresponding to the data line;

[0040] When the data line is a data line to be refreshed, a refresh operation is performed on the data line; when the data line is not a data line to be refreshed, the switch state of the data line is kept unchanged.

[0041] In some embodiments, the device further comprises a detection module, configured to:

[0042] Detecting the data retention time of the storage unit connected to the data line;

[0043] According to the data retention time of the storage unit, a refresh parameter corresponding to the data line is determined.

[0044] In some embodiments, the detection module is used to:

[0045] Writing first data into the storage unit;

[0046] Reading the second data stored in the storage unit multiple times according to a preset interval length;

[0047] Comparing the first data with the second data read each time to determine the time when the first read error occurs in the storage unit;

[0048] The time when the first read error occurs in the storage unit is determined as the data retention time of the storage unit.

[0049] In some embodiments, the detection module is used to:

[0050] The refresh parameters corresponding to the data lines are determined according to the data retention time of the storage unit and the time intervals corresponding to the preset refresh parameters.

[0051] In some embodiments, the apparatus further comprises an adjustment module, configured to:

[0052] According to the refresh parameter corresponding to the data line, the state of at least one programmable logic device corresponding to the data line is adjusted.

[0053] In some embodiments, the acquisition module is used to:

[0054] reading a state of the at least one programmable logic device;

[0055] A refresh parameter corresponding to the data line is obtained according to the state of the at least one programmable logic device.

[0056] In some embodiments, the determining module is used to:

[0057] The refresh command response interval times corresponding to the data line are determined according to the refresh parameters corresponding to the data line and the correspondence between the preset refresh parameters and the refresh command response interval times; wherein different refresh parameters correspond to different refresh command response interval times.

[0058] In some embodiments, an update module is further included, which is used to:

[0059] The data retention time of the storage unit connected to the data line is re-detected at every preset time, and the refresh parameter corresponding to the data line is updated according to the re-detected data retention time.

[0060] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;

[0061] The memory stores computer-executable instructions;

[0062] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the memory refresh method provided in the first aspect.

[0063] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a computer executes the computer-executable instructions, the memory refresh method provided in the first aspect is implemented.

[0064] The memory refresh method and device provided by the embodiments of the present disclosure determine the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line. Each time the memory executes a refresh command, it can refresh only part of the data lines according to the refresh parameters corresponding to the data lines instead of refreshing all the data lines. Some data lines can be refreshed once every several refresh commands, thereby reducing the power consumption of the memory without losing the data stored in the memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A schematic diagram of a memory layout provided by an embodiment of the present disclosure;

[0066] Figure 2 A schematic diagram of the structure of a storage unit of a memory provided by an embodiment of the present disclosure;

[0067] Figure 3 A schematic diagram of a step flow of a memory refresh method provided in an embodiment of the present disclosure;

[0068] Figure 4 A schematic diagram of a detailed process flow of detecting the data retention time of a storage unit connected to a data line in an embodiment of the present disclosure;

[0069] Figure 5 A schematic diagram of a program module of a memory refresh device provided in an embodiment of the present disclosure;

[0070] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure. In addition, although the disclosure in the present disclosure is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.

[0072] It should be noted that the brief description of terms in the present disclosure is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of the present disclosure. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

[0073] The terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar or similar objects or entities, and are not necessarily meant to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of the present disclosure.

[0074] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0075] The term "module" used in the embodiments of the present disclosure refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or a combination of hardware and / or software code that can perform the functions associated with the element.

[0076] The disclosed embodiments relate to the field of semiconductor storage technology, and can optionally be applied to chip design of dynamic random access memory (DRAM), including controlling a refresh mode of DRAM.

[0077] It can be understood that a memory generally includes a plurality of bit lines (BL), a plurality of word lines (WL), and a plurality of memory cells, wherein each memory cell is connected to a corresponding WL and a corresponding BL.

[0078] Reference Figure 1 , Figure 1A schematic diagram of the layout of a memory provided in an embodiment of the present disclosure.

[0079] Taking a bank in DRAM as an example, multiple bit lines can be divided into 128 bit line groups, each of which has 8 bit lines. For the convenience of the following description, the bit lines in each bit line group are recorded as BL0, BL1, BL2, ..., BL7. Multiple word lines can be divided into 8192 word line groups, each of which has 8 word lines. For the convenience of the following description, the word lines in each word line group are recorded as WL0, WL1, WL2, ..., WL7.

[0080] Multiple memory cells P11~P88 ​​are distributed in a matrix, wherein the memory cells in the first column are all connected to the word line WL0, the memory cells in the second column are all connected to the word line WL1, and so on, the memory cells in the eighth column are all connected to the word line WL7; the memory cells in the first row are all connected to the bit line BL0, the memory cells in the second row are all connected to the bit line BL1, and so on, the memory cells in the eighth row are all connected to the bit line BL7, so that each memory cell is connected to one WL and one BL.

[0081] Reference Figure 2 , Figure 2 A schematic diagram of the structure of a storage unit of a memory provided in an embodiment of the present disclosure.

[0082] In some embodiments, each storage cell 10 includes a transistor 12 and a capacitor 11, the gate of the transistor 12 is connected to WL, the source of the transistor 12 is connected to BL, and the drain of the transistor 12 is connected to the capacitor 11. It should be noted that the source of the transistor 12 can also be connected to the capacitor 11, and accordingly, the drain of the transistor 12 is connected to BL.

[0083] In some embodiments, when the signal on WL turns on transistor 12, BL can write a high-level signal "1" to capacitor 11. When the signal on WL turns off transistor 12, the charge on capacitor 11 slowly leaks over time. The time from the high-level signal "1" leaking to the low-level signal "0" on capacitor 11 is the data retention time of capacitor 11. The data retention time of capacitor 11 needs to be greater than the preset time to realize the dynamic storage function of dynamic random access memory.

[0084] Since DRAM stores data in capacitors, it has a characteristic that all the data stored in it needs to be refreshed continuously within a limited time to prevent data loss. During the refresh process, DRAM first reads the original data, compares the level of capacitor 11 with the reference level, determines the 1 / 0 value of the data, and then writes the original data back. During the write-back process, capacitor 11 is fully charged (if the data is 1), which is like a charging operation.

[0085] In some embodiments, the refresh mode of the memory can be divided into an automatic refresh mode and a self-refresh mode. In the automatic refresh mode, the refresh command is periodically issued by the controller, and the memory is responsible for executing the refresh command; in the self-refresh mode, the controller is only responsible for sending commands to enter the self-refresh mode and to exit the self-refresh mode. After the memory enters the self-refresh mode, the refresh command is periodically generated by the memory itself. However, when executing each refresh command, the existing memory needs to perform at least one refresh operation on each data line, which results in a large power consumption of the memory.

[0086] Taking the self-refresh mode as an example, when the system enters a deep sleep state to save power consumption, no DRAM read and write requests will be generated. At this time, it is no longer necessary to use the controller to maintain the DRAM state, so the controller can be turned off and the external clock of the DRAM can be stopped. The self-refresh state is used to maintain the data in the DRAM to save power. There are many types of DRAM power consumption, among which IDD6 refers to the loss current during DRAM self-refresh. Each self-refresh action of DRAM is to switch each WL at least once during the self-refresh time, and the data is stored back to the capacitor through the operation of the WL switch. The above loss current is mainly generated because of the large number of WL switching operations.

[0087] In view of the above technical problems, the disclosed embodiment provides a memory refresh method, which first determines the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line. When the memory executes a refresh command each time, it can refresh only part of the data lines according to the refresh parameters corresponding to each data line, instead of refreshing all the data lines. Some data lines can be refreshed once every several refresh commands, thereby reducing the power consumption of the memory without losing the data stored in the memory, especially reducing the loss current of the memory in the self-refresh state. The detailed technical solution can refer to the following embodiments.

[0088] It should be noted that the memory refresh method provided in the embodiments of the present disclosure can be applied to both the self-refresh mode and the automatic refresh mode of the memory, and this is not limited in the embodiments of the present disclosure.

[0089] Reference Figure 3 , Figure 3 The following is a flow chart of the steps of a memory refresh method provided in an embodiment of the present disclosure. In some embodiments of the present disclosure, the memory includes a plurality of data lines, and the memory refresh method includes:

[0090] S301, obtaining a refresh parameter corresponding to a data line; wherein the refresh parameter is determined according to the data retention time of a storage unit connected to the data line.

[0091] In some embodiments, the data retention time of the above-mentioned storage unit can be interpreted as the time between the capacitor in the storage unit leaking from a high-level signal "1" to a low-level signal "0" after being charged; or, it can also be interpreted as the effective time for the storage unit to maintain the accuracy of the stored data without causing read data errors after data is written in the storage unit.

[0092] In some implementations, the refresh parameters corresponding to each data line can be determined according to the data retention time of the storage unit connected to each data line in the memory, and stored in a specific storage manner. After the memory is powered on, the pre-stored refresh parameters corresponding to each data line are obtained.

[0093] Optionally, the data line may be a word line in a memory.

[0094] S302: Determine the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line.

[0095] In the disclosed embodiment, the number of refresh command response intervals corresponding to each data line can be determined based on the refresh parameters corresponding to each data line and the correspondence between each preset refresh parameter and the number of refresh command response intervals; wherein different refresh parameters correspond to different numbers of refresh command response intervals.

[0096] In some implementations, the correspondence between the preset refresh parameter and the refresh command response interval number can be obtained. For example, when the above refresh parameter is 1 bit, the refresh command response interval number corresponding to the preset refresh parameter "0" is 0 times, and the refresh command response interval number corresponding to the refresh parameter "1" is 1 time; when the above refresh parameter is 2 bits, the refresh command response interval number corresponding to the preset refresh parameter "00" is 0 times, the refresh command response interval number corresponding to the refresh parameter "01" is 1 time, the refresh command response interval number corresponding to the refresh parameter "10" is 2 times, and the refresh command response interval number corresponding to the refresh parameter "11" is 3 times.

[0097] The refresh command response interval is 0, indicating that a refresh operation is performed for each refresh command.

[0098] In some implementations, the number of refresh command response intervals corresponding to each data line may be determined based on a correspondence between a refresh parameter and a refresh command response interval number, and a refresh parameter corresponding to each data line.

[0099] The longer the data retention time of the storage unit connected to the data line is, the greater the number of refresh command response intervals corresponding to the data line is.

[0100] S303 , performing a refresh operation on the data line according to the number of refresh command response intervals corresponding to the data line.

[0101] In the embodiment of the present disclosure, when executing a refresh command, the memory may perform a refresh operation on each data line according to the number of refresh command response intervals corresponding to each data line.

[0102] In some embodiments, when the memory responds to a refresh command, the refresh number corresponding to the refresh command is determined; based on the refresh number corresponding to the refresh command and the refresh command response interval number corresponding to each data line, it is determined whether each data line belongs to a data line to be refreshed; when a data line belongs to a data line to be refreshed, a refresh operation is performed on the data line, and when a data line does not belong to a data line to be refreshed, the switch state of the data line is kept unchanged.

[0103] Exemplarily, it is assumed that the above refresh parameter is 1 bit, and the refresh command response interval number corresponding to the refresh parameter "0" is 0 times, and the refresh command response interval number corresponding to the refresh parameter "1" is 1 time. Referring to Table 1, Table 1 is a schematic table 1 of the refresh method of multiple data lines in the embodiment of the present disclosure.

[0104] Table 1: Schematic diagram of refreshing methods for multiple data lines in the embodiment of the present disclosure Table 1

[0105]

[0106] As shown in Table 1, since the refresh parameter corresponding to the data lines WL0, WL3, and WL4 is "0", the memory refreshes the data lines WL0, WL3, and WL4 each time a refresh command is executed; and since the refresh parameter corresponding to the data lines WL1, WL2, and WL5 is "1", the memory does not refresh the data lines WL1, WL2, and WL5 when executing the 1st, 3rd, 5th, ... refresh commands, and the memory refreshes the data lines WL1, WL2, and WL5 only when executing the 2nd, 4th, ... refresh commands.

[0107] It can be understood that when the memory in Table 1 executes the 1st, 3rd, 5th, ... refresh commands, it only refreshes a part of the data lines, thereby reducing the number of WL switches when executing the refresh command, which is beneficial to reducing the power consumption of the memory during the refresh process, including reducing the current consumption of the memory in the self-refresh state.

[0108] The memory refresh method provided by the embodiment of the present disclosure determines the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line. Each time the memory executes a refresh command, it can refresh only part of the data lines according to the refresh parameters corresponding to the data lines instead of refreshing all the data lines. Some data lines can be refreshed once every several refresh commands, thereby reducing the power consumption of the memory without losing the data stored in the memory.

[0109] Based on the contents described in the above embodiments, in some embodiments of the present disclosure, before obtaining the refresh parameters corresponding to each data line, it also includes: detecting the data retention time of the storage unit connected to each data line; and determining the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line.

[0110] In some implementations, a memory build-in-self test (MBIST) program may be used to detect the data retention time of the memory cells connected to each data line.

[0111] In some embodiments, since each of the above-mentioned data lines is connected to multiple storage units, when detecting the data retention time of the storage unit connected to the data line, the data retention time of each storage unit connected to the data line can be detected, and the minimum value of the data retention time of each storage unit connected to the data line is determined as the data retention time of the storage unit connected to the data line.

[0112] In some embodiments, when detecting the data retention time of a storage unit connected to a data line, each storage unit connected to the data line may be regarded as a storage sequence, and the data retention time of the storage sequence may be determined as the data retention time of the storage unit connected to the data line.

[0113] Reference Figure 4 , Figure 4 The figure is a flowchart of detailed steps for detecting the data retention time of a storage unit connected to a data line in an embodiment of the present disclosure.

[0114] In some embodiments, the detecting the data retention time of the storage unit connected to the data line includes:

[0115] S401 . Write first data into a storage unit connected to a data line.

[0116] S402: Read the second data stored in the storage unit.

[0117] S403, comparing the second data with the first data to see if they are consistent; if so, returning to step S402 after a preset time interval, if not, executing step S404.

[0118] It can be understood that if the second data is consistent with the first data, it can be determined that no read error currently occurs in the above storage unit; if the second data is inconsistent with the first data, it can be determined that a read error occurs in the above storage unit.

[0119] S404: Determine the time when the first read error occurs in the storage unit as the data retention time of the storage unit.

[0120] In some implementations, the time interval corresponding to each refresh parameter may be preset based on parameters such as a refresh window tREFW and a time interval tREFI of the memory.

[0121] In some implementations, after the data retention time of the storage unit is determined, the refresh parameters corresponding to the data lines may be determined according to the data retention time of the storage unit and the time intervals corresponding to the pre-set refresh parameters.

[0122] The memory refresh method provided by the embodiment of the present disclosure determines the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line. Each time the memory executes a refresh command, it can refresh only part of the data lines according to the refresh parameters corresponding to each data line, instead of refreshing all the data lines. This can reduce the power consumption of the memory without losing the data stored in the memory.

[0123] Based on the contents described in the above embodiments, in some embodiments of the present disclosure, after the refresh parameters corresponding to each data line are determined, the state of at least one programmable logic device corresponding to each data line can be adjusted according to the refresh parameters corresponding to each data line.

[0124] Optionally, the above-mentioned programmable logic device can be a one-time programmable (OTP) device based on fuse technology (hereinafter referred to as fuse device); or, the above-mentioned programmable logic device can also be a one-time programmable device based on antifuse technology (hereinafter referred to as antifuse device).

[0125] Among them, the anti-fuse type device breaks down the insulating layer between the polysilicon layer and the N+ diffusion layer of the programming tube, causing the resistance value between the two layers to change (decrease), resulting in a change in the equivalent logic value, thereby realizing programming from "1" to "0". The fuse type device is based on the characteristics of electron migration, and realizes programming by blowing the fuse, causing the resistance value at both ends of the fuse to change.

[0126] Specifically, when the fuse storage units of the fuse-type device leave the factory, the status of each fuse is the same. Each fuse storage unit can be regarded as a small resistor or a wire, and the data "0" is stored at this time. When programming, according to the needs of data storage, a sufficiently large current is given to the data bits of certain specific fuse storage units to blow the fuse. After the fuse is blown, the fuse storage unit is equivalent to an open circuit or a large resistor, so that these fuse storage units store "1".

[0127] When the anti-fuse type device, which corresponds to the fuse type device, leaves the factory, the anti-fuse in each anti-fuse storage unit will show a very large resistance, so it has good electrical isolation performance and can be regarded as an open circuit. This state stores data "0". When programming, according to the data storage needs, a very high programming voltage is added to the data bit of certain specific anti-fuse storage units, so that the anti-fuse in the anti-fuse storage unit is broken down. After the breakdown, the anti-fuse storage unit shows a very small resistance. These anti-fuse storage units after the breakdown store data "1".

[0128] In some implementations, after being powered on, the memory reads the state of the at least one programmable logic device; and obtains the refresh parameters corresponding to the data lines according to the state of the at least one programmable logic device.

[0129] Among them, the states of the programmable logic device include "0" and "1".

[0130] In some embodiments, the above-mentioned memory may include a refresh circuit, a refresh count counter, and programmable logic devices corresponding to each data line. When executing a refresh command, the refresh circuit reads the state of the programmable logic device corresponding to each data line, and determines the data lines that need to be refreshed and the data lines that do not need to be refreshed based on the state of the programmable logic device corresponding to each data line and the counting result of the refresh count counter.

[0131] In some embodiments, each data line may correspond to one or more programmable logic devices, and the number of programmable logic devices may be selected according to the number of types of refresh parameters. For example, when there are two refresh parameters, each data line may correspond to one programmable logic device; when there are three or four refresh parameters, each data line may correspond to two programmable logic devices; when there are five to eight refresh parameters, each data line may correspond to three programmable logic devices; and so on.

[0132] For example, assuming that there are four refresh parameters, the refresh parameter "00" corresponds to a refresh command response interval of 0 times, the refresh parameter "01" corresponds to a refresh command response interval of 1 time, the refresh parameter "10" corresponds to a refresh command response interval of 2 times; and the refresh parameter "11" corresponds to a refresh command response interval of 3 times. Referring to Table 2, Table 2 is a schematic table 2 of the refresh method of multiple data lines in the embodiment of the present disclosure.

[0133] Table 2: Schematic diagram of refreshing methods for multiple data lines in the embodiment of the present disclosure Table 2

[0134]

[0135] As shown in Table 2, the Fuse state corresponding to the data line WL0 is "00", so the memory performs a refresh operation on the data line WL0 each time a refresh command is executed; the Fuse state corresponding to the data lines WL1 and WL2 is "01", so the memory does not perform a refresh operation on the data lines WL1 and WL2 when executing the 1st, 3rd, 5th, ... refresh commands, and the memory refreshes the data lines WL1 and WL2 only when executing the 2nd, 4th, ..., nth (n is a multiple of 2)th refresh commands; the Fuse state corresponding to the data line WL3 is "10", so Therefore, the memory does not refresh the data line WL3 when executing the 1st, 2nd, 4th, 5th, 7th... refresh commands, and the memory refreshes the data line WL3 only when executing the 3rd, 6th, ..., m (m is a multiple of 3) refresh commands; the Fuse state corresponding to the data line WL4 is "11", therefore, the memory does not refresh the data line WL4 when executing the 1st, 2nd, 3rd, 5th, 6th, 7th... refresh commands, and the memory refreshes the data line WL4 only when executing the 4th, 8th, ..., p (p is a multiple of 4) refresh commands.

[0136] In some implementations, multiple data lines may correspond to one or more programmable logic devices.

[0137] For example, every two data lines may correspond to the same programmable logic device.

[0138] Exemplarily, assuming that there are two refresh parameters, the refresh parameter "0" corresponds to a refresh command response interval of 0 times, and the refresh parameter "1" corresponds to a refresh command response interval of 1 time. Referring to Table 3, Table 3 is a schematic table 3 of the refresh method of multiple data lines in the embodiment of the present disclosure.

[0139] Table 3: Schematic diagram of the refresh method of multiple data lines in the embodiment of the present disclosure

[0140]

[0141] In the above embodiment, a plurality of data lines correspond to one or more programmable logic devices, which can reduce the number of programmable logic devices in the memory and reduce the cost of the memory.

[0142] In some embodiments, after the refresh parameters corresponding to the respective data lines are determined, the refresh parameters corresponding to the respective data lines may be stored in at least one register through programming.

[0143] Taking DRAM as an example, each mode register inside the DRAM usually includes 8 bits. Assuming that there are 4 different refresh parameters for the data lines, each mode register can store at least the refresh parameters corresponding to 4 data lines.

[0144] Based on the contents described in the above embodiments, in some embodiments of the present disclosure, the data retention time of the storage unit connected to the above data line can be redetected at preset time intervals, and the refresh parameters corresponding to the above data line can be updated according to the redetected data retention time.

[0145] It is understandable that as the memory usage time increases, the reliability of the memory also decreases. Therefore, the data retention time of the storage unit connected to the data line can be re-detected at preset time intervals, and the refresh parameters corresponding to the above data lines can be updated based on the latest detected data retention time to reduce the power consumption of the memory without losing the data stored in the memory.

[0146] Based on the contents described in the above embodiments, a memory refresh device is also provided in the embodiments of the present disclosure. Figure 5 , Figure 5 Schematic diagram of a program module of a memory refresh device provided in an embodiment of the present disclosure, the memory refresh device 50 includes:

[0147] The acquisition module 501 is used to acquire the refresh parameters corresponding to the data line; wherein the refresh parameters are determined according to the data retention time of the storage unit connected to the data line.

[0148] The determination module 502 is used to determine the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line.

[0149] The refresh module 503 is used to perform a refresh operation on the data line according to the refresh command response interval number corresponding to the data line.

[0150] The memory refresh device provided by the embodiment of the present disclosure determines the refresh parameters corresponding to each data line according to the data retention time of the storage unit connected to each data line. Each time the memory executes a refresh command, it can refresh only part of the data lines according to the refresh parameters corresponding to the data lines instead of refreshing all the data lines. Some data lines can be refreshed once every several refresh commands, thereby reducing the power consumption of the memory without losing the data stored in the memory.

[0151] In some embodiments, the refresh module 503 is used to:

[0152] When the memory responds to a refresh command, determining a refresh number corresponding to the refresh command;

[0153] Determining whether the data line is a data line to be refreshed according to the number of refreshes corresponding to the refresh command and the number of refresh command response intervals corresponding to the data line;

[0154] When the data line is a data line to be refreshed, a refresh operation is performed on the data line; when the data line is not a data line to be refreshed, the switch state of the data line is kept unchanged.

[0155] In some embodiments, the above device further includes a detection module, which is used to:

[0156] Detecting the data retention time of the storage unit connected to the data line;

[0157] According to the data retention time of the storage unit, a refresh parameter corresponding to the data line is determined.

[0158] In some embodiments, the detection module is used to:

[0159] Writing first data into the storage unit;

[0160] Reading the second data stored in the storage unit multiple times according to a preset interval length;

[0161] Comparing the first data with the second data read each time to determine the time when the first read error occurs in the storage unit;

[0162] The time when the first read error occurs in the storage unit is determined as the data retention time of the storage unit.

[0163] In some embodiments, the detection module is used to:

[0164] The refresh parameters corresponding to the data lines are determined according to the data retention time of the storage unit and the time intervals corresponding to the preset refresh parameters.

[0165] In some embodiments, the above device further includes an adjustment module, which is used to:

[0166] According to the refresh parameter corresponding to the data line, the state of at least one programmable logic device corresponding to the data line is adjusted.

[0167] In some embodiments, the acquisition module 501 is used to:

[0168] reading a state of the at least one programmable logic device;

[0169] A refresh parameter corresponding to the data line is obtained according to the state of the at least one programmable logic device.

[0170] In some embodiments, the determination module 502 is used to:

[0171] The refresh command response interval times corresponding to the data line are determined according to the refresh parameters corresponding to the data line and the correspondence between the preset refresh parameters and the refresh command response interval times; wherein different refresh parameters correspond to different refresh command response interval times.

[0172] In some embodiments, the above apparatus further includes an updating module, configured to:

[0173] The data retention time of the storage unit connected to the data line is re-detected at every preset time, and the refresh parameter corresponding to the data line is updated according to the re-detected data retention time.

[0174] It should be noted that the specific contents of the acquisition module 501, the determination module 502 and the refresh module 503 in the embodiment of the present disclosure can be referred to in Figures 1 to 4 The relevant contents in the illustrated embodiment will not be described in detail here.

[0175] Furthermore, based on the contents described in the above embodiments, an electronic device is also provided in the embodiments of the present disclosure, which includes at least one processor and a memory; wherein the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory to implement the various steps in the memory refresh method described in the above embodiments, which will not be repeated in this embodiment.

[0176] In order to better understand the embodiments of the present disclosure, refer to Figure 6 , Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure.

[0177] like Figure 5 As shown, the electronic device 60 of this embodiment includes: a processor 601 and a memory 602; wherein:

[0178] Memory 602, used to store computer-executable instructions;

[0179] The processor 601 is used to execute the computer-executable instructions stored in the memory to implement the various steps in the memory refresh method described in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0180] In some implementations, the memory 602 may be independent or integrated with the processor 601 .

[0181] When the memory 602 is independently provided, the device further includes a bus 603 for connecting the memory 602 and the processor 601 .

[0182] Furthermore, based on the contents described in the above embodiments, a computer-readable storage medium is also provided in the embodiments of the present disclosure, in which computer execution instructions are stored. When the processor executes the computer execution instructions, the various steps in the memory refresh method described in the above embodiments are implemented, and this embodiment will not be repeated here.

[0183] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0184] The modules described above as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional module in each embodiment of the present disclosure may be integrated into one processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above module integration unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0186] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure 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 by 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 disclosure.

Claims

1. A memory refresh method, characterized in that: The memory includes a plurality of data lines; the method includes: Acquire a refresh parameter corresponding to the data line; wherein the refresh parameter is determined according to the data retention time of the storage unit connected to the data line; Determining the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line; A refresh operation is performed on the data line according to the number of refresh command response intervals corresponding to the data line.

2. The method according to claim 1, characterized in that The refreshing operation on the data line according to the number of refresh command response intervals corresponding to the data line includes: When the memory responds to a refresh command, determining a refresh number corresponding to the refresh command; Determining whether the data line is a data line to be refreshed according to the number of refreshes corresponding to the refresh command and the number of refresh command response intervals corresponding to the data line; When the data line is a data line to be refreshed, a refresh operation is performed on the data line; when the data line is not a data line to be refreshed, the switch state of the data line is kept unchanged.

3. The method according to claim 1, characterized in that: Before obtaining the refresh parameters corresponding to the data line, the method further includes: Detecting the data retention time of the storage unit connected to the data line; According to the data retention time of the storage unit, a refresh parameter corresponding to the data line is determined.

4. The method according to claim 3, characterized in that The detecting the data retention time of the storage unit connected to the data line comprises: Writing first data into the storage unit; Reading the second data stored in the storage unit multiple times according to a preset interval length; Comparing the first data with the second data read each time to determine the time when the first read error occurs in the storage unit; The time when the first read error occurs in the storage unit is determined as the data retention time of the storage unit.

5. The method according to claim 3 or 4, characterized in that: The step of determining the refresh parameter corresponding to the data line according to the data retention time of the storage unit includes: The refresh parameters corresponding to the data lines are determined according to the data retention time of the storage unit and the time intervals corresponding to the preset refresh parameters.

6. The method according to claim 5, characterized in that After the refresh parameter corresponding to the data line is determined, the method further includes: According to the refresh parameter corresponding to the data line, the state of at least one programmable logic device corresponding to the data line is adjusted.

7. The method according to claim 6, characterized in that The obtaining of the refresh parameter corresponding to the data line includes: reading a state of the at least one programmable logic device; A refresh parameter corresponding to the data line is obtained according to the state of the at least one programmable logic device.

8. The method according to claim 1, characterized in that The step of determining the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line includes: The refresh command response interval times corresponding to the data line are determined according to the refresh parameters corresponding to the data line and the correspondence between the preset refresh parameters and the refresh command response interval times; wherein different refresh parameters correspond to different refresh command response interval times.

9. The method according to claim 1, characterized in that: Also includes: The data retention time of the storage unit connected to the data line is re-detected at every preset time, and the refresh parameter corresponding to the data line is updated according to the re-detected data retention time.

10. A memory refresh device, characterized in that: The memory includes a plurality of data lines; the device includes: An acquisition module, used for acquiring a refresh parameter corresponding to the data line; wherein the refresh parameter is determined according to the data retention time of the storage unit connected to the data line; A determination module, used to determine the number of refresh command response intervals corresponding to the data line according to the refresh parameters corresponding to the data line; The refresh module is used to perform a refresh operation on the data line according to the refresh command response interval number corresponding to the data line.

11. The device according to claim 10, characterized in that The refresh module is used for: When the memory responds to a refresh command, determining a refresh number corresponding to the refresh command; Determining whether the data line is a data line to be refreshed according to the number of refreshes corresponding to the refresh command and the number of refresh command response intervals corresponding to the data line; When the data line is a data line to be refreshed, a refresh operation is performed on the data line; when the data line is not a data line to be refreshed, the switch state of the data line is kept unchanged.

12. The device according to claim 10, characterized in that The device also includes a detection module, which is used to: Detecting the data retention time of the storage unit connected to the data line; According to the data retention time of the storage unit, a refresh parameter corresponding to the data line is determined.

13. The device according to claim 12, characterized in that The detection module is used for: Writing first data into the storage unit; Reading the second data stored in the storage unit multiple times according to a preset interval length; Comparing the first data with the second data read each time to determine the time when the first read error occurs in the storage unit; The time when the first read error occurs in the storage unit is determined as the data retention time of the storage unit.

14. The device according to claim 12 or 13, characterized in that The detection module is used for: The refresh parameters corresponding to the data lines are determined according to the data retention time of the storage unit and the time intervals corresponding to the preset refresh parameters.

15. The device according to claim 14, characterized in that The device also includes an adjustment module, which is used to: According to the refresh parameter corresponding to the data line, the state of at least one programmable logic device corresponding to the data line is adjusted.

16. The device according to claim 15, characterized in that The acquisition module is used for: reading a state of the at least one programmable logic device; A refresh parameter corresponding to the data line is obtained according to the state of the at least one programmable logic device.

17. The device according to claim 10, characterized in that The determination module is used for: The refresh command response interval times corresponding to the data line are determined according to the refresh parameters corresponding to the data line and the correspondence between the preset refresh parameters and the refresh command response interval times; wherein different refresh parameters correspond to different refresh command response interval times.

18. The device according to claim 10, characterized in that Also includes update modules for: The data retention time of the storage unit connected to the data line is re-detected at every preset time, and the refresh parameter corresponding to the data line is updated according to the re-detected data retention time.

19. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the memory refresh method according to any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a computer executes the computer-executable instructions, the memory refresh method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Semiconductor storing device, semiconductor device, storing system and renovating control method

    CN101211653A

  • Memory circuits, systems, and modules for performing DRAM refresh operations and methods of operating the same

    CN102456394A

  • Methods and systems for smart refresh of dynamic random access memory

    CN105229743A

  • Memroy device and operating method thereof

    CN108231108A

  • Self-refresh cycle test method and device

    CN114333972A