Page interleaved memory access

Information

  • Patent Grant
  • 5051889
  • Patent Number
    5,051,889
  • Date Filed
    Wednesday, March 7, 1990
    34 years ago
  • Date Issued
    Tuesday, September 24, 1991
    33 years ago
Abstract
The present invention provides a memory organization scheme for a high-performance memory controller. The memory organization of the present invention combines page mode techniques and interleaving techniques to achieve high-performance.Sequential pages of memory are interleaved between memory banks so that memory accesses which are a page apart will be to two different memory banks. A page is preferably defined by a single row, with 2K columns per row defining the number of bits in a page. Accesses to bits in the same page as a previous access omit the row pre-charge cycle, thus speeding up the memory cycle. Accesses to a separate bank of memory chips from the previous access are likewise speeded up since there is no need to wait for the completion of the cycle in the previous bank before initiating the cycle in the separate bank.
Description

TECHNICAL FIELD
The present invention relates to digital computers and, more particularly, to a memory accessing system for digital computers.
BACKGROUND AND PRIOR ART
Memories in digital computers generally include a plurality of dynamic random access memory (DRAM) chips. Conventional DRAMS are generally arranged in a square array. For example, a conventional 256K. DRAM has 512 rows and 512 columns, and a conventional 1 megabit DRAM has 1,024 rows and 1,024 columns.
DRAMS have row select lines and column select lines. A DRAM is operated by first selecting a row and next selecting a column. The amount of time required to select a column is considerably less than the amount of time required to select a row. It is possible to execute a relatively slow row select operation and to then quickly select a number of columns from that row. The type of operation wherein a slow row select is followed by several fast column selects is generally referred to as a page mode operation of a DRAM. In page mode, one can select words within a page much faster than one can select words which are on different pages.
Another characteristic of conventional DRAMS is that prior to the selection of a row, the row select line must be pre-charged. If one seeks to read sequential locations which are on different rows, after the first read cycle, one must wait for the pre-charge portion of the cycle to be completed before one can execute another read operation. In order to avoid this problem, one can use a known technique termed interleaved memory. In a conventional interleaved memory, there is an "even" memory bank and an "odd" memory bank. Any two sequential memory locations are stored in different memory banks. If one reads two sequential memory locations, the operation is as follows: the first location is read in the first memory bank and while that bank is being pre-charged, the second location is read from the second memory bank. Thus, since two sequential locations will be in different banks, they can be read very quickly without waiting for an intervening pre-charge cycle.
The interleaved memory technique is based on the premise that there is a reasonably high probability that sequential accesses to memory will be in successive memory locations. Thus, sequential memory locations are placed in different banks so that they can be accessed quickly.
OBJECTS OF THE INVENTION
The present invention provides a memory organization which, on a statistical basis, will be able to more quickly access memory locations.
Yet another object of the present invention is to provide a memory accessing mechanism for a digital computer which takes into account the probability of how memory locations are in fact generally accessed.
A still further object of the present invention is to provide a memory accessing scheme which has a high probability of avoiding the necessity of delaying memory access due to the need to wait through a pre-charge cycle.
Another object of the present invention is to take advantage of the fact that in a digital computer environment, generally successive memory accesses are either to directly adjacent memory locations or they involve locations that are more than 2K. away from the location then being accessed.
A further object of the present invention is to provide a memory organization which takes advantage of the fact that memory access generally follows a pattern where instructions are sequentially stored in one section of memory and data is separately stored in another section of memory. Memory access requests generally switch between instructions and data. The instructions and the data sections of memory are widely separated, but considering a series of memory accesses, all the instructions requests are to contiguous sections of memory and all data requests are to a different contiguous sections of memory.
SUMMARY OF THE INVENTION
The present invention provides a memory organization scheme for a high-performance memory controller. The memory organization of the present invention combines page mode techniques and interleaving techniques to achieve high-performance.
The page interleaving of the present invention takes advantage of the statistical fact that in the usual computer environment, sequential memory accesses call for a mixture of instructions and data. However, considering a series of memory access requests, the instructions requested are normally to contiguous memory locations and the data requested are to contiguous memory locations which are at least more than 2K. away from the instruction locations. While directly sequential memory locations are accessed, the system of the present invention takes advantage of the page accessing capability of DRAM memories. Where accessing is more than 2K. away, the present invention takes advantage of an interleave scheme. Thus, the present invention combines the advantages of page memory organization and interleaved memory organization.





DESCRIPTION OF THE DRAWINGS
FIG. 1 shows an simplified overall diagram of the system.
FIG. 2 shows the layout of an instruction word.
FIG. 3 shows is a logical circuit which operates in accordance with the present invention.
FIG. 4 shows how memory pages are organized.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
The specific embodiment of the invention described herein is a memory accessing system for a digital computer which has a 36 bit data bus (32 data bits and 4 parity bits). A byte of data is eight bits of data; hence,a 36 bit data bus can accommodate 4 bytes of data and 4 parity bits, (only the 32 data bits will be discussed in the description that follows). Personal computers having this type of memory bus system are commercially available.
FIG. 1 shows a memory system 5 which has a plurality of memory banks. Memory 5 is designed to accommodate either 256K. DRAMS or 1 meg DRAMS. Thememory 5 can have one, two or four banks of DRAMS. Each bank can have either:
a) Thirty-six 256K. DRAMS, that is, one megabyte of memory. Note: 4 bytes (32 bits) times 256K. equals 1 megabyte.
b) Thirty-six 1 meg DRAMS, that is, four megabytes of memory. Note: 4 bytes(32 bits) times 1 meg equals 4 megabytes.
If there is only one bank of memory, the starting address of the bank is always zero. Furthermore, if there is only one bank of memory, the system can easily detect the amount of memory installed by trying to write and read in the higher addresses, hence, the problems associated with multiplebanks of memory does not arise. Likewise it is not possible to have even and odd pages in different banks if there is only one memory bank.
The specific embodiment of the invention described herein can accommodate either, one, two or four banks of memory. Where there is more than one bank of memory, the banks of memory are arranged in pairs so that there iseither one or two pairs of banks. Both banks in any pair must have either 256K. DRAMS or 1 meg DRAMS. However, any pair of banks can have either 256K. DRAMS or 1 meg DRAMS. The various possible combinations of DRAMS aregiven below. The allowable combinations of 256K. and 1 Meg DRAMs in memory 5 are:
______________________________________ TO- TAL PAIR ONE PAIR TWO Mem- BANK 1 BANK 2 BANK 3 BANK 4 ory______________________________________Chip size 256K 1 Megstart address 0Chip size 1 Meg 4 Megstart address 0Chip size 256K 256K 2 Megstart address 0Chip size 256K 256K 2 Megstart address 0Chip size 256K 256K 256K 256K 4 Megstart address 0 2 MegChip size 1 Meg 1 Meg 8 Megstart address 0Chip size 1 Meg 1 Meg 8 Megstart address 0Chip size 256K 256K 1 Meg 1 Meg 10 Megstart address 8 Meg 0Chip size 1 Meg 1 Meg 256K 256K 10 Megstart address 0 8 MegChip size 1 Meg 1 Meg 1 Meg 1 Meg 16 Megstart address 0 8 Meg______________________________________
Each pair of memory banks has a byte (eight bits) of associated configuration data. This byte of data indicates what type of DRAMS have been inserted into the particular pair of memory banks and the staring address of that memory.
Bits 6 and 7 of the data byte associated with each pair of memory banks indicate what type of DRAMS have been inserted into that set of memory banks. These bits are set as follows: (Note, two bits give four possible combinations.)
0 no memory, bank disabled
1 256K. DRAMS (2 banks of one megabyte for a total of two megabytes)
2 1 Meg DRAMS (2 banks of four megabytes for a total of eight megabytes)
3 not used
Bits 0 to 5 of the data byte associated with each pair of memory banks indicate the starting address of that set of DRAMS as follows:
______________________________________Starting Use AddressAddress bits______________________________________0 -- 20 to 252 Megs -- 21 to 258 Megs -- 23 to 25______________________________________
Memory 5 is divided into into pages, each of which are 2K. bytes. It is noted that if thirty six 256K. by 1 DRAMS are used to implement a bank, a page comprises 512 times 4 bytes, which equals 2K bytes. The possible waysthat pages can be organized in memory 5 is shown in FIG. 4. It should be noted that whenever there is more than one memory bank, odd and even pagesare located in different memory banks. Switching between pages is controlled by the Page Select Address Bit. The Page Select Address Bit is bit 11 in each data address word as shown in FIG. 2.
A simplified version of the circuitry which operates in accordance with this invention is shown in FIG. 1. A more complete explanation will be given later with respect to the circuitry shown in FIGS. 2 and 3. However,in order to facilitate an explanation of the invention, it will first be described with reference to the simplified flow diagram in FIG. 1.
As shown in FIG. 1, the embodiment of the invention shown herein includes anon-volatile section of memory 12B wherein system configuration data can bestored. Such memory is generally CMOS technology which can continue to store information even after the computer's main power supply has been turned off. CMOS memory uses little power and it can be operated by a relatively small battery. Computers such as the IBM AT (TM) computer include such a section of memory.
Memory 12B is initially located by a configuration program 12A that asks the operator to enter data indicating what memory chips have been insertedinto the particular computer. The configuration program 12A stores this data in the non-volatile section of memory. Thereafter each time the system is powered up, an initialization program 12C reads the data from the non-volatile memory 12B and stores it in the configuration registers 10-0 and 10-1.
As shown in FIG. 1 configuration register 10-0 is associated with the firstpair of memory banks and configuration register 10-1 is associated with thesecond pair of memory banks. The data in register 10-0 and the input address are provided to a logic circuit 11-0, while the data in register 10-1 and the input address are provided to a logic circuit 11-1.
Control logic 11-0 and 11-1 includes logic circuitry that combines each address with the data that is stored in the associated configuration register to generate control signals for the memory. In this way, the computer never needs to know which physical location in memory is actuallybeing addressed because the actual physical location is changed by logic.
Configuration program 12A is only run when the system is setup or initialized. Program 12A asks the operator to enter data which tells the system what size DRAMS have been inserted into the system. This data is stored in CMOS memory 12B. Thereafter each time the system is powered up, the data from CMOS memory 12B is transferred to registers 10-0 and 10-1. The general operation of the configuration program 12A and the way it obtains data and stores it in the CMOS memory 12B is conventional and it will not be explained further.
The configuration registers 10-0 and 10-1 each have two sections. The firstsection of registers 10-0 and 10-1 store bits 6 and 7 of the configuration byte associated with each bank of memory. As indicated above, these bits indicates what size DRAMS were installed in that memory bank.
The second section of each of the registers 10-0 and 10-1 store the starting address which will be used by that section of memory. Logic circuitry 11-0 and 11-1 combines the input address with data from the associated configuration registers 10-0 or 10-1 to generate the row selection signals for the appropriate memory bank.
The detailed manner that logic 11-0 and 11-1 operates will now be explainedwith reference to FIGS. 2 and 3. Each memory address comprises four bytes of data or 32 bits of data as shown in FIG. 2.
The bits in each address word are assigned as follows:
______________________________________Bits Function______________________________________0 and 1 Designate one of the four bytes in 32 bits word2 to 10 column select address11 page select bit12 to 20 row select address21 to 25 bank select address26 to 31 not used______________________________________
The circuitry shown in FIG. 3 operates on a page interleaved mode. In each page several columns can be accessed without waiting for a precharge cycle. Likewise, one can alternate pages and select columns from already accessed pages without waiting for a pre-charge cycle. This means that if,for example, a series of memory requests includes (a) a number of requests for instructions that are located in one section of memory and (b) a request for several pieces of data that are located in a second section ofmemory, where the two memory sections are more than 2K. apart, the data andthe instructions can be accessed without waiting for a precharge cycle. Thepossible page organizations for the memory are shown in FIG. 4. As shown inFIG. 4, even and odd pages are located on different memory banks.
Page interleave operation of a system which operates according to the principles of the present invention is explained in the publicly availableliterature which describes the 82C302 Page/Interleave Memory Controller Chip which is available from Chips and Technologies Incorporated, Milpitas, Calif. Such publicly available literature is hereby incorporatedherein by reference. (It is noted the the above referenced circuit was not on sale more than one year prior to the filing date of this patent application.)
A more detailed description of the logical circuitry that activates the rowselection circuitry in each memory bank is shown in FIG. 3. As previously explained the memory banks are divided into two pairs. The first pair includes memory banks 0 and 1. The second pair includes memory banks 2 and
Each memory address activates the row selection in only one of the four memory banks. Configuration register 10-0 contains one byte of configuration data associated with the first pair of memory banks, that is, memory banks 0 and 1. The configuration data in register 10-0 gives the starting address of that bank and the size of the DRAMS in the particular bank.
Circuit 14-0 compares the bank address bits 20 to 25 to the starting address and the size indication from register 10 to determine if a particular address is in the associated pair of memory banks. If the address is the associated memory bank, a signal is provided to circuit 15.
The row address bits are supplied to registers 16A and 16B which store the row address bits of the last row that was selected in each page. Dependingon the value of the page select bit in the address either circuit 17A or 17B is activated. Circuits 17A and 17B perform the following logical operation.
If the row selected is the same as the last row that was selected, that is,if the input address does match what is in register 16A or 16B, the action taken depends on the present state of the memory. If the row is already inan accessed state, then merely select the appropriate column. If the row isnot in an accessed state, then first do a row select and next do a column select.
If the row selected is not the same as the last row that was selected, thatis, if the input address does not match what is in register 16A or 16B, first do a row select and then do a column select.
Logical circuits 17A and 17B are conventionally designed logical circuits, the details of which are not relevant to the present invention, hence, they will not be described further.
The page select address bit in each address word, namely bit 11 as shown inFIG. 2, determines which page of memory is addressed. This bit either activates circuit 17A or 17B which which determines if the appropriate rowhas already been selected and then signals circuit 15. If the appropriate row has not been accessed, it is activated by circuit 15.
If circuit 14 determines that the particular address is in the associated pair of memory banks, it will send a signal to circuit 15. Circuit 15 alsoreceives a row address and a signal from either circuit 17A or 17B which indicates if the requested row equals the last requested row. Circuit 15 is both a logic circuit and a state machine since whether or not it activates a row selection circuit depends both on the inputs it receives and whether or not the particular circuit has previously been selected. Inpractice circuits 14, 15, 16 and 17 can be logically combined into one logic circuit. These are herein shown as separate boxes for ease of explanation. The details of how the logic is implemented is not relevant to the present invention.
The column selection circuitry for memory 5 is not shown since it is conventional. Likewise other details of the actual memory have not been shown since they are conventional.
FIG. 3 shows a dotted box 101 which indicates that memory banks 2 and 3 have circuitry associated therewith that is identical to the circuitry shown above.
While a particular embodiment of the invention has been shown and claimed, it should be clearly understood that the invention is not limited to the specific embodiment shown herein. Many modification may be made without departing from the spirit and scope of the invention. The description of aspecific embodiment is not meant to limit the scope of the invention. It iscontemplated and specifically stated that the applicant's invention covers all such modifications and alternatives to the specific embodiment shown which may fall within the words and spirit of the appended claims. It is to be fully understood that all of the foregoing is intended to be merely illustrative and is not to be construed or interpreted as being restrictive or otherwise limiting of the present invention.
Claims
  • 1. A memory controller for providing address and timing signals to at least two banks of DRAM memory chips, each of said DRAM memory chips being one of a predetermined, limited range of sizes, comprising:
  • an input address bus including a plurality of bit lines forming a bank address, column address, a row address and at least one page select address bit input connected at a less significant bit than the least significant bit of said row address for a smallest one of said DRAM chip sizes;
  • a first last row register having inputs coupled to said row address bit lines of said input address bus;
  • a second last row register having inputs coupled to said row address bit lines of said address bus;
  • first comparator means having a first input coupled to said row address bit lines of said input address bus and a second input coupled to an output of said first register;
  • second comparator means having a first input coupled to said row address bit liens of said input address and a second input coupled to an output of said second register;
  • a page select address bit line coupled between said page select bit input and an enabling input of each of said first and second comparator means, such that only one of said comparator means is activated in response to a bit on said page select address bit line;
  • logic state machine means having an input coupled to comparator outputs of said first and second comparator means for producing a first timing cycle with a row address pulse and then a column address pulse responsive to a first state of said comparator outputs and for producing a second timing cycle with only a column address pulse in response to a second state of said comparator outputs when a current row address matches a last row address, said second timing cycle being shorter in duration than said first timing cycle, said timing cycles being provided to a first one of said banks responsive to said output of said first comparator means and to a second one of said banks responsive to said output of said second comparator means, such that interleaving between said banks is controlled by said page select address bit enabling one of said comparator means;
  • a configuration register for indicating the location of said banks of memory in a memory address space; and
  • address comparison means, having a first input coupled to said configuration register and a second input coupled to said input address bus, for comparing bank address bits of said input address bus to said location of said banks of memory and providing an enable signal to said logic state machine means when said input address is within said location.
  • 2. The memory controller of claim 1 wherein said page select address bit and said input address are addresses from an external processor before being translated to a physical address.
Parent Case Info

This is a continuation of application Ser. No. 07/112,863 filed Oct. 23, 1987, now U.S. Pat. No. 4,924,375.

US Referenced Citations (23)
Number Name Date Kind
3796996 Curley Mar 1974
3806881 Miwa Apr 1974
4280176 Tan Jul 1981
4293910 Flusche et al. Oct 1981
4405996 Stewart Sep 1983
4500961 Engles Feb 1985
4513374 Hooks, Jr. Apr 1985
4545052 Steierman Oct 1985
4546451 Bruce Oct 1985
4623986 Chauvel Nov 1986
4628489 Ong Dec 1986
4685084 Canopa Aug 1987
4694405 Bradbury Sep 1987
4701843 Cohen Oct 1987
4716525 Gilanyi Dec 1987
4724518 Steps Feb 1988
4725945 Kronstadt et al. Feb 1988
4740911 Shar et al. Apr 1988
4752915 Suzuki et al. Jun 1988
4758996 Goldman Jul 1988
4780855 Iida et al. Oct 1988
4803621 Kelly Feb 1989
4845612 Sakai Jul 1989
Continuations (1)
Number Date Country
Parent 112863 Oct 1987