GB2393276A - Method of rotating data in a plurality of processing elements - Google Patents

Method of rotating data in a plurality of processing elements Download PDF

Info

Publication number
GB2393276A
GB2393276A GB0309194A GB0309194A GB2393276A GB 2393276 A GB2393276 A GB 2393276A GB 0309194 A GB0309194 A GB 0309194A GB 0309194 A GB0309194 A GB 0309194A GB 2393276 A GB2393276 A GB 2393276A
Authority
GB
United Kingdom
Prior art keywords
data
shifting
processing elements
counts
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB0309194A
Other versions
GB0309194D0 (en
GB2393276B (en
Inventor
Mark Beaumont
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Micron Europe Ltd
Original Assignee
Micron Europe Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from GB0221562A external-priority patent/GB0221562D0/en
Priority claimed from GB0221563A external-priority patent/GB2395299B/en
Application filed by Micron Europe Ltd filed Critical Micron Europe Ltd
Priority to GB0309194A priority Critical patent/GB2393276B/en
Publication of GB0309194D0 publication Critical patent/GB0309194D0/en
Priority to US10/689,390 priority patent/US7913062B2/en
Publication of GB2393276A publication Critical patent/GB2393276A/en
Publication of GB2393276B publication Critical patent/GB2393276B/en
Application granted granted Critical
Priority to US13/048,082 priority patent/US8135940B2/en
Priority to US13/372,683 priority patent/US8856493B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30032Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3877Concurrent instruction execution, e.g. pipeline or look ahead using a slave processor, e.g. coprocessor
    • G06F9/3879Concurrent instruction execution, e.g. pipeline or look ahead using a slave processor, e.g. coprocessor for non-native instruction execution, e.g. executing a command; for Java instruction set

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

A method of rotating data in a plurality of processing elements comprises a plurality of shifting operations and a plurality of storing operations, with the shifting and storing operations coordinated to enable a three shears operation to be performed on the data. The plurality of storing operations is responsive to the processing element's positions.

Description

METHOD OF ROTATING DATA IN A
PLURALITY OF PROCESSING ELEMENTS
CROSS-REFERENCE TO RELATED APPLICATIONS
l0001l The present application is related to the following applications: Method for Manipulating Data in a Group of Processing Elements to Perform a Reflection of the Data (docket no. DB001071-000); Method for Manipulating Data in a Group of Processing Elements to Transpose the Data (docket no. DB001070-000); Method for Manipulating the Data in a Group of Processing Elements to Transpose the Data Using a Memory Stack (docket no. DB001069-000); and Method of Manipulating Data in a Group of Processing Elements (docket no. DB001072-
000), all filed concurrently herewith.
BACKGROUND OF INVENTION
100021 The present invention relates generally to parallel processing and, more specifically, to parallel processing in an active memory device or single instruction, multiple data (SIMD) computer. 100031 A single, synchronous dynamic random access memory (SDRAM) chip has an internal data bandwidth of greater than 200 G bits/e and a very wide data bus (thousands of bits). That vast data bandwidth provides an opportunity for high performance. Active memories represent one effort to use that vast data bandwidth to improve performance.
[00041 An active memory is a memory device which has a built in processing resource. One of the principal advantages of active memory is that data is processed close to where it is stored.
Usually the processing resource is a highly parallel computer system which has processing power to exploit the very high data bandwidths available inside a memory system. An example of an active memory system is illustrated in Figure 1.
10005] In FIG. I, a main memory 10 appears as a traditional memory to a CPU 12 except that the main memory 10, by virtue of memory processors 14, can be instructed to perform tasks on its data without the data being transferred to the CPU 12 or to any other part of the system over a system bus 16. The memory processors 14 are a processing resource distributed throughout the main memory 10. The processing resource is most often partitioned into many similar processing elements (PEs). The PEs arc usually simple and operate in parallel. In such a system, the work of the CPU 12 is reduced to various operating system tasks such as scheduling. A
substantial portion of the data processing is performed within the main memory 10 by virtue of the memory processors 14.
00061 Active memory systems have a long history. The earliest systems were built in the 1 960's. However, until the advent of integrated logic and current DRAM technologies, active memory computers were always expensive, special machines, excluded from mass-market applications. For active memory to be effective, the organization of data in the PE array is an important consideration. Hence, the provision of an efficient mechanism for moving data from one PE to another is an important consideration in the design of the PE array.
10007] In the past, several different methods of connecting PEs have been used in a variety of geometric arrangements including hypercubes, butterfly networks, one-dimensional strings/rings and two-dimensional meshes. In a two-dimensional mesh or arrays, the PEs are arranged in rows and columns, with each PE being connected to its four neighboring PEs in the rows above and below and columns to either side which are sometimes referred to as north, south, east and west connections. 100081 Disclosed in G.B. Patent Application Serial No. GB02215 630, entitled Control of Processing Elements in Parallel Processors, filed September 17, 2002 is an arrangement in which a column select line and a row select line can be used to identify processing elements which are active, e.g. capable of transmitting or receiving data. The ability to use a row select signal and a column select signal to identify active PEs provides a substantial advantage over the art in that it enables data to be moved through the array of PEs in a nonuniform manor. However, the need still exists for enabling PEs within the array to work independently of its neighboring PEs even though each PE within the array has received the same instruction.
SUMMARY OF THE INVENTION
100091 The present invention is directed to a method of rotating data in a plurality of processing elements comprising a plurality of shifting operations and a plurality of storing operations, with the shifting and storing operations coordinated to enable a three shears operation to be performed on the data. The plurality of storing operations is responsive to the processing element's positions. 100101 According to one embodiment of the present invention, a method for rotating data in a plurality of processing elements is comprised of a first shifting of a first plurality of data in a first
direction and a first storing of data by a first plurality of the processing elements in response to the first shifting and the positions of the first plurality of processing elements. A second shifting of a second plurality of data in a second direction perpendicular to the first direction is followed by a second storing of data by a second plurality of processing elements in response to the second shifting and the positions of the second plurality of processing elements. A third shifting of a third plurality of data in a third direction opposite to the first direction is similarly followed by a third storing of data by a third plurality of processing elements in response to the third shifting arid the positions of the third plurality of processing elements.
10011] The present invention is directed to a method of executing a three shears method of rotating a matrix of data by 90 in an efficient manner. The present invention contemplates hardware, e.g. memory containing an ordered set of instructions, for carrying out the disclosed methods. Those advantages and benefits, and others, will be apparent from the description of the
invention below.
BRIEF DESCRIPTION OF THE DRAWINGS
10012] For the present invention to be easily understood and readily practiced, the present invention will be described in conjunction with an exemplary embodiment, for purposes of illustration and not limitation, in conjunction with the following figures wherein: [0013] FIG. 1 is a block diagram illustrating the concept of active memory; [0014] FIG. 2 is a high level block diagram of one example of an active memory on which the methods of the present invention may be practiced; O015] FIG. 3 is a high level block diagram of one example of a PE; l0016l FIG. 4 is a diagram illustrating one type of logic circuit that may be used to interconnect the PE illustrated in FIG. 3 to other PEs; 00171 FIG. 5 illustrates one method of interconnecting PEs to form an array of PEs; 0018l FIGs. 6A and 6B illustrate one example of an edge shift; OOl91 FIGs. 7A and 7B illustrate one example of a planar shift; 00201 FIGs. 8A and 8B illustrate one example of a wrap shift; 00211 FIGs. 9A and 9B illustrate one example of a vector shift; 00221 FIGs. 1 OA and l OB illustrate another example of a vector shift;
100231 FIGs. I 1A and I IB illustrate one example of a data broadcast from the edge registers in which a row and column select function enabled; l0024l FIGs. 12A and 1 2B illustrate one example of a broadcatch in which only one column is selected; [002S] FlGs. 13A and 1 3B illustrate one example of selected edge registers being loaded with the AND of selected columns; [00261 FIGs. 14A and 14B illustrate another example of a data broadcast; l0027l FIGs. l SA - 1 5D illustrate an embodiment of the present invention; and 1002X] FIGs. l 6A -1 6D illustrate another embodiment of the present invention.
DESCRIPTION OF THE INVENT ION
l0029l Illustrated in FIG. 2 is a high level block diagram of one example of an active memory device 18 on which the methods of the present invention may be practiced. The reader should I understand that the methods of the present invention are generally applicable to any group of processing elements having the necessary physical connections between PEs to enable the manipulation of data as required by the methods. The hardware illustrated in FIG. 2 is disclosed for purposes of illustration and not limitation. Furthermore, those of ordinary skill in the art will recognize that the block diagram of FIG. 2 is an overview of an active memory device with a number of components known in the art being omitted for purposes of clarity.
100301 The active memory device 18 of FIG. 2 is intended to be deployed in a computer system as a slave device, where a host processor (e.g. CPU 12 in FIG. 1) sends commands to the active memory device 18 to initiate processing within the active memory device 18. A complete processing operation, i.e., data movement and processing, in the active memory device 18 will usually consist of a sequence of many commands from the host to the active memory device 18.
l003Il The active memory device 18 may have two interfaces, a bus interface 20 and a host memory interface 22, for interfacing with the host or other cxtcmal logic for the purposes of data input, data output and for control. The host memory interface 22 (data input/output ports) of the active memory device 18 is similar in its operation to the interface of a synchronous DRAM. To access data within a DRAM array 24, the host must first activate a page of data. Each page may contain 1024 bytes of data and there may be 16384 pages in all. Once a page has been activated,
it can be written and read through the, for example, 32 bit data inpu':/output ports. The data in the DRAM array 24 is updated when the page is deactivated.
100321 In the active memory device l 8 the input and output ports are separate, or they may be combined into a single bi-directional input/output port. A control output may be provided to control a bidirectional buffer servicing the single bi-directional input/output port.
[00331 The host memory interface 22 may operate at twice the frequency of the master input clock. A copy of the 2x clock may be driven off-chip as a timing reference. Unlike a traditional DRAM, the access time for the host memory interface 22 port takes a variable number of cycles to complete an internal operation, such as an activate or deactivate. A ready signal (ray) is provided to allow the host to detect when the command has been completed.
[00341 The control or command port (cmd) may be a straightforward 32 bit synchronous write/read interface. Writes place both data and the corresponding address into a FIFO 26 of a task dispatch unit 28, which holds the commands until they are executed in the order they were issued. This arrangement allows a burst of commands to be written to the active memory device 18 suiting the burst operation of many peripheral buses. Reads may operate directly.
100351 The command port is also synchronous, running at the same frequency as the master input clock. Similarly to the host memory interface 22 ports, the clock may be driven out as a timing reference.
10036] In addition to the two address-mapped ports, the active memory device l 8 has an interrupt output (intr) which is used to alert its host to various different conditions.
[00371 Internal control in the active memory device l 8 is handled by three processors. The task dispatch unit 28 (mentioned above) receives commands from the command port, interprets them and passes them on to the other two processors, a DRAM control unit 30 and an array sequence controller 32. The task dispatch unit 28 also maintains the addresses for operand placement in an array processor register file (RF) and enables access to on-chip resources such as a program memory 34.
10038] The DRAM control unit 30 controls the DRAM array 24. The DRAM control unit 30 arbitrates between requests for DRAM array 24 access from the host through host memory access registers (H) and through the host memory interface 22. The DRAM control unit 30 also schedules DRAM array 24 refreshes.
[00391 The array sequence controller 32 controls an array or two dimensional mesh of PEs 36.
The sequence controller 32 also executes a program from the program memory 34 and broadcasts control signals into the array of PEs 36. The DRAM control unit 30 and array sequence controller 32 may have a synchronization mechanism, whereby they can link the execution of tasks in either processor.
100401 The active memory device 18 may contain, according to one embodiment, sixteen 64k x128 eDRAM cores. Each eDRAM core is closely connected to an array of sixteen PEs, making 256 (16 x 16) PEs in all.
I0041l FIG.3 is a high level block diagram of one example of a PE 37. The PE 37 is comprised of a set of Q registers and a shift network 38 which interact with a set of M registers and another shift register 40. One of the sets of registers and shift network 38, 40 receives inputs from various registers, such as register R0, R1, R2 and 0. The output of the registers and shift networks 38, 40 is input to an arithmetic logic unit (ALU) 42. The ALU 42 is capable of! performing various arithmetic functions on its input such as addition, subtraction, etc. as is known. The ALU 42 is in communication with condition logic 44 and a result pipe 46.
[00421 The result pipe 46 is a series of interconnected registers R0, R1, R2 and a neighborhood connection register X, which may be used to output a final value. The result pipe 46 also receives through a multiplexer 47 data in the form of an output signal X from its four neighbors, one to the north (XN), one to the east (XE), one to the south (XS) and one to the west (XW). If the PE 37 happens to be located on an edge of an array, then it may be receiving data from an edge register or a PE in the same row or column, but on an opposite edge, as will be described in greater detail below.
[00431 The result pipe 46 is in communication with a register file (RF) 48 which in turn is in communication with an interface 50. The interface 50 may include a DRAM interface 52 as well as access to the host memory access registers (H).
100441 The reader should recognize that the PE 37 illustrated in I 1G. 3 is exemplary only and is not intended to limit the present invention. For example, the number and location of registers and shift networks may vary, the complexity of the ALU 42 and condition logic 44 may vary, the number of registers and interconnection of registers in the result pipe 4G, the size and number of register Tics, and connection to neighboring PEs as well as other logic may be varied while remaining within the scope of the present invention. The particular architecture illustrated in -6
FIG. 3 was selected to provide a rich register set to enable fairly complex multi-byte operations to be kept within the PE as much as possible.
100451 For example, the Q registers and shift network 38 allow for data shifting within the 32 bits of the Q register to the left (most significant direction) one, two, four or eight places and eight places to the right as well as for merging data back into a floating point format. The M registers and shift network 40 allow for data shifting within the 32 bits of the M register to the right (least significant direction) one, two, four or eight places and for demerging data from floating point into a signed magnitude plus exponent format. The result from the ALU 42 can be loaded into register R0 while the input from the register file 48 can be loaded into either register Rl or register R2. The neighborhood connection register X can be used as a flexible member of the result pipeline allowing a pipeline length of up to four to be programmed within the PE 37.
The X register can be loaded from the R0, R1 or R2 registers, or from the neighborhood interconnection input (the X register of a neighboring PE). The output of the X register can be fed back into the result pipeline at Rl or R2. The register file 48 may be implemented as a 128 entry by 8 bit register file implemented as a synchronous static RAM.
100461 The DRAM interface 52 may contain two registers, a RAM IN register and a RAM OUT register. Input from the DRAM 24 of FIG. 2 may be held in the RAM IN register while output to the DRAM 24 is held in the RAM OUT register. The RAM IN and TAM OUT registers may reside in the clock domain of the DRAM 24 which typically uses a slower or divided clock derived from the same source as the clock used for the PE array 36. The RAM TN and RAM OUT registers may be controlled directly from the DRAM control unit 30 and are not visible to the programmer. Data can be transferred into and out of the register file 48 using stolen cycles.
Data can also be transferred to/from the host memory access registers (H) without stealing cycles from processing in the PE 37.
10047] Eight host memory access registers (H) may be provided which allows for a short burst of four or eight bytes to be transferred into or out of the DRAM 24 for host access. Those registers may be multiplexed and be visible from the host memory interface 22 (see FIG. 1) as a page of data. More details about the PEs may be found in G.B. Patent Application No. (: I l: 2 entitled Host Memory Interface for a Parallel Processor and fiend September 17, 2002, which is hereby incorporated by reference.
-7
10048] FIG. 4 is a diagram illustrating one type of logic circuit that may be used to interconnect PEs of the type illustrated in FIG. 3. The reader will understand that many types of logic circuits may be used to interconnect PEs depending upon the functions to be performed. Using the logic circuit of FIG. 4 to interconnect PEs may result in an array of PEs 36 of the type illustrated in FIG. 5.
[00491 Turning now to FIG. 5, the X register within the result pipe 46 of each PE is driven out as, for example, an eight bit wide X output. Eight bits has been chosen in connection with this architecture as the data width for the PE-PE interconnect to keep a balance between the data movement performance of the array and the improved computational performance. Other sizes of interconnects may be used. The X output is connected to the neighboring inputs of each PE's closest neighbors in the north and west directions. To the south and east, the X output is combined with the input from the opposite direction and driven out to the neighboring PK.
[00501 At the edges of the array 36, the out-of-array connection is selected though a multiplexer to be either the output from the opposite side of the array or an edge/row register 54 or an edge/col. register 56. The edge registers 54, 56 can be loaded from the array output or from the controller data bus. A data shift in the array can be performed by loading the X register from one of the four neighboring directions. The contents of the X register can be conditionally loaded on the AND gate of the row select and column select signals which intersect at each PK. When the contents of the X register is conditionally loaded, the edge registers 54, 56 are also loaded conditionally depending on the value of the select line which runs in the same direction. Hence, an edge/row register 54 is loaded if the column select for that column is set to 1 and an edge/co! register 56 is set if the row select is set to 1. The reader desiring more information about the hardware configuration illustrated in FIG. 5 is directed to G.B. Patent Application GB02215 630, entitled Control of Processing Elements in Parallel Processors filed September 17, 2002, which is hereby incorporated by reference.
100511 With the hardware previously described, a number of shifting operations may be performed as illustrated in FIGs. 6A, 6B through 10A, 10B. In FIG. 6A and 6B, an edge shift is illustrated. In the edge shift, the edge/co! registers 56 are active as the data is shifted left to right (west to east) as shown in FIGs. 6A, 6B. The reader will recognize that an edge shift may be performed in the other direction, right to left (cast to west). Alternatively, edge shifts may be performed by using the edge/row registers 54 in a north to south or south to north direction.
10052] Illustrated in FIGs. 7A, 7B is a planer shift. In the planer shift there is no wrap around from the edge of the array. The reader will recognize that in addition to the planer shift illustrated in FIGs. 7A, 7B, planer shifts from east to west, north to south, and south to north may also be performed.
100531 Illustrated in FIGs. 8A, 8B is a wrap shift. In the wrap shift, the edge/co! registers 56 do not participate. Additionally, wrap shifts from east to west, north to south and south to north may be performed.
10054] Illustrated in FIGs. 9A, 9B is a vector shift. Again, the edge/co! registers 56 do not participate. Furthermore, the output of the PE in the bottom right corner of the array wraps to the input of the PE in the upper left corner of the array. In FIGs. 1 OA and I OB, a vector shift in the direction opposite to the direction of FIGs. 9A, 9B is illustrated. The reader will recognize that vector shifts from north to south and south to north may also be performed.
100551 Retuming to FIG. 5, the PE-PE interconnect may also provide a broadcast and broadcatch network. Connections or buses 58 extend north to south from a column select register 59 and connections or buses 60 extend west to east from a row select register 61. Also provided is row broadcast/broadcatch AND chain 62 and a column broadcast/broadcatch AND chain When used for data broadcast or broadcatch, these connections (column buses 58 and row buses 60) act as if driven by open drain drivers; the value on any bit is the wire-AND of all the drivers outputs.
Three control signals (broadcatch, broadcast and intercast) determine the direction of the buses as follows: If broadcatch is set to I, any PE for which the corresponding bits of the row select register 61 and column select register S9 arc both set will drive both the row buses 60 and the column buses 58. Note that if no PEs in a row or column drive the bus, the edge register at the end of that row or column will be loaded with O x FE.
If broadcast is set to 1, the row bus 60 is driven from the row select register 61 and the column bus 58 is driven from the column select register 59 and any PE for which the corresponding bits of the row select register 61 and column select register 59 are both set will be loaded from one of the row or column inputs, according to which is selected.
If intercast is set to 1, any PE in which its A register is 1 will drive its output onto its row bus 60 and column bus 58 and any PE for which the corresponding bits of _9
the row select register 61 and column select register 59 are both set will be loaded from one of the row buses 60 or column buses 58, according to which is selected.
l0056l With the aforementioned connections, a number of operations are possible, some of which are illustrated in FIGs. l lA, l lB through 14A, 14B.
[00571 In FIGs. l lA, l lB, data is broadcast from edge/co! registers 56 with the column select register 59 and row select register 61 set as illustrated in FIG. l l A. As a result, data is latched in the PEs as shown in FIG. l lB in which four PEs are active, and the remainder of the PEs in the array are inactive.
100581 In FIGs. 12A, 12B, a broadcatch instruction is illustrated in which one column is selected by setting the value for that column's bus 58 to 1. In this broadcatch-column operation, only those edge /colt registers 56 for which the row select register 61 bits are set, will be loaded.
Similarly, in a broadcatch-row operation (not shown), only those row/edge registers 54 for which the corresponding column select register 59 bits are set, will be loaded.
100591 FIGs. 13A, 13B illustrate a broad catch instruction. In the illustrated example, the column select register 59 and row select register 61 are used to select the PEs whose values will be AND'ed together and loaded in the corresponding edge/co! registers 56. In FIGs. 13A, 13B, the column edge registers 56 are loaded with the AND of selected columns, except where the row select is 0.
l0060l In FIGs. 14A, 14B, an example of an intercast operation is illustrated. In an intercast operation, PEs which drive onto the row buses 60 and column buses 58 are determined by each PE's A register value. The PEs which are loaded are determined by the row and column selects, just like for a broadcast. In FIG. 14A, data is broadcast from the X registers of those PEs where A equals 1 while in FIG. 14B, the column select register 59 and row select register 61 together activate those PEs into which data will be written.
10061] Using the aforementioned instructions or operations, a group of instructions may be combined into an instruction set for manipulating data within the array 36 of PEs. The instruction set may include a single instruction or operation or a combination of instructions.
Each individual instruction is carried out though a series of shifts.
2] In operation, an input matrix of data is placed on the shift network, and moved around by using a combination of north, south, east and west shifts. In addition, the column select register 59 and row select register 61 may be used to determine which of the PEs is active. The exact -10
combination of active PEs, instructions, and direction in which the instruction (shift) is performed will depend upon the particular array manipulation required. As the instructions are executed and the shifting proceeds, each PE will be presented with different array values. For example, if a wrap shift is performed a number of times equal to the number of PEs in a row, each PE in the row will see every value held by all of the other PEs in the row.
3] A PE can conditionally select any of the values it sees as its final output value by conditionally loading that value, which is representative of an output result matrix. However, only one value, the desired result, is loaded.
100641 All X values are passed through the PE; the required output value is conditionally loaded once it has arrived in the PK. The conditional loading can be done in various ways. e.g. by using any PE registers except X, R1, or R2. An example is shown below.
Cycle PEC+O _ PEC+ 1 - 1,EC+Z _ PEC+3 T+O X≤xe(east) X<-xe X<-xe X<-xe t0 ≤ Rl cond>.7RO ≤ Rl | 1:v <0 ≤ Rl <cond>.7RO ≤ Rl At time T+O: The X register reads data form the X register on the PE to the East. This shifts data to the left (or West).
At time T+ 1: The R1 register unconditionally reads the data off the shift network (X register) At time T+2: The RO register conditionally loads the data from R1. (i.e. if <cond≥1).
100651 The timing of the loading is achieved by maintaining a current count in a local counter, which is typically implemented in software. In one embodiment, the local counter is set to an initial value. The local counter can be set in a variety of ways, including loading the counter with the initial value or calculating the initial value locally based on the processing clement's
location in the matrix (or array) and the function being performed on the data. Thereafter, at certain points in the shifting process, the counter is decremented. For example, the counter may be decremented once for each shift that occurs, or may be decremented once per n clock cycles where n clock cycles equals one shift. As stated, the initial value of the counter depends on its position in the matrix or array and is given by the general function f (Row_Index, Col_Index), where the exact form of f() will depend on the particular array manipulation required. When the counter reaches a non-positive value (i.e., zero or negative) the PE selects the data to be loaded into the output matrix.
10066] Other ways of achieving the same result include resetting the counter to zero and loading each PE with a target value. Thereafter, the counter is incremented producing a current count.
When the current count equals the target value, the data value is selected as the final output value to be loaded into the output matrix. Generally,a counter is set to a first known value. Then, at certain programmable points in the algorithm, the value of the counter may be altered, up or down, by a programmable amount. Storing, occurs when a current count in the counter hits a pre-defined target value.
100671 By using the method of the present invention, PEs within a group of PEs can be individually controlled as to the output value which the PE selects for output into the final matrix. Thus, although all of the PEs are responding to the same command, e.g., an east to west wrap shift, each of the PEs is capable of selecting different data at different points during the execution of the instruction thereby enabling various types of data manipulations, e.g., transpose, reflection. Furthermore, by determining which PEs are active, additional flexibility is provided so that subsets of data can be manipulated.
100681 Turning now to FIGs. 1 SA through 1 5D, one embodiment of the present invention for implementing a three-shears method of rotating a matrix is illustrated. In FIG. I SA, a two dimensional array of data is illustrated. A right wrap shift is performed on the data illustrated in FIG. I 5A in a manner such that the top row of data, rO, remains fixed while each row thereunder is shifted from west to east. The data in row rl is shifted west to east by one position, row r2 by two positions, etc. while the data in row r7 is shifted west to east by seven positions. Because the PEs are physically constrained in the array configuration, the data simply wraps around.
However, if the PEs were not physically constrained, a first shear in an eastern direction would be performed as shown by the phantom portion 100.
-12
10069] The data in FIG.1 SB is then subjected to a north to south shift with the data in the end column, cO, being fixed and the shift incremented by one position per column as you move from right to left in the figure. Thus, the data in column cl is shifted north to south one position, the data in column c2 is shifted north to south by two positions while the data in column c7 is shifted north to south by seven positions. Again, because the PEs are physically constrained to maintain their positions, the data simply wraps around. However, if the PEs were free to move, a shear in the southerly direction would be performed. As can be seen, a shear in the southern direction is perpendicular to the shear performed in the eastern direction.
100701 Turning now to FIG.1SD, a left shift of data is performed, i.e., a wrap shift of data from east to west. The wrap shift performed in FIG.1SD is performed in a direction opposite to the wrap shift performed in FIG.1 5B. In FIG.1 5D, the bottom row, r7, remains fixed with each row above it having its data shifted. Thus, the data in row r6 is shifted to the left one position, row r5 is shifted to the left two positions, while the data in row rO is shifted to the left seven positions.
Because the PEs are physically constrained, the data simply wraps around for each row.
However, if the PEs were free to move, it is seen that a shear in the east to west direction would be performed.
10071] Examining the data in the array of FIG.lSD,itis seen that the data in row rO is the same as the data in column cO of FIG.1 SA, the data in column c7 of FIG.1SD is the same as the data in row rO of FIG.1 SA, the data in row r7 of FIG.1SD is the same as the data in column c7 of FIG.1SA, and the data in column cO of FIG.1SD is the same as the data in row r7 of FIG.1SA.
Thus, it is seen that the data in FIG.1SD is rotated 90 counterclockwise with respect to the data of FIG.15A. The shifting and storing of data in the various steps illustrated in FIG.ISA through FIG.15D can be controlled through the use of either local counters or a plurality of row and column select signals as previously described.
100721 FlGs.16A through 1 6D illustrate another embodiment of the present invention. In FIG.16A, an array of data is illustrated. In FIG.16B, a wrap shift has been performed with the row r3 fixed. The data in rows above row r3 are subjected to a left wrap shift while the data in the rows below r3 are subjected to a right wrap shift. Although physically the data wraps around each row, if the rows could physically shift, the array of data would appear as shown by the phantom portions 102 and 104. Thus, in FIG.16B it is seen that a shear has been performed in a pair of directions, namely east and west.
-13
3] In FIG. 1 6C, vertical shifts are performed about column c3. The data in columns to the right of column c3 are shifted in a northern direction while the data in columns to the left of column c3 are shifted in a southern direction. This enables a shear operation to be performed in a pair of directions, namely north and south, which are perpendicular to the directions in which the shear of FIG. I 6B has been performed.
4] Turning now to FIG. 16D, another shear in the east-west direction is performed about row r4. That is, data in rows above row r4 are shifted to the left while data in rows below r4 are shifted to the right. Again, the data in each row wraps around. It can be seen by comparing the data in FIG. 16D with the data in FIG. 16A that the data in FIG. 16D is rotated 90 with respect to the data of FIG. 1 6A.
10075] It will be seen from an examination of FIGs. 1 5A through 1 5D and 1 6A through 1 6D that the present invention is comprised of a plurality of shifting operations and a plurality of storing operations with the shifting and storing operations coordinated to enable a three shears operation to be performed on the data. The various storing operations required are performed in response to the processing elements' positions. Varying the combinations of directions as well as varying the amount of"phantom shear" (which could be positioned on either side or the top and bottom of the matrix of data) are contemplated by the present invention.
10076] Although the figures illustrate a two-dimensional (2D) array connected as a mesh the present invention is applicable to other configurations. Accordingly, the phrase "plurality of processing elements" is to be broadly construed to include 2D and 3D collections of PEs connected in any known manner. For example, the PE's could be connected in shapes other than as illustrated in the figures, e.g., a cube. That would have f(x_Index, y_Index, z_Index). An n dimensional hypercube would have n dimensions and f (d(O), d(l), d(2) d(n-1)).
100771 Additionally, the network need not be connected as a mesh. For example, a simple extension may be implemented by providing two extra connections, one to the PE halfway across the row and the other to the PE halfway down the column. For that example there would be two more shift connections. In addition to the North, East, South, and West shifts, there could also be Half_Row and Half_Col shifts. Both of the above changes could be used at the same time.
For example, a four dimensional hyper-cube with half-way connections would have twelve shift options. -14
10078] While the present invention has been described in connection with a preferred embodiment thereof, those of ordinary skill in the art will recognize that many modifications and variations such as those previously discussed are possible. The present invention is not to be limited by the foregoing description but only by the following claims.
-15

Claims (36)

What is claimed is:
1. A method of rotating data in a plurality of processing elements, comprising: a plurality of shifting operations; and a plurality of storing operations, said shifting and storing operations coordinated to enable a three shears operation to be performed on the data, and wherein said plurality of storing i operations is responsive to the processing elements' positions.
2. The method of claim 1 wherein said plurality of storing operations are responsive to initial counts which are one of loaded into at least certain of said processing elements and calculated locally based on the processing element's location.
3. The method of claim 2 additionally comprising maintaining a current count in each processing element for each initial count, said current counts being responsive to said initial counts and the number of data shifts performed.
4. The method of claim 3 wherein said maintaining current counts includes altering said initial counts at programmable intervals by a programmable amount.
5. The method of claim 4 wherein said initial counts are decremented in response to a shifting of data to produce said current counts.
6. The method of claim 5 wherein a storing operation is performed when a current count in a processing element is non-positive.
7. The method of claim 1 additionally comprising selecting which processing elements are active in response to a row select signal and a column select signal.
8. A method of rotating data in a plurality of processing elements, comprising: a first shifting of a first plurality of data in a first direction; a first storing of data by a first plurality of said processing elements in response to said first shifting and the positions of said first plurality of processing elements; a second shifting of a second plurality of data in a second direction perpendicular to said first direction; a second storing of data by a second plurality of processing elements in response to said second shifting and the positions of said second plurality of processing elements; a third shifting of a third plurality of data in a third direction opposite to said first direction; and -16
a third storing of data by a third plurality of processing elements in response to said third shifting and the positions of said third plurality of processing elements.
9. The method of claim 8 wherein said first, second and third storing of data are responsive to initial counts which are one of loaded into at least certain of said processing elements and calculated locally based on the processing element's location.
10. The method of claim 9 additionally comprising maintaining a current count in each processing element for each initial count, said current counts being responsive to said initial counts and the number of data shifts performed.
11. The method of claim 10 wherein said maintaining current counts includes altering said initial counts at programmable intervals by a programmable amount.
12. The method of claim 11 wherein said initial counts are decremented in response to a shifting of data to produce said current counts.
13. The method of claim 12 wherein a storing operation is performed when a current count in I a processing element is non-positive.
14. The method of claim 8 wherein said first, second and third plurality of processing elements are selected using a row select signal and a column select signal.
15. A method of rotating data in a plurality of processing elements, comprising: a first plurality of shifting and storing operations coordinated to enable a first shear operation to be performed in a first direction; a second plurality of shifting and storing operations coordinated to enable a second shear operation to be performed in a second direction perpendicular to said first direction; and a third plurality of shifting and storing operations coordinated to enable a third shear operation to be performed in a third direction opposite to said first direction, and wherein said pluralities of storing operations are responsive to the elements' positions.
16. The method of claim 15 wherein said pluralities of storing operations are responsive to initial counts which are one of loaded into at least certain of said processing elements and calculated locally based on the processing element's location.
17. The method of claim 16 additionally comprising maintaining a current count in each processing element for each initial count, said current counts being responsive to said initial counts and the number of data shifts performed.
-17
18. The method of claim 17 wherein said maintaining current counts includes altering said initial counts at programmable intervals by a programmable amount.
19. The method of claim 18 wherein said initial counts are decremented in response to a shifting of data to produce said current counts.
20. The method of claim 19 wherein a storing operation is performed when a current count in a processing element is non-positive.
21. The method of claim 15 additionally comprising selecting which processing elements are active in response to a row select signal and a column select signal.
22. A method of rotating data in a plurality of processing elements, comprising: a first shifting of a first plurality of data in a first pair of directions; a first storing of data by a first plurality of said processing elements in response to said first shifting and the positions of said first plurality of processing elements; a second shifting of a second plurality of data in a second pair of directions perpendicular to said first pair of directions; a second storing of data by a second plurality of processing elements in response to said second shifting and the positions of said second plurality of processing elements; a third shifting of a third plurality of data in said first pair of directions; and a third storing of data by a third plurality of processing elements in response to said third shifting and the positions of said third plurality of processing elements.
23. The method of claim 22 wherein said first, second and third storing of data are responsive to initial counts which are one of loaded into at least certain of said processing elements and calculated locally based on the processing element's location.
24. The method of claim 23 additionally comprising maintaining a current count in each processing element for each initial count, said current counts being responsive to said initial counts and the number of data shifts performed.
25. The method of claim 24 wherein said maintaining current counts includes altering said initial counts at programmable intervals by a programmable amount.
26. The method of claim 25 wherein said initial counts are dccromcnted in response to a shifting of data to produce said current counts.
27. The method of claim 26 wherein a storing operation is performed when a current count in a processing element is non-positive.
-18
28. The method of claim 22 wherein said first, second and third plurality of processing elements are selected using a row select signal and a column select signal.
29. A method of rotating data in a plurality of processing elements, comprising: a first plurality of shifting and storing operations coordinated to enable a first shear operation to be performed in a first pair of directions; a second plurality of shifting and storing operations coordinated to enable a second shear operation to be performed in a second pair of directions perpendicular to said first pair of directions; and a third plurality of shifting and storing operations coordinated to enable a third shear operation to be performed in said first pair of directions, and wherein said pluralities of storing operations are responsive to the elements' positions.
30. The method of claim 29 wherein said pluralities of storing operations are responsive to initial counts which are one of loaded into at least certain of said processing elements and calculated locally based on the processing element's location.
31. The method of claim 30 additionally comprising maintaining a current count in each processing element for each initial count, said current counts being responsive to said initial counts and the number of data shifts performed.
32. The method of claim 31 wherein said maintaining current counts includes altering said initial counts at programmable intervals by a programmable amount.
33. The method of claim 32 wherein said initial counts are decremented in response to a shifting of data to produce said current counts.
34. The method of claim 33 wherein a storing operation is performed when a current count in a processing element is non-positive.
35. The method of claim 29 additionally comprising selecting which processing elements are active in response to a row select signal and a column select signal.
36. A memory device carrying a set of instructions which, when executed, perform a method comprising: a plurality of shifting operations; and a plurality of storing operations, said shifting and storing operations coordinated to enable a three shears operation to be performed on the data, and wherein said plurality of storing operations is responsive to the processing elements' positions.
-19 l
GB0309194A 2002-09-17 2003-04-23 Method of rotating data in a plurality of processing elements Expired - Fee Related GB2393276B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
GB0309194A GB2393276B (en) 2002-09-17 2003-04-23 Method of rotating data in a plurality of processing elements
US10/689,390 US7913062B2 (en) 2003-04-23 2003-10-20 Method of rotating data in a plurality of processing elements
US13/048,082 US8135940B2 (en) 2003-04-23 2011-03-15 Method of rotating data in a plurality of processing elements
US13/372,683 US8856493B2 (en) 2003-04-23 2012-02-14 System of rotating data in a plurality of processing elements

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
GB0221563A GB2395299B (en) 2002-09-17 2002-09-17 Control of processing elements in parallel processors
GB0221562A GB0221562D0 (en) 2002-09-17 2002-09-17 Host memory interface for a parallel processor
GB0309194A GB2393276B (en) 2002-09-17 2003-04-23 Method of rotating data in a plurality of processing elements

Publications (3)

Publication Number Publication Date
GB0309194D0 GB0309194D0 (en) 2003-05-28
GB2393276A true GB2393276A (en) 2004-03-24
GB2393276B GB2393276B (en) 2005-12-28

Family

ID=40090183

Family Applications (1)

Application Number Title Priority Date Filing Date
GB0309194A Expired - Fee Related GB2393276B (en) 2002-09-17 2003-04-23 Method of rotating data in a plurality of processing elements

Country Status (1)

Country Link
GB (1) GB2393276B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5568600A (en) * 1994-04-15 1996-10-22 David Sarnoff Research Ctr. Method and apparatus for rotating and scaling images
WO1996036941A1 (en) * 1995-05-15 1996-11-21 Polaroid Corporation Image rotation using discrete cosine transforms

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5568600A (en) * 1994-04-15 1996-10-22 David Sarnoff Research Ctr. Method and apparatus for rotating and scaling images
WO1996036941A1 (en) * 1995-05-15 1996-11-21 Polaroid Corporation Image rotation using discrete cosine transforms

Also Published As

Publication number Publication date
GB0309194D0 (en) 2003-05-28
GB2393276B (en) 2005-12-28

Similar Documents

Publication Publication Date Title
US7447720B2 (en) Method for finding global extrema of a set of bytes distributed across an array of parallel processing elements
USRE36954E (en) SIMD system having logic units arranged in stages of tree structure and operation of stages controlled through respective control registers
EP0390907B1 (en) Parallel data processor
EP1038253B1 (en) Multiprocessor computer architecture incorporating a plurality of memory algorithm processors in the memory subsystem
US5659785A (en) Array processor communication architecture with broadcast processor instructions
US7574466B2 (en) Method for finding global extrema of a set of shorts distributed across an array of parallel processing elements
US7581080B2 (en) Method for manipulating data in a group of processing elements according to locally maintained counts
EP0223690B1 (en) Processor array with means to control cell processing state
US7263543B2 (en) Method for manipulating data in a group of processing elements to transpose the data using a memory stack
US8856493B2 (en) System of rotating data in a plurality of processing elements
US7596678B2 (en) Method of shifting data along diagonals in a group of processing elements to transpose the data
GB2393276A (en) Method of rotating data in a plurality of processing elements
GB2393277A (en) Generating the reflection of data in a plurality of processing elements
US7676648B2 (en) Method for manipulating data in a group of processing elements to perform a reflection of the data
GB2393279A (en) Manipulating data in a plurality of processing elements
GB2393278A (en) Transposing data in an array of processing elements by shifting data diagonally
US7503046B2 (en) Method of obtaining interleave interval for two data values
US7437729B2 (en) Method for load balancing a loop of parallel processing elements
US7373645B2 (en) Method for using extrema to load balance a loop of parallel processing elements

Legal Events

Date Code Title Description
PCNP Patent ceased through non-payment of renewal fee

Effective date: 20140423