Architecture for twodimensional construction of a multidimensional array processor implementing hop command

Abstract: Two-dimensional mesh architecture in an array processor of myriad processing elements al­ lows relative ease in manufacturing, using planar integrated circuits and predominant X, Y connections. There is a need, in any array processor, to connect a selected processing element to another processing element. Rather than to supply the large number of connectors re­ quired for dedicated connection of processing element to processing element, implementation is by a a very limited number of connecting conductors (NESW) in a two-dimensional mesh. The connecting conductors are coplanar, making construction compatible with present-day, essentially planar and predominantly XY, packaging of integrated circuits and printed circuit boards. Flexibility of interconnection by means of this limited and inflexible set of conductors is accomplished by equipping each processing element with a hopping circuit (1). This is an ad­ vantageous tradeoff of silicon area, since the few active elements of the hopping circuit con­ sume much less silicon area than the large number of conductors othewise required. The hopping circuits are programmable, by a shared routing controller, to send input to an internal register file (2) within the processing element, or to respond to a HOP(direction)(step) command. The HOP command selects the direction parameter by selecting one of the limited external connections to an adjacent processing element. Connection to a remote processing element requires a number of HOP command steps, carried out in a series of cycles. Each hopping circuit includes multiplexer (10), sink register (11), demultiplexer and gates.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to architecture for complex array processors made up of great numbers of interconnected relatively simple processing elements, and more particularly relates to an architecture for an array processor in which architecture significant multidirectional connectivity is implemented by providing each processing element with X,Y mesh connections but very limited diagonal or Z connections, and having controls which arrange the connectivity hardware so that data may "hop" from sending processing element to selected receiving processing element, which may be adjacent or remote, using the X,Y mesh connections in elemental hops without crossovers or vias. 2. Description of the Prior Art The following patents and general publications are representative of the prior art: PATENTS EP-A-0 257 581 (European application 87112152.1; Li, POLYMORPHIC MESH NETWORK), filed August 21, 1987 shows an array processor in which each processing element is equipped with a program-accessible connection control mechanism so as to provide a programmable choice of network configuration. This permits the user to set up an optimum network of connections, using the connection control mechanisms of intervening processing elements to provide within a single cycle a data connection between an originating processing element and a receiving processing element. PUBLICATIONS D. Hillis, The Connection Machine , MIT Press, Cambridge, MA, 1985, describes a machine having a multidimentional array architecture consisting of 64,000 processors connected by a hypercube network. T. F. Fountain and V. Goetcherian, "Clip 4 parallel processing system," IEE proc, vol. 127, Pt. E. No. 5, Sep. 1980, describes a machine having a two-dimensional array architecture consisting of 96x96 processors interconnected by a mesh network. K. E. Batcher, "Design of a Massively Parallel Processor," IEEE Trans. on Computers, Sept. 1980, pp.836-840, describes a machine having a two-dimensional array architecture consisting of 128x128 processors connected by a mesh network. NCR Corp., "Geometric Arithmetic Parallel Processor," Data sheet, 1984, describes a VLSI chip containing 72 processors conneted as a two-dimensional array organized as 6x12. Today's exploratory multiprocessors are regarded as promising candidate supercomputers of the near future. In this perspective, much research effort has been devoted to technological issues essential to the building of the multiprocessors. Among the issues, the interconnection network takes a primary role. The study of interconnection networks has its root back to the switching network for telephone communication. Excellent survey papers periodically summarize the state of development, but tend to emphasize theoretical performance of the network while neglecting the problem of packaging. The studies also neglect the problem of network performance for a specific algorithm. In this regard, one may ask whether a network with better theoretical complexity retains any advantage when implemented in disadvantaged packaging. The advantage may be dissipated by the cost, or by the performance loss due to packaging which is not optimal. The question always remains whether it is better to back off from the theoretically advantageous complexity in order to make a practical machine. Various techniques, including hardwire implementation of very complex networks, and including bus connection channels with channel connection computation, tend to be overwhelm the capability of the packaging. Packaging is a crucial factor in constructing a supercomputer. It not only affects the performance but also the manufacturability of the supercomputer. A good interconnection network for a supercomputer shall possess good properties of packaging as well as capability to implement the requisite interconnection complexity (graph embedding) for the architecture chosen. When implemented in very large scale integration (VLSI) chips, the architecture must provide both the processing capability and the interconnection capability, which may be considered as "overhead," since it merely services the processing elements which do the active processing. The interconnection overhead, however, becomes enormous as the architectural demand for universal connectability increases, and as the number of processing elements increases. Two processing elements (1 x 1 array), for example, can communicate directly on one duplex channel. But each of four processing elements (2 x 2 array) requires, to communicate directly with the other three, three duplex channels, a total of six duplex channels for the array. In progression, each of nine processing elements (3 x 3 array) requires, to communicate directly with the other eight, eight duplex channels, a total of thiry-six duplex channels for the array. This exponential proliferation of interconnection overhead (usually stated in terms of silicon area) has been an unsolved problem. The perception that computational capability increases with complexity of connection may be theoretically correct, but only without including the packaging consideration. Considering the packaging of the interconnection network, this invention is a counter example to such perception. The hypercube networks in the prior art use a multidimensional array architecture that is a compromise or a direct connection among all processors. It allows each processor to have logN direst neighbours where N is the total number of processors. With elegant organisation of these connections, the hypercube is versatile and has been implemented in a machine called Connection Machine. A three-dimensional hypercube (a cube) can be formed from a two-dimensional hypercube (a square) by connecting the corresponding vertices of two nearby squares. To form a 4-degree hypercube, connect the corresponding vertices of two nearby cubes. Such a process can be summarised as a mathematical expression in numbering a vortex and its neighbours. Electronics Letters, vol 7, No 14, pp 385-387 (1971) discloses a processing element for use in a two-dimensional array of similar such processing elements, in which array each processing element is interconnected with immediately adjacent processing elements for transmitting data between adjacent and remote processing elements, the processing element comprising: a connection means for coupling said processing element to immediately adjacent processing elements in the mesh array; and a circuit for transmitting data from an addressed one of said plurality of adjacent processing elements to output connection means. This invention as claimed provides such a processing element characterised by the hopping circuit responsive to HOP command instructions each having a direction parameter and a step parameter for implementing a HOP (direction) (step) operation by selecting one of said plurality of connection means of the processing element in accordance with said direction parameter to thereby transmit data content from one of said immediately adjacent processing elements to the one of said immediately adjacent processing elements in the specified direction and repeat the transmission a number of times specified by said step parameter thereby enabling the array to emulate a multi-dimensional network. The inventive architecture provides each equipped processing element with a HOP capability, which enables each processing element to send its data content to the adjacent (NESW) processing element specified by the HOP (direction)(step) command direction parameter. The HOP capability also enables each equipped processing element to send its data content via the adjacent processing element, and subsequently via its respectively adjacent processing element, in a number of steps specified by the step parameter to a selected remote processing element. There is no need for a dedicated conductor between the sending processing element and the receiving processing element at its remote location. For a three-dimensional hypercube, the address of a node (or vertex) cab be represented by three bits B ₂ B ₁ B ₀ and a vertex has three neighbors (one in each dimension). The address of the neighbor in the first dimension is to invert B ₀ while the address of the neighbor in the second dimension is to invert B ₁ and B ₂ for the neighbor in the third dimension. For example, node 5 (i.e. 101) has 100 as neighbor in the first dimension, 111 in the second and 001 in the third dimension. Generalizing this addressing and connecting scheme, for a k-dimensional hypercube, the i-th dimensional neighbor of a node B k -1 ... B i +1 B i B i -1 ... B ₀ is B k -1 ... B i +1 BI i B i -1 ... B ₀ where BI is the inverse of B. (e.g. if B = 1, then BI =0 or vice versa). Such a scheme guarantees that the communication between any pair of processors in a k-dimensional hypercube connection can be accomplished in k steps of message sending. A message travels towards its destination by examining the B i bit of the destination address. When B i is "1." the message is routed to the neighbor in that dimension. Since there are no more than k "1"s in the address, the message will reach its destination in k steps. Besides the k-step guarantee, the hypercube connection is very general and versatile because many important connections for computing can be embedded in the hypercube; these include tree, pyramid and string. Unfortunately, the hypercube connection requires a large number of wires (a k-dimensional hypercube needs ( k /2) x 2 k wires for connection) which causes engineering problems such as skewing and packaging in implementation. A even worse problem for the hypercube is that those wires are distributed in a k-dimensional space but can only be realized in two- or three-dimensional space mainly because of today's packaging technology in both integrated circuit and printed circuit board. The mismatch between the logical graph in high dimension and the available packaging technologies in two- or three-dimension further enhances the difficulty in implementation. This invention accomplishes the hypercube connection on a two-dimensional mesh. For a computer with 2 k ( = M = nxn ) processors in hypercube, the invention reduces the required wires from (k/2)*n*n in k-dimensional space to 4n wires in two-dimensional space. The reduction in both the total number of wires and the dimensionality of the space spanned by these wires leads to a parallel architecture that is highly suitable for today's packaging technology mainly restricted in two-dimensional integrated chip and printed circuit board. The invention comprises two elements: a hopping circuit in each processing element of the mesh, and a controller to command the hopping circuit. In a two-dimensional mesh, each processor connects to its four neighbors in North, South, East and West directions. At the boundary of a mesh, the connection is as follows: The invention is effective with the two-dimensional mesh array preferred for quantity manufacture. Even though the hopping circuit is replicated in each of the myriad processing elements in the mesh, this replication is significantly less resource-consuming than the myriad interconnections which it makes unnecessary. Processor-to-processor communication takes place through the hopping circuits as commanded by the controller, using only the simple X, Y connections of the mesh. Conflicting demand for the same connection does not occur because of the control algorithm. Processing element connectivity is not limited by near neighbors; remote processing elements may be interconnected easily. An object of the invention as claimed is to provide hypercube "connections" of processing elements, using simpler and fewer interconnections than previously required, using the HOP command to control a hopping circuit in each of the affected processing elements. A more specific object of the invention is to enable hypercube connections in a two-dimensional mesh array processor having only N, E, W, S connections actually present, activating the necessary external connections by implementing a HOP command or a series of HOP commands. A feature of the invention is a hopping circuit, implemented in each of the myriad processing elements of the array, which together with a controller carries out without conflicts a wide variety of processing element interconnections on very simple mesh connections such as NESW. Another feature of the invention is the HOP(direction)(step) command, for interconnecting processing elements in an array of processing elements each equipped with a hopping circuit, with a hop in the direction specified by the direction parameter, and a number of additional hops specified by the step parameter. An advantage of the invention is that a very simple hopping circuit, implemented in each of the myriad processing elements of the array processor, eliminates the need for very complex patterns of interconnection. Another advantage of the invention is that it is easily implemented in two-dimensional integrated circuit technologies currently popular. Other objects, features and advantages of the invention will be apparent from the following description of the preferred embodiment, as illustrated in the accompanying drawing. BRIEF DESCRIPTION OF THE FIGURE FIG. 1 is a composite drawing showing a representative portion of an array processor implemented as a 2-D mesh array, with one of the myriad processing elements shown in block diagram format with additional details in the hopping circuit. DESCRIPTION OF A PREFERRED EMBODIMENT FIG. 1 shows a two-dimensional mesh of M processing elements PE0...PE(M-1). Processing element PE(M-1) is shown expanded into a block diagram showing hopping circuit 1, register file 2, arithmetic and logic unit (ALU) 3 and memory 4, as well as NESW interconnections 5-8. Register file 2, ALU 3 and memory 4 are standard features of processing elements in array processors, which may be considered as single-bit (or single byte) computers. The processing operation in such array processors is characterized by sequential transfer of data (such as a raster image) through a seqence of processing elements. Each processing element performs a simple assigned task on the data input and passes the result to an output for transfer to the input of the next processing element, with no need to query memory for the next set of operands and related instruction. An input image flows, with changes made each clock cycle, from start to finish through the simple processing elements in the array, using interconnections to pass data from originating processing element to receiving processing element. The configuration of these interconnections in this invention is simple north, east, south, west (NESW). Note that these interconnections connect from processing element to each of four adjacent processing elements; these external connections 5-8 also connect internally as connection bundle 9 and 13 directly to hopping circuit 1. The NESW bundle (9) of internal connections passes through 4:1 multiplexer 10 to sink register 11, and thence via 4:1 demultiplexer 12 to output terminal bundle 13 and to external connections 5-8. The content of register 2, which preferably is a set of several separately gated registers, can be loaded to or from sink register 11. For the HOP operation, ina given clock cycle, the content of sink register 11 goes out to a selected external connection 5-8 via demultiplexer 12 and connection 13; during the same clock cycle, the content of the sink register 11 is replaced by input from external connection 5-8 via multiplexer 10. EDGE OF ARRAY CONNECTIONS For each row, the "E" edge of the rightmost column of the mesh can be connected to the "W" side of the leftmost column either in the same row or next row. The choice is usually programmable, but for the purpose of this invention, it is connected to the "W" side of the next row. In the same way, for each column the "S" side of the bottom row is connected to the "N" side of the next column. Each processing element in the mesh is a one-bit processor. It has an Arithmetic Logic Unit (ALU) 3, a register file 2, and a local memory 4. Each processing element is equipped with 4 ports (N, S, W and E) to communicate its immediate neighbors in the mesh. The processing element also has an instruction set to perform the ALU operations, to move the data to/from registers and 4 ports, to move the data to/from register and local memory. A "mask register" ( REGISTER MASK ) is to control the writing to memory and registers. When REGISTER MASK = 1, writing to memory and registers is in effect while when REGISTER MASK = 0, writing to memory and registers are not activated and the memory and registers maintain their values prior to the execution of the instruction commanding the writing. HOPPING CIRCUIT The hopping circuit shown in FIG. 1 accepts the N, S, W and E as input signals and produces Nout, Sout, Wout and Eout as four output signals. The hopping circuit consists of one sink register 11, one 4-to-1 multiplexer 10 and one 1-to-4 demultiplexer 12. Their functions are as follows: The multiplexer 10 selects one out of four input signals (N, S, W and E) as the output signal and feeds the output signal to the sink register 11. The demultiplexer 12 distributes the content of the sink register 11 to one of the four wires: Nout, Sout, Wout and Eout, which are connected to N, S, W and E respectively via tristate diodes 14. The sink register 11 is a closed-coupler consisting of two inverters controlled by two transistor gates. These gates, one in front of the coupler and one after, are to control the datum flowing from the multiplexer 10 into the first inverter and the datum flowing out of the second inverter to the demultiplexer 12. HOPPING INSTRUCTION The hopping instruction is the foundational mechanism to embed the hypercube in a mesh-connected machine. The instruction directly drives the data in and out of sink register 11 such that the routing function of the hypercube can be implemented by HOP instruction. The HOP instruction is of the format HOP (direction)(step). The keyword "HOP" is the command to drive the hopping circuit. It has two parameters: the first one "direction" can be N, S, W and E; and the second one "step" is an integer. "HOP N" commands the multiplexer 10 to select S to be stored in the sink register 11. It also commands the demultiplexer 12 to select N OUT as the destination of the current content of the sink register 11. "HOP S" will do the opposite: commanding the multiplexer 10 to select N and the demultiplexer 12 to select S OUT . By the same token, "HOP W" commands the multiplexer 10 to select E and the demultiplexer 12 to select W OUT while "HOP E" does the opposite: commanding the multiplexer 10 to select W and the demultiplexer 12 to selct E OUT . The second parameter, the step, commands the HOP activity to repeat the number of times equal to "step." The repeatition is done by generating a number of clock (equal to "step") edges feeding the control gates of the closed-coupler such that the hopping occurs no more and no less than "step" times. There may be occasions where the user prefers to carry out a simple data retention operation, with a possible move of data from one position in register file 2 to another, with a possible masking. Even without any data manipulation, it may be desired to carry out a No-Operation command, which in this context is the NOHOP command. The NOHOP command does not activate any external connection 5-8, but simply cycles data through sink register 11 back to register file 2, with any desired data manipulation carried out by standard techniques. HOPPING CONTROL COMMAND Using the aforementioned hopping circuit and HOP instruction, the hypercube can be embedded in a mesh-connected computer. Assuming the mesh-connected computer is of size kxk where k = 2 m , the routing function of the hypercube can be implemented as follows. (A) Hopping step smaller than k ( 0≦I<m case) With the kxk mesh arrangement, a processor at (s, t) entry of the mesh is numbered as PE(t+k*s) or equivalently, the address of of PE(s, t) in mesh is PE(t+k*s) in hypercube where 0 ≦ s, t < k. Therefore, the routing function of the hypercube CM I ( P ) where P is the PE address in a 2m-bit string requires the flipping of I-th PE address bit. For PE with I-th address bit equal to "0." flipping means adding 2 I to P; while for I-th bit equal to "1." flipping means subtracting 2 I from P. The adding and subtracting are equivalent to HOP E and HOP W; consequently CM I ( P ) can be implemented as HOP E, 2 I , if B I = 0 or HOP W, 2 I , if B I = 1 in the mesh connected computer. The hopping control command therefore can be described as SINK REGISTER <--- TARGET REGISTER ; REGISTER mask <--- B I ; HOP W, 2 I ; INVERT REGISTER mask ; HOP E, 2 I ; TARGET REGISTER <--- SINK REGISTER; (B) Hopping step greater than k (m ≦ I < 2m case) In this case, the hopping step is greater than k (the side size of the mesh). Because of the mesh arrangement and the hopping step is always a multiple of k, the hopping occurs along the column direction of the mesh. Similar to case (A), the routing function of the hypercube CM I ( P ) involves adding or subtracting 2 I to or from P depending on the I-th address bit is "0" or "1" respectively. The adding can be done by HOP S while the subtracting can be done by HOP N. The hopping control command for case (B) then is described as follows. SINK REGISTER <--- TARGET REGISTER ; REGISTER mask <--- B I ; HOP N, (I-m+2); INVERT REGISTER mask ; HOP S, I-m+2; TARGET REGISTER <--- SINK REGISTER; BENEFITS (1) Reduction of total number of wires for connection A parallel processor consisting of M processors in hypercube connection requires (M/2)*log M wires among the processors. With M = 2¹², the total number of wire requires is 24K (K = 1024). When implemented in mesh as in this invention, the total number of wires required is 4n (where M=nxn); with N = 2¹², the mesh implementation needs only 256 wires. The significant reduction in the total number of wires leads to tremendous packaging advantages (usually much compact in size). The compact size means shorter wire between any pair of processors which in term reduces signal travelling time and raises system clock rate. (2) Reduction of the dimensionality spanned by the wires Packaging a large (e.g. 2¹⁶ ) parallel processing system is recognized as the most critical issue in the parallel processing technology because when the size of the system grows, the wires connecting the processors become lengthier leading to a serious skewing problem and a slower system clock rate. Today's electronic packaging technologies (e.g. VLSI, printed circuit board and surface mount) are two-dimension-oriented consequently are in favor of a two-dimensional connection. Comparing the multi-dimensional hypercube connection and its two-dimensional implementation described in this patent, the latter has significant benefit in accomplishing simpler system packaging therefore faster system clock rate.

Claims: A processing element for use in a two-dimensional array of similar such processing elements, in which array each processing element is interconnected with immediately adjacent processing elements for transmitting data between adjacent and remote processing elements, the processing element comprising: a plurality of connection means (5, 6, 7, 8) for coupling said processing element to immediately adjacent processing elements in the mesh array; characterised by a hopping circuit (1) for transmitting data from a selected one of said plurality of connection means (5, 6, 7, 8) to another selected one of said plurality of connection means; wherein the hopping circuit (1) is responsive to HOP command instructions each having a direction parameter and a step parameter for implementing a HOP operation having direction and step parameters by selecting one of said plurality of connection means of the processing element in accordance with said direction parameter to thereby transmit data content from the one of said immediately adjacent processing elements which is opposite to the specified direction to the one of said immediately adjacent processing elements in the specified direction and repeat the transmission a number of times specified by said step parameter thereby enabling the array to emulate a multi-dimensional network. A processing element as claimed in claim 1 wherein the hopping circuit (1) comprises a multiplexer (10) connected to said connection means for input; a sink register (11) connected to said multiplexer (10); and a demultiplexer (12) connected to said sink register (11), the demultiplexer (12) being connected to said connection means for output. A processing element as claimed in claim 1 or claim 2 responsive to a NOHOP command which selects internal gating in the processing element to cycle the data content of a register file of the processing element at least in part back to a selected position in the register file.

Inventors: LI HUNGWEN, LI, HUNGWEN
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1988
Main classification: G06F15
IPC codes: G06F15