This application claims the priority benefit of Taiwan application serial no. 102114647, filed on Apr. 24, 2013. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a hybrid error correction method and a memory repair apparatus thereof
A dynamic random access memory (DRAM) is widely used in electronic devices. A bit cell of a DRAM is composed of a storage capacitor and an access transistor. Because of leakage current, charges stored in the capacitor may leak away, thus causing data loss of the bit cell. To maintain the data integrity, to re-charge the storage capacitor through the access transistor, so as to refresh the bit cell, is required for the DRAM. In terms of the operation of the DRAM, it typically undergoes a working mode with a short burst of data read and write, followed by a very long period of a standby mode. For a mobile device, the DRAM being in the standby mode may take as long as 80% of its battery lifetime and the power consumption of the DRAM in the standby mode may take as large as 30% of the total system power consumption. Therefore, to reduce the power consumed in the standby mode of the DRAM has a significant impact on the standby time of the mobile device.
To reduce the refresh power, a hybrid error correction method and a memory repair apparatus thereof are provided in the disclosure. The refresh power of a DRAM may be reduced on the premise that the correctness of stored data is guaranteed.
In one of exemplary embodiments, a memory repair apparatus having an error correction capability is provided to a DRAM herein. The memory repair apparatus includes a mode register and a HEAR module implementing a hybrid ECC (error correction code) and redundancy scheme. When entering a standby mode, the mode register switches the DRAM to be controlled by the HEAR module. The HEAR module is coupled to the DRAM and the mode register. After the DRAM is handed over to be controlled by the HEAR module, the HEAR module performs a burst read on the DRAM and generates parity data of an error correction code within a default refresh period. The HEAR module extends the refresh period of the DRAM for the refresh operation and performs an error detection process with the parity data generated above to locate fail bit cells resulting a data retention error in the DRAM, until the maximum allowable refresh period supported by the HEAR module is reached. The DRAM employs the extended refresh period to reduce the refresh power in the standby mode. Before the DRAM exits from the standby mode, the HEAR module performs an error correction process by both an error-bit repair (EBR) sub-module and an error correction code (ECC) sub-module, as well as writes the corrected data back into the DRAM.
In one of exemplary embodiments, a hybrid error correction method for a memory repair apparatus of a DRAM is provided. When the DRAM enters a standby mode, it is switched to be controlled by a HEAR module of the memory repair apparatus. The HEAR module performs a burst read on the DRAM and generates parity data of an error correction code within a default refresh period. The HEAR module extends the refresh period of the DRAM for the refresh operation and performs an error detection process with parity data generated above to locate fail bit cells resulting a data retention error in the DRAM. The above steps, in one of embodiments, may be repeated until the maximum allowable refresh period supported by the HEAR module is reached. The DRAM employs the extended refresh period to reduce the refresh power in the standby mode. Before the DRAM exits from the standby mode, the HEAR module performs an error correction process by both an EBR sub-module and an ECC sub-module, as well as writes the corrected data back into the DRAM.
The hybrid error correction method and the memory repair apparatus thereof are provided in the disclosure. When a DRAM enters a standby mode, it may lower the frequency to perform a refresh operation on the premise that the correctness of stored data is guaranteed. The refresh power of the DRAM may be reduced accordingly, and the standby time of an electronic device with such memory repair apparatus may thus be prolonged.
Several exemplary embodiments accompanied with figures are described in detail below to further describe the disclosure in details.
The accompanying drawings are included to provide further understanding, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments and, together with the descriptions, serve to explain the principles of the disclosure.
Reducing refresh power of a dynamic random access memory (DRAM) may be achieved by extending a refresh period of the DRAM. The refresh period may be determined by the data retention time of the leakiest bit cell in the DRAM.
Accordingly, when the ECC technique is employed to extend the refresh period of the DRAM, the correction capability of the applied ECC determines how long the refresh period may be extended to. However, the ECC with more bits of error correction capability requires more parity bits, which must also be added in the DRAM, and may lead to adverse effects such as additional leakage and refresh power induced by the parity bits.
Accordingly, to reduce the refresh power of the DRAM, the error correction capability of the ECC should be maximized, but the adverse effects from the parity data minimized in the disclosure. A hybrid ECC and redundancy (HEAR) scheme is provided in the disclosure to reduce the power consumption of a DRAM in a standby mode. Exemplary embodiments are provided hereafter so that this description will be thorough and complete, and will fully convey the scope of the inventive concept to those skilled in the art.
Each component and its function of the memory repair apparatus 400 may be described in detail hereinafter.
When the DRAM 410 enters a standby mode, the mode register 420 switches the DRAM 410 to be controlled by the HEAR module 430. On the other hand, when the DRAM 410 exits from the standby mode, the mode register 420 switches the DRAM 410 to be controlled by the memory controller 450. To be more specific, the mode register 420 may be coupled to the DRAM 410 through, for example, the multiplexer 440. When the mode register 420 receives an instruction of switching the DRAM 410 to and from the standby mode, it may perform a switching operation through the multiplexer 440.
The HEAR module 430 is coupled to the DRAM 410, the mode register 420, and the multiplexer 440. The HEAR module 430 in the exemplary embodiment applies the HEAR technique. After the DRAM 410 is handed over to be controlled by the HEAR module 430, the HEAR module 430 may perform a burst read on the DRAM 410 and generate parity data of the ECC within a default refresh period. Then, the HEAR module 430 extends the refresh period of the DRAM 410, performs the error detection process by using the parity data generated above to locate fail bit cells resulting a data retention error in the DRAM 410. Such operations may be repeated until the maximum allowable refresh period supported by the HEAR module 430 is reached. The DRAM 410 may employ such an extended refresh period so as to reduce the refresh power in the standby mode. Before the DRAM 410 exits from the standby mode, the HEAR module 430 may perform an error correction process through an error-bit repair (EBR) sub-module 434 and an error correction code (ECC) sub-module 432 as well as write corrected data back into the DRAM 410.
Referring to
The control circuit 436 may set a user-defined bit in the mode register 420. Such a user-defined bit may switch the multiplexer 440 so as to manage the controllability of the DRAM 410. The control circuit 436 may further control the ECC sub-module 432 and the EBR sub-module 434 to perform the error detection process and the error correction process.
The ECC sub-module 432 may perform parity encoding by reading original data from the DRAM 410 row-wisely. When the refresh period is extended, the ECC sub-module 432 may locate the fail bit data of a data retention error. In the exemplary embodiment, the ECC sub-module 432 employs a Bose, Chaudhuri & Hocquenghem (BCH) encoding and decoding method. As energy saving is concerned, the ECC sub-module using the BCH encoding and decoding method may simply enhance the error correction capability, and yet the disclosure is not limited herein.
The EBR sub-module 434, which is coupled to the ECC sub-module 432, includes a storage space for an EBR table. The EBR table stores the fail bit data of the data retention error which is detected and located by the ECC sub-module 432. The EBR sub-module 434 may further include a corrector 438 which performs a preliminary repair.
Referring to
Next, the HEAR module 430 extends the refresh period of the DRAM 410 to tREFi (Step S604). In the exemplary embodiment, the default refresh period tREF is extended to a first refresh period tREFi (i=1).
After the refresh period is extended, the ECC sub-module 432 performs the error detection process on the DRAM 410 as well as locates the fail bit data of the data retention error (Step S606). Also, the ECC sub-module 432 stores the fail bit data in the EBR sub-module 434; i.e., to update the EBR table (Step S608). Next, the error correction capability of the HEAR module 430 is determined if it is sufficient (Step S610), wherein if so, the refresh period is further extended in Step S612 (i.e. i=i+1). In the exemplary embodiment, the first refresh period tREF1 is extended to a second refresh period tREF2, which provides a standby mode with lower power consumption.
If Step S610 is determined to be false, it represents that the maximum allowable refresh period supportable by the HEAR module 430 is reached. Meanwhile, continuing to Step S614, the DRAM 410 may continue performing the refresh operation in terms of the allowable refresh period tREFi. Taking
When the memory repair apparatus 400 receives a control command to exit from the standby mode, the HEAR module 430 may perform the error correction process row-wisely and write corrected data back into the DRAM 410. To be more specific, when the DRAM 410 performs the error correction process on a row Rowj, the HEAR module 430 may perform comparison between the row Rowj and the EBR table. If the comparison mismatches, the ECC sub-module 432 directly corrects the row Rowj. If the comparison matches, the EBR sub-module 434 may first perform a preliminary repair on the row Rowj, and the ECC sub-module 432 may perform a follow-up repair. In an exemplary embodiment, when the ECC sub-module 432 and the EBR sub-module 434 altogether have a 2-bit error correction capability, after the EBR sub-module 434 repairs the first fail bit, the ECC sub-module 432 may repair the second fail bit. The detail technique of the preliminary repair performed by the EBR sub-module 434 may be described hereafter.
As described in Step S616, the EBR sub-module 434 may perform the preliminary repair on the row Rowj first. Then in Step S618, the ECC sub-module 432 may perform the follow-up repair on the row Rowj. Lastly, all of the rows to be processed in the DRAM 410 are determined if the repair is completed (Step S620). If not, then the next row Rowj (i.e. j=j+1) is entered in Step S622. When all of the rows to be processed are repaired, the DRAM 410 may return to the working mode from the standby mode.
The technique of the preliminary repair used by the EBR sub-module is described in detail hereinafter.
Referring to
To be more specific, the bit address 512 may be decoded into the fail bit position of an original word by a decoder DE. Then, a position data (PD) vector is obtained by a plurality of AND gates 802 (i.e., first logic gates) with fail bit information (including a bit address Bj and a bit data Dj′, wherein j=0, 1, . . . K). Such a position data vector may be denoted as PD[W-1:0]. Suppose that the width of a word is W. A bit correction vector (BCV) represented as BCV[W-1:0] may be obtained by performing bit-wise XOR operation on the position data vector PD[W-1:0] and a data vector D[W-1:0] read from the DRAM. The BCV may be used to correct partial errors in the faulty rows and the partially corrected data is written back to the word in the DRAM 410. The ECC sub-module 432 may perform correction on the remaining errors in the faulty rows.
To sum up, the hybrid error correction method and the memory repair apparatus thereof are provided in the disclosure. When a DRAM enters a standby mode, it may effectively reduce the frequency of performing the refresh operation on the premise that the correctness of stored data is guaranteed. The refresh power of the DRAM may be reduced accordingly, and the standby time of an electronic device with such memory repair apparatus may thus be extended.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
102114647 | Apr 2013 | TW | national |