The present invention relates generally to computer systems having two or more memory banks or modules and particularly to methods and systems for reducing the amount of power consumed by such memory modules.
Background of the Invention
The present invention concerns hardware for reducing the amount of power consumed by the high speed random access memory (RAM) used in a computer system. Many computers are designed so that it is relatively easy to increase the amount of RAM which is installed in the computer. Typically, at least in "workstation" computers, it is common to provide a set of memory slots, into each of which can be inserted an additional memory module. As additional memory modules are added to the computer, however, the amount of power consumed by these memory modules can be quite significant. The result is an increase in the power, heat and cooling fan noise of the system. For an office environment, this increased heat and noise is very undesirable.
More generally, for high performance workstations, a high capacity memory system is desirable. Powerful computer systems tend to have multiple banks of memory to provide a large total capacity of memory to execute large programs, or multi-task between several smaller programs. However, the computer's central processor can only access one of the banks of memory at a given instant in time.
In prior art multiple bank memory systems, it is quite typical to only activate the memory chips for the active bank. However, the idle memory banks still receive address, data and clock signals, which are used only by the active memory bank. In a large memory system, the energy associated with switching these signals to the idle banks of memory chips consumes a significant amount of power.
The present invention implements a clocking scheme on the memory modules such that only the active memory module is clocked. In other words, only the active memory module receives data, address and clock signals. This eliminates all of the electrical switching on the idle memory modules, except for dynamic refresh cycles. As a result there is a dramatic decrease in system power and cooling requirements.
Summary of the Invention
In summary, the present invention is a memory system for a computer. The memory system has multiple memory banks, only one of which can be accessed at any one instant in time. A memory bank decoder determines which of the memory banks is being accessed. The decoded bank enable signals generated by the decoder are used to send memory clocking signals only to the memory bank which is being accessed. In addition, each memory bank includes a clocked address signal buffer and a clocked data signal buffer. Clock signals are sent only to the address and data buffers in the memory bank which is being accessed. As a result, only the selected memory bank has its address and data buffers updated.
All the other memory banks remain in a quiescent state, because no control signal, address signals, or data signals are sent to those memory banks. This eliminates the energy usage that would otherwise be associated with the idle memory banks, including both the energy used by the memory chips in the idle memory banks, as well as the energy associated with changing the state of the address and data lines connected to those memory chips.
Brief Description of the Drawings
Additional objects and features of the invention will be more readily apparent from the following detailed description and appended claims when taken in conjunction with the drawings, in which:
FIG. 1 is a block diagram of a computer system with multiple memory blocks.
FIG. 2 is a block diagram of a multiple bank memory system.
FIG. 3 depicts the control signal, address and data buffers in one memory bank.
FIG. 4 depicts the bank logic for one memory bank.
Description of the Preferred Embodiment
Referring to FIG. 1, there is shown a computer system 100. The system 100 includes a central processing unit (CPU) 102, primary memory 110, secondary memory 112, read only memory (ROM) 114 and an input/output module 116. The primary memory 110 contains one or more modules 120-0 to 120-N of high speed random access memory (RAM). Access to the primary memory 110 is governed by a memory controller 130, which is coupled to the CPU 102 by system bus 132, which includes an address bus, data bus and control bus (not shown). The secondary memory 112 typically contains one or more magnetic or optical disk drives and is used for storing software and data not currently being used or stored in primary memory 110.
The terms memory module, memory block and memory array are used interchangeably. These terms generally refer to a separately identifiable portion of a computer's memory, e.g., a set of memory chips which occupy a contiguous portion of a computer's address space.
For the purposes of this document, when the name of a signal is preceding by a ".about." symbol, the signal is negative logic signal which is active when low.
The secondary memory 112 typically contains one or more magnetic or optical disk drives and is used for storing software and data not currently being used or stored in primary memory 110. Read only memory 114 is used to store portions of the computer's operating system (e.g., self test software and boot strap software). The CPU 102 is coupled to secondary memory 112, ROM 114 and I/O 116 by the memory controller 130 and the I/O bus 134. Secondary memory 112, read only memory 114 and I/O module 116 are herein collectively referred to as the computer's I/O subsystem.
Referring to FIG. 2, the memory controller 130 is a conventional memory controller, except that it generates a separate set of clock and control signals MC for each memory block 120. Arbitration logic 150 resolves conflicting memory access requests originating from the CPU 102 (CPU REQ/GRNT) and from the I/O subsystem (I/O REQ/GRNT). Output signals from the arbitration logic are used by all the other modules in the memory controller 130 to initiate a memory access cycle and to determine whether to use address and data signals from the CPU 102 or the I/O subsystem.
Sequencing logic 152 generates the standard clock signals needed for controlling access to dynamic memory chips, including .about.WE (write enable, or read/write), .about.RAS (row address strobe), and .about.CAS (column address strobe). The sequencing logic also generates clock and control signals for use by address decoder 154, bank logic 156, address logic 160 and data logic 162.
Address decoder 154 decodes the high order address bits from either the CPU's system address bus 132-A or the I/O address bus 134-A to determine which memory bank 120 is being accessed, if any. The address decoder 154 generates a separate one-bit bank-enable signal for each memory bank 120.
In the preferred embodiment, the system 100 has fourteen memory module slots, each of which can receive a memory module 120. Each memory module slot is assigned a predefined address range in the computer's address space, and the address decoder 154 generates a bank enable signal for each slot, regardless of whether there is a memory module inserted in the slot or not. Software in the computer ensures that memory modules not present are not accessed. The fourteen bank enable signals generated by the address decoder, .about.BANK.sub.-- 0.sub.-- ENABLE through .about.BANK.sub.-- 13.sub.-- ENABLE, are transmitted to a set of fourteen bank logic circuits 156-0 to 156-13.
Each bank logic circuit 156-X is coupled to the sequencing logic 152, the address decoder 154, and a corresponding one of the memory modules 120-X. As shown in more detail in FIG. 4, each bank logic circuit 156-X logically ANDs the corresponding memory bank enable signal .about.BANK.sub.-- X.sub.-- ENABLE with the clocking signals generated by the sequencing logic 152.
These ANDed signals are stored in pipeline flip-flops 158 which are clocked by a free running clock CLKA, and then transmited to a corresponding memory module 120-X. The pipelined sequencing signals are collectively labelled MC in FIGS. 2 and 4. Since .about.BANK.sub.-- X.sub.-- ENABLE is ON for only one memory slot and OFF for thirteen of the fourteen memory slots, sequencing signals are transmitted to only one of the memory modules 120. When a location in the computer's I/O subsystem is being accessed, or when no memory location is be accessed, sequencing signals are not sent to any of the memory modules 120.
Referring again to FIG. 2, address logic circuit 160 presents address signals MA generated by either the CPU 102 or the I/O subsystem to the memory modules in the format and timing required by the memory chips in the modules. In particular, the memory modules 120 use dynamic memory chips, which require that the address signals be time multiplexed so that one half of the address bits are presented to the memory module first with a clock signal called .about.RAS and the other half of the address bits are presented next with a clock signal called .about.CAS. The details of memory control circuits for dynamic memory chips are well known to those skilled in the art.
The data logic circuit 162 transmits data signals MD between the memory array modules and the CPU 102 or the I/O subsystem in the format and timing required by the memory chips in the modules.
Referring to FIGS. 2 and 3, each memory array module contains an array of dynamic random access memory (DRAM) chips 170. In the preferred embodiment, each DRAM array contains thirty-two one megabit DRAM chips for storing data and seven additional one-megabit DRAM chips for storing error correction codes. Thus there are a total of thirty-nine DRAM chips in the array 170.
A control signal buffer 180 drives the .about.RAS, .about.CAS and .about.WE signals to the DRAM array 170. The address register 182 is a set of clocked flip-flops which capture memory addresses and drive the address signals to the DRAM array 170. The data register 184 is a bidirectional latch which buffers the transmission of data between the memory controller 130 and the DRAM array 170.
As shown in FIG. 3, the positive edge of a clock signal labelled CLKA is used to latch the address bits into a set of address latches 190. CLKA is a free running clock which is also used to write data from the memory controller into a set of data write pipeline registers 192. Signal .about.WCE is a clock enable signal for both the address latches 190 and the date write pipeline registers 192. This signal .about.WCE must be low to enable latching of address and write data at the rising edge of the CLKA clock signal.
Data from the data write pipeline register 192 is transmitted to the DRAMS only if .about.WE is low, which means that a write cycle is being performed. Data read from the DRAMs is latched in pipeline registers 194 by the rising edge of the .about.CAS signal, and is transferred to the memory controller only when the read output enable signal .about.RDOE is low. In the preferred embodiment, data is transferred to and from the DRAMs 32 bits at a time. In addition a 7 bit error correction code is stored and retrieved for each 32 bits of data.
When a memory module 120 is not selected for access, the signals stored in the memory module's address register 182 and data register 184 remain unchanged. In the preferred embodiment, the address register 182 and the data register 184 are implemented using CMOS circuitry. Furthermore, the signal buffer 180 in the memory modules are also implemented using CMOS circuitry. This reduces power consumption further because in CMOS circuitry non-switching wires and devices only experience leakage currents.
In the preferred embodiment, bank logic circuit 156 is implemented using a bipolar programmable logic array, but an equivalent CMOS circuit would be used if fast enough CMOS logic parts become available. Buffer 180 is implemented using a 74FCT244 circuit, register 182 using a 74FCT377 and register 184 using a 29FCT52, all made by Integrated Device Technologies (IDT).
When a memory module 120 is not selected, almost no power is dissipated inside the memory module, because (1) no clock and control signals are sent by the bank logic 156 to the memory module 120, and (2) the CMOS address and data registers 182 and 184 in the memory module do not perform any switching and the signals on address lines 200 and data lines 202 in the memory module remain unchanged.
Transmitting or switching address and data signals to thirty-nine one-megabit DRAM chips consumes a significant amount of current and power. In the preferred embodiment, an inactive (i.e., unselected) memory module containing thirty-nine one-megabit DRAM chips consumes only about 0.043 amperes of current.
In summary, it can be seen from the above description that the clock signals generated by the memory controller 130 are transmitted to only one memory module, and that the address signals and data signals generated by the memory controller 130 are switched only in the selected memory controller. The present invention allows computer systems to have a larger memory system for a given power and cooling system than would otherwise be possible. Since the size of the memory system directly affects the scale and performance of computer applications, the present invention indirectly helps boost the amount of computer power than can be manufactured or purchased for a given price.
Alternate Embodiments
As will be understood by those skilled in the art, the location of the buffer and register circuitry which are included in the memory modules of the preferred embodiment could be located in the memory controller in other embodiments of the present invention. The "location" of these circuits on the same circuit board as the DRAM chips is not essential to the present invention. What is important is avoiding the switching and transmission of signals to unselected memory modules.
While the present invention has been described with reference to a few specific embodiments, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.