The invention relates generally to command decoding for a memory system, and more particularly, to decoding command signals to perform operations in the memory system based on the command signals and a operating state of the memory system.
Computer systems use memory devices, such as synchronous dynamic random access memory (“SDRAM”) devices, to store instructions and data that are access by a processor. These memory devices are normally used as system memory in a computer system. In a typical computer system, the processor communicates with the system memory through a processor bus and a memory controller. The processor issues a memory request, which includes a memory command, such as a read command, and an address designating the location from which data or instructions are to be read. The memory controller uses the command and address to generate appropriate command signals as well as row and column addresses, which are applied to the system memory. In response to the commands and addresses, data is transferred between the system memory and the processor.
In response to the clock signals CLK, CLK#, the command decoder 134 latches and decodes an applied command, and generates a sequence of internal clock and control signals that control the components 102-132 to execute the function of the applied command. The clock enable signal CKE enables clocking of the command decoder 134 by the clock signals CLK, CLK#. The command decoder 134 further includes mode registers 136. Data written to the mode registers 136 are used to set various modes of operation, for example, burst data length, burst type, power-down mode, CAS latency, and the like. The command decoder 134 will generate the appropriate internal clock and control signals based on the modes set by the data stored in the mode registers 136.
The memory device 100 further includes an address register 102 that receives row, column, and bank addresses over an address bus ADDR, with a memory controller (not shown) typically supplying the addresses. The address register 102 receives a row address and a bank address that are applied to a row address multiplexer 104 and bank control logic circuit 106, respectively. The row address multiplexer 104 applies either the row address received from the address register 102 or a refresh row address from a refresh counter 108 to a plurality of row address latch and decoders 110A-D. The bank control logic 106 activates the row address latch and decoder 110A-D corresponding to either the bank address received from the address register 102 or a refresh bank address from the refresh counter 108, and the activated row address latch and decoder latches and decodes the received row address.
In response to the decoded row address, the activated row address latch and decoder 110A-D applies various signals to a corresponding memory bank 112A-D to thereby activate a row of memory cells corresponding to the decoded row address. Each memory bank 112A-D includes a memory-cell array having a plurality of memory cells arranged in rows and columns, and the data stored in the memory cells in the activated row is stored in sense amplifiers in the corresponding memory bank. The row address multiplexer 104 applies the refresh row address from the refresh counter 108 to the decoders 110A-D and the bank control logic circuit 106 uses the refresh bank address from the refresh counter when the memory device 100 operates in an auto-refresh or self-refresh mode of operation in response to an auto- or self-refresh command being applied to the memory device 100, as will be appreciated by those skilled in the art.
A column address is applied on the ADDR bus after the row and bank addresses, and the address register 102 applies the column address to a column address counter and latch 114 which, in turn, latches the column address and applies the latched column address to a plurality of column decoders 116A-D. The bank control logic 106 activates the column decoder 116A-D corresponding to the received bank address, and the activated column decoder decodes the applied column address. Depending on the operating mode of the memory device 100, the column address counter and latch 114 either directly applies the latched column address to the decoders 116A-D, or applies a sequence of column addresses to the decoders starting at the column address provided by the address register 102. In response to the column address from the counter and latch 114, the activated column decoder 116A-D applies decode and control signals to an I/O gating and data masking circuit 118 which, in turn, accesses memory cells corresponding to the decoded column address in the activated row of memory cells in the memory bank 112A-D being accessed.
During data read operations, data being read from the addressed memory cells is coupled through the I/O gating and data masking circuit 118 to a read latch 120. The I/O gating and data masking circuit 118 supplies N bits of data to the read latch 120, which then applies two N/4 bit words to a multiplexer 122. In the embodiment of
During data write operations, an external circuit such as a memory controller (not shown) applies N/4 bit data words DQ, the strobe signal DQS, and corresponding data masking signals DM on the data bus DATA. A data receiver 128 receives each DQ word and the associated DM signals, and applies these signals to input registers 130 that are clocked by the DQS signal. In response to a rising edge of the DQS signal, the input registers 130 latch a first N/4 bit DQ word and the associated DM signals, and in response to a falling edge of the DQS signal the input registers latch the second N/4 bit DQ word and associated DM signals. The input register 130 provides the two latched N/4 bit DQ words as an N-bit word to a write FIFO and driver 132, which clocks the applied DQ word and DM signals into the write FIFO and driver in response to the DQS signal. The DQ word is clocked out of the write FIFO and driver 132 in response to the CLK signal, and is applied to the I/O gating and masking circuit 118. The I/O gating and masking circuit 118 transfers the DQ word to the addressed memory cells in the accessed bank 112A-D subject to the DM signals, which may be used to selectively mask bits or groups of bits in the DQ words (i.e., in the write data) being written to the addressed memory cells.
As previously described, commands are issued to the memory device 100 in the form of command signals, which are decoded by the command decoder 134 to generate internal clock and control signals to perform the requested operation.
The use of the RAS#, CAS#, and WE# signals provides an effective way to issue commands to the memory device 100. However, there are limitations that are inherent with this conventional approach. One such limitation is the maximum number of different possible commands that are provided with the conventional command decoding of the memory device 100. As illustrated above, due to the binary nature of the RAS#, CAS#, and WE# signals, the three command signals provide a maximum decoding of eight different commands. Although eight different commands are sufficient for current technology, it is easy to imagine that in the future there may be the need for more than the eight commands previously described. If additional commands are desired, additional command signals will need to be used. For example, if two additional commands for a total of ten commands are desired, one command could be decoded using the RESERVED command. However, the other additional command would require adding one more signal to the existing three commands signals. With four command signals, there are now potentially sixteen different commands that can be decoded.
Although having additional choices for commands appears to be advantageous, it raises another limitation of the conventional command decoding employed by the memory device 100. That is, increasing the number of command signals to increase the number of different commands that can be decoded, will increase the number of external terminals or “pins” of the memory device 100 that are required to receive the command signals. In the present example, three external terminals are used by the memory device 100 for receiving the RAS#, CAS#, and WE# signals. Having more than the eight possible commands requires at least four external terminals to provide sufficient command decoding. The number can increase to twice that number in light of the development of systems employing differential command signals where each command signal is applied to the memory device as a pair of complementary signals requiring two external terminals.
Currently, the number of external terminals that can be included with a conventionally packaged memory device is reaching its physical limits. The physical dimensions of the memory device package can always be increased to accommodate additional external terminals, however, this solution conflicts with the desirability of creating portable and compact electronic systems. Additionally, adding external terminals increases the number of signal lines that must be used to communicate between a memory controller and the memory device. As applied to memory modules, the additional external terminals of each memory device will require additional conductive traces to be formed on the different layers of the printed circuit board (“PCB”), thus, increasing the complexity of the PCB in design and manufacture. As a result, increasing the number of external terminals in response to the need to accommodate additional command choices is highly undesirable.
Therefore, there is a need for an alternative system and method for command decoding that can be used to provide greater flexibility in increasing the number of commands and/or reducing the number of command signals used in decoding commands.
Embodiments of the present invention are directed to a system and method for decoding command signals. In one aspect, a command decoder is configured to generate internal control signals to perform an operation selected from a first set of operations according to the latched logic levels of the command signals when the memory system is in a first operating state. The command decoder is further configured to generate internal control signals to perform an operation selected from a second set of operations according to the latched logic levels of the command signals when the memory system is in a second operating state. In another aspect, a method of decoding command signals includes receiving command signals, and selecting one operation from a first set of operations in accordance with the command signals while the memory system is in a first operating state, and selecting one operation from a second set of operations in accordance with the command signals while the memory system is in a second operating state.
Embodiments of the present invention provide systems and methods for command decoding in a memory that decodes commands based on command signals in combination with an operating state of the memory. Certain details are set forth below to provide a sufficient understanding of the invention. However, it will be clear to one skilled in the art that the invention may be practiced without these particular details. In other instances, well-known circuits, control signals, timing protocols, and software operations have not been shown in detail in order to avoid unnecessarily obscuring the invention.
For example, the memory device 300 has the same number of commands as previously described for the memory device 100, and shown in the table of
Upon application of power to the memory device 300, a power-on sequence is executed to place the memory device 300 in a POWER ON state 502. When the power-on sequence is complete, the memory device 300 exits the POWER ON state 502 and is reset to an ALL BANK PRECHARGED state 504. While in the ALL BANK PRECHARGED state 504 and all of the memory banks 112A-D are closed, application of the RAS# and WE# signals are be decoded by the command decoder 334 into one of three commands (not including the RESERVED command). The three commands shown in
The REFRESH command is decoded from a LOW RAS# signal and a LOW WE# signal applied to the command decoder 334 while the memory device 300 is in the ALL BANK PRECHARGED state 504. In response, the memory device 300 changes from the ALL BANK PRECHARGED state 504 to execute the AUTO REFRESH sequence 506. When the AUTO REFRESH sequence 506 is completed, the memory device 300 returns to the ALL BANK PRECHARGED state 504, as shown by the bold arrow pointing from the AUTO REFRESH state 506 back to the ALL BANK PRECHARGED state 504, to await further commands. Similarly, the LOAD MODE command is decoded from a HIGH RAS# signal and a LOW WE# signal while the memory device 300 is in the ALL BANK PRECHARGED state 504. The LOAD MODE command is shown in
The third command that can be decoded when the memory device 300 is in the BANK CLOSED state 504 is the BANK ACTIVATE command, decoded from a LOW RAS# signal and a HIGH WE# signal. The BANK ACTIVATE command is shown in
As illustrated by the state diagram 500, the same specific combination of the RAS# and WE# signals can be decoded by the command decoder 334 to execute different sets of commands depending on the particular operating state of the memory device 300. For example, the combination of a LOW RAS# signal and a LOW WE# signal is labeled in the state diagram 500 as “PRE.” In one case where the memory device is in the ALL BANK PRECHARGED state 504, the PRE combination of the RAS# and WE# signals results in the memory device 300 changing from the ALL BANK PRECHARGED state 504 to execute the AUTO REFRESH operation 506 to perform an auto-refresh sequence. However, if the PRE combination of RAS# and WE# signals is applied when the memory device 300 is in the BANK ACTIVE state 510, it causes the memory device 300 to change from the BANK ACTIVE state 510 to the BANK PRECHARGED state 505 by executing the PRECHARGE BANK operation 511. Thus, using just the one PRE combination of RAS# and WE# signals, two different commands can be decoded.
Operation of the command decoding shown in the truth table 600 will now be described with respect to the memory device 300. When the memory device 300 is in a BANK CLOSED state, and a LOW RAS# signal and a LOW WE# signal are applied to the memory decoder 334, a refresh command is decoded. The logic level of the A10 signal is used to select whether the refresh sequence is executed on a per memory bank basis, or all memory banks 312A-D are refreshed concurrently. As shown in columns 606 and 608, a LOW A10 signal selects a per memory bank refresh operation and a HIGH A10 signal selects an all memory bank refresh operation. As further shown in column 608, the A10 signal is interpreted as part of a valid value when a BANK ACTIVATE command or a LOAD MODE command is issued while the memory device 300 is in the BANK CLOSED state.
As previously described, the A10 signal is used to select a refresh sequence when a refresh command is issued during the BANK CLOSED state. Additionally, the A10 signal is used to select various precharge sequences when a precharge command is issued during a BANK OPEN state. As shown in column 608, the A10 signal is used in combination with the RAS# and WE# signals to select single or all bank precharge, auto-precharge following a write command, and auto-precharge following a read command. The A10 signal can be used to select whether an auto-precharge sequence is executed following a write or read command since the A10 signal is not used to select a particular memory location for access.
An additional state shown in the state diagram 700 is a POWER DOWN state 702. The POWER down state 702 represents a condition where the memory device 300 is placed into a low-power state during which many of the circuits are deactivated, such as the output drivers 124 (
As illustrated in
From the foregoing it will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention. For example, the embodiments of the invention described herein have been described with respect to monitoring the open or closed state of the banks of memory 112A-D as an example of an operating state that is monitored for decoding the command signals. However, other embodiments of the invention monitor alternative operating states in decoding the command signals, including the different operating states previously described, such as a power down state and refresh states. Accordingly, the invention is not limited except as by the appended claims.
This application is a divisional of U.S. patent application Ser. No. 12/820,877, filed Jun. 22, 2010, and issued as U.S. Pat. No. 8,205,055, which is a continuation of U.S. patent application Ser. No. 11/121,868, filed May 3, 2005, and issued as U.S. Pat. No. 7,757,061. These applications and patents are incorporated herein by reference, in their entirety, for any purpose.
Number | Name | Date | Kind |
---|---|---|---|
4507761 | Graham | Mar 1985 | A |
5463590 | Watanabe | Oct 1995 | A |
5721860 | Stolt et al. | Feb 1998 | A |
5748551 | Ryan et al. | May 1998 | A |
5749086 | Ryan | May 1998 | A |
5943505 | Lumpkin et al. | Aug 1999 | A |
5996027 | Volk et al. | Nov 1999 | A |
6088724 | Hasegawa | Jul 2000 | A |
6233192 | Tanaka | May 2001 | B1 |
6233195 | Yamazaki et al. | May 2001 | B1 |
6286069 | Chang | Sep 2001 | B1 |
6438062 | Curtis et al. | Aug 2002 | B1 |
6560161 | Zitlaw et al. | May 2003 | B1 |
6629224 | Suzuki et al. | Sep 2003 | B1 |
6704243 | Kho et al. | Mar 2004 | B2 |
6826680 | Muller | Nov 2004 | B2 |
7757061 | Janzen et al. | Jul 2010 | B2 |
20020024882 | Ikeda | Feb 2002 | A1 |
20020194448 | Yu | Dec 2002 | A1 |
20030007405 | Kyung | Jan 2003 | A1 |
20030217223 | Nino, Jr. et al. | Nov 2003 | A1 |
20040047194 | MacInnis | Mar 2004 | A1 |
20040093461 | Kim | May 2004 | A1 |
20060265556 | Janzen et al. | Nov 2006 | A1 |
20100257332 | Janzen et al. | Oct 2010 | A1 |
Number | Date | Country |
---|---|---|
101375255 | Feb 2009 | CN |
58-166579 | Oct 1983 | JP |
09-161475 | Jun 1997 | JP |
WO-2006118788 | Nov 2006 | WO |
Entry |
---|
Office Action in related EP Application No. 06 750 643.6-2210 mailed Oct. 18, 2011. |
“International Search Report and Written Opinion for International Application No. PCT/US2006/014650 mailed Jul. 24, 2008”. |
Office Action dated Oct. 19, 2010 for JP Application No. 2008-510019. |
Office Action in related EP Application No. 06 750 643.6-2210, mailed Oct. 18, 2011. |
Office Action mailed May 24, 2011 for JP Application No. 2008-510019. |
EP Examination Report for Appl No. 06750643.6 dated Sep. 16, 2013. |
Number | Date | Country | |
---|---|---|---|
20120246434 A1 | Sep 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12820877 | Jun 2010 | US |
Child | 13489246 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11121868 | May 2005 | US |
Child | 12820877 | US |