# Patent

## Title
Memory system and method using partial ECC to achieve low power refresh and fast access to data

## Abstract

A DRAM memory device includes several banks of memory cells each of which are divided into first and second sets of memory cells. The memory cells in the first set can be refreshed at a relatively slow rate to reduce the power consumed by the DRAM device. Error checking and correcting circuitry in the DRAM device corrects any data retention errors in the first set of memory cells caused by the relatively slow refresh rate. The memory cells in the second set are refreshed at a normal rate, which is fast enough that data retention errors do not occur. A mode register in the DRAM device may be programmed to select the size of the second set of memory cells.

## Background
CROSS-REFERENCE TO RELATED APPLICATION
This application is a divisional of U.S. patent application Ser. No. 11/546,692, filed Oct. 11, 2006. This application is incorporated by reference herein in its entirety and for all purposes.


TECHNICAL FIELD
This invention relates to dynamic random access memory (“DRAM”) devices, and, more particularly, to a method and system for operating a memory system in a low power mode while allowing frequently accessed data to be quickly accessed.
BACKGROUND OF THE INVENTION
As the use of electronic devices, such as personal computers, continues to increase, it is becoming ever more important to make such devices portable. The usefulness of portable electronic devices, such as notebook computers, is limited by the limited length of time batteries are capable of powering the device before needing to be recharged. This problem has been addressed by attempts to increase battery life and attempts to reduce the rate at which such electronic devices consume power.
Various techniques have been used to reduce power consumption in electronic devices, the nature of which often depends upon the type of power consuming electronic circuits that are in the device. For example, electronic devices such a notebook computer, typically include dynamic random access memory (“DRAM”) devices that consume a substantial amount of power. As the data storage capacity and operating speeds of DRAM devices continue to increase, the power consumed by such devices has continued to increase in a corresponding manner. Therefore, many attempts to reduce the power consumed by an electronic device have focused on reducing the power consumption of DRAM devices.
In general, the power consumed by a DRAM device increases with both the capacity and the operating speed of the DRAM devices. The power consumed by DRAM devices is also affected by their operating mode. A DRAM device for example, will generally consume a relatively large amount of power when the memory cells of the DRAM device are being refreshed. As is well-known in the art, DRAM memory cells, each of which essentially consists of a capacitor, must be periodically refreshed to retain data stored in the DRAM device. Refresh is typically performed by essentially reading data bits from the memory cells in each row of a memory cell array and then writing those same data bits back to the same cells in the row. A relatively large amount of power is consumed when refreshing a DRAM because rows of memory cells in a memory cell array are being actuated in the rapid sequence. Each time a row of memory cells is actuated, a pair of digit lines for each memory cell are switched to complementary voltages and then equilibrated. As a result, DRAM refreshes tend to be particularly power-hungry operations. Further, since refreshing memory cells must be accomplished even when the DRAM is not being used and is thus inactive, the amount of power consumed by refresh is a critical determinant of the amount of power consumed by the DRAM over an extended period. Thus many attempts to reduce power consumption in DRAM devices have focused on reducing the rate at which power is consumed during refresh.
Refresh power can, of course, be reduced by reducing the rate at which the memory cells in a DRAM are being refreshed. However, reducing the refresh rate increases the risk that data stored in the DRAM memory cells will be lost. More specifically, since, as mentioned above, DRAM memory cells are essentially capacitors, charge inherently leaks from the memory cell capacitors, which can change the value of a data bit stored in the memory cell over time. However, current leaks from capacitors at varying rates. Some capacitors are essentially short-circuited and are thus incapable of storing charge indicative of a data bit. These defective memory cells can be detected during production testing, and can then be repaired by substituting non-defective memory cells using conventional redundancy circuitry. On the other hand, current leaks from most DRAM memory cells at much slower rates that span a wide range. A DRAM refresh rate is chosen to ensure that all but a few memory cells can store data bits without data loss. This refresh rate is typically once every 64 ms. The memory cells that cannot reliably retain data bits at this refresh rate are detected during production testing and replaced by redundant memory cells.
One technique that has been used to prevent data errors during refresh as well as at other times is to generate an error correcting code “ECC,” which is known as a “syndrome,” from each item of stored data, and then store the syndrome along with the data. When the data are read from the memory device, the syndrome is also read, and it is then used to determine if any bits of the data are in error. As long as not too many data bits are in error, the syndrome may also be used to correct the read data. Some DRAM devices include a mode register that may be set to selectively operate the DRAM device in either a normal mode or an ECC mode.
The use of ECC techniques can allow DRAM devices to be refreshed at a slower refresh rate since resulting data bit errors can be corrected. The use of a slower refresh rate can provide the significant advantage of reducing the power consumed by DRAM devices. Prior to entering a reduced power refresh mode, each item of data is read. A syndrome corresponding to the read data is then generated and stored in the DRAM device. When exiting the reduced power refresh mode, the each item of data and each corresponding syndrome are read from the DRAM device. The read syndrome is then used to determine if the item of read data is in error. If the item of read data is found to be in error, the read syndrome is used to correct the read item of data, and the incorrect item of data is then overwritten with the corrected item of data.
The use of the above-described ECC techniques to allow refresh at a relatively low rate can markedly reduce the power consumed by DRAM device in many applications, particularly where the DRAM device is not being accessed for an extended period. However, if the DRAM device is being frequently accessed, the power consumed in reading syndromes and data, using the read syndromes to check and possibly correct the read data, and writing any corrected data to the DRAM device can exceed the power saved by using ECC techniques to refresh at a reduced rate. Moreover, it can require a considerable period of time to exit the reduced power refresh mode when using ECC techniques as described above, thus preventing data stored in the DRAM device from being quickly accessed. As a result, there are many applications where a reduced power refresh mode using ECC techniques are not practical.
For example, one application in which reduced power consumption is very important, but access to a DRAM device is frequent, is in the field of cellular telephones. DRAM devices are frequently used in cellular telephones to store a variety of data, such as paging protocols, text messages, image data, etc. When the cellular telephone is powered but a telephone call is not currently active, the cellular telephone is essentially inactive. During such periods of inactivity, almost all of the data stored in the DRAM device is not being accessed. However, a small portion of the data stored in the DRAM device must be accessed any time power is applied to the cellular telephone. For example, data corresponding to a paging protocol must be accessed to determine if a call is being made to the cellular telephone. The protocol data is accessed during each paging period which occurs on a periodic basis, such as once every one-half second. During the paging period, the cellular telephone uses the protocol data to transmit a probe, which is received by one or more cellular sites that are in range of the cellular telephone. A cellular site then transmits a message back to the cellular telephone if an incoming call to the cellular telephone is being made.
The need for at least some data stored in DRAM devices to be frequently and immediately available makes it impractical to use the previously described ECC techniques to reduce power in an extended refresh mode. The use of such techniques would require the DRAM device to enter and exit the reduced power refresh mode every paging period, which, as mentioned above, is on the order of once every one-half second. As a result, the read data stored in the DRAM device might not be accessible when the data were needed, particularly if the DRAM device contains a large number of memory cells. Even if the DRAM device could enter and exit the reduced power refresh mode at a sufficient rate, the time required to enter and exit the reduced power refresh mode might very well reduce the duration of the reduced power refresh period to the extent that very little power was saved. As a result, DRAM devices used in cellular telephones generally are operated with faster refresh rates than otherwise needed as a result of the need for the entire device to become active so that the protocol data can be accessed every paging period. However, doing so causes the cellular telephones to consume substantial power, thereby reducing the useful life of batteries powering cellular telephones before a recharge is needed.
There is therefore a need for a memory system and method that is effective in allowing a DRAM device to operate in a reduced power refresh mode using ECC techniques, but does so in a manner that does not delay access to data stored in the DRAM or minimize the benefits of operating in the reduced power refresh mode.
SUMMARY OF THE INVENTION
An error checking and correcting semiconductor device and method performs a reduced power refresh using ECC techniques only for memory cells that store infrequently accessed data. The memory cells that store this infrequently accessed data may be refreshed at a relatively low rate, thereby substantially reducing the power consumed by the semiconductor device. Memory cells that store frequently accessed data may be refreshed at a normal rate that does not require ECC techniques to ensure data integrity. As a result, this frequently accessed data is immediately available without the need to enter and exit the reduced power refresh mode. In the event most of the data stored in the semiconductor device are accessed infrequently, the power saved can approach the power savings that are achieved by placing the entire semiconductor device in the reduced power refresh mode. When used in a cellular telephone, most of the memory cells in the semiconductor device are refreshed in the reduced power refresh mode since the data stored therein are only accessed when a call is received. Data corresponding to the paging protocol, which must be accessed each paging period, are stored in memory cells that are refreshed at the normal rate. As a result, the protocol data is immediately available, and power is not consumed every paging period by entering and exiting the reduced power refresh mode for such data.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a computer system according to one embodiment of the invention.
FIG. 2 is a block diagram of a memory device according to one embodiment of the invention that may be used in the computer system of FIG. 1.
FIG. 3 is a memory map showing the logical ordering of address space in the memory device of FIG. 2.
FIG. 4 is a block diagram of a cellular telephone that uses the memory device of FIG. 2.



DETAILED DESCRIPTION
A computer system 100 according to one embodiment of the invention is shown in FIG. 1. The computer system 100 includes a central processor unit (“CPU”) 14 coupled to a system controller 16 through a processor bus 18. The system controller 16 is coupled to input/output (“I/O”) devices (not shown) through a peripheral bus 20 and to an I/O controller 24 through an expansion bus 26. The I/O controller 24 is also connected to various peripheral devices (not shown) through another I/O bus 28.
The system controller 16 includes a memory controller 30 that is coupled to a dynamic random access memory (“DRAM”) device 102 through an address bus 36, a control bus 38, and a data bus 42. The locations in the DRAM device 102 to which data are written and data are read are designated by addresses coupled to the DRAM device 102 on the address bus 36. The operation of the DRAM device 102 is controlled by control signals coupled to the DRAM device 102 on the control bus 38.
In other embodiments of the invention, the memory controller 30 may be coupled to several DRAM devices or to one or more memory modules (not shown) through the address bus 36, the control bus 38, and the data bus 42. Each of the memory modules would normally contain several of the DRAM devices 102.
With further reference to FIG. 1, the DRAM device 102 includes a mode register 44, a syndrome memory 120, a DRAM array 34, and ECC logic 110. The ECC logic 110 generates a syndrome from write data received from the memory controller 30, and stores the syndrome in the syndrome memory 120 while the write data are being stored in the DRAM array 34. When data are read from the DRAM device 102, the read data are coupled from DRAM array 34 to the ECC logic 110, and the syndrome is coupled from the syndrome memory 120 to the ECC logic 110. The ECC logic 110 then uses the syndrome to determine if the read data contains an erroneous data bit, and, if more than one data bit is not in error, to correct the erroneous data bit. The corrected read data are then coupled to the memory controller 30 through the data bus 42. Although the syndrome memory 120 may be a separate memory array in the DRAM device 102 as shown in FIG. 1, it may alternatively be included in the same array of DRAM cells that are used to store data, as explained in greater detail below. As explained above, the use of ECC allows the refresh rate of the memory cells in the DRAM array 34 to be reduced to a rate at which some data retention errors can occur since such errors can be corrected using the syndromes stored in the syndrome memory 120 and the ECC logic 110.
As explained in greater detail below, the mode register 44 in the DRAM device 102 includes one or more bits that can be set to partition a region 124 of the DRAM array 34 of various sizes for exclusion from operation in the low power, reduced refresh rate mode using ECC techniques. The partitioned memory region 124 is refreshed at the normal refresh rate that is selected to ensure that data retention errors do not occur. As a result, the data read from the DRAM array 34 in the partitioned region 124 is immediately available to the CPU 14 through the memory controller 30 without the need to first read a corresponding ECC syndrome and then use the syndrome to check and possibly correct data read from the DRAM array 34. The area of the DRAM array 34 not in the partitioned memory region 124 can be refreshed at a reduced rate using ECC techniques to correct any data errors resulting from the reduced refresh rate. In the event the partitioned memory region 124 is a relatively small portion of the DRAM array 34, the reduction in power consumption resulting from refreshing the remainder of the DRAM array 34 at the reduced rate can approach the power savings resulting from operating the entire DRAM array 34 at the reduced refresh rate using ECC techniques.
Although the memory system 100 shown in FIG. 1 uses the mode register 44 in the DRAM device 102 to select whether the DRAM array 34 will be partitioned as described above, and, if so, the size of the partitioned region 124, it should be understood that other means may be used. For example, data could be written to the DRAM array 34 itself that specifies whether the DRAM array 34 should be partitioned, and, if so, the size of the partitioned region 124. Other techniques may also be used.
In operation, prior to the DRAM device 102 entering a low power refresh mode, the DRAM device performs a read and syndrome generating operation for all regions of the DRAM array 34 that is not in the partitioned region 124. More specifically, the mode register 44 is first accessed to determine if a region of the DRAM array 34 is to be partitioned, and, if so the size of the partitioned region 124. The ECC logic 110 is then enabled by suitable means, such as by coupling a command signal to the DRAM device 102 through the memory controller 30 and control bus 38 that enables a control register in the DRAM device 102. However, the CPU 14 may enable the ECC logic 110 by other means, such as by coupling control signals directly to the ECC logic 110, by coupling an unsupported command to the DRAM device 102, use of a specific sequence of operations, or by other means. In any case, once the ECC logic 110 has been enabled, the CPU 14 performs a read operation to the regions of the memory array 34 that are outside of the partitioned region 124. The read operation is preferably performed in a burst read mode to minimize the time required for the read operation. During the read operation, the DRAM device 102 generates syndromes from the read data, and stores the syndromes in the syndrome memory 120. The DRAM device 102 then enters a low power refresh mode in which the memory cells in the array 34 outside of the partitioned region 124 are refreshed at a rate that is sufficiently low that data retention errors may occur. This rate is preferably at least twice as slow as the rate at which memory cells in the partitioned region 124 of the array 34 are refreshed. The memory cells in the partitioned region 124 of the array 34 are refreshed at a normal rate that is generally sufficient for no data retention errors to occur. In one embodiment of the invention, the CPU 14 leaves the ECC logic 110 enabled during the low power refresh mode to correct any data retention errors as they occur. In another embodiment of the invention, the CPU 14 disables the ECC logic 110 after all of the syndromes have been stored and before entering the low power refresh mode. In this embodiment, the CPU 14 corrects any data retention errors that have occurred when exiting the low power refresh mode.
When exiting the low power refresh mode, the DRAM device 102 performs a read and correct operation for all regions of the DRAM array 34 that are not in the partitioned region 124. More specifically, the CPU 14 enables the ECC logic 110 if it was not enabled during the refresh mode. The CPU 14 then reads data from the memory array 34 outside of the partitioned region 124, again preferably using a burst read mode. During these read operations, the ECC logic 110 receives the read data from the memory array 34 and the corresponding syndromes from the syndrome memory 120. The ECC logic 110 then uses the syndromes to check the read data and to correct any errors that are found. The ECC logic 110 then writes the corrected data to the memory array 34. Once the regions of the memory array 34 outside of the partitioned region 124 have been read, the refresh rate for that region is increased to the normal refresh rate that has been used for the partitioned region 124. The CPU 14 can disable the ECC logic 110.
In other embodiments of the invention, the CPU 14 initiates a read operation prior to entering the low power refresh mode, but the actual reading of data from the protected areas is accomplished by sequencer logic (not shown) in the DRAM device 102 or in a memory module containing DRAMdevice 102. The operation of the sequencer logic could be initiated by commands from the CPU 14 other than a read command, such as by issuing commands for a “dummy” operation, i.e., an operation that is not actually implemented by the DRAM device 34.
In still another embodiment of the invention, the data stored in memory array 34 outside of the partitioned region 124 are not checked and corrected when exiting the low power refresh mode. Instead, the ECC mode remains active during normal operation, and the data stored in the memory array 34 outside of the partitioned region 124 are checked using the stored syndromes whenever that data are read during normal operation. This embodiment requires that the syndrome memory 120 remain powered during normal operation, at least until all of the data stored in the memory array 34 outside of the partitioned region 124 have been read. Other techniques may also be used.
A synchronous DRAM (“SDRAM”) 200 according to one embodiment of the invention is shown in FIG. 2. The SDRAM 200 includes an address register 212 that receives bank addresses, row addresses and column addresses on an address bus 214. The address bus 214 is generally coupled to a memory controller like the memory controller 30 shown in FIG. 1. Typically, a bank address is received by the address register 212 and is coupled to bank control logic 216 that generates bank control signals, which are described further below. The bank address is normally coupled to the SDRAM 200 along with a row address. The row address is received by the address register 212 and applied to a row address multiplexer 218. The row address multiplexer 218 couples the row address to row address latch & decoder circuit 220a-d for each of several banks of memory cell arrays 222a-d, respectively.
One of the latch & decoder circuits 220a-d is enabled by a control signal from the bank control logic 216 depending on which bank of memory cell arrays 222a-d is selected by the bank address. The selected latch & decoder circuit 220 applies various signals to its respective bank 222 as a function of the row address stored in the latch & decoder circuit 220. These signals include word line voltages that activate respective rows of memory cells in the banks 222a-d. 
The row address multiplexer 218 also couples row addresses to the row address latch & decoder circuits 220a-d for the purpose of refreshing the memory cells in the banks 222a-d. The row addresses are generated for refresh purposes by a pair of refresh counters 230, 232. During operation in the low power, reduced refresh rate mode described above, the refresh counter 230 periodically increments to output row addresses for rows in the banks 222a-d outside of a partitioned region of one or more of the banks 222a-d. The refresh counter 230 causes the memory cells in the banks 222a-d outside of a partitioned region to be refreshed at a rate that is sufficiently low that data errors are likely to occur. The refresh of the memory cells in the banks 222a-d outside of the partitioned region may be performed at intervals as long as 1 to 3 seconds depending on the design and fabrication of the SDRAM 200. Refreshing the memory cells at this low rate causes relatively little power to be consumed during self-refresh. The refresh counter 232 periodically increments to output row addresses for rows in the partitioned region in one or more of the banks 222a-d at a normal refresh rate that generally does not result in data retention errors. The refresh of the memory cells in the partitioned region is typically performed every 64 ms.
After the bank and row addresses have been applied to the address register 212, a column address is applied to the address register 212. The address register 212 couples the column address to a column address counter/latch circuit 234. The counter/latch circuit 234 stores the column address, and, when operating in a burst mode, generates column addresses that increment from the received column address. In either case, either the stored column address or incrementally increasing column addresses are coupled to column address & decoders 238a-d for the respective banks 222a-d. The column address & decoders 238a-d apply various signals to respective sense amplifiers 240a-d through column interface circuitry 244. The column interface circuitry 244 includes conventional I/O gating circuits, DQM mask logic, read data latches for storing read data from the memory cells in the banks 222a-d and write drivers for coupling write data to the memory cells in the banks 222a-d. 
The column interface circuitry 244 also includes an ECC generator/checker 246 that essentially performs the same function as the ECC logic 110 in the DRAM 102 of FIG. 1. The ECC generator/checker 246 may be implemented by conventional means, such as by chains of exclusive OR gates implementing a Hamming code. Syndromes corresponding to the data stored in the memory cells in the banks 222a-d outside of the partitioned region may be stored in one or more of the banks 222a-d. When data are read from the memory cells of the banks 222a-d outside of the partitioned region, the corresponding syndrome is also read and then coupled to the ECC generator/checker 246. Data read from one of the banks 222a-d outside the partitioned region are sensed by the respective set of sense amplifiers 240a-d and then checked and, if necessary, corrected, by the ECC generator/checker 246. The data are then coupled to a data output register 248, which applies the read data to a data bus 250. Data read from one of the banks 222a-d in the partitioned region are sensed by the respective set of sense amplifiers 240a-d and then coupled to the data bus 250 through the data output register 248 without being processed by the ECC generator/checker 246.
Data to be written to the memory cells in one of the banks 222a-d outside of the partitioned region are coupled from the data bus 250 through a data input register 252 to the ECC generator/checker 246, which generates a corresponding syndrome. The write data and the corresponding syndrome are then coupled to write drivers in the column interface circuitry 244, which couple the data and syndrome to the memory cells in one of the banks 222a-d. Data to be written to the memory cells in the partitioned region of one or more of the banks 222a-d are coupled from the data bus 250 through a data input register 252 directly to the write drivers in the column interface circuitry 244 without interfacing with the ECC generator/checker 246. A data mask signal “DQM” may be applied to the column interface circuitry 244 and the data output register 248 to selectively alter the flow of data into and out of the column interface circuitry 244, such as by selectively masking data to be read from the banks of memory cell arrays 222a-d. 
The above-described operation of the SDRAM 200 is controlled by control logic 256, which includes a command decoder 258 that receives command signals through a command bus 260. These high level command signals, which are typically generated by a memory controller such as the memory controller 30 of FIG. 1, are a clock a chip select signal CS#, a write enable signal WE#, a column address strobe signal CAS#, and a row address strobe signal RAS#, with the “#” designating the signal as active low. Various combinations of these signals are registered as respective commands, such as a read command or a write command. The control logic 256 also receives a clock signal CLK and a clock enable signal CKE, which allow the SDRAM 200 to operate in a synchronous manner. The control logic 256 generates a sequence of control signals responsive to the command signals to carry out the function (e.g., a read or a write) designated by each of the command signals. The control logic 256 also applies signals to the refresh counter 230 to control the operation of the refresh counter 230 during refresh of the memory cells in the banks 222. The control signals generated by the control logic 256, and the manner in which they accomplish their respective functions, are conventional. Therefore, in the interest of brevity, a further explanation of these control signals will be omitted.
The control logic 256 also includes a mode register 264 that may be programmed by signals coupled through the command bus 260 during initialization of the SDRAM 200. The mode register 264 then generates mode control signals that are used by the control logic 256 to control the operation of the SDRAM 200 in various modes. One or more bits of the mode register 264 are refresh mode bits that, when set, causes the SDRAM 200 to partition the banks 222a-d for operation in a normal refresh mode as described above while the remainder of the banks 222a-d operate in a low power, reduced refresh rate mode using ECC techniques.
Finally, the control logic 256 also includes an ECC controller 270 that causes the control logic 256 to issue control signals to the ECC generator/checker 246 and other components to generate syndromes for storage in the banks 222a-d, and to check and correct data read from the banks 222a-d outside the partitioned region using the stored syndromes. The ECC controller 270 is enabled by signals from the mode register 264 to control the operation of the SDRAM 200 in the low power, reduced refresh rate mode. If a single bit in the mode register 264 is used, the mode register simply enables or disables the use of a fixed partition for refresh at the normal rate and the remainder of the banks 222a-d for refresh at the reduced rate using ECC techniques. If multiple bits of the mode register 264 are used, one bit enables or disables the low power, reduced refresh mode, and the remaining bits are used to specify the size of the partitioned region of the banks 222a-d that will be refreshed at the normal rate. For example, if two bits of the mode register 264 are used, the bits might be decoded as follows:
“00”—Normal Mode
“01”—Low Power Mode with 1 Mb partition
“10”—Low Power Mode with 2 Mb partition
“11”—Low Power Mode with 4 Mb partition.
Other arrangements may also be used. Furthermore, as pointed out with respect to the computer system 100 of FIG. 1, other techniques not involving the mode register 264 may be used to enable or disable the low power refresh mode and to set the size of a partitioned region of memory that will be refreshed at the normal rate.
Although the SDRAM device 200 can have a variety of configurations, in one embodiment the address space of the SDRAM device 200 is logically organized as shown in FIG. 3, although the physical configuration of the SDRAM device 200 will be somewhat different. As shown in FIG. 3, each row contains 128 column groups, and each column group contains 128 bits of data arranged as 8 16-bit words plus an additional 8 bits that are used to store the ECC syndrome. Therefore, each logical row includes 17,408 bits of data, i.e., the product of the 128 data bits plus 8 ECC bits in each column group and the 128 column groups in each row. In one embodiment of the SDRAM device 200 having 64 rows in each bank 222a-d, each row contains 1,114,112 memory cells, i.e., the product of 17,408 memory cells in each row and 64 rows. Insofar as each column group contains 136 bits, i.e., 128 data bits and 8 ECC bits, there are 8,192 column groups in each of the banks 222a-d, i.e. 1,114,112 memory cells divided by 136 bits. Each of these 8,192 column groups can be partitioned for refresh in the low power, reduced refresh rate mode. In one embodiment, the banks 222a-d are partitioned as follows:
Bank 222a 
Partition 1—8192 rows×128 columns (8 bits each)=1 Mb
Partition 2—8192 rows×128 columns (8 bits each)=1 Mb
Partition 3—16384 rows×128 columns (8 bits each)=2 Mb
Non-Partitioned—1015808 rows×128 columns (8 bits each)=124 Mb
Bank 222b 
Non-Partitioned—1048576 rows×128 columns (8 bits each)=128 Mb
Bank 222c 
Non-Partitioned—1048576 rows×128 columns (8 bits each)=128 Mb
Bank 222d 
Non-Partitioned—1048576 rows×128 columns (8 bits each)=128 Mb
In another embodiment of the invention, the partitioned in the banks 222a-d are implemented in a symmetrical manner, as follows:
Bank 222a 
Partition 1—8192 rows×128 columns (8 bits each)=1 Mb
Partition 2—8192 rows×128 columns (8 bits each)=1 Mb
Partition 3—16384 rows×128 columns (8 bits each)=2 Mb
Non-Partitioned—1015808 rows×128 columns (8 bits each)=124 Mb
Bank 222b 
Partition 1—8192 rows×128 columns (8 bits each)=1 Mb
Partition 2—8192 rows×128 columns (8 bits each)=1 Mb
Partition 3—16384 rows×128 columns (8 bits each)=2 Mb
Non-Partitioned—1015808 rows×128 columns (8 bits each)=124 Mb
Bank 222c 
Partition 1—8192 rows×128 columns (8 bits each)=1 Mb
Partition 2—8192 rows×128 columns (8 bits each)=1 Mb
Partition 3—16384 rows×128 columns (8 bits each)=2 Mb
Non-Partitioned—1015808 rows×128 columns (8 bits each)=124 Mb
Bank 222d 
Partition 1—8192 rows×128 columns (8 bits each)=1 Mb
Partition 2—8192 rows×128 columns (8 bits each)=1 Mb
Partition 3—16384 rows×128 columns (8 bits each)=2 Mb
Non-Partitioned—1015808 rows×128 columns (8 bits each)=124 Mb
This symmetrical partitioning has the advantage of allowing multi-bank operation during the paging operation. Other partitioning arrangements can, of course, be used.
FIG. 4 is a block diagram of a cellular telephone 300 according to one embodiment of the invention. The cellular telephone 300 includes cellular telephone electronics 310 of conventional design, which normally access a memory device to store paging protocols and other information. However, the cellular telephone electronics 310 shown in FIG. 4 accesses the SDRAM 200 shown in FIG. 2. The cellular telephone electronics 310 initially program the mode register 264 with a mode bit to enable the low power, reduced refresh rate using ECC techniques, as described above. The cellular telephone electronics 310 also program the mode register 264 with one or more bits to set the size of the partitioned region in the banks 222a-d of memory cells. The size of the partitioned region to store paging protocols and any other frequently accessed data is typically 1-2 Mb. The cellular telephone 300 includes user interface devices 320 coupled to the cellular telephone electronics 310 to allow a user to make telephone calls, provide and receive information, take photographs, etc. The cellular telephone electronics 310 typically includes at least a keyboard, a display, a microphone, and an earphone. The cellular telephone 300 also includes a battery 330 connected to the cellular telephone electronics 310 and the SDRAM 200 to supply operating power. Because of the relatively low power consumed by the SDRAM 200 using the low power, reduced refresh rate mode, the battery 330 has a relatively long operating life between recharges.
Although the present invention has been described with reference to the disclosed embodiments, persons skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention. For example, although the reduced power refresh mode has been described in the context of a self-refresh reduced power mode, it will be understood that it may also be used in other refresh modes. Other variations will also be apparent to one skilled in the art. Accordingly, the invention is not limited except as by the appended claims.

## Claims

1. A memory device, comprising:
an array of memory cells;
a read data path configured to couple read data from selected memory cells to a plurality of data bus terminals;
a write data path configured to couple write data from the plurality of data bus terminals to selected memory cells;
refresh circuitry configured to refresh memory cells in the array storing data of a first type at a first rate in a reduced power refresh mode, the refresh circuitry further configured to refresh memory cells in the array storing data of a second type at a second rate that is faster than the first rate in the reduced power refresh mode;
control logic configured to cause the write data to be coupled from the data bus terminals to the array of memory cells and to cause the read data to be coupled from the array of memory cells to the data bus terminals; and
an error checking and correcting system coupled to the array of memory cells and configured to correct data retention errors that arise in the memory cells storing data of the first type.

2. The memory device of claim 1 wherein the error checking and correcting system comprises error checking and correcting logic coupled to the read data path and the write data path, the error checking and correcting logic configured to generate an error checking and correcting syndrome from data written to the memory cells storing data of the first type, the error checking and correcting logic further configured to use the syndrome to check and correct data read from the memory cells storing data of the first type.

3. The memory device of claim 2 wherein the control logic is further configured to cause the generated syndromes to be written to the array of memory cells when the corresponding data are written to the memory cells storing data of the first type, the control logic further configured to cause the generated syndromes to be read from the array of memory cells and coupled to the error checking and correcting logic when the corresponding data are read from the memory cells storing data of the first type.

4. The memory device of claim 1 wherein the reduced power refresh mode comprises a self-refresh mode.

5. The memory device of claim 1 wherein the refresh circuitry further comprises the error checking and correcting system, and wherein the error checking and correcting system is further configured to generate a syndrome corresponding to data written to the memory cells storing data of the first type and to store the syndrome in the array of memory cells, the error checking and correcting system further being operable to read the stored syndrome corresponding to the data being read from the memory cells storing data of the first type, and to use the syndrome to correct errors in the data.

6. The memory device of claim 1 wherein the refresh circuitry comprises a first refresh counter configured to generate memory addresses for the memory cells storing data of the first type, and a second refresh counter configured to generate memory addresses for the memory cells storing data of the second type, the second refresh counter being incremented at a rate that is faster than the rate at which the first refresh counter is incremented.

7. The memory device of claim 1 wherein the control logic further comprises a mode register that includes refresh mode bits that can be programmed to select the size of the memory cells storing data of the second type.

8. The memory device of claim 1 wherein the memory cells in the array comprise dynamic random access memory cells.

9. The memory device of claim 1 further comprising an address decoder configured to receive memory addresses, the address decoder further configured to activate the selected memory cells corresponding to each received memory address.

10. The memory device of claim 9 wherein the array of memory cells is arranged in rows and columns, wherein the memory addresses include row addresses and column addresses, and wherein the selected memory cells correspond with a row of memory cells corresponding to each received row address a memory cell in a column of memory cells corresponding to each received column address.

11. The memory device of claim 1, wherein the second rate is significantly faster than the first rate.

12. The memory device of claim 1, wherein the refresh circuitry is further configured to refresh the memory cells in the array storing data of a first type at a third rate in a normal refresh mode, the refresh circuitry further configured to refresh the memory cells in the array at a fourth rate on the normal refresh mode, wherein the third and fourth rates are both faster than the first rate.