Apparatus and method for reconfiguring a memory in a data processing system

Abstract: Apparatus and method for reconfiguring a memory (12) in a data processing system to increase the rate of informa­ tion transfer between system memory (12) and processor (14). The system memory (12) is comprised of a plurality of memory banks (28), each bank (28) being one or more words in width and having a separate data output path (22-1, 22-2). In a first configuration a memory controller (16) addresses the memory banks (28) as a sequential memory to read from one address location at a time and the output data paths (22-1, 22-2) of the memory banks (28) are configured into a single, one bank data path to the system processor (14). If each bank (28) is one word wide and N words deep and there are M memory banks, the memory appears as a sequential, one word wide by M×N words deep memory from which one word may be read at a time. In a second configuration, the memory (12) is reconfigured by the addition of an address translator means (36) and a bus reconfiguration means (38). The address translator means (36) provides addresses addressing M banks (28) in parallel, so that M locations are read in each read operation. The bus recon­ figuration means (38) reconfigures the bank output busses (22-1, 22-2) in parallel, that is, into M parallel busses (22-1, 22-2), and provides a selection means, responsive to the addressing means (36) for providing the information appear­ ing on a selected bank output bus (22-1, 22-2) as the memory output (24) to the system processor (14). The memory (12) is thereby reconfigured to be a parallel, M words wide by N words deep memory wherein M words may be read from the memory (12) at a time. In both the sequential and parallel configurations, the data path to the system processor (14), that is, the combined single width path of the sequential configuration and the selection means output of the parallel configuration, comprises a direct data path from the memory (12) to the processor (14).

Description: The present invention relates to memory means and a method for operating same in a digital data processing or computer system and is directed to accessing the memory means. A recurring problem in the design of computer and data processing systems is the provision of a means or path by which the capabilities of a system, such as memory capacity or speed of system operation, may be enhanced without a major modification to or rebuilding of the system. As is well known in the prior art that system memory capacity is readily expandable without significant alterations to the system. In many systems, memory may be expanded by simply inserting additional memory circuit boards as required. The enhancement of system operating speed is more difficult, however, in that the factors determining system operating speed, that is, the rate at which the system can operate upon data and instructions, are largely determined by the design of the system memory and processing elements. The system processor and memory elements are integral parts of the system and a modification to either generally results in significant modifications to the system as a whole. For example, system speed may be limited by the rate at which the system processor can accept and operate upon data and instructions. An increase in processor speed may require the installation of a different processor, which may in turn require modification of the operating system programs, that is, the supervisory programs controlling overall system operation. The primary limitation upon system operating speed, however, is most commonly the rate at which instructions and data may be transferred from memory to the system processor. Memory to processor transfer rate is most commonly enhanced by either installing a higher speed memory or by imposing a high speed complex cache memory system between the system memory and processor. The substitution of a high speed memory or the addition of a cache memory, however, frequently requires significant modifications to the processor and system memory interfaces and often requires corresponding modifications or additions to the operating system programs. An attempt to increase the transfer rate from memory to processor is described in US patent specification 4,156,290. An addressing device for a memory means as defined in the preamble of claim 1 includes a plurality M of memory bank means having separate data output registers and paths, wherein said data output paths are configured into a single one bank wide output path. The banks having a capacity of 1024 8bit-words and each having a separate output path, wherein said data output paths are connected to a single one bank wide output path 23 via the controllable output registers. The banks are connected to a 10 bit address channel while address controller and decoder receive the current address via a 13-bit channel. The decoder receives the three least significant bits of the current address. These three bits are decoded to address one of the banks. The current address which could be used for a sequential one bank wide by M (=8) deep memory is reconfigured so that the memory means are addressed as a parallel M bank wide by single deep memory to read information from M bank locations in parallel. The decoder further controls means for selecting certain ones of the parallel bank output paths to be connected to said single one bank wide output path. This configuration results in an enhancement of the data transfer rate between the main memory and central processor unit and does not need significant processor or system memory interfaces. If is an object of the invention as defined in the appendent claims to provide a memory means in a data processing system and its operating method to enhance the rate of information transfer between system memory and processor, thereby further enhancing the speed of operation of the system without requiring significant modification of the system. The system memory is comprised of a plurality of memory banks, each bank being one or more words in width and having a separate data output path. In a first, lower speed configuration (which is not part of the present invention), a memory controller addresses the memory banks as a sequential memory to read from one address location at a time and the output data paths of the memory banks are configured into a single, one bank wide data path to the system processor. If, for example, each bank is one word wide and N words deep and there are M memory banks, the memory appears as a sequential, one word wide by MxN words deep memory from which one word may be read at a time. The information transfer rate is thereby determined by the rate at which a word may be read from a bank. In a second configuration, the memory is reconfigured by the addition of an address translator means and a bus reconfiguration means. The address translator means provides addresses addressing M banks in parallel, so that M locations are read in each read operation. the bus reconfiguration means reconfigures the bank output busses in parallel, that is, into M parallel busses and provides a selection means, responsive to the addressing means, for providing the information appearing on a selected bank output bus as the memory output o the system processor. The memory, assuming the same example as above, is thereby reconfigured to be a parallel, M words wide by N words deep memory wherein M words may be read from the memory at a time. The information transfer rate is thereby increased over that of the sequential memory configuration. In both the sequential and parallel configurations, the data path to the system processor, that is, the combined single width path of the sequential configuration and the selection means output of the parallel configuration, comprise a direct data path from the memory to the processor. That is, a path by which information read from memory is essentially provided directly to the processor as it is read from the memory. According to the invention a cache path is provided for the memory in the record configuration, the cache path being, connected in parallel with the direct data path, that is, from the parallel bank outputs to selection means output, for storing information in advance of information presently being processed. Information transfer rate is thereby further enhanced in that information may be accessed from the cache, which is essentially a smaller, high speed memory, rather than from the system memory. An embodiment of the invention is described in more detail with reference to the drawings in which Fig. 1 is a partial block diagram of a system incorporating the reconfigurable memory in the non-cache configuration; and Fig. 2 is a partial block diagramm of a system incorporating the reconfigurable memory in the cache configuration. The following description presents the structure and operation of a memory system incorporating a cache. The system and memory are described first in the basic, or non-cache, configuration and then reconfigured by the cache, that is, in the cache configuration. As described above with reference to the drawing, the non-cache configuration is shown in Fig. 1 and the cache configuration in Fig. 2. Fig.s 1 and 2 may be arranged side by side to aid in illustrating the concepts described in detail below. 1. Basic Configuration Referring first to the basic configuration shown in Fig. 1, Computer System 10 includes a Main Memory (MM) 12 for storing data and instructions and a Central Processor Unit (CPU) 14 responsive to the instructions for performing operations on the data. Connected between MM 12 and CPU 14 is a Memory and Bus Controller (MBC) 16 which controls the transfer of instructions and data between MM 12 and CPU 14. MBC 16 is responsive to read/write addresses (CPADs) provided from CPU 14 through CPAD bus 18 to provide corresponding read/write addresses (MMADs) to MM 12 through MMAD bus 20. MM 12 and MBC 16 are respectively responsive to MMADs and CPADs to read Main Memory Read Data (MMRD), that is, data and instructions, from MM 12 to MBC 16 through MMRD buses 22-1 and 22-2 and corresponding Central Processor Data (CPD) from MBC 16 to CPU 14 through CPD bus 24. MM 12 and MBC 16 are similarly responsive to MMADs and CPADs to write Main Memory Write Data (MMWD) from CPU 14 to MM 12 through MMWD bus 26. As shown in Fig. 1, MM 12 is comprised in the basic, non-cache configuration of one or more Memory Banks (MBs) 28. For purposes of illustration with respect to the following description of the cache reconfigured MM 12, MM 12 is shown in the basic configuration as containing two MBs 28, designated as MB 28-1 and MB 28-2. Each MB 28 comprises, in the present example, a one word wide by N word deep memory bank having separate input address and data paths, respectively MMAD 20-1 and MMAD 20-2 and MMWD 26-1 and MMWD 26-2, and separate output data paths, respectively MMRD 22-1 and MMRD 22-2. The input and output data paths of MB 28-1 and MB 28-2 are each one word wide. In the present example, System 10 may be a 32 bit system, that is, each word may contain 32 bits of instruction or data information, while N may equal 262,144 words. In further example, each word stored in an MB 28 may contain 32 information bits plus 7 ERCC bits, or 39 bits. For purposes of clarity in the following descriptions, however, the ERCC bits and functions of MM 12 and MBC 16 will be ignored. As shown in Fig. 1, MBC 16's MMAD output from Memory Addressing (MA) 29 through MMAD bus 20 is connected to address inputs MMAD 20-1 and MMAD 20-2 of MB 28-1 and MB 28-2 in parallel so as to provide each MBC 16 MMAD output concurrently to both MB 28-1 and MB 28-2. MA 29 is essentially a buffer, but may perform certain address translation functions. The MMADs provided from MA 29 in response to each CPAD provided from CPU 14 identify individual address locations, or words, in MB 28-1 and 28-2. Each CPAD will thereby result in the addressing of a single word in MM 12. In the basic, non-cache configuration shown in Fig. 1, MBC 16 configures the separate one word wide data output paths MMRD 22-1 and 22-2 of MB 28-1 and 28-2 into a single one word wide output data path, MMRD 22, through Data OR (DOR) 30. DOR 30 may comprise a one word wide ORing circuit or may, for example, comprise a simple wired ORing of MMRD 22-1 and 22-2 if MB 28-1 and 28-2 are provided with tri-state or open collector output drivers. Since each MMAD provided to MM 12 by MA 29 selects a single word to be read from MM 12 in each read operation, only one corresponding output word will appear on MMRD busses 22-1 and 22-2. There will thereby be no data output conflicts in DOR 30 and the single words read from MM 12 in each operation will appear on MMRD bus 22. Words appearing on MMRD bus 22 are transferred through Direct Read Data (DIRD) path 32, essentially a buffer operation, to CPD bus 24 and CPU 14. In the non-cache configuration, therefore, MB 28-1 and MB 28-2 are functionally configured in sequence by MBC 16, as regards both addressing and data output, so that MM 12 functionally comprises a one word wide by 2xN word deep memory. A diagrammic illustration of the non-cache, sequential configuration of MB 28-1 and 28-2 as a one word wide by 2xN word deep memory is presented in Fig. 1 above MM 12. All reads of words from MM 12 by CPU 14 in the basic, non-cache configuration are therefore of single words and the data transfer rate between MM 12 and CPU 14 is thereby determined by the rate at which words may be read from MM 12. It should be noted that because CPU 14 operates, in the present example, upon the basis of single words, all writes of data from CPU 14 to MM 12 will usually be of single words. Data input paths MMWD 26-1 and MMWD 26-2 of, respectively, MB 28-1 and 28-2 are therefore connected in parallel from MMWD bus 26 to comprise a single one word wide data path into MB 28-1 and MB 28-2. It should be further noted that, in the basic configuration, individual word locations in MM 12, that is, in MB 28-1 and MB 28-2, may be assigned and addressed sequentially. In an alternate embodiment, or as described below with regard to the cache reconfiguration of MM 12, odd address locations may be assigned in, for example, MB 28-1 while even address locations are assigned in MB 28-2. 2. Cache Configuration Referring now to Fig. 2, Computer System 10 is shown in the cache configuration. As described above with reference to the basic configuration, System 10 includes CPU 14 and MM 12. MM 12, however, contains two, or a multiple of two, MB 28s rather than one or more MB 28s and MBC 16 has been replaced by Memory Bus Controller/Cache (MBC/C) 34. As illustrated by a comparison of Figs. 1 and 2, and described further below, the replacement of MBC 16 by MBC/C 34 results in the reconfiguration by MBC/C 34 of the MM 12 data output paths, that is, MMRD 22-1 and MMRD 22-2. The reconfiguration of MMRD 22-1 and 22-2 by MBC/C 34 separates MMRD 22-1 and 22-2 into separate, parallel one word wide data output paths from, respectively, MB 28-1 and MB 28-2, so that the data path from MM 12 to MBC/C 34 is two words wide. As will be described further below in association with a further, more detailed description of the elements of MBC/C 34, MMRD 22-1 and 22-2 are reconfigured into separate parallel paths by Multiplexer (MUX) 38, which replaces MBC 16's DOR 30. MBC/C 34 further performs a translation operation on the CPADs provided from CPU 14 so as to provide corresponding MMADs suitable to the altered configuration of MM 12. The configurations and functions of all other data and address paths remain unchanged from the non-cache configuration, as do the internal operations and the interfaces of the MB 28s and CPU 14. As described above with reference to the non-cache configuration, CPU 14 operates on the basis of single words and, accordingly, the CPAD addresses provided to MBC/C 34 by CPU 14 refer to single words. Any particular single word, however, may be regarded as a member of an odd/even pair of words, that is, a pair of words wherein one word of the pair is identified by an odd address and the other word of the pair is identified by the adjacent even address, or the reverse. The addresses of the two words of such a pair will differ by one bit, that is, an odd/even bit identifying a particular word as the odd or even word of a pair. The address translation operation performed by MBC/C 34 is performed by Memory Address Translator (MAT) 36, which replaces MA 29 of MBC 16. MAT 36 transforms CPAD single word references received from CPU 14 into MMADs referring to corresponding odd/even pairs of words by effectively discarding the odd/even bit of the CPADs. A CPAD provided by CPU 14 will thereby result in an MMAD referencing an odd/even pair of words wherein one word of the pair is the word referred to by the original CPAD and the other word of the pair is the corresponding odd or even word of the pair. As previously described, MM 12 will, in the cache configuration, contain at least one pair of MB 28s, for example, MB 28-1 and MB 28-2, and may contain several pairs of MB 28s, depending upon the address space defined by addresses CPAD and MMAD. In the cache configuration, address locations within MM 12, that is, within each MB 28-1 and MB 28-2 pair, are assigned so that all odd address locations reside in, for example. MB 28-1 and all even address locations reside in corresponding address locations in MB 28-2. As previously described with respect to MBC 16, MBC/C 34's MMAD output from MAT 36 through MMAD bus 20 is connected to address inputs MMAD 20-1 and 20-2 of MB 28-1 and 28-2 in parallel so as to provide each MBC/C 34 MMAD output concurrently to both MB 28-1 and 28-2. Each MMAD odd/even pair address provided by MBC/C 34 will thereby address corresponding parallel locations in MB 28-1 and 28-2 so that the corresponding odd/even pair of words will appear concurrently and in parallel upon MM 12 data output buses MMRD 22-1 and 22-2. Each MB 28-1 and 28-2 pair are thereby functionally reconfigured by MBC 16, as regards both addressing and data output paths, from a sequential, one word wide configuration to a parallel, two word wide configuration. The replacement of MBC 16 by MBC/C 34 thereby reconfigures MM 12 from a one word wide by 2xN word deep memory wherein each read operation provides one word to a two word wide by N word deep memory wherein each read operation provides an output of two words in parallel. MBC/C 34 thereby doubles the output data rate of MM 12 with respect to the non-cache configuration of MBC 16 shown in Fig. 1. A diagrammic illustration of the parallel, cache configuration of MB 28-1 and 28-2 as a two word wide by N word deep memory is presented in Fig. 2 above MM 12. In addition to reconfiguring MM 12 as just described, MBC/C 34 further provides, as described in further detail below, a dual data path from MM 12 to CPU 14. The first branch of the path is a direct data path for transferring single words directly from either MMRD 22-1 or MMRD 22-2 to CPD bus 24 and corresponds to the Direct Read Data path comprising DOR 30 and DIRD 32 of MBC 16. The second path, connected in parallel with the direct data path, includes a cache memory for storing words in anticipation of the needs of CPU 14. Referring first to the direct data path, the DOR 30 of MBC 16 is replaced in MBC/C 34 by Multiplexer (MUX) 38, which receives parallel inputs from MMRD busses 22-1 and 22-1 and provides a one word wide output on MMRD bus 22 to MBC/C 34's DIRD 32. The output of MBC/C 34's DIRD 32 is in turn connect to CPD bus 24 to CPU 14. As just described, each MMAD provided to MM 12 by MAT 36 will result in a pair of words appearing in parallel on MMRD busses 22-1 and 22-2, that is, at the inputs of MUX 38. MUX 38 is responsive to a MUX Address (MUXA) provided from MAT 36 in conjunction with each MMAD to select and transfer to MMRD 22 the single word referenced by the corresponding CPAD. The single words are then transferred by DIRD 32 to single word data path CPD 24 to CPU 14. Referring now to the parallel cache data path, as shown in Fig. 2 MBC/C 34 includes a CACHE 40 connected in parallel with MUX 38 and DIRD 32. CACHE 40 has a two word wide data input path comprised of two parallel single word paths connected from MMRD 22-1 and 22-2 in parallel with the corresponding inputs to MUX 38. CACHE 40 has a single word wide output path connected to CPD 24 in OR configuration with the output of DIRD 32. Each CPAD address provided to MBC/C 34 by CPU 14 is, in MBC/C 34, provided as a CACHE Input Address (CAD) to MBC/C 34's cache mechanism. If the addressed word is presently resident in CACHE 40, CACHE 40 responds by providing to MAT 36 by an appropiate Hit/Miss (H/M) indication. MAT 36 responds to a cache hit by inhibiting the transfer of a MMAD to MM 12 and CACHE 40 responds to the CAD by providing the requested word on CACHE 40's output to CPD 24 and thus to CPU 14. If the requested word is not presently in CACHE 40, the CPAD is translated into an odd/even word pair MMAD to MM 12 and the requested word and its' associated pair word are read from MM 12 to MBC/C 34. The requested single word is transferred directly to CPU 14 through the direct data path comprised of MUX 38, DIRD 32 and and CPD bus 24. The words of the pair are concurrently read into and stored in CACHE 40. Read requests by CPU 14 will thereby result in the transfer to CACHE 40 of additional words, beyond those immediately required by CPU 14, to be held in CACHE 40 in anticipation of the requirements of CPU 14. In a further preferred embodiment, the CACHE 40 is implemented with the capability, as well known in the art, to use memory access cycles not otherwise required by CPU 14 to read and store yet further information from MM 12 in anticipation of the requirements of CPU 14. As regards write operations from CPU 14 to MM 12 in the cache configuration, it should be noted that the write data path remains, in the present embodiment, as in the non-cache configuration. That is, MMWD buses 26-1 and 26-2 are connected in parallel from MMWD bus 26 to comprise a single word path into the MB 28s of MM 12. Words are written into single odd or even address locations in MM 12 by operation of MAT 36 which, during write operations, steers a write enable command to the appropiate odd address or even address in MB 28s. In an alternate embodiment, however, the write data path may be increased to multiple words in width to allow the concurrent writing of a corresponding number of words if CPU 14 has the capability of writing multiple words or is modified to do so. The replacement of MBC 16 by MBC/C 34 thereby results in the enhancement of the data transfer rate between MM 12 and CPU 14 without requiring modification to or rebuilding of the remainder of the system, in particular MM 12 and CPU 14. This enhancement results from the effective doubling of the width of the data path from MM 12 to CPU with a corresponding increase in the data transfer rate and the inclusion, without system modification, of a cache mechanism with again a corresponding enhancement in data transfer rate. MBC/C 34 accomplishes this enhancement by reconfiguring MM 12 from a single word wide by 2xN word deep memory to a two word wide by N word deep memory and by providing a cache data path in parallel with the previously existing direct data path. The present invention may be embodied in yet other specific forms without departing from the spirit or essential characteristics thereof. For example, the dimensions of MBs 28 may differ from the example presented herein, or the width of the words used by the system may differ. In addition, it is not necessary for all MB 28 pairs in the cache configuration to comprise an actual pair; that is, one or more 'pairs' may include only one MB 28 and that portion of MM 12 will appear, in the cache configuration, as a single word wide memory. In a yet further embodiment, MM 12 may be configured in the cache configuration as three, four or more words wide, rather than two, with a consequent multiplication MMRD busses 22. Also, each MB 28 may be a multiple number of words wide with a corresponding increase in the width of the data paths and a corresponding increase in the number of words read from or written into each MB 28 in each read or write operation. In a still further embodiment, the write data path from CPU 14 to MM 12 may be increased in width to allow the concurrent writing of multiple words into MM 12. In yet another embodiment, the direct and cache output data paths may be increased in width corresponding to the increase in width of the reconfigured memory, thereby re-configuring the entire system from, for example, an 8 bit word system to, for example, a 16 or 32 bit word system.

Claims: A memory means (12) for a data processing system, the data processing system including means for generating first addresses corresponding to data to be read from the memory means, the memory means including a plurality M of memory bank means (28-1, 28-2) having separate data output paths (22-1, 22-2), addressing means (36) responsive to the first addresses for providing second corresponding addresses for addressing the memory bank means (28-1, 28-2) as a parallel M bank wide by single bank deep memory to read data from M bank locations in parallel, means (38) for selectively coupling the M memory bank means data output paths (22-1, 22-2) to a memory means output data path (24) in response to an output from the addressing means 36, the memory means output data path (24) having a width of N, where N is less than M, characterized by cache means (40) coupled in parallel with the means for selectively coupling, the cache means (40) having M inputs individual ones of which are coupled to one of the M parallel bank output data paths (22-1, 22-2) for storing information appearing upon the M parallel bank output data paths (22-1, 22-2) for possible subsequent transfer to the memory means output path (24), the cache means (40) having an output coupled to the memory means output data path (24); and characterized in that the cache means (40) is responsive to a first address that identifies data already stored within the cache means (40) for providing a Hit indication to the addressing means (36) and for outputting the identified data to the memory means output data path (24), the Hit indication causing the addressing means (36) to inhibit the outputting of a corresponding second address to the plurality M of memory bank means (28-1, 28-2); and the cache means (40) is responsive to a first address that identifies data not already stored within the cache means (40) for providing a Miss indication to the addressing means (36), the Miss indication causing the addressing means (36) to output a corresponding second address to the plurality M of memory bank means (28-1, 28-2), whereby the cache means (40) is enabled to store the data appearing on the M parallel bank output data paths (22-1, 22-2) in parallel with the means for selectively coupling (38) coupling a selected one of the M parallel bank output data paths (22-1, 22-2) to the memory means output data path (24). The memory means (12) as claimed in Claim 1, characterized in that the output from the addressing means (36) to the means (38) for selectively coupling is at least one least significant first address bit. A method for operating a memory means (12) in a data processing system, the data processing system including means for generating first addresses corresponding to data to be read from the memory means, the memory means including a plurality M of memory bank means (28-1, 28-2) having separate data output paths (22-1, 222), addressing means (36) responsive to the first addresses for providing second corresponding addresses for addressing the memory bank means (28-1, 28-2) as a parallel M bank wide by single bank deep memory to read data from M bank locations in parallel, means (38) for selectively coupling the M memory bank means data output paths (22-1, 22-2) to a memory means output data path (24) in response to an output from the addressing means 36, the memory means output data path (24) having a width of N, where N is less than M, characterized by providing a cache means (40) that is coupled in parallel with the means for selectively coupling, the cache means (40) having M inputs individual ones of which are coupled to one of the M parallel bank output data paths (22-1, 22-2) for storing information appearing upon the M parallel bank output data paths (22-1, 22-2) for possible subsequent transfer to the memory means output path (24), the cache means (40) having an output coupled to the memory means output data path (24); providing a Hit indication from the cache means (40) to the addressing means (36) in response to a first address that identifies data already stored within the cache means (40), the Hit indication causing the addressing means (36) to inhibit the outputting of a corresponding second address to the plurality M of memory bank means (28-1, 28-2); and outputting from the cache means (40) the identified data to the memory means output data path (24); providing a Miss indication from the cache means (40) to the addressing means (36) in response to a first address that identifies data not already stored within the cache means (40), the Miss indication causing the addressing means (36) to output a corresponding second address to the plurality M of memory bank means (28-1, 28-2); outputting corresponding data from the M memory banks (28-1, 28-2) to the M parallel bank output data paths (22-1, 22-2); and selectively coupling with the means (38) a selected one of the M parallel bank output data paths (22-1, 22-2) to the memory means output data path (24); whereby the cache means (40) is enabled to store the data appearing on the M parallel bank output data paths (22-1, 22-2) in parallel with the means for selectively coupling (38) coupling a selected one of the M parallel bank output data paths (22-1, 22-2) to the memory means output data path (24). The method as claimed in claim 3 characterized in that the means (38) for selectively coupling is operated in accordance with an output from the addressing means (36) that is at least one least significant first address bit.

Inventors: KAYSER DENNIS J, MACDONALD JAMES B, MARTINS JOHN M, TROTTIER ROBERT R, KAYSER, DENNIS J., MACDONALD, JAMES B., MARTINS, JOHN M., TROTTIER, ROBERT R.
Applicants: WANG LABORATORIES, WANG LABORATORIES INC.
Application year: 1985
Main classification: G06F12
IPC codes: G06F12