Memory speed and memory capacity continue to increase to meet the demands of system applications. Some of these system applications include mobile electronic systems that have limited space and limited power resources. In mobile applications, such as cellular telephones and personal digital assistants (PDAs), memory cell density and power consumption are issues for future generations. To address these issues, the industry is developing random access memories (RAMs) for mobile applications. For low power DRAMs, such as low power single data rate (LP-SDR) DRAMs, low power double data rate (LP-DDR) DRAMs, and low power double data rate II (LP-DDR2) DRAMs, reducing the refresh current is one way to reduce power consumption.
To reduce the refresh current, the refresh period is typically extended. Extending the refresh period, however, typically results in some memory cells failing due to the extended refresh period. For example, 99.9% of the memory cells in an array of memory cells may have a retention time of 250 ms. The other 0.1%, however, may fail to retain their values from anywhere between approximately 0-200 ms. These memory cells that fail to retain their values are referred to as tail bits. These tail bits may lead to single bit errors during self refresh of a memory. By detecting and correcting for these tail bits, the refresh period may be extended to reduce the refresh current.
Error correction code (ECC) calculates parity information and can determine if a bit has switched to an incorrect value. ECC can compare the parity originally calculated to the tested parity and make any corrections to correct for incorrect data values. In some cases, it is desirable to have ECC built directly onto a memory chip to provide greater memory chip reliability or to optimize other memory chip properties, such as self refresh currents on low power DRAMs. For typical DRAMs utilizing ECC, upon entry of self refresh, parity data is generated and written back to the memory. For example, for 1024 data bits, 16 parity bits are generated and written back to the memory. At self refresh exit, the 16 parity bits plus the 1024 data bits are read and the data bits are checked for errors and corrected based on the parity bits. The corrected data is written back to the memory. Typically, the user of the memory must wait while this error detection and correction process is performed for all memory cells within the memory array upon self refresh exit. The error correction process may delay self refresh exit from anywhere between approximately 10 ms-100 ms. This delay upon self refresh exit may affect the performance of the memory system.
One embodiment of the present invention provides a memory. The memory includes a memory array for storing data, a parity generation and error check circuit configured to receive data from the memory array and detect errors in the data, and error registers configured for storing addresses of failing memory array locations detected by the parity generation and error check circuit upon self refresh entry for correcting the data stored in the failing memory array locations upon self refresh exit.
Embodiments of the invention are better understood with reference to the following drawings. The elements of the drawings are not necessarily to scale relative to each other. Like reference numerals designate corresponding similar parts.
DRAM 100 is configured for an extended refresh period during self refresh to reduce the power consumption of DRAM 100. DRAM 100 performs an error detection and correction process during self refresh to correct tail bits without substantially interfering with the self refresh exit timing. DRAM 100 generates parity information for memory array 120 upon self refresh entry and stores the parity information in parity memory 122. After the first extended refresh period in self refresh has elapsed, memory array 120 is checked for errors using the stored parity information. In one embodiment, any errors detected are corrected and the locations of failing memory cells are stored in error registers 160. Upon self refresh exit, the locations of failing memory cells stored in error registers 160 are rechecked for errors and corrected if errors are detected. If there are no failing memory cell locations stored in error registers 160, then upon self refresh exit no recheck for errors is performed.
In another embodiment, in addition to the locations of failing memory cells, the corrected data for the failing memory cells is also stored in error registers 160. In this embodiment, upon self refresh exit, the corrected data is automatically written back to the failing memory cells without rechecking for errors.
In another embodiment, error registers 160 store locations of failing memory cells and the corrected data to replace failing memory cells, such as in a redundancy or single bit repair. In this embodiment, no write back operation is performed upon self refresh exit. A selected address is compared to the addresses stored in error registers 160. If a match is found, the corrected data stored in error registers 160 is passed to data path 132 in place of the data stored in the failing memory cells.
In another embodiment, error registers 160 store row addresses of tail bits. The row addresses stored in error registers 160 are compared to the row addresses from row address counter 108. If a match is found, the row is refreshed more frequently.
Memory controller 102 controls reading data from and writing data to memory bank 106a. Memory controller 102 provides row and column addresses and control signals to memory bank 106a through communication link 104. In one embodiment, memory controller 102 provides control signals including self refresh entry, self refresh exit, read/write enable, row address strobe (RAS), and column address strobe (CAS) signals.
Row address counter 108 is electrically coupled to a first input of multiplexer 112 through signal path 110. A second input of multiplexer 112 is electrically coupled to error address (ERROR_ADD) block 168 through row address error (RA_ERROR) signal path 172. The output of multiplexer 112 is electrically coupled to row decoder 116 through row address (RA) signal path 114. Row decoder 116 is electrically coupled to memory array 120 through row select lines 118. Memory array 120 is electrically coupled to sense amplifiers 124. Sense amplifiers 124 are electrically coupled to I/O gating mask logic 128 through data lines 126. I/O gating mask logic 128 is electrically coupled to data path 132 through data lines 130, registers 150 through data lines 148, and column decoder 136 through column select lines 134.
Column address counter 144 is electrically coupled to a first input of multiplexer (MUX) 140 through signal path 142. A second input of multiplexer 140 is electrically coupled to error address (ERROR_ADD) block 168 through column address error (CA_ERROR) signal path 146. The output of multiplexer 140 is electrically coupled to column decoder 136 through column address (CA) signal path 138. Registers 150 are electrically coupled to parity generation and error check circuit 152. Parity generation and error check circuit 152 is electrically coupled to error registers 160 through error flag (EFLG) signal path 158 and address signal path 156. Parity generation and error check circuit 152 also receives the parity generation (PG) signal on PG signal path 154. Error registers 160 are electrically coupled to error address block 168 through address lines 166. Error registers 160 also provide the status of error (ST_ERROR) signal on ST_ERROR signal path 164.
Row address counter 108 is configured to increment through each row address of memory array 120 for selecting each row of memory array 120 during parity information generation and parity error detection and correction processes upon self refresh entry. Multiplexer 112 is configured to pass either a row address provided by row address counter 108 during a parity information generation or parity error detection and correction process upon self refresh entry or pass a row address from error address block 168 for parity error detection and correction processes upon self refresh exit.
Row decoder 116 receives the row address on row address signal path 114 and activates a row in memory array 120 based on the received address. Memory array 120 includes a plurality of memory cells located at each cross point of a word line (row) and a bit line (column). Parity memory 122 is part of memory array 120 and stores the parity information for memory array 120. Sense amplifiers 124 sense the data bit values stored in the memory cells along the activated row during a read operation and write data bit values to the memory cells along the activated row during a write operation.
Column address counter 144 is configured to increment through each column address of memory array 120 for selecting each column of memory array 120 during parity information generation and parity error detection and correction processes upon self refresh entry. Multiplexer 140 is configured to pass either a column address provided by column address counter 144 during a parity information generation or parity error detection and correction process upon self refresh entry or pass a column address from error address block 168 for parity error detection and correction processes upon self refresh exit.
Column decoder 136 receives the column address on column address signal path 138 and activates the selected column select lines 134. Based on the selected column select lines 134, I/O gating mask logic 128 passes the selected data bit values on data lines 126 to data path 132 through data lines 130 if DRAM 100 is not in self refresh. Data path 132 includes data I/O pads or pins, referred to as DQs, for passing data between DRAM 100 and an external device, such as a host. If DRAM 100 is in self refresh, I/O gating mask logic 128 passes the selected data bit values on data lines 126 to registers 150 through data lines 148.
Registers 150 include data registers for temporarily storing data from memory array 120 and a parity register for temporarily storing the parity of the data in the data registers. In one embodiment, registers 150 include 64 data bit registers and corresponding parity bit registers. In one embodiment, parity generation and error check circuit 152 includes a plurality of exclusive OR (XOR) gates for determining the parity of the data bits stored in registers 150. Parity generation and error check circuit 152 receives the parity generation signal on parity generation signal path 154. In response to a logic high parity generation signal, parity generation and error check circuit 152 generates the parity information for the data bits stored in registers 150. Parity generation and error check circuit 150 then either stores the generated parity information in the parity registers of registers 150 or compares the generated parity information to previously generated parity information stored in the parity registers of registers 150. If the generated parity information does not match the previously stored parity information, parity generation and error check circuit 152 provides an error flag signal on error flag signal path 158 and the address of the failed memory array location on signal path 156.
Error registers 160 receive the error flag signal on error flag signal path 158 and the addresses of failed memory array locations on signal path 156 and provide the ST_ERROR signal on ST_ERROR signal path 164. The ST_ERROR signal is logic low with no addresses of failed memory array locations stored in error registers 160 to indicate the rechecking for errors process at self refresh exit can be skipped. The ST_ERROR signal is logic high with addresses of failed memory array locations stored in error registers 160 to indicate that the failed memory array locations are to be rechecked for errors upon self refresh exit.
The row addresses and column addresses for failing memory array locations are stored in row address and column address registers 162. The row addresses and column addresses for failing memory array locations are passed to error address block 168 upon self refresh exit. Upon self refresh exit, the row addresses and column addresses for failing memory array locations are clocked out by the error correction clock (ECC_CLK) signal on ECC_CLK signal path 170 to provide the CA_ERROR signal on CA_ERROR signal path 146 and the RA_ERROR signal on RA_ERROR signal path 172. The RA_ERROR signal and the CA_ERROR signal are used to recheck the failing memory array locations in memory array 120 for parity errors and correct any errors detected.
Memory controller 102 provides a self refresh (SREF) command at 220 on command signal 204. In response to the self refresh command, CKE signal 206 transitions to logic low at 221. In response to rising edge 222 of CLK signal 202, self refresh is initiated. Row address counter 108 provides row address ‘R+1’ on RA signal 208 at 224. At 224, row ‘R+1’ is activated by row decoder 116. Column address counter 144 provides column address ‘00’ on CA signal 210 at 225. Row address counter 108 increments through each row address of memory array 120 on RA signal 208 as indicated at 228. For each row address, column address counter 144 increments through each column address of memory array 120 on CA signal 210 as indicated at 230. Before each row address change, such as the row address change indicated at 226, memory array 120 is precharged.
The operations performed at each row address and column address are indicated in the detail portion indicated at 238. For each row address and column address, memory controller 102 provides a read data command at 240 on internal operation signal 212. A set number of data bits, such as 64 bits, are read from memory array 120 at the selected row address and the selected column address (row address ‘R+1’ and column address ‘01’ in this example). Memory controller 102 provides a parity generation pulse on PG signal 214 at 244 to parity generation and error check circuit 152. In response to the parity generation pulse at 244, parity generation and error check circuit 152 generates the parity information for the read data bits, such as the 64 bits. At 242, memory controller 102 provides a write parity bits command on internal operation signal 212 to write the parity information to parity memory 122. At 241, the parity generation process repeats for the next column address (‘02’).
The parity generation process continues until the parity information for the entire memory array 120 is generated and stored in parity memory 122. After generating the parity information for the entire memory array 120, memory operations are paused as indicated at 234 until the completion of the extended refresh period (tRET) as indicated at 232. After the extended refresh period 232 has elapsed, memory array 120 is checked for errors as indicated by block 250.
In response to the extended refresh period 232 elapsing, error checking of memory array 120 is initiated. Row address counter 108 provides row address ‘R+1’ on RA signal 208 at 257. At 257, row ‘R+1’ is activated by row decoder 116. Column address counter 144 provides column address ‘00’ on CA signal 210 at 255. Row address counter 108 increments through each row address of memory array 120 on RA signal 208 as indicated at 228. For each row address, column address counter 144 increments through each column address of memory array 120 on CA signal 210 as indicated at 230. Before each row address change, such as the row address change indicated at 253, memory array 120 is precharged.
The operations performed at each row address and column address are indicated in the detail portion indicated at 252. For each row address and column address, memory controller 102 provides a read data and parity bits command at 260 on internal operation signal 212. A set number of data bits, such as 64 bits, and the corresponding parity bits are read from memory array 120 and parity memory 122 at the selected row address and the selected column address (row address ‘R+1’ and column address ‘01’ in this example). Memory controller 102 provides an error check command at 262 on internal operation signal 212. In response to the error check command, parity generation and error check circuit 152 checks for errors in the read data based on the corresponding read parity bits.
If no errors are detected, parity generation and error check circuit 152 provides a logic low EFLG signal 216. If a parity error or errors are detected, parity generation and error check circuit 152 provides a logic high EFLG signal at 268. In response to a logic low EFLG signal indicating no errors, memory controller 102 provides a no operation (NOP) command on internal operation signal 212 at 263. In response to a logic high EFLG signal indicating an error or errors, memory controller 102 provides an error correct command at 264 on internal operation signal 212. In response to the error correct command at 264, parity generation and error check circuit 152 corrects the errors. After the errors are corrected, memory controller 102 provides a write back command at 266 on internal operation signal 212. In response to write back command 266, the corrected data is written back to memory array 120.
In response to a logic high EFLG signal 216 at 268, the row address and column address where the error was detected is also written to error registers 160 as indicated at 269 on error register signal 256. Also in response to a logic high EFLG signal 216 at 268, error registers 160 provide a logic high ST_ERROR signal 258 at 267. At 265, the error checking process repeats for the next column address (‘02’).
The error checking process continues until the entire memory array 120 has been checked for errors and corrected if errors are detected. After checking the entire memory array 120 for errors and correcting any detected errors, self refresh continues as indicated at 254.
CKE signal 206 transitions to logic high at 288 indicating self refresh exit. Upon self refresh exit, ECC_CLK signal 276 clocks out each row address and column address stored in row address and column address registers 162 as indicated at 278. For each row address and column address, memory controller 102 provides a read data bits and corresponding parity bits command at 280 on internal operation signal 212. At 282, memory controller 102 provides an error check command on internal operation signal 212. In response to the error check command, parity generation and error check circuit 152 checks the read data bits for errors based on the corresponding read parity bits. At 284, memory controller 102 provides an error correct command. In response to the error correct command at 284, parity generation and error check circuit 152 corrects the errors. After the errors are corrected, memory controller 102 provides a write back command at 286 on internal operation signal 212. In response to the write back command at 286, the corrected data is written back to memory array 120. The self refresh exit time depends on the number of errors and the size of error registers 160. In one embodiment, the error detection and correction process is performed upon self refresh exit in approximately 100 ns-1 μs.
An input of multiplexer 129 is electrically coupled to error address and data block 169 through data lines 167. A input/output of multiplexer 129 is electrically coupled to I/O gating mask logic 128 through data lines 130. An input/output of multiplexer 129 is electrically coupled to data path 132 through data lines 131. Multiplexer 129 is configured to pass data between I/O gating mask logic 128 and data path 132 during normal read and write operations and pass corrected data from error address and data block 169 to I/O gating mask logic 128 for failing memory array locations upon self refresh exit.
In this embodiment, error registers 160 receive the error flag signal on error flag signal path 158 and the addresses of failed memory array locations and the corrected data for the failed memory array locations on signal path 156 and provide the ST_ERROR signal on ST_ERROR signal path 164. The row addresses, column addresses, and corrected data for failing memory array locations are stored in row address, column address, and data registers 163. Upon self refresh exit, the corrected data for the failing memory array locations stored in error registers 160 is written back to the failing memory array locations in memory array 120 without first rechecking for errors at the failing memory array locations.
In response to the extended refresh period 232 elapsing, error checking of memory array 120 is initiated. Row address counter 108 provides row address ‘R+1’ on RA signal 208 at 257. At 257, row ‘R+1’ is activated by row decoder 116. Column address counter 144 provides column address ‘00’ on CA signal 210 at 255. Row address counter 108 increments through each row address of memory array 120 on RA signal 208 as indicated at 228. For each row address, column address counter 144 increments through each column address of memory array 120 on CA signal 210 as indicated at 230. Before each row address change, such as the row address change indicated at 253, memory array 120 is precharged.
The operations performed at each row address and column address are indicated in the detail portion indicated at 302. For each row address and column address, memory controller 102 provides a read data and parity bits command at 260 on internal operation signal 212. A set number of data bits, such as 64 bits, and the corresponding parity bits are read from memory array 120 and parity memory 122 at the selected row address and the selected column address (row address ‘R+1’ and column address ‘01’ in this example). Memory controller 102 provides an error check command at 262 on internal operation signal 212. In response to the error check command, parity generation and error check circuit 152 checks for errors in the read data based on the corresponding read parity bits.
If no errors are detected, parity generation and error check circuit 152 provides a logic low EFLG signal 216. If a parity error or errors are detected, parity generation and error check circuit 152 provides a logic high EFLG signal 216 at 304. In response to a logic low EFLG signal indicating no errors, memory controller 102 provides a no operation (NOP) command on internal operation signal 212 at 261. In response to a logic high EFLG signal 216 at 304 indicating an error or errors, memory controller 102 provides a write register with corrected data command at 306 on internal operation signal 212. In response to the write register with corrected data command at 306, parity generation and error check circuit 152 corrects the errors and writes the corrected data and the row address and column address where the error was detected to error registers 160 as indicated at 308 on error register signal 256. Also in response to the logic high EFLG signal 216 at 304, error registers 160 provide a logic high ST_ERROR signal 258 at 310. At 265, the error checking process repeats for the next column address (‘02’).
The error checking process continues until the entire memory array 120 has been checked for errors and corrected data written to error registers 160 if errors are detected. After checking the entire memory array 120 for errors, self refresh continues as indicated at 254.
CKE signal 206 transitions to logic high at 288 indicating self refresh exit. Upon self refresh exit, ECC_CLK signal 276 clocks out each row address, column address, and corrected data stored in row address, column address, and data registers 163, as indicated at 278. For each row address and column address, memory controller 102 provides a write back to memory cells command at 352 on internal operation signal 212. In response to the write back to memory cells command at 352, the corrected data is written back to memory array 120. The self refresh exit time depends on the number of errors and the size of error registers 160. In one embodiment, the error correction process is performed upon self refresh exit in approximately 100 ns-1 μs.
Portion 400 includes address input block 402, error registers 160 including row address, column address, and data registers 163, and data path 132. Address input block 402 is electrically coupled to error registers 160 through signal path 404. Address input block 403 provides a row address and column address for reading data from or writing data to memory array 120. Error registers 160 are electrically coupled to data path 132 through data lines 408. A match signal on match signal path 406 enables data lines 408 to pass data to data path 132 or disables data lines 408 to block data from passing to data path 132.
In operation, after self refresh exit, the address input in address block 402, which is provided by memory controller 102, is compared with addresses stored in error registers 160. If a match is found, the corrected data stored in data registers 163 is passed to data path 132 in place of the data stored in memory array 120 at the selected address. As long as the power is maintained to DRAM 100, the write back to memory array 120 upon self refresh exit may be skipped.
Error registers 160 include row address registers 454. Error registers 160 are electrically coupled to row address counter 108 through signal path 456. For rows containing a tail bit as indicated by row addresses stored in row address registers 454, the refresh occurs more frequently than for row addresses not stored in row address registers 454. The more frequent refresh prevents the tail bits from failing. The row addresses stored in error registers 454 are compared with the row addresses provided by row address counter 108. If a match is found, the row is refreshed more frequently. For example, if one or more most significant bits are ignored in row address counter 108 when doing the compare, then the refresh can be performed more often.
Embodiments of the present invention provide a DRAM having ECC for detecting and correcting for tail bits without significantly impacting the self refresh exit timing. In one embodiment, upon self refresh exit, previously failing memory array locations are rechecked and corrected. In another embodiment, upon self refresh exit, previously corrected data is automatically written back to the failing memory array locations. In another embodiment, the error registers perform a redundancy function for replacing the failing memory array locations. In another embodiment, the failing memory array locations are refreshed more frequently to prevent future failures of the memory array locations. All these embodiments enable the refresh period to be extended, thereby reducing the refresh current. By reducing the refresh current, the overall power consumption of the memory is reduced.