1. Field of the Invention
The present invention relates to a DRAM (dynamic random access memory) having multiple banks and a method for refreshing the data stored in the DRAM.
2. Background of the Invention
For DRAM, there is a refresh scheme where row addresses are sequentially refreshed by updating them periodically using a refresh timer (RT) and a row address counter (RAC) as well as RAS-Only-Refresh (i.e., normal refresh).
BS outputs either the bank address R-bank or bank, while RS outputs either the row address R-row or row. Selection of a combination of the bank and row outputs or the R-bank and R-row outputs is specified by RT. RT comprises a timer circuit and specifies R-bank and R-row outputs at predetermined time intervals. This indication is also input to a column enable (CE), where a column address is input that has been input to AI. CE temporarily stops column address output (i.e., column) while R-bank and R-row outputs are specified.
Either a bank, row address and column address to be accessed or a bank and row address to be refreshed are sent to a memory array. Since banks and row addresses common to the entire chip are switched, only one bank is accessible at a time. Therefore, in spite of the fact that there are a lot of banks that are not being accessed, they cannot be refreshed simultaneously. At the time of refresh, no access for normal reading and writing is performed and refresh is preferentially performed so that deterioration of availability of memory and deterioration of data rate occur.
It is therefore an object of the present invention to provide a DRAM that reduces access latency when refresh occurs.
The present invention is directed to a DRAM where memory cells are accessed by specifying a bank address, row address and column address, the DRAM comprising: a refresh directing circuit for directing execution of refresh; a bank circuit for specifying a bank address of the memory cells to be refreshed; an addressing circuit for addressing a row address of the memory cells to be refreshed in the specified bank; and an execution circuit for refreshing the memory cells of the row address addressed in the specified bank in response to the direction of execution of refresh from the refresh directing integrated circuit. In parallel to normal read or write accesses the invention allows refresh operation to occur on banks not being accessed. Thus, the invention provides a structure and method to utilize the benefits of SRAM architecture within a DRAM circuit topology.
A method for refreshing a DRAM is disclosed where memory cells are accessed by specifying a bank address, row address and column address, the method comprising the steps of: directing execution of refresh of the memory cells; specifying a bank address of the memory cells to be refreshed; addressing a row address of the memory cells to be refreshed in the specified bank; and refreshing the memory cells of the row address addressed in the specified bank in response to the direction of execution of refresh.
Now an embodiment of DRAM and a refresh method for DRAM according to the present invention will be described with reference to
As shown in
The BAC logic block has an integrated circuit latch for holding the bank address of the memory cells to be refreshed; and an integrated circuit for updating the bank address held in the latch in response to the direction of execution of refresh from RTE.
The ZLC logic block, shown in
The execution logic block, shown in
According to DRAM 10 of the present invention, the row address to be accessed and the row address to be refreshed are selected by ZLS contained in the bank. The row address to be refreshed from ZLC and the row address to be accessed from a row predecoder (RP) are input to ZLS. The column address to be accessed is input to CP. The ZLC holds the row address to be refreshed, which is updated whenever refresh is performed. RP and CP hold the row address and column address to be accessed, respectively.
The row address and column address input to RP and CP, respectively, are sent from an address input for bank, row & column (AI). The bank address input to AI is sent to each memory bank, wherein the bank addressed is accessed. The bank address input to AI is also sent to BCRBI. BCRBI is supplied with a signal directing execution of refresh from RTE and a signal specifying a bank to be refreshed from BAC. BCRBI detects a match between the bank to be accessed and the bank to be refreshed. The result of the match detected is sent to ZLC and CP in each bank.
When the match is not detected, the bank to be refreshed and the bank to be accessed are specified by BCRBI. For the bank to be refreshed, the signal is sent to ZLC and CP, wherein CP temporarily stops the column address output while ZLS addresses the row address held in ZLC to refresh. For the bank to be accessed, the memory cells are accessed that are addressed by the row address output through RP and ZLS and the column address output from CP.
When the match is detected, the access and refresh are directed to the same bank. At this time, in order to perform the refresh, ZLS selects the row address to be refreshed while CP temporarily stops the column address output. While refresh is performed, the row address and column address to be accessed are held in RP and CP, respectively. When refresh is completed, the row address and column address to be accessed are output from RP and CP, respectively, then ZLS selects the row address to be accessed and then an access is performed. BCRBI sends a signal to the memory controller that the match between the banks has been detected.
As shown in
In
According to the aforementioned description, although a bank to be refreshed and timing for refresh are determined in the memory chip, these functions may be provided in the memory controller such that a bank to be refreshed and a bank to be accessed for reading and writing do not conflict with each other.
Next, a refresh method for the DRAM of the present invention will be described. A signal specifying a bank to be refreshed or a bank address, row address and column address externally accessed are supplied to a bank to be refreshed or to be accessed, respectively. An access to a bank specified by AI and refresh of a bank specified by BAC are performed simultaneously.
If the bank to be refreshed and the bank to be accessed match, refresh is preferentially performed. BCRBI informs the memory controller that the access is delayed for one cycle. While refresh is performed, a row address and column address are latched into RP and CP, respectively. When refresh is complete, an access is immediately performed to an address already latched.
In this way, refresh is performed in parallel with normal accesses. When a bank to be refreshed and a bank to be accessed match, refresh and an access are performed in sequence. At this time, the memory controller is informed that the access is delayed for one cycle. When an access to the same bank is continuously performed after refresh, timing for those accesses is delayed for one cycle as well. The effect of refresh operations on normal accesses is kept to a minimum latency, that is, one cycle of access delay due to refresh. As the number of banks increases, the probability of refresh of a bank conflicting with an external access to the same bank decreases, therefore, refresh will be performed while maintaining near zero loss of data transfer rate.
In summary, the present invention allows processing refresh nearly in parallel with data accesses so that refresh is transparent to external devices. Thus it appears as if refresh were not performed, so that the DRAM of the present invention may be used in a manner similar to conventional SRAM.
As mentioned above, according to the present invention, refresh is performed in parallel with normal accesses so that degradation of memory transfer rate due to refresh operations is reduced. Moreover, refresh operations are transparent to external devices, thus the DRAM of the present invention may be utilized like a conventional SRAM and is compatible with SRAM designs.
While the invention has been described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is understood that numerous other modifications and variations can be devised without departing from the scope of the invention.
Number | Date | Country | |
---|---|---|---|
Parent | 10473875 | Sep 2003 | US |
Child | 11424861 | Jun 2006 | US |