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.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
BACKGROUND OF THE INVENTION

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 FIG. 1. Since SDRAM operation is well known in the art, only a brief description of the FIG. 1 DRAM will be provided herein. The FIG. 1 SDRAM is a quad-bank (“×16”) SDRAM having four 16, 777, 216-bit banks 10A-10D organized as 4,096 rows by 256 columns by 16 bits. Circuit blocks 12A-12D include sense amplifiers coupled to each column within the memory array to transform charge on the capacitor in the memory cell into a valid logic one or zero. Read and write accesses to the SDRAM are burst oriented; accesses start at a selected location and continue for a programmed number of locations in a programmed sequence. Address bits registered coincident with an ACTIVE command are used to select the bank and row to be accessed. The address bits registered coincident with the READ or WRITE command are used to select the starting column location for the burst access.

In the DRAM of FIG. 1, two types of refresh cycles are available; auto refresh and self-refresh. The self-refresh cycle automatically and internally refreshes the data sequentially in the memory arrays. The auto refresh cycle is analogous to CAS#-BEFORE-RAS# (CBR) REFRESH in conventional DRAMs. Providing a distributed AUTO REFRESH command every 15.625 μs will meet the refresh requirement and ensure that each row is refreshed. The SELF REFRESH command can be used to retain data in the SDRAM even if the rest of the system is powered down. Once self refresh mode is engaged, the SDRAM provides its own internal clocking, causing it to perform its own AUTO REFRESH cycles.

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 INVENTION

The 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 DRAWINGS

The 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:

FIG. 1 illustrates a block diagram of an exemplary prior art DRAM;

FIG. 2 illustrates a simplified block diagram of a DRAM refresh system in accordance with an exemplary embodiment of the invention;

FIG. 3 illustrates a flowchart depicting a functional flow of the FIG. 2 system, in accordance with an exemplary embodiment of the invention;

FIG. 4 illustrates a READ—READ timing diagram for the FIG. 2 system, in accordance with an exemplary embodiment of the invention;

FIG. 5 illustrates a WRITE—WRITE timing diagram for the FIG. 2 system in accordance with an exemplary embodiment of the invention;

FIG. 6 illustrates a READ—WRITE—READ timing diagram for the FIG. 2 system, in accordance with an exemplary embodiment of the invention; and

FIG. 7 illustrates a block diagram of a processor-based system incorporating a DRAM refresh system in accordance with an exemplary embodiment of the invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

The present invention will be described as set forth in an exemplary embodiment illustrated in FIGS. 2-7. Other embodiments may be utilized and structural or logical changes may be made without departing from the spirit or scope of the present invention.

Referring to FIG. 2, a block diagram of a DRAM having a hidden refresh system is depicted in accordance with an exemplary embodiment of the invention. The structure of the FIG. 2 DRAM is essentially the same as that of the FIG. 1 DRAM except that the FIG. 2 DRAM contains a SRAM cache 240, a cache controller 250 and a refresh controller 230. The address bus 260 is coupled to the cache controller 250 for receiving all 14 bits of the address. The cache controller 250 is coupled to the SRAM cache 240 for controlling the SRAM cache 240. An input of the SRAM cache 240 is coupled to bus 255 and an output of the SRAM cache 240 is coupled to bus 275. The operation of the FIG. 2 diagram will be described in connection with the flowchart of FIG. 3.

Turning to FIG. 3, a flowchart is illustrated and depicts an exemplary functional flow of the system described above in connection with FIG. 2. The operation begins at step S300 and at step S302, the refresh controller 230 determines whether an initial Read or Write command has been received over the command/address bus 260. If not, step S302 is repeated until an initial command has been received. At step S304, the self-refresh counter 210 counts positive clock edges of the DRAM input clock 100 which, for example, may be running at 300 MHz.

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 FIG. 3 flowchart, the method is a continuous loop. The SRAM cache 240 is configured such that the refresh interval would never be violated. The cache 240 size equals the size of one sub-array (e.g., 10A of FIG. 2; however, it should be noted that one sub-array may or may not equate to one logical bank) and the refresh interval is set such that the time required to fill the cache 240 with the data from the sub-array 10A is less than the refresh interval. Therefore, even for the worst case scenario where every portion of the sub-array 10A was accessed once before any one portion was accessed a second time (i.e., where such an access would actually perform the refresh operation) a second refresh request would still not have arrived yet. That is, the first queued up request would be executed.

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 FIG. 4, a Read—Read timing diagram is depicted in accordance with the exemplary embodiment of the invention. Thirteen clock pulses of a DRAM input clock are depicted as T0-T12. At each multiple of four clock pulses, a read and/or write command is allowed to be placed on the command/address bus 260 (of FIG. 2). FIG. 4 depicts a read command located at clock pulses T0, T4 and T8. In accordance with the exemplary embodiment of the invention, the refresh operation may be performed between T0 and T4 and also between T4 and T8 and so on.

Turning to FIG. 5, a Write—Write timing diagram is depicted in accordance with the exemplary embodiment of the invention. Thirteen clock pulses of a DRAM input clock are depicted as T0-T12. At each multiple of four clock pulses, a read and/or write command is allowed to be placed on the command/address bus 260 (of FIG. 2). FIG. 5 depicts a write command located at clock pulses T0, T4 and T8. In accordance with the exemplary embodiment of the invention, the refresh operation may be performed between T0 and T4 and also between T4 and T8 and so on.

FIG. 6 depicts a Read—Write—Read timing diagram, in accordance with the exemplary embodiment of the invention. Seventeen clock pulses of a DRAM input clock are depicted as T0-T16. At each multiple of four clock pulses, a read and/or write command is allowed to be placed on the command/address bus 260 (of FIG. 2). FIG. 6 depicts a read command located at clock pulses T0 and T12. In addition, FIG. 6 depicts a write command located at clock pulse T8. In accordance with the exemplary embodiment of the invention, the refresh operation may be performed between T0 and T4 and also between T4 and T8 and so on. It should be noted that T4 contains a NOP which can trigger a refresh operation if one is needed at that time; and, of course, the NOP will not conflict with the refresh operation.

FIG. 7 illustrates a block diagram of a processor-based system 700 utilizing a DRAM 308 having a refresh system constructed in accordance with the present invention. That is, the DRAM 708 may be the DRAM illustrated in FIG. 2 and operates as described above with respect to FIGS. 3 to 6. The processor-based system 700 may be a computer system or any other system requiring a DRAM. The system 700 includes a central processing unit (CPU) 702, e.g., a microprocessor, that communicates with the DRAM 708 over a bus 720. It must be noted that the bus 720 may be a series of buses and bridges commonly used in a processor-based system, but for convenience purposes only, the bus 720 has been illustrated as a single bus. An input/output (I/O) device 706 may also be connected to the bus 720, but is not necessary to practice the invention. The processor-based system 700 also includes a read-only memory (ROM) 710 and may include peripheral devices such as a floppy disk drive 712 and a compact disk (CD) ROM drive 714 that also communicates with the CPU 702 over the bus 720 as is well known in the art.

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 FIG. 2 is intended to be a representative hardware configuration for describing the invention; and, therefore, the components used and/or the manner in which they are configured is not critical.

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)

Patent History
Publication number: 20070011397
Type: Application
Filed: Aug 24, 2006
Publication Date: Jan 11, 2007
Inventor: Kevin Ryan (Eagle, ID)
Application Number: 11/509,062
Classifications
Current U.S. Class: 711/106.000
International Classification: G06F 13/28 (20060101);