Dram with hidden refresh
A synchronous DRAM is provided having specified time slots (e.g., every multiple of 4 clock pulses of a DRAM input clock) within which read or write commands may be entered on the command/address bus. During operation, the DRAM performs internally generated refresh operations on a periodic basis while avoiding collisions with controller-generated data accesses. An internal refresh cycle can be executed without interfering with any data accesses by starting the refresh after decoding a non-conflicting command in one of these time slots and finishing before the next command time slot. If an internal refresh operation is delayed (e.g., by the decoding of a conflicting access command) it will be completed at the earliest opportunity thereafter.
1. Field of the Invention
The present invention relates to the field of integrated circuits. More particularly, it relates to a dynamic random access memory (DRAM) refresh operation that does not depend upon a certain number of read accesses and that also does not interfere with data accesses initiated by the controller.
2. Description of the Related Art
In a dynamic random access memory (“DRAM”), data is stored as a logic one or zero by the presence or absence of charge on a capacitor within an individual memory cell. After the data has been stored as charge on the capacitor, the charge gradually leaks off and the data is corrupted. The time within which a refresh must be performed lest the data might be in danger of being lost is commonly referred to as the refresh interval. Therefore, a “refresh” cycle must be performed to maintain the integrity of the data. To refresh data in a memory array, the array is typically placed in a read mode to obtain the present data stored in a row of memory cells. Subsequently, this data is used as new input data that is re-written into the row of memory cells, thus maintaining the stored data. An important aspect of the refresh cycle of prior art DRAMs is that no other operation involving a different row in the array can occur simultaneously during the refresh operation.
A functional block diagram of a typical 64M SDRAM is shown in
In the DRAM of
One problem associated with such refresh cycles is that a given refresh cycle may conflict with a controller-generated access command (e.g., a read or write command). Many DRAM's are configured for deterministic latency which means that an access can never lose priority; and therefore, the refresh operation must wait (e.g., put into a queue) until the access has been completed. The danger with such a practice, of course, is that a refresh operation may be postponed for a period of time greater than a predetermined refresh interval, thus placing the data at risk.
One approach to solving this problem has been proposed by Monolithic System Technology, Inc. with its IT-SRAM technology. Under the IT-SRAM approach, refresh operations are triggered by read commands. One problem with relying upon read commands to trigger a refresh operation is that it can result in refresh overkill. That is, a read command may be received from the system processor more frequently than a refresh is actually required, thus, wasting valuable power resources. Another problem with relying upon read commands is that if the memory is idle for greater than the refresh interval (e.g., 64 ms), data will be lost.
Yet another approach to the problem proposes to trigger a refresh operation off of a clock pulse (e.g., after a predetermined number of clock pulses, a refresh operation is triggered). However, under this approach, there is no way to guarantee that the refresh will not begin just before a read command. In such a case, if the read access is delayed until the refresh operation is completed, the overall time required to access memory is increased.
Another approach to the refresh problem is disclosed in U.S. Pat. No. 6,028,804 (the “'804 patent”). The '804 patent discloses a method of operating a memory array which contains memory cells requiring periodic refresh in which a refresh is performed only if no external access is determined to be pending. An accumulator is disclosed for accumulating (i.e., delaying) refresh requests that conflict with an external access for up to seven refresh requests (or 56 μs).
According to the '804 patent, external memory accesses are allowed to continue for a period of up to 56 μs without losing refresh cycles. The '804 patent states that back-to-back external accesses longer than 56 μs generally do not occur. The '804 patent also states that the memory cycle of its disclosed memory system is equal to one clock cycle. Thus, the '804 patent does not consider the special complex problems associated with having a memory cycle that is equal to multiple clock cycles, such as e.g., the fact that access commands must be disallowed for certain clock cycles. In addition, the '804 patent does not provide for simultaneous operations (e.g., read, write or refresh). Thus, there exists a need for a hidden DRAM refresh operation that does not depend upon a certain number of read accesses, that does not interfere with data accesses initiated by the controller, that allows for simultaneous operations and that is consistent with today's memory cycles which may last for multiple clock cycles.
SUMMARY OF THE INVENTIONThe present invention overcomes the problems associated with the prior art and provides a system and method for performing a hidden DRAM refresh operation that does not depend upon a certain number of read accesses and that also does not interfere with data accesses initiated by the controller. In accordance with an exemplary embodiment of the invention, a synchronous DRAM is provided having specified time slots (e.g., every multiple of 4 clock pulses) for entering read or write commands. In addition, a self-refresh counter and controller are provided and which are driven by the DRAM input clock. During operation, the DRAM performs internally generated refresh operations on a periodic basis while avoiding collisions with controller-generated data accesses. Specifically, the command and address bus contains predetermined time slots (e.g., every fourth positive edge of the DRAM input clock after the first read or write command is entered) within which the controller is allowed to apply data access commands (e.g., read, write). An internal refresh cycle can be executed without interfering with any data accesses by starting the refresh after decoding a non-conflicting command in one of these time slots and finishing before the next command time slot. If an internal refresh operation is delayed (e.g., by the decoding of a conflicting access command) it will be completed at the earliest opportunity thereafter. In accordance with an exemplary embodiment of the invention, NOP's (no operation's), accesses to other memory arrays (also referred to as banks), and accesses to an accompanying static random access memory (SRAM) cache are all examples of non-conflicting commands and all provide such an opportunity to complete the refresh operation. In worst case scenarios, it is the SRAM cache that ensures that an opportunity to refresh will occur within the allotted refresh interval.
BRIEF DESCRIPTION OF THE DRAWINGSThe foregoing and other advantages and features of the invention will become more apparent from the detailed description of preferred embodiments of the invention given below with reference to the accompanying drawings in which:
The present invention will be described as set forth in an exemplary embodiment illustrated in
Referring to
Turning to
At step S306, the refresh controller 230 determines whether four clock pulses have been counted since the initial command has been received. If not, step S306 is repeated. At step S308, the refresh controller 230 determines whether it's time to perform a refresh operation on a given row of memory cells with a particular memory array 10A-10D.
For example, assuming a 64M synchronous DRAM with 4 internal banks of 4096 rows each, and for each refresh operation, one row in each bank is refreshed. That is, there are 16,384 total rows in the device and 4 rows are refreshed at a time, meaning 4096 refresh operations are needed to refresh all memory cells. Each memory cell must be refreshed at least once every 64 ms, therefore, one refresh operation should be performed every 15.625 μs (i.e., 4096×15.625 μs=64 ms). The self-refresh counter 210 counts the number of input clock pulses corresponding to 15.625 μs and generates an internal interrupt indicating that it is time to perform a refresh operation. It is also possible to simultaneously refresh one row in each of a plurality of sub-arrays in a bank containing sub-arrays, while leaving the other banks available for memory access, and cycle the refresh operation among all available memory banks.
If the refresh controller 230 has determined it is not yet time to perform a refresh, step S306 is repeated. If it is determined that it is time to perform a refresh operation, the refresh controller 230 determines whether the DRAM has received a data access command from the system processor at step S310. If not, the refresh operation is performed at step S312 and the process returns to the input of portion S306. The actual refreshing of the memory cells may be carried out in any number of ways known in the art including, but not limited to, those methods described in U.S. Pat. No. Re. 36,180 assigned to Micron Technology, the contents of which are fully incorporated herein by reference. Therefore, a specific process for actually carrying out the refresh operation in connection with the present invention will not be described herein.
If at step S310, the refresh controller 230 determines that a data access command has been received from the system processor, the refresh controller 230 determines whether the access command does not conflict with the refresh operation at step S314. The refresh controller 230 is configured to continually run a predetermined refresh address sequence, the exact configuration of which is not critical for purposes of explaining the present invention. The present invention determines, among other things, whether the refresh operation, scheduled to be performed on a particular row at a predetermined time, will conflict with a data access command received on the command/address bus 260.
If at step S314, it is determined that the data access command is non-conflicting with the refresh operation, then upon decoding the non-conflicting data access command, the refresh controller 230 sees that the refresh operation is carried out on the particular row at portion S316 and the process returns to the input of portion S306. In accordance with a preferred embodiment of the invention, the refresh operation is completed between the time the non-conflicting data access command is decoded and the next four clock pulses are counted from the DRAM input clock 220 (i.e., the refresh operation is completed before the next data access command is allowed to be received on the command/address bus 260).
If at step S314 it is determined that the data access command is not non-conflicting (i.e., is conflicting) with a scheduled refresh operation, then, at step S318, the refresh controller 230 is configured to wait for the conflicting data access command to be completed and postpones (i.e., queues) the refresh operation until a next available opportunity, as will be explained more fully below.
As depicted in the
In accordance with an exemplary embodiment of the invention, the data included within the row to be accessed is written into the SRAM cache 240 where it may be accessed by the system processor for a desired read or write operation. In the meantime, data in other rows of the same sub-array is refreshed before the refresh interval is reached.
For example, a worst case scenario would be a continued series of read/write commands applied on every 4th clock pulse for a long time (i.e., several times greater than the refresh interval), whereby the read/write commands are continually received by the same bank. Assuming there are e.g., four banks (e.g., 10A-10D), then during the continuing accesses to the same bank (e.g., 10A), all the refresh operations could be directed to the other three banks (e.g., 10A-10C) and eventually the data in the bank being accessed will be lost (i.e., the stored charge will leak off the capacitors). It should be noted, however, that the act of accessing rows in the one bank (e.g., 10A) will refresh those rows, so the problem is when one bank is continually accessed, but not all rows within the bank. In such a case, the non-accessed rows in the bank being continually accessed (10A) will eventually be lost. This is where the SRAM cache 240 is effective. Accessing one bank continually for a long period of time means that you must access some row/column combination in that bank multiple times. With the SRAM cache 240, in accordance with the exemplary embodiment of the invention, those multiple accesses will be serviced by the SRAM cache 240, thereby freeing up the non-accessed rows in the continually accessed bank (10A) in order to perform a much needed refresh.
Turning to
Turning to
The present invention provides a DRAM having a refresh system wherein internally generated refresh operations are performed on a periodic basis while avoiding conflicts with controller-generated data accesses.
The present invention has many possible implementations that would not change the scope of the invention. For example, although the read and/or write access commands are depicted as being allowed only on every fourth clock cycle, the exact number is, of course, not critical. The number of clock cycles is a function of the time required to perform the refresh operation and the frequency of the DRAM clock. For purposes of describing the present invention, the refresh operation was assumed to require four clock cycles. In addition, it should also be appreciated that the refresh operation may be triggered by any portion of the DRAM clock without deviating from the present invention. Furthermore, the block diagram of
Therefore, while the invention has been described in detail in connection with a preferred embodiment known at the time, it should be readily understood that the invention is not limited to such disclosed embodiment. Rather, the invention can be modified to incorporate any number of variations, alterations, substitutions or equivalent arrangements not heretofore described, but which are commensurate with the spirit and scope of the invention. Accordingly, the invention is not to be seen as limited by the foregoing description, but is only limited by the scope of the appended claims.
Claims
1. A method for refreshing memory cells, comprising:
- determining that a refresh of said memory cells is required;
- determining that a data access is desired; and
- initiating said refresh at a predetermined time without delaying said data access.
2-54. (canceled)
Type: Application
Filed: Aug 24, 2006
Publication Date: Jan 11, 2007
Inventor: Kevin Ryan (Eagle, ID)
Application Number: 11/509,062
International Classification: G06F 13/28 (20060101);