Shared bus non-sequential data ordering

Abstract: A shared bus non-sequential data ordering method and apparatus are provided. A maximum bus width value and a minimum transfer value are identified. A minimum number of sub-transfers is identified responsive to the identified maximum bus width value and the minimum transfer value. A bus unit having a maximum number of chips to receive and/or send data receives data in a predefined order during multiple sub-transfers. During each data sub-transfer, a corresponding predefined word is transferred to each chip of the bus unit.

Description: Field of the Invention The invention relates generally to data processing systems, and more particularly to a shared bus non-sequential data ordering method and apparatus for a data processing system. Background of the Invention Data processing or computer systems typically include a shared data path known as a bus. The bus connects bus units such as processors, memories, and storage devices. Data is transferred between bus units via the bus. The speed at which data is transferred on the bus is an important component of the performance of the computer system. Requirements for increased data transfer speed on the bus are fueled by an increase in the number of instructions that processors can execute and the speed at which the processors can execute instructions. With the advent of integration technologies of well over one million transistors on a chip and increasing, it is now possible to build superscalar and VLIW (very long instruction word) processors. These processors often execute more than one instruction per cycle, which increases the requirements for large amounts of data to be transferred to and from memory or storage. In addition to the increased integration density of processors, processor speeds are increasing faster than memory access times, and even beyond the time of flight for signals on a bus. This speed mismatch also increases the requirement for large amounts of data to be transferred. To satisfy these growing requirements for large amounts of data, the speed of the bus needs to be increased. The speed at which a shared bus can transfer data is determined in part by the physical length of the bus, the load on the bus, and the minimum transfer amount (also called the bus width or bus size). The physical length of the bus is simply the length of the connection between bus units. The greater the physical length of the bus, the slower the bus will be. The load is the impedance of one wire of the bus as seen by the driver. The greater the load, the slower the bus will be. The load on the bus is determined by the number of bus units on the bus and the load presented by each bus unit. The minimum transfer amount is the amount of data that is transferred across the bus at one time. The larger the minimum transfer amount, the faster the speed of the data transfer will be. To satisfy the requirements of modern processors, the desired minimum transfer size on the bus that the processor or its cache requires is increasing from four or eight bytes to sixteen or thirty-two bytes and beyond. Unfortunately it is not always possible to merely increase the size of the minimum transfer in order to increase the bus transfer speed because the size of the minimum transfer is limited by physical constraints. These physical constraints include: the number of I/O pins on chips, chip modules, and card connectors; the wiring constraints of chips, cards, and multi chip modules; and the cost of wide buses. As integrated circuits become more dense and provide the capability of more and more data throughput, they are surpassing the ability of modules and cards to provide the data throughput needed. Even if the technology exists to use the I/O capabilities of chips, it can be cost prohibitive, forcing the use of older, more cost effective packaging technologies to be competitive in the marketplace. Thus, because of the physical and cost constraints, a complex computer system may have many buses of varying sizes. For example, the cache data bus may be wider than the main store data bus. When two buses of different sizes are connected, the transfer size of one bus must be converted to the transfer size of the other bus. To accomplish this, when converting from a larger transfer size to a smaller transfer size, two or more sub-transfers are required to make up the minimum transfer size. Existing conversion methods use sequential data ordering where each byte is in sequential order with its neighbor on the data bus. For example, when converting from a larger transfer size to a smaller transfer size, the first part of the total width is transferred, then the second part, then the third part, and so on, until the conversion is completed. US Patent 5,243,701 is an example of a memory sub-system that has the capability to work on an eight bit or sixteen bit bus using sequential data ordering. These existing conversion methods have a problem in that they cause increased loading, which lowers performance, when multiple chips interface to the bus. With the need for wide minimum transfers to increase bus speed, often there will be multiple chips interfacing to the bus. Each of these chips would receive a portion of the data transferred, and there will be more than one chip load on the bus. An example of multiple chips connected to the data bus could be four DRAM controller chips each controlling four bytes of DRAMs to provide a minimum transfer size of sixteen bytes. Another example is four cache controller chips that contain the cache for four bytes of data would also provide a minimum transfer size of sixteen bytes. Advances in integrated circuits and processor design are creating a new set of problems for the designers of shared busses. The very wide minimum data transfer required by these latest processors and their reduced cycle time pushes the shared bus designer to transfer more data in less time than ever before. When the shared bus width is less than the required minimum transfer, the requested data must be transferred in two or more sub-transfers. To keep the bus operating at the cycle time of the processor the designer must also reduce loading on the bus. With the need for the wide minimum transfer, often there will be multiple chips interfacing to the bus. If the designer uses the current art to convert the minimum required transfer size to the actual bus width there will be extra loading on the bus, thereby reducing its speed. The shared bus non-sequential data ordering method and apparatus that follows provides significant improvement over the prior art in balancing the needs and constraints of the system. SUMMARY OF THE INVENTION It is a principal object of the present invention to provide a shared bus non-sequential data ordering method and apparatus that overcomes many of the disadvantages of prior art arrangements by enabling reduced bus loading and improved performance of the bus The objects and advantages of the present invention are achieved by a shared bus non-sequential data ordering method and apparatus. First, a maximum bus width value and a minimum transfer value are identified. Second, a minimum number of sub-transfers is identified responsive to the identified maximum bus width value and the minimum transfer value. Third, a bus unit having a maximum number of chips to receive and/or send data is identified. Finally, during each data sub-transfer, a corresponding predefined word is transferred to or from each of the chips of the bus unit identified with the maximum number of chips on the bus. A non sequential data ordering method and apparatus for sharing a bus are set in claims 1 and 3. BRIEF DESCRIPTION OF THE DRAWING The present invention, together with the above and other objects and advantages, can best be understood from the following detailed description of the embodiment of the invention illustrated in the drawing, wherein: FIG. 1 is a block diagram representation of a computer or data processing system embodying the present invention; FIG. 2 is a block diagram illustrating a bus naming convention of the present invention; FIG. 3 is a diagram illustrating a data ordering example in accordance with the ordering method and apparatus of the present invention; FIG. 3A is a flow chart illustrating sequential steps in accordance with the data ordering method of the present invention; FIG. 4 is a diagram illustrating byte numbering and ordering for a 16 byte main store bus; FIG. 5 is a diagram illustrating byte numbering and ordering for a 32 byte main store bus; and FIG. 6 is a block diagram illustrating a sequential data ordering bus arrangement. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring now to FIG. 1 of the drawing, there is shown a computer or data processing system generally designated by the reference character 10 and embodying the present invention. Computer system 10 includes a processor 12, a memory or main storage 14 used with a main storage controller unit (MSCU) 16 that includes a plurality of cache/memory controller chips CHIP 0, CHIP 1, CHIP 2 and CHIP 3 with a shared main store bi-directional bus with non-sequential data ordering generally designated by the reference character 18. In accordance with features of the invention, the shared bus non-sequential data ordering method and apparatus provides reduced bus loading with multiple chip sources and destinations, improved bus performance a reduced I/O count as compared to a sequentially ordered bus arrangement, such as shown in FIG. 6. The reduced I/O count comes from the single word-wide interface to each chip. Data is ordered in the non-sequential method so that the bus unit with the largest number of chips to receive or send data transfers data sequentially in sub transfers to each chip. Using the ordering method of the invention as illustrated in FIG. 1, each portion of the data bus 18 has only one load per bus unit. The bus units in FIG 1. are main storage 14 and MSCU 16. The first data sub-transfer includes words 0,2,4,6. On the first sub-transfer, each chip CHIP 0, CHIP 1, CHIP 2, and CHIP 3 gets one word, the even words 0,2,4,6. The second data sub-transfer includes the odd words 1,3,5,7. On the second sub-transfer, each chip CHIP 0, CHIP 1, CHIP 2 and CHIP 3 gets one word, the odd words 1,3,5,7. Using this method, each chip only needs a single word-wide interface. The single word-wide interface is less expensive, results in a smaller package, and leaves more real estate on the chip for other functions. FIG. 2 illustrates a bus-naming convention, and FIG. 3 illustrates a data-ordering example in accordance with the non-sequential data ordering method and apparatus of the invention. A minimum data transfer width X may be determined by the cache-to-processor interface. With X/2 available I/O pins, a smaller bus Y is represented by X/2 bytes. In FIG. 1 where there are four cache/memory controller chips CHIP 0, CHIP 1, CHIP 2 and CHIP 3, each chip gets X/4 bytes of data. Since the data bus Y is one-half the desired minimum transfer, two sub-transfers (ST) are required to complete a transfer. Let us define the X bytes to be comprised of n words, where a word is the sub-transfer size to each chip. In the example illustrated, n = X/8. For each sub-transfer, each cache/memory controller chip CHIP 0, CHIP 1, CHIP 2, CHIP 3 supplies one-eighth of the total transfer. This is because each chip needs X/4 bytes, but only gets half with each sub-transfer. For example, as shown in FIG. 1, each receiving unit or CHIP 0, CHIP 1, CHIP 2 and CHIP 3 in the logical receiving MSCU 16 receives data in multiple transfers of the non-sequential ordering. For example, assume the desired data transfer width is X bytes, comprising eight words numbered 0,1,2,3,4,5,6,7. The X bytes are sent or transferred across the bus in two sub-transfers as words 0,2,4,6 and then words 1,3,5,7. As a result, each receiving unit CHIP 0, CHIP 1, CHIP 2, CHIP 3 receives data in the standard sequential order. Receiving unit CHIP 0 receives data segments 0,1. Receiving unit CHIP 1 receives words 2,3. Receiving unit CHIP 2 receives words 4,5. Receiving unit CHIP 3 receives words 6,7. Referring to FIG. 3A, there is shown a flow chart illustrating sequential steps to determine subtransfer size and data ordering in accordance with the data ordering method of the present invention. The non-sequential ordering method expressed in terms of a mathematical formula follows. First at block 300, let X equal the number of bytes in a minimum data transfer; let i equal the maximum number of chips on a bus unit and let Y equal the maximum size of the data bus, due to I/O constraints. Next at block 302, a required number of sub-transfers is identified, let j equal the number of sub-transfers required to make a minimum transfer, with j defined as: j = X/Y, where j is an integer. If Y is not a power of two, then round up to get the integer j. Next at block 304, an integer value n equal to the number of bytes in a word is identified, with n defined as: n = X/(i * j), where n is an integer, assuming a power of two. Next at block 306, a data ordering algorithm is performed as defined by: do ST = 0 to j-1 ; --for each sub-transfer do CN = 0 to i-1 ; --for each chip chip(CN) <= word{(CN * j) + ST} ; --this word to that chip end ; end; While the do loops at block 306 lock in a particular word to a particular chip per sub-transfer, it should be understood that other data ordering is possible and may be desired. The required I/O pins and loads between bus units are reduced to minimize both the chip input/output (I/O) count and the bus cycle time. The following table I lists the data ordering for the example shown in FIG. 1, where j = 2 and i = 4. CN (Chip Number) ST (sub-transfer) 0 1 CHIP 0 WORD 0 1 CHIP 1 WORD 2 3 CHIP 2 WORD 4 5 CHIP 3 WORD 6 7 FIGS. 4 and 5 provide diagrams illustrating byte numbering for a 16 byte main store bus and for a 32 byte main store bus for a 128 bytes cache line transfer. For the 16 byte bus, Y = X/2 and for the 32 byte bus, Y = X. Referring to FIG. 6, a sequentially ordered data bus example is shown. Note that each portion of the data bus has two loads per cache/memory controller bus unit. The first sub-transfer includes words 0-3 to chip 0 and chip 1. Chip 0 and chip 1 get two words, words 0,1 and words 2,3, respectively. The second sub-transfer includes words 4-7 with words 4,5 and words 6,7 to chip 2 and chip 3, respectively. The data bus has two loads for each bus unit that has four chips, which decreases bus performance. In addition, each chip needs a two word-wide interface. If the system has multiple units with four chip interfaces, such as multiple processor and memory cards, the extra loading is significant. While the invention has been described with reference to details of the illustrated embodiments, these details are not intended to limit the scope of the invention as defined in the appended claims.

Claims: A non-sequential data ordering method for sharing a bus (18) accessing a main storage (14) in a data processing system composed of a plurality of chips (16), said method characterized in that it comprises the steps of identifying (300) a maximum bus width value Y; identifying (300) a minimum data transfer value x, said minimum data transfer value being a predefined number of bytes; calculating (302) a sub-transfer value j responsive to said identified minimum transfer value X and said maximum bus width value Y, said calculated sub-transfer value being equal to a number of required sub-transfers to transfer said minimum data transfer value; identifying (304) a bus unit having a maximum number i of chips to receive or send data bytes, each of said chips having a word sub-transfer size; and during a data sub-transfer, ordering (306) non-sequential words of said minimum data transfer value and transferring the ordered non-sequential words to each of said chips (16) of said bus unit as defined by: chip (CN) <= word{(CN*j) +ST}, where ST=0 to j-1 for each sub-transfer, and CN=0 to i-1 for each chip; wherein each chip 0 to i-1 receives data words in a sequential order. The method as recited in claim 1, wherein said steps of identifying a minimum transfer value; identifying a maximum bus width value; and identifying a sub-transfer value responsive to said identified minimum transfer value and said maximum bus width value include the steps of: identifying said minimum data transfer value X where X comprises (i*j) words, wherein each said word includes n bytes, where n is an integer and is defined as n=X/(i*j); identifying said maximum bus width value Y, where Y is less than X bytes; and calculating said sub-transfer value j where j=X/Y and where X, Y and j are integers. A non-sequential data ordering apparatus for sharing a bus (18) accessing a main storage (14) in a data processing system composed of a plurality of chips (16), said apparatus characterized in that it comprises: means for identifying (300) a maximum bus width value Y; means for identifying (300) a minimum data transfer value X, said minimum data transfer value being a predefined number of bytes; means for calculating (302) a sub-transfer value j responsive to said identified minimum transfer value X and said maximum bus width value Y, said calculated sub-transfer value being equal to a number of required sub-transfers to transfer said minimum data transfer value; means for identifying (304) a bus unit having a maximum number i of chips to receive or send data bytes, each of said chips having a word sub-transfer size; and means for ordering (306) non-sequential words of said minimum data transfer value and for transferring the ordered non-sequential words to each of said chips (16)of said bus unit as defined by: chip (CN) <= word{(CN*j) +ST}, where ST=0 to j-1 for each sub-transfer, and CN=0 to i-1 for each chip; wherein each chip 0 to i-1 receives data words in a sequential order. An apparatus as recited in claim 3, wherein said sub-transfer value is represented by j=X/Y, wherein said minimum data transfer value X comprises (i*j) words, wherein said maximum bus width value Y is less than X bytes, where X, Y and j are integers, and wherein said word is composed of n bytes, where n is an integer and is defined as n=X/(i*j). A shared bus non-sequential data ordering apparatus as recited in claim 4 wherein said sub-transfer value j equals two and wherein said means for transferring non-sequential words of said minimum data transfer value X and for transferring the ordered words to each of said bus unit includes means for transferring even ordered words during a first sub-transfer and means for transferring odd ordered words during a second sub-transfer.

Inventors: BLACKMON HERMAN LEE, DREHMEL ROBERT ALLEN, GROSBACH LYLE EDWIN, HASELHORST KENT HAROLD, KROLAK DAVID JOHN, MARCELLA JAMES ANTHONY, PAULSON PEDER JAMES, BLACKMON, HERMAN LEE, DREHMEL, ROBERT ALLEN, GROSBACH, LYLE EDWIN, HASELHORST, KENT HAROLD, KROLAK, DAVID JOHN, MARCELLA, JAMES ANTHONY, PAULSON, PEDER JAMES
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1995
Main classification: G06F13
IPC codes: G06F13