# Patent

## Title
Matrix processor data switch routing systems and methods

## Abstract

According to some embodiments, an integrated circuit comprises a microprocessor matrix of mesh-interconnected matrix processors. Each processor comprises a data switch including a data switch link register and matrix routing logic. The data switch link register includes one or more matrix link-enable register fields specifying a link enable status (e.g. a message-independent, p-to-p, and/or broadcast link enable status) for each inter-processor matrix link of the processor. The matrix routing logic routes inter-processor messages according to the matrix link-enable register field(s). A particular link may be selected by a current matrix processor by selecting an ordered list of matrix links according to a relationship between ΔH and ΔV, and choosing the first enabled link in the selected list for routing. ΔH is the horizontal matrix position difference between the current (sender) processor and a destination processor, and ΔV is the vertical matrix position difference between the current and destination processors.

## Background
RELATED APPLICATION DATA
This application is related to the concurrently-filed U.S. patent application Ser. No. 12/168,837, entitled “Matrix Processor Initialization Systems and Methods,” Ser. No. 12/168,849, entitled “Matrix Processor Proxy Systems and Methods,” Ser. No. 12/168,857, entitled “Matrix Processor Control Message Transmission Systems and Methods,” now U.S. Pat. No. 7,870,365 B1, and Ser. No. 12/168,861, entitled “Matrix Processor Data Streaming Systems and Methods,” now U.S. Pat. No. 7,958,341 B1, which are herein incorporated by reference.
FIELD OF THE INVENTION
This invention relates to digital integrated circuits, and in particular to multi-processor (multi-core) data processing systems and methods.
BACKGROUND OF THE INVENTION
The progress of semiconductor technologies has often outpaced the progress and evolution of computer architecture. Scaling down the size of semiconductor components allows higher logic densities. At the same time, scaling down the size of semiconductor features introduces new challenges. Such challenges may involve leakage current, power consumption, an inability to increase performance by increasing clock frequencies, and memory bandwidth capabilities that do not keep up with improved logic performance. The limitations of current processing systems are often most apparent in mobile/handheld devices.
SUMMARY OF THE INVENTION
According to one aspect, an integrated circuit comprises a microprocessor matrix of mesh-interconnected matrix processors, wherein each matrix processor comprises a data switch. The data switch includes a data switch link register including a first matrix link-enable register field specifying a link enable status for each of a plurality of inter-processor matrix links of said each matrix processor, and matrix routing logic connected to the data switch link register and configured to route an inter-processor message through the matrix according to the first matrix link-enable register field.
According to another aspect, a method comprises programming a first matrix link-enable register field in a matrix processor of a microprocessor matrix of mesh-interconnected matrix processors, and employing a data switch of the matrix processor to route an inter-processor message through the matrix according to the first matrix link enable register field. The data switch is configured to control a routing of inter-processor messages through a plurality of inter-processor matrix links of the matrix processor. The first matrix link-enable register field specifies a first link-enable status for each of the plurality of inter-processor matrix links.
According to another aspect, a system comprises means for programming a first matrix link-enable register field in a matrix processor of a microprocessor matrix of mesh-interconnected matrix processors, the matrix processor including a data switch configured to control a routing of inter-processor messages through a plurality of inter-processor matrix links of the matrix processor, the first matrix link-enable register field specifying a first link-enable status for each of the plurality of inter-processor matrix links; and means for routing an inter-processor message through the matrix according to the first matrix link enable register field.
According to another aspect, an integrated circuit comprises a microprocessor matrix of mesh-interconnected matrix processors. A sender (current) matrix processor comprises a data switch comprising matrix routing logic configured to select a first matrix link from a plurality of matrix links of the sender matrix processor, for routing an inter-processor message through the first matrix link. The matrix link is selected by selecting a first ordered list of matrix links from a plurality of predetermined ordered lists of matrix links of the current matrix processor, identifying a highest-order enabled matrix link in the first ordered list, and setting the first matrix link (the link to be used for sending out the message) to be the highest-order enabled matrix link in the first ordered list The first ordered list is selected according to a relationship between a horizontal matrix position difference between the sender matrix processor and a destination matrix processor of the message, and a vertical matrix position difference between the sender matrix processor and the destination matrix processor.
According to another aspect, a method comprises employing a current matrix processor to select a first matrix link from a plurality of matrix links of the current matrix processor in a microprocessor matrix of mesh-interconnected matrix processors, for routing an inter-processor message through the first matrix link, and sending the message on the first matrix link. The first matrix link is selected by selecting a first ordered list of matrix links from a plurality of predetermined ordered lists of matrix links of the current matrix processor, identifying a highest-order enabled matrix link in the first ordered list, and setting the first matrix link to be the highest-order enabled matrix link in the first ordered list. The first ordered list of matrix link is selected according to a relationship between a horizontal matrix position difference between the current matrix processor and a destination matrix processor of the message, and a vertical matrix position difference between the current matrix processor and the destination matrix processor of the message.



BRIEF DESCRIPTION OF THE DRAWINGS
The foregoing aspects and advantages of the present invention will become better understood upon reading the following detailed description and upon reference to the drawings where:
FIG. 1 shows an exemplary data processing system including a processor matrix according to some embodiments of the present invention.
FIG. 2-A shows an exemplary internal structure of a matrix processor of FIG. 1, according to some embodiments of the present invention.
FIG. 2-B shows an exemplary matrix link numbering for a matrix processor connected to its neighbors over eight matrix link, according to some embodiments of the present invention.
FIG. 3 shows an exemplary internal structure of a data switch of the matrix processor of FIG. 2-A, according to some embodiments of the present invention.
FIG. 4-A shows an exemplary path of a processor-to-processor message in a multi-processor matrix in which all inter-processor links are in working condition, according to some embodiments of the present invention.
FIG. 4-B shows exemplary code describing a processor-to-processor message routing method according to some embodiments of the present invention.
FIG. 5-A shows an exemplary path of a broadcast message in a multi-processor matrix in which all inter-processor links are in working condition, according to some embodiments of the present invention.
FIG. 5-B shows exemplary code describing a broadcast message routing method according to some embodiments of the present invention.
FIG. 6-A shows an exemplary path of a processor-to-processor message in a multi-processor matrix in the presence of some inter-processor communication failures, according to some embodiments of the present invention.
FIG. 6-B shows exemplary code describing a fault-tolerant processor-to-processor message routing method according to some embodiments of the present invention.
FIG. 7 shows an exemplary failed path of a processor-to-processor message in the presence of an exemplary configuration of inter-processor communication failures, according to some embodiments of the present invention.
FIG. 8 shows an exemplary successful path of a processor-to-processor message through a proxy in the matrix of FIG. 6, according to some embodiments of the present invention.
FIG. 9-A shows an exemplary path of a broadcast message in the presence of a number of inter-processor communication failures in a single-domain matrix, according to some embodiments of the present invention.
FIG. 9-B shows an exemplary path of a broadcast message in a matrix comprising multiple broadcast domains, according to some embodiments of the present invention.
FIG. 10-A shows a preliminary boot sequence performed by a boot processor according to some embodiments of the present invention.
FIG. 10-B shows an initialization sequence performed by the kernel of each matrix processor according to some embodiments of the present invention.
FIG. 10-C shows a sequence of steps performed by the kernel of the boot processor to identify functional data switches/inter-processor links within the processor matrix, according to some embodiments of the present invention.
FIG. 10-D shows a sequence of steps performed by the kernel of the boot matrix processor to identify functional processing pipelines within the processor matrix, according to some embodiments of the present invention.



DETAILED DESCRIPTION OF THE INVENTION
The following description illustrates the present invention by way of example and not necessarily by way of limitation. Any reference to an element is understood to refer to at least one element. A set of elements is understood to include one or more elements. A plurality of elements includes at least two elements. Unless otherwise specified, each recited element or structure can be formed by or be part of a single structure or unit, or be formed from multiple distinct structures or units. Unless otherwise specified, any recited electrical or mechanical connections can be direct connections or indirect operative connections established through intermediary circuit elements or structures. An inter-processor link including non-contentious data and control channels is capable of transferring on the same clock cycle at least some data messages over the data channel and at least some control messages over the control channel without mutual contention; a transmission of at least some control messages over the control channel does not directly affect a concurrent transmission of at least some data messages over the data channel, and vice versa. A data switch configured to route control messages autonomously with respect to a corresponding instruction processing pipeline is capable of routing at least some control messages without the execution of corresponding instructions by the instruction processing pipeline; such a data switch may also be capable of sending control messages in response to execution of corresponding instructions by the instruction processing pipeline. The statement that two or more events or actions happen synchronously is understood to mean that the events/action happen within the same clock cycle. The statement that a data switch transfers two data streams concurrently is understood to mean that the transfers of the two data streams by the data switch overlap temporally, i.e. that at least on some clock cycles the data switch transfers parts of both data streams; two such streams need not start/end on the same clock cycles.
The following description illustrates embodiments of the invention by way of example and not necessarily by way of limitation.
The systems and methods described below are particularly suited for implementation using deep sub-micron technologies, where processing elements are small and operate at low power levels. Exemplary systems and methods as described herein may allow minimizing data movement, which substantially affects system power consumption, performance, and allowable die size characteristics.
FIG. 1 shows an exemplary data processing system 20 according to some embodiments of the present invention. Data processing system 20 comprises an integrated circuit 22 including a processor matrix 24. Processor matrix 24 is connected to I/O pin/host interfaces 26a-b and north/south crossbar switches 30a-b. Crossbar switches 30a-b connect processor matrix 24 to a plurality of memory management units (MMUs) 32a-b, which control the operation of a plurality of memory controllers (MCs) 34a-b, respectively. Integrated circuit 22 may also include a host CPU 36, which may be connected to processor matrix 24 through a host & I/O pin interface 26a. Host CPU 36 may be a conventional single-core or multi-core processor, such as a processor based on an x86, ARM, MIPS, or SPARC architecture. Interface 26a may include or otherwise be connected to a boot controller 38. Boot controller 38 may include a boot finite state machine (FSM) for initiating a processor matrix boot sequence described below, as well as a boot read-only memory (ROM) storing data for booting processor matrix 24 and/or host CPU 36. Host CPU 36 may also be connected to a non-volatile memory 40, which may include for example flash memory. Memory controllers 34a-b are connected to respective random access memory (RAM) units 44a-b. Each memory controller 34a-b services a single memory channel, while each MMU 32a-b interleaves access to its associated memory channels in order to increase memory bandwidth utilization. In some embodiments, each memory channel may use one or more ranks of memories, each with one or more DDRx chips.
In some embodiments, system 20 need not include all the components shown in FIG. 1. An exemplary system may include only one of the north/south memory subsystems shown in FIG. 1, and/or a single memory management unit. As a further example, a system including a single memory management unit need not include the crossbar switches shown in FIG. 1.
Matrix 24 includes a plurality of mesh-interconnected matrix processors (cores, also denoted below as OVP) 50 arranged in a cartesian (x-y) array configuration. Each matrix processor 50 may be assigned to a specified subtask of a computationally-intensive application. The assignment of processors 50 to application tasks may be performed by the application and/or load-balancing software known in the art. The assignment may be performed after a number of testing and initialization steps described below, which identify any fully- or partially-non-functional matrix processors 50 (e.g. matrix processors 50 having non-functional data switches and/or instruction pipelines, described below).
FIG. 1 shows an exemplary 8×4 matrix configuration, with matrix processors 50 denoted by their x- and y-indices. Each matrix processor 50 is directly connected through a dedicated data read, data write, control read and control write connection to each of its horizontal, vertical, and diagonal immediate neighbors. Corner matrix processors are directly connected to three other matrix processors, non-corner edge matrix processors are directly connected to five other matrix processors, and internal matrix processors are directly connected to eight other matrix processors. In the exemplary configuration of FIG. 1, north and south edge matrix processors P0,0-P0,7, P3,0-P3,7 are directly connected to north and south crossbar switches 30a-b, respectively, while west and east edge matrix processors P0,0-P3,0, P0,7-P3,7 are directly connected to I/O pin/host interfaces 26a-b, respectively.
Each matrix processor 50 is connected to one or both of the north and south memory subsystems formed by MMUs 32a-b and MCs 34a-b. In some embodiments, each matrix processor is connected to the north memory subsystem including MMUs 32a and MCs 34a, and the south memory subsystem is not present or operative. In some embodiments, each matrix processor column is connected to the north memory subsystem over a set of three uni-directional buses including a transaction address, a write data, and a read data bus.
In some embodiments, some or all matrix processors 50 are programmable processors, each including an instruction pipeline configured to execute software instructions. In some embodiments, at least some of matrix processors 50 may be co-processors. A co-processor may include special-purpose hardware (logic) instead of a programmable instruction-processing pipeline, but otherwise may include the inter-processor communication functions of other matrix processors, described below.
In some embodiments, one or more matrix processors 50 are configured to act as a boot processor to execute a boot/initialization sequence after each hard reset and/or other events. For example, the upper-left (0,0) matrix processor 50 may be configured to act as a boot processor by default, and the matrix processors 50 in the left column may be configured to act as backup boot processors in order of priority going down the column if the matrix processor(s) above are not capable of functioning as boot processors. In addition, one or more matrix processors 50 may be designated as a master processor before or after boot. A master processor may have enhanced privileges and may be capable of selectively performing some operations (e.g. broadcasting messages, domain partitioning, enabling/disabling inter-processor links) that are not permitted for non-master matrix processors 50. A master processor may be the boot processor, or may be chosen to be a processor near the physical center of matrix 24 in order to reduce the maximum travel time of messages from the master matrix processor to other matrix processors 50.
Matrix Processor Structure
FIG. 2-A shows an exemplary internal structure of a matrix processor 50 according to some embodiments of the present invention. Matrix processor 50 includes a hardware data switch 52 controlling inter-processor communications as described below, and a programmable instruction processing pipeline 54 performing processing operations on incoming data according to a sequence of instructions. Pipeline 54 may include one or more arithmetic logic units (ALU). Pipeline 54 is connected to data switch 52, a register file 58, and an instruction cache (I-cache) 60a. Data switch 52 is further connected to a local memory 62, a system controller 61, a data cache (D-cache) 60b, and a direct memory access (DMA) controller 64. Caches 60a-b, system controller 61 and DMA controller 64 are connected to external MMUs through a memory arbiter 68. Memory arbiter 68 is connected to MMUs 32a-b through crossbar switches 30a-b and any intervening matrix processors 50; the memory arbiters of north and south edge matrix processors 50 are directly connected to crossbar switches 30a or 30b, while the memory arbiters of internal matrix processors 50 are directly connected to the memory arbiters of their immediate North and South neighbors. In some embodiments, the connections of matrix processors 50 to MMUs 32a-b through memory arbiters 68 generally provide higher latency and lower bandwidth than the connections to other matrix processors and I/O interfaces 26a-b through data switches 52.
In some embodiments, pipeline 54 and/or the other units connected to data switch 52 in FIG. 2-A may include or be implemented using a conventional processor such as a multi-threaded or single-threaded processor based on an x86, ARM, MIPS, or SPARC architecture. In some embodiments, all ports shown in FIG. 2-A are uni-directional full duplex ports. Using such ports allows avoiding bus arbitration and switching, and allows achieving higher performance and lower power consumption. In some embodiments, each port shown in FIG. 2-A includes independent control and data ports, in order to allow matrix processors to exchange control messages without interrupting the streaming of data on the data ports as described below.
In some embodiments, system controller 61 implements one or more system control functions such as a memory virtualization function. System controller 61 may include a translation lookaside buffer (TLB) useful for improving the speed of virtual address translation and facilitating memory virtualization.
In some embodiments, all the ports of data switch 52 are memory mapped; pipeline 54 is capable of writing to such ports directly. Table 1 shows an exemplary division of a 4-Gbyte address space in a system using a 32-bit addressing space. Matrix links may be denoted as OVP Links in Table 1 and other tables below.







TABLE 1







Exemplary Matrix Processor Memory Map








Address Range
Description





0×0000_0000-0×7fff_ffff 
Cached Memory (2 GBytes)


0×8000_0000-0×bfff_ffff
Local Memory (1 GByte)


0×c000_0000-0×c0ff_ffff 
Direct Memory Control Port 0 (16 Mbytes)


0×c100_0000-0×clff_ffff 
Direct Memory Control Port 1 (16 Mbytes)


0×c200_0000-0×c2ff_ffff 
Direct Memory Control Port 2 (16 Mbytes)


0×c300_0000-0×c3ff_ffff 
Direct Memory Control Port 3 (16 Mbytes)


0×c400_0000-0×c4ff_ffff
Local Memory Control Port 0 (16 Mbytes)


0×c500_0000-0×c5ff_ffff
Local Memory Control Port 1 (16 Mbytes)


0×c600_0000-0×c6ff_ffff
Local Memory Control Port 2 (16 Mbytes)


0×c700_0000-0×c7ff_ffff
Local Memory Control Port 3 (16 Mbytes)


0×c800_0000-0×c8ff_ffff 
OVP Control Link 0 (16 Mbytes)


0×c900_0000-0×c9ff_ffff 
OVP Control Link 1 (16 Mbytes)


0×ca00_0000-0×caff_ffff
OVP Control Link 2 (16 Mbytes)


0×cb00_0000-0×cbff_ffff 
OVP Control Link 3 (16 Mbytes)


0×cc00_0000-0×cfff_ffff 
OVP Control Link 4 (16 Mbytes)


0×cd00_0000-0×cdff_ffff 
OVP Control Link 5 (16 Mbytes)


0×ce00_0000-0×ceff_ffff 
OVP Control Link 6 (16 Mbytes)


0×cf00_0000-0×cfff_ffff 
OVP Control Link 7 (16 Mbytes)


0×d000_0000-0×d0ff_ffff 
Direct Memory Data Port 0 (16 Mbytes)


0×d100_0000-0×diff_ffff 
Direct Memory Data Port 1 (16 Mbytes)


0×d200_0000-0×d2ff_ffff 
Direct Memory Data Port 2 (16 Mbytes)


0×d300_0000-0×d3ff_ffff
Direct Memory Data Port 3 (16 Mbytes)


0×d400_0000-0×d4ff_ffff 
Local Memory Data Port 0 (16 Mbytes)


0×d500_0000-0×d5ff_ffff 
Local Memory Data Port 1 (16 Mbytes)


0×d600_0000-0×d6ff_ffff
Local Memory Data Port 2 (16 Mbytes)


0×d700_0000-0×d7ff_ffff 
Local Memory Data Port 3 (16 Mbytes)


0×d800_0000-0×d8ff_ffff
OVP Link Data Link 0 (16 Mbytes)


0×d900_0000-0×d9ff_ffff
OVP Link Data Link 1 (16 Mbytes)


0×da00_0000-0×daff_ffff 
OVP Link Data Link 2 (16 Mbytes)


0×db00_0000-0×dbff_ffff 
OVP Link Data Link 3 (16 Mbytes)


0×dc00_0000-0×dcff_ffff 
OVP Link Data Link 4 (16 Mbytes)


0×dd00_0000-0×ddff_ffff 
OVP Link Data Link 5 (16 Mbytes)


0×de00_0000-0×deff_ffff 
OVP Link Data Link 6 (16 Mbytes)


0×df00_0000-0×dfff_ffff 
OVP Link Data Link 7 (16 Mbytes)


0×e000_0000-0×efff_ffff 
System Controller (256 Mbytes)


0×f000_0000-0×ffff_ffff 
Boot Memory (256 Mbytes)









FIG. 2-B shows an exemplary relationship between matrix directions and matrix link indices such as the link indices (0-7) listed of Table 1. The East direction may be defined as Link 0, with the link index increasing by one as the direction is changed counterclockwise to North-East, North, North-West, West, South-West, South, and South-East.
In some embodiments, the matrix control interfaces are used by the instruction processing pipeline kernel of each matrix processor 50 to exchange control messages with other matrix processor kernels. In some embodiments, control messages sent by a pipeline 54 of a matrix processor 50 are routed by the data switch 52 of that matrix processor and by data switches of intervening matrix processor(s) 50 en route to the message destination, without any software involvement or control by any pipelines 54 of intervening matrix processors 50. Kernels of two immediately neighboring matrix processors 50 may exchange control messages over a control channel at the same time (on the same clock cycle) as user threads in the two processors exchange data over the corresponding data channel between the processors. In some embodiments, control messages include broadcast messages sent to all processors in matrix 24, and processor-to-processor (P-to-P) messages sent to designated recipient processors. Depending on how messages are processed at the destination matrix processor(s) 50, control messages may also be classified as hardware or software messages. Hardware messages may be used to control low-level functions of matrix 24, such as soft reset and non-maskable interrupts, boot sequence, clock frequency, and voltage level. Software messages may be used to implement message-passing protocols and inter-processor synchronization, such as support for transactional memory, thread software interrupts, Compare-And-Swap, Load-Linked and Store-Conditional.
In some embodiments, as long as any two neighboring matrix processors 50 use the same clock, data and control messages sent between the two matrix processors incur only one cycle delay (messages move at one cycle per hop/processor). Double registers may be used on all matrix link interfaces, on one side, in order to decouple the timing requirements of each data switch 52 from other matrix processors 50. In some embodiments, double registers are used on all inputs, and all outputs are driven combinational. Such a double-register input configuration offers consistency for the matrix link read interrupts. When a matrix link read interrupt is set, the last word has just left the source data switch 52 and the word is buffered in the destination's input register.
Instruction Pipeline Special-Purpose Registers
In some embodiments, each matrix processor 50 includes a number of special-purpose registers 55 used by pipeline 54 to control the operation of its corresponding data switch 52. Such registers may be hard-coded, or, if software-programmable, writable only by the kernel. In some embodiments, the data switch control special-purpose pipeline registers include an identification (ID) register, a hardware configuration (HC) register, a software configuration (SC) register, and a port and link (PL) register.
The ID register stores a hard-coded matrix processor ID, which is unique for each matrix processor 50 of matrix 24. Table 2 illustrates an exemplary 32-bit ID register according to some embodiments of the present invention.







TABLE 2





Identification Register




























The Hardware Configuration (HC) register stores hard-coded vertical and horizontal position indexes identifying the fixed vertical and horizontal position of matrix processor 50 within matrix 24. The processor positions specified by the HC register are used by routing algorithms implemented by data switch 52, as described in detail below. Table 3 illustrates an exemplary HC register according to some embodiments of the present invention.







TABLE 3





Hardware Configuration Register




























The Software Configuration (SC) register of each matrix processor 50 may store a programmable index identifying the number (LastV) of active processors in the current column. In some embodiments, the contents of the SC register may be written only by the kernel. All matrix processors 50 in a column have the same LastV value, but different columns may have different LastV values. In embodiments in which access to the North memory subsystem (32a, 34a) is daisy-chained for the matrix processors 50 in a given column, the number of matrix processors serviced by the current memory arbiter 68 may be used to provide each matrix processor 50 equal access to the memory subsystem, independently of vertical processor position within the column. If the North memory subsystem is the only memory subsystem present and one of the matrix processors 50 in a column fails (e.g. is not capable of accessing external memory), the matrix processors below the failed matrix processor in that column no longer have access to external memory and may be deemed to have also failed. Their data switches 52 of such matrix processors may still be functional and employed for inter-processor communications. Table 4 illustrates an exemplary SC register according to some embodiments of the present invention.







TABLE 4





Software Configuration Register




















In embodiments using a multi-threaded pipeline 54, each port of data switch 52 may be allocated for exclusive use by a single thread at a time. The Port and Link (PL) register of each matrix processor 50 may store a set of memory port and inter-processing link assignment indexes, each indicating a thread to which a corresponding local memory port, direct memory port, or matrix link is assigned. In some embodiments, the contents of the PL register may be written only by the kernel. Table 5 shows en exemplary organization of a Port and Link register for a 4-thread pipeline 54.







TABLE 5





Port and Link Register




















Data Switch Structure

FIG. 3 shows an exemplary structure of a data switch 52 and its external connections according to some embodiments of the present invention. Data switch 52 includes matrix routing logic 90 configured to control the routing of matrix messages, pipeline & memory access logic 96 configured to control pipeline access (input/output) and memory access (read/write, including stream) operations, and testing & initialization logic 98 configured to perform a set of testing and initialization steps described below. In some embodiments, a part of testing & initialization logic 98 may be present and/or operable only in some matrix processors 50, such as the upper left or left-column matrix processors 50. Routing logic 90 includes broadcast routing logic 92 configured to route broadcast messages sent to multiple/all matrix processors, and processor-to-processor routing logic 94 configured to route processor-to-processor messages having individualized destinations. Pipeline & memory access logic 96 includes logic configured to perform a number of data streaming operations responsive to the execution of stream instructions. Data switch 52 further includes a number of special-purpose registers 100.
In some embodiments, each data switch 52 is configured according to a set of configuration parameters set at synthesis time. Such configuration parameters may include the contents of identification (ID) and hardware configuration (HC) special-purpose registers described above. Table 6 lists exemplary data switch configuration parameters corresponding to the ID and HC special-purpose registers described above.







TABLE 6







Data Switch Configuration Parameters









Parameter
Range
Description





ID
0-0×ffffffff
Matrix Processor Identification


v
0-255
Vertical Coordinate in the Matrix


H
0-255
Horizontal Coordinate in the Matrix









In some embodiments, each data switch 52 includes a number of interfaces for connecting to pipeline 54, local memory 62, direct memory controller 64, and neighboring matrix processors 50, among others. As shown in FIG. 3, data switch 52 may include a pipeline interface 72, an interrupt interface 74, a system controller interface 76, a D-cache interface 78, a local memory interface 80, a direct memory interface 82, a matrix interface 86, and a boot interface 88. Local memory interface 80 includes one or more ports 80a dedicated to instruction processing pipeline access, and one or more streaming ports 80b which can be used to stream data to/from local memory 62.
Data switch pipeline interface 72 includes one or more fields for communicating with pipeline 54. Pipeline interface 72 may include an input command field identifying the data switch access command (e.g. nop, load, store, stream), input data switch address and write data fields, and an output read data field, among others. Input and output directions may be defined with respect to data switch 52. Other fields may include an input thread identifier field, as well as output exception (e.g. link busy) and interrupt fields (e.g. one for each thread). For example, in some embodiments interrupt signals are sent by data switch 52 to pipeline 54 when a user thread does a load or store and the data is not available or cannot be accepted; the requesting thread is preempted to let other threads do useful work while the requesting thread waits, and pipeline 54 is not stalled. When the data becomes available (for loads) or can be accepted (for stores), data switch 52 asserts the corresponding interrupt signal for one cycle. In response, pipeline 54 transitions the thread state from a waiting state to ready. For kernel load and store operations, pipeline 54 may be stalled when the data is not available or cannot be accepted.
In some embodiments, data switch interrupt interface 74 may include one or more interrupt fields, such as software reset, non-maskable, matrix, memory read (e.g. local memory and direct memory), and matrix link read interrupts, among others. Data switch system controller interface 76 may include one or more fields for communicating to system controller 61, such as read data, write data, and address fields. Data switch data D-cache interface 78 may include one or more fields for communicating to data cache 60b, such as data cache command, data cache virtual address, read data and write data fields.
Local memory pipeline access port 80a may include one or more fields for allowing pipeline 54 to communicate with local memory 62, such as local memory command, local memory address, read data and write data fields. Local memory streaming ports 80b may include one or more fields allowing data streaming to/from local memory 62. For example, in some embodiments local memory streaming ports 80b may include four streaming write and four streaming read ports, with each streaming write port including output write data and request-to-send fields and an input write clear-to-send field, and each streaming read port including input read data and interrupt fields, and input and output flow control fields. Local memory 62 may include arbitration logic allowing only one of ports 80a-b access to local memory 62 on any given clock cycle. Pipeline access port 80a may be non-blocking, and may have priority access over local memory streaming ports 80b. 
In some embodiments, data switch direct memory interface 82 may include one or more ports dedicated to instruction processing pipeline access, and one or more streaming ports which can be used to stream data to/from direct memory controller 64. A direct memory pipeline-access port may include one or more fields for allowing pipeline 54 to communicate to direct memory controller 64, such as direct memory command, direct memory address, read data and write data fields. Direct memory streaming ports may include one or more fields, allowing data streaming to/from direct memory controller 64. For example, in some embodiments the direct memory streaming ports may include four streaming write and four streaming read ports, with each streaming write port including output write data and write confirmation request fields, and input and output flow control fields, and each streaming read port including input read data and interrupt fields, and input and output flow control fields.
In some embodiments, data switch matrix interface 86 may include a data write, data read, control write, and control read interface for each matrix link (0-7) connected to data switch 52. Each data write and control write interface may include corresponding output write data and input and output flow control fields, while each data read and control read interface may include input read data and input and output flow control fields. The data write and data read interfaces may include output data write interrupt and input data read interrupt fields, respectively.
Data switch boot interface 88 may include one or more fields for communicating with a boot FSM of boot controller 38. Boot interface 88 may include a boot address interface including input boot address and boot address request-to-send fields, and an output boot address clear-to-send field, and a boot data interface including output boot data and boot data request-to-send fields and an input boot data clear-to-send field. In some embodiments, only some data switches 52, for example only the data switches in the left-most matrix processor column, include and/or use boot interface 88.
Data Switch Transactions and Special-Purpose Registers; Data Streaming
In some embodiments, the local memory, inter-processor, and DMA interfaces of data switch 52 include streaming ports configured to stream data to and from local memory 62, external memory (DMA controller 64), immediately neighboring matrix processors 50, and immediately-neighboring I/O interfaces 26a-b in response to stream instructions, described below. Each matrix processor 50 may use load/store instructions to read/write data from/to the streaming ports of its data switch 52, and may also initiate one or more non-blocking data streams to be transferred in the background by data switch 52 without interruption while pipeline 54 continues normal execution over multiple clock cycles and other data and/or control messages are transferred over the corresponding data and/or control channels. The load/store instructions transfer words one at a time (one word per instruction) between memory-mapped matrix processor ports and processing pipeline registers, while the data streams transfer multiple words over multiple consecutive clock cycles, one word per cycle, between different memory-mapped data switch ports.
In some embodiments, a data stream is initiated by a stream instruction executed by pipeline 54. Each stream instruction takes as arguments the source, destination(s), and size of the data stream. The source may be any one of local memory 62, external memory (DMA controller 64), a neighboring matrix processor 50, or, for processors along the East/West edges, an I/O interface 26a-b. The destination(s) may include local memory 62, external memory (DMA) 64, and/or a neighboring matrix processor 50 or I/O interface 26a-b. In some embodiments, the size of the data stream may be fixed by the stream instruction argument, or may be variable in the case of streams received from neighboring matrix processors 50, to be determined by the data source. When the stream source has sent a last word of a variable-length stream, an interrupt is issued by the stream source, signaling that the stream transmission has completed. Variable-length data streams are particularly useful for data incoming from a neighboring matrix processor. In some embodiments, in order to improve performance, when a source matrix processor initiates a data stream to one of its immediate neighbors (a destination processor), the destination processor initiates its own data stream from the matrix port connected to the source to a buffer within the destination processor local memory.
Table 7 shows all transactions supported by each data switch 52 according to some embodiments of the present invention. As shown in the last four lines of Table 7, supported data streaming instructions include a data streaming instruction transferring a data stream from local memory to one or more matrix links, a data streaming instruction transferring a data stream from a matrix link to local memory, a data streaming instruction transferring a data stream from a matrix link to one or more matrix links, and a data streaming instruction transferring a data stream from a matrix link to local memory and one or more matrix links. Data switch 52 includes suitable logic and registers (e.g. stream control/multiplexing logic and stream state registers) configured to implement each instruction. The fields ds_addr and ds_cmd shown in Table 7 may be data switch address and command input fields forming part of pipeline interface 72. All combinations not shown in Table 7 may be treated as illegal. In some embodiments, the upper 4 KBytes (ds_addr [15:12]==4′ hf) of the matrix Link Data Ports can be read and written only by the kernel, and an attempt by a user thread to access this space causes an illegal memory transaction exception.







TABLE 7







Data Switch Transactions









ds_addr
ds_cmd













31:28
27:24
23:16
15:0
[3:0]
Description















0×××
××××


0001, 0010, 0011
Load Byte/Half-







Word/Word 







from DCache


0×××
××××


0101, 0110, 0111
Store Byte/Half-







Word/Word to







DCache


0×××
××××


1000
DCache 







Consistency







Synchronization


0×××
××××


1010
Invalidate 







DCache Line







Unconditionally


0×××
××××


1011
Invalidate 







DCache Line 







if Valid


0×××
××××


1100
Flush DCache 







Line


0×××
××××


1101
Flush and 







Invalidate







DCache Line


0×××
××××


1110
Flush DCache 







Line and wait







cmw_int


0×××
××××


1111
Flush and 







Invalidate







DCache Line and 


.




wait cmw_int


10××
××××


0001, 0010, 0011
Load Byte/Half-







Word/Word from







Local Memory


10××
××××


0101, 0110, 0111
Store Byte/Half-







Word/Word to 







Local Memory


1100
00ss


0011
Load Word from 







Direct Memory 







Control port ss


1100
01ss


0011
Load Word from 







Local Memory 







Control port ss


1100
1×××


0011
Load Word 







from Data 







Switch Control


1100
00dd


0111
Store Word to 







Direct Memory 







Control port dd


1100
01dd


0111
Store Word to 







Local Memory 







Control port dd


1100
l×××


0111
Store Word to 







Data Switch







Control


1101
00ss


0011
Load Word from 







Direct Memory 







Data port ss


1101
1sss

addr
0011
Load Word from 





(1)

OVP Link Data sss







(ds_addr [15:0] is 







used only by source 







coprocessors and 







I/O blocks)


1101
00dd

0
0111
Store Word to 







Direct Memory







Data port dd


1101
00dd

4
0111
Store Word to 







Direct Memory 







Data port dd and 







request a 







confirmation


1101
10××
mask
addr
0111
Store Word to all 





(1)

OVP Link Data 







selected by







the mask. Send a 







Read Interrupt to







the Matrix 







Processor desti- 







nations if ds_addr 







[2] == 1. (ds_addr 







[15:0] is used only 







by destination







coprocessors 







and I/O blocks)


1110
××××


0011
Load Word from 







System Controller


1110
××××


0111
Store Word to 







System Controller


00ss
00dd


0100
Stream from 







Direct Memory 







Data port ss to 







Direct Memory 







port dd


00ss
01dd


0100
Stream from Direct 







Memory Data 







port ss to Local 







Memory port dd


01ss
00dd


0100
Stream from Local 







Memory Data 







port ss to Direct







Memory port dd


01ss
01dd


0100
Stream from Local 







Memory Data 







port ss to Local 







Memory port dd


01ss
10××
mask
addr
0100
Stream from Local 





(1)

Memory Data port 







ss to OVP







Link Data selected 







by the mask 







(the addr field is







used only by







dest. coprocessors







and I/O blocks)


1sss
01dd

addr
0100
Stream from OVP 





(1)

Link Data sss 







to Local Memory







port dd (the addr







field is used only by 







source copro- 







cessors and I/O 







blocks)


1sss
10××
mask
addr
0100
Stream from OVP 





(1)

Link Data sss 







to OVP Link







Data selected by 







the mask 







(the addr field is







used only by source 







and dest. 







coprocessors 







and I/O blocks)


1sss
11dd
mask
addr
0100
Stream from OVP 





(1)

Link Data sss







to Local Memory 







port dd and OVP 







Link Data







selected by the







mask (the addr field







is used only by







source and 







destination 







coprocessors







and I/O blocks)









In some embodiments, when a stream ends or when a store is done with the least significant bit (LSB) set, the source matrix processor 50 may drive a link-specific (0,7) data read interrupt signal over a link data read interface of a matrix link 86, which, if the data stream goes to other matrix processors, in turn may drive a link-specific data write interrupt signal over a link data write interface of a matrix link 86 and a matrix link read interrupt signal over interrupt interface 74.
In some embodiments, a data switch 52 may simultaneously (on the same clock cycle) transfer words belonging to multiple data streams between different streaming ports, with the maximum number of data streams handled simultaneously being limited only by the availability of streaming ports. Data switch 52 may include a register for storing a data switch stream state, which is checked every time a stream instruction is received. Data switch 52 also includes stream multiplexing logic for concurrently (on the same cycle) receiving data on one streaming port and sending the data on multiple streaming ports.
In some embodiments, thread preemption may occur when a load/store is executed from/to D-Cache 60b, one of the direct memory ports 82 or matrix links 86. When D-Cache 60b is involved, D-Cache 60b may assert a data cache interrupt signal for the corresponding thread over D-cache interface 78. For direct memory and matrix links, data switch 52 may assert a data switch interrupt signal for the corresponding thread over pipeline interface 72.
In some embodiments, a number of resources of each data switch 52 are programmable by the kernel, and attempts to write to this address space by a user thread cause an Instruction Address Exception. Table 8 shows a set of programmable data switch resources according to some embodiments of the present invention. Each of the registers listed in Table 8 is described in further detail below.







TABLE 8







Data Switch Address Map










Address
Description







0×c800_0000
Data Switch Link Register



0×c800_0004
Data Switch Time-Out Register



0×c800_0008
Data Switch Status Register



0×c800_000c
Data Switch Message Read 




Register (read only)



0×c800_0040-0×c800_007f
Data Switch Message Write Register 




(write only)-for I/O messages



0×c810_0000-0×c81f_ fffc
Data Switch Message Write Register 




(write only)-for Matrix




Messages










The data switch link register may be used to enable/disable matrix links. Table 9 shows a number of fields of the data switch link register according to some embodiments of the present invention. The fields include a message-independent link enable field LinkEn specifying which matrix links are enabled for all messages, a broadcast link-enable field BcstEn specifying which links are enabled for sending broadcast messages, and a processor-to-processor (P-to-P) link enable field MsgEn specifying which links are enabled for sending processor-to-processor messages. Each field includes 8 bits, with the value of each bit specifying a link-enable status (enabled or disabled) for the corresponding matrix link and/or message type.







TABLE 9





Data Switch Link Register




















In some embodiments, the kernel of the boot or master processor can disable matrix links on an individual basis using the message-independent LinkEn (link enable) bits in the data switch link register (see Table 9). This feature may be useful when a neighboring data switch 52 is defective, or when the boot/master processor kernel wants to partition the processor matrix in several processor domains. In addition, the boot/master processor kernel can disable processor-to-processor and broadcast message routing through some of the enabled matrix links using the MsgEn and BcstEn bits in the same register. When a matrix link has the LinkEn bit set and the MsgEn bit cleared, only processor-to-processor control messages that have the neighbor as a destination will be sent through the link. When a matrix link has the LinkEn bit set and the BcstEn bit cleared, no broadcast messages will be sent through the link. These features may be useful when a neighbor has too few enabled matrix links to be useful in processor matrix control message routing, when the matrix link is connected to a coprocessor that does not support the full matrix processor link protocol, or the matrix link is connected to an I/O block. After a hard- or soft reset, the data switch link register may be set to 0xffffff.
In some embodiments, a number of additional registers may be used to control the operation of each data switch 52. Table 10 through Table 15 show a number of such exemplary data switch registers, including time-out, status, message read, and message write (for processor-to-processor and I/O messages) registers.







TABLE 10





Data Switch Time-Out Register



























TABLE 11





Data Switch Status Register




















In some embodiments, in the Status register, only the WrBusy, RdBusy, and RdDrop bits are writable, and all other fields are read-only. In some embodiments, after a hard or soft reset, the Time-Out register is set to 0x00ff, and the WrBusy, RdBusy, and RdDrop bits in the Status register are cleared.







TABLE 12





Data Switch Message Read Register



























TABLE 13





Data Switch Message Write Register




















In some embodiments, each data switch 52 includes two Message registers, a read-only Message Read register and a write-only Message Write register. Table 14 shows an exemplary address used to write a matrix (P-to-P or broadcast) message, and Table 15 shows an address used to write an I/O message to the Message Write register.







TABLE 14





Data Switch Message Write Register Address for Matrix Messages



























TABLE 15





Data Switch Message Write Register Address for I/O Messages




















In some embodiments, co-processors include fully-functioning data switches and are used for routing matrix messages. In some embodiments, co-processors include data switches with limited functionality, used for sending/receiving I/O messages to/from one or more immediately neighboring matrix processors 50 but not for routing matrix messages through the co-processor.
Matrix Control Message Streaming: Sending, Receiving
In some embodiments, matrix processors 50 are capable of receiving and sending a set of matrix control messages as described below. The matrix control interfaces of each matrix processor may be used only by the matrix processor kernel to exchange control messages with other matrix processor kernels. The matrix control messages may be broadcast or processor-to-processor messages. In some embodiments, matrix link control messages are sent multiplexed on a 17-bit bus (one bit flag and 16 bits of data) in two, three, or four consecutive cycles. Each data switch 52 is responsible for routing all control messages without any software (pipeline) involvement. Depending on how they are processed at the destination, the messages may be categorized as hardware and software messages. Hardware messages are processed by the data switch hardware. Software messages are saved in an internal data switch register and an OVP Matrix Interrupt is set so the messages can be serviced by the kernel. Table 16 shows exemplary fields that are sent on the matrix link (OVP Link) control interface and Tables 17-20 depict the structures of four exemplary categories of messages.







TABLE 16





Matrix Link Control Interface Fields



























TABLE 17





P-to-P Software Message



























TABLE 18





Broadcast Software Message



























TABLE 19





P-to-P Hardware Message



























TABLE 20





Broadcast Hardware Message




















In some embodiments, a bit (e.g. bit 16) of the matrix link control interface is used to code the message categories, broadcast/P-to-P and hardware/software. If there are two, three, or four tokens that carry this bit, there is some redundancy in this bit that can be used to detect some of the tokens in the messages. For example, the last token in all messages may have bit 16 cleared. By observing bit 16 in two consecutive cycles, a data switch and/or processing pipeline may conclude the following: a 1 to 0 transition indicates the last two tokens of a message; two consecutive 0s indicate the last token of a message and the first token of a broadcast message; two consecutive is indicate the source address and the first half of a software message; a 0 to 1 transition indicate the source address in the second token.
In some embodiments, the kernel of the boot or master matrix processor 50 controls the matrix links of all matrix processors 50 using the LinkEn, MsgEn, and BcstEn bits in the data switch link register (see Table 9).
In some embodiments, for internal matrix links (links connected to another matrix processor or a co-processor, all stores to the Message Write register using the address described in Table 15 may be considered a nop. When a neighboring data switch 52 is defective, or when the boot/master processor kernel wants to partition the processor matrix in several processor domains, the kernel may set the corresponding LinkEn to 0. In this case, no matrix control messages are sent through the corresponding matrix link.
In some embodiments, if a neighboring matrix processor has too few enabled matrix links to be useful in matrix control message routing, or when the neighbor is a coprocessor that does not support the full matrix link protocol, the boot/master processor kernel may set the corresponding LinkEn to 1 and MsgEn to 0; in this case, only matrix control messages that have the neighbor as a destination will be sent through it. When the neighbor is a fully functional Matrix Processor, the kernel may set the corresponding LinkEn and MsgEn to 1.
In some embodiments, when a matrix link goes outside matrix 24 (when the link is connected to an I/O block such as blocks 26a-b in FIG. 1), all stores to the Message Write register using the address described in Table 14Table may be considered a nop. When the I/O block is not present or defective, the kernel may set the corresponding LinkEn to 0. In this case, no control messages will be sent through the designated matrix link. Otherwise, the kernel may set the corresponding LinkEn to 1.
In some embodiments, only a matrix processor 50 directly connected to an I/O block (26a-b) can send control messages to the I/O block, and all such messages are point-to-point messages. Such messages may be either hardware or software messages. An I/O block may send control messages to any processor within matrix 24. To send messages to internal matrix processors 50, an I/O block may use the source address of the matrix processor 50 whose matrix link the message is using.
In some embodiments, each matrix processor 50 is capable of receiving matrix control messages as described below. When any of the control read clear-to-send lines of matrix interface 86 are asserted, the beginning of a matrix link control message is signaled. The messages may be prioritized using a round-robin scheme. If bit 16 of the first token is 0, this is a P-to-P message and bits [15:0] contain the coordinates of the destination matrix processor 50 and two or three more tokens will follow with the coordinates of the source matrix processor 50 and the message itself. If bit 16 of the first token is 1, this is a broadcast message and bits [15:0] contain the coordinates of the source matrix processor 50 and one or two more tokens will follow with the message itself. For P-to-P messages, each data switch 52 may use DstH and DstV to determine the destination of the message. If (DstH==H && DstV==v), the destination of the message is the current matrix processor 50. In case of a pre-defined hardware message, data switch 52 may execute the message, even if the RdBusy flag is set in the Status register. In case of a software message, data switch 52 may buffer the next two or three tokens (SrcH, SrcV, and Message), and issue an OVP Matrix interrupt. If (DstH !=H∥DstV !=V), data switch 52 may forward the message to one of the neighboring matrix processors 50. For broadcast messages, data switch 52 may buffer and interpret the message, and forward the message to the neighboring matrix processors.
In some embodiments, when a software message reaches one of its destinations, the destination issues an OVP Matrix interrupt on interrupt interface 74. The message is then available to be read from the data switch control space. The Status register (see Table 11Table) identifies the source matrix processor and whether the message is a broadcast or P-to-P message, while the Message Read register (see Table 12Table) provides the message. Hardware messages are not written to the Message Read register. The kernel may clear the OVP Matrix interrupt field in an Interrupt Status register and the RdBusy flag in the Data Switch Status register before the next message can be accepted. The RdBusy flag may be cleared by writing a 1 to it, while writing a 0 has no effect.
In some embodiments, the Time-Out register (see Table 10) specifies the maximum number of cycles an incoming message that has the current matrix processor as a destination can be stalled by its data switch 52 in case the Message Read register is busy (a previous message was received, the OVP Matrix interrupt was issued, and the interrupt was not cleared by the kernel). If the Message Read register is still busy after the time-out elapses, the incoming message may be dropped and the RdDrop flag may be set in the Status register. This time-out feature may be useful for avoiding blockages of matrix 24. The RdDrop flag may be cleared by writing a 1 to it, while writing a 0 has no effect.
In some embodiments, each matrix processor 50 is capable of sending matrix control messages as described below. Each matrix processor 50 executes a store to the Message Write register, which automatically sets the WrBusy flag in the Status register (see Table 11). Data switch 52 interprets the stored message, and sends the message starting with the first cycle in which no matrix control messages are received. When the last token leaves data switch 52, the WrBusy flag is cleared and the om_int interrupt is set. If another store to the Message Write register is executed before the previous message was sent, data switch 52 may stall pipeline 54 until data switch 52 can accept the new message. The kernel may either wait for the om_int interrupt, or check the WrBusy bit in the Status Register before writing again to the Message Write register. To avoid deadlocks, a Real-Time interrupt may be used to set a time-out. The kernel may cancel the message in the Message Write register and clear the WrBusy flag in the Status register by writing a 1 to it, while writing a 0 has no effect. In some embodiments, the write message cancel feature is used only during a reset sequence described below, in which matrix 24 generates a matrix map. The write message cancel feature is not used after the reset sequence, and the messages in the processor matrix clear-up after the programmed time-outs in the Data Switch Time-Out registers.
If a sender matrix processor 50 receives a reply from a destination in response to a sent message, a Real-Time interrupt may be used to set a time-out at the sender matrix processor 50, in order to avoid deadlocks in case the message does not reach its destination because of too many faulty data switches 52.
In some embodiments, some of the matrix control messages are hardware matrix control messages, handled in hardware by the receiving matrix processor 50. Table 21 shows a set of predefined hardware messages according to some embodiments of the present invention. Message 0 is Null message, i.e. no action is taken by the destination matrix processor 50. Message 1 causes a soft-reset in the destination matrix processor 50. A soft reset may include setting all internal data switch registers to their default values and setting a software reset interrupt signal on interrupt interface 74 to HIGH for one cycle, which may cause pipeline 54 to set all Special Purpose Registers to their default values and execute an unconditional jump to address 0. Message 2 causes a non-maskable interrupt. A non-maskable interrupt may include setting a non-maskable interrupt signal on interrupt interface 74 of the destination matrix processor 50 to HIGH until the signal is cleared by the kernel in the Interrupt Status register. Message 3 is used to request a reply from the destination with the ID register; the destination data switch 52 responds with a software message with the content of the ID register. Messages 4 through 7 are used by other kernels to write to the Data Switch Control registers; which may be useful if a matrix processor 50 as a whole is not fully functional (e.g. includes a non-functional pipeline 54), but includes a functional data switch 52 which is used to route control messages. Message 8 is used to control the destination matrix processor power supply voltage and message 9 to control the clocks. All other hardware messages in Table 21 may be reserved for future upgrades.







TABLE 21





Predefined Hardware Messages




















Default Matrix Message Routing

In some embodiments, matrix control messages are routed by data switches 52 as described below. Matrix control messages may be routed automatically by each data switch 52 according to the source position (SrcH, SrcV), current position (CurrH, CurrV) and the destination position (DstH, DstV), using the matrix links that are enabled in the data switch link register (see Table 9). P-to-P messages are interpreted only by the matrix processor 50 with the H and V coordinates that match DstH and DstV, and broadcast messages are interpreted by all matrix processors 50 except the source matrix processor.
FIG. 4-A shows an exemplary P-to-P message path between a source matrix processor having coordinates [4,6] and a destination matrix processor with coordinates [1,e], according to some embodiments of the present invention. FIG. 4-B shows exemplary pseudo-code describing the message routing along the path of FIG. 4-A. As shown in FIG. 4-B, if the destination is reached, an interrupt is issued. To choose a matrix link for routing, P-to-P routing logic 94 (FIG. 3) compares the differences in vertical and horizontal position between the current matrix processor and destination matrix processor. If one difference is more than double the other in absolute size, routing logic 94 employs the horizontal or vertical matrix link corresponding to the larger position difference; a diagonal link is chosen otherwise. For example, for the choice of routing link by the matrix processor [4,6] for a message with destination [1,e], the routing logic 94 of the [4,6] matrix processor determines the difference in horizontal position DeltaH=e−6=8 (in decimal notation, 14−6=8), the difference in vertical position DeltaV=1−4=−3, and compares the two differences. Routing logic 94 may determine the link quadrant to use according to the signs of the two differences. If DeltaH>0 and DeltaV<=0, the first (upper right) link quadrant is chosen. Then, if the absolute value of DeltaH is larger than the absolute value of DeltaV, the East link is chosen, i.e. the link to matrix processor [4,7].
FIG. 5-A shows an exemplary set of paths of a broadcast message sent by a source matrix processor having coordinates [4,6], according to some embodiments of the present invention. The source matrix processor may be a master matrix processor or a selected matrix processor otherwise enabled to send broadcast messages. FIG. 5-B shows exemplary pseudo-code describing the message routing along the paths of FIG. 5-A. The source processor uses all available links to send the message, as shown for the matrix processor [4,6] in FIG. 5-A. Other processors determine which links to use according to comparisons of the differences in horizontal and vertical positions between the current matrix processor and source matrix processor. For example, diagonal links are used if the horizontal and vertical differences are equal (i.e. if the current processor and the source processor are along a common diagonal line), horizontal links of the appropriate sign are used if the absolute horizontal difference is larger than or equal to the absolute vertical difference, and vertical links of the appropriate sign are used if the absolute vertical difference is larger than or equal to the absolute horizontal difference.
The exemplary routing methods described with references to FIGS. 4-A-B and 5-A-B may lead to suboptimal results if some of the matrix links fail. In some embodiments, each data switch 52 implements a fault-tolerant routing algorithm that takes advantage of the redundancy of matrix links to route message around failed matrix links.
In some embodiments, matrix 24 includes a number of fault-tolerance components for improving the tolerance of matrix 24 to multiple matrix processor failures. The fault-tolerance of matrix 24 is facilitated by the redundant link structure shown in FIG. 1, which allows messages to be routed around matrix processors with a failed data switch or that are otherwise incapable of inter-processor communication. Matrix 24 also performs a self-test at power-on to identify which matrix processors 50 and matrix links are operational, so that applications make use only of functional matrix processors 50. At the end of the test, each matrix processor 50 knows if any of its neighboring matrix processors 50 or matrix links are defective. If any matrix processor 50 is not operational, but its data switch 52 is, all control messages may be routed correctly by the operational data switch 52. If the data switch 52 itself is not operational, the neighboring data switches 52 may re-route all control messages around the defective data switch. Such fault tolerance features allow using a matrix 24 with multiple failures for most applications, and thus allow improving the yield of a semiconductor manufacturing process used to make matrix 24. Such fault tolerance features also provide a self-healing capability after the chips have been deployed in the field.
In some embodiments, a map of functional and failed matrix links 86 and matrix processors 50 is generated by performing a self-test at power on as described below. Any system application then makes use only of functional matrix processors 50. At the end of the test, each matrix processor 50 will know if any of its immediate neighbor matrix processors 50 or matrix links 86 are defective. If any matrix processor 50 is not operational, but its data switch 52 is, all control messages can be routed correctly by the data switch 52. If the data switch 52 itself is not operational, the neighboring data switches 52 will re-route all control messages.
In some embodiments, a set of matrix link-enable status indicators resulting from the system self-test are used in fault-tolerant P-to-P and broadcast routing algorithm by each matrix processor 50 as described below. FIG. 6-A shows an exemplary P-to-P message path between a source matrix processor having coordinates [4,6] and a destination matrix processor with coordinates [1,e] in the presence of some failed matrix processors 50 and/or matrix links in between, according to some embodiments of the present invention. FIG. 6-B shows exemplary pseudo-code describing the fault-tolerant message routing along the path of FIG. 6-A. In FIG. 6-B, use_LinkABCD means that data switch 52 uses Link A if enabled, and if not, Link B, Link C, or Link D in this order. The link numbering is the one shown in FIG. 2-B. As shown, the pseudo-code of FIG. 6-B first selects an ordered list of matrix links (e.g. 0172, 1027, 1203, 2314, 3241, 3425, etc. in FIG. 6-B) according to a set of predetermined inequality relationships between the horizontal and vertical matrix position differences (Delta H, Delta V) between the current and destination matrix processors. From the selected ordered list, the first (highest-order) enabled link is selected as the matrix link for routing the message. The matrix link selected to route the message is the operational link with the direction closest to the message destination. The message is routed only if it gets closer to the destination. The message may be dropped otherwise, in order to avoid infinite loops. As described above, each sender may use a real-time interrupt to set a time-out if the sender is waiting for a reply.
Proxy P-to-P Matrix Message Routing
FIG. 7 shows an exemplary P-to-P message path originating at a source matrix processor having coordinates [4,6] with a destination of [1,e] in the presence of a large number of data switch failures, routed according to the exemplary pseudo-code of FIG. 6-B. As shown, the routing method does not deliver the message to its destination in the presence of an excessive number of data switch failures and/or particular failure configurations.
In some embodiments, the boot or master processor may designate one or more proxy matrix processors to be used for forcing the routing of messages from given source matrix processors to given destination matrix processors through the proxies. A data structure identifying proxies to be used may be held in external memory or in the local memory of the master matrix processor.
FIG. 8 shows an exemplary P-to-P message path originating at a source [4,6] with a destination of [1,e], whose routing is forced to occur through a proxy [6,8], but otherwise is performed according to the pseudo-code of FIG. 6-B. The message path includes two stages, each of which occurs according to a default routing algorithm such as the one shown in FIG. 6-B. In the first stage, the message travels from the source matrix processor ([4,6] in FIG. 8) to the proxy ([6,8] in FIG. 8). In some embodiments, each software message to be routed through a proxy may be preceded or followed by a software message including an identifier of the final (post-proxy) message destination. In the second stage, after the message arrives at the proxy, the proxy's instruction-processing pipeline 54 identifies the message as one to be relayed to a post-proxy destination, identifies the final (post-proxy) destination and sends the message to the post-proxy destination. In some embodiments, more than one intermediate proxy may be used to route a message between some source-receiver pairs.
FIG. 9-A shows an exemplary set of paths of a broadcast message sent by a source matrix processor having coordinates [4,6] in the presence of a number of data switch failures, routed according to the exemplary pseudo-code of FIG. 5-B, according to some embodiments of the present invention. As shown, the routing method does not deliver the message to all its destinations, and in particular to destination in the shadow of defective data switches. Destination not reached by the sent message as shown in dashed lines in FIG. 9-A. In some embodiments, to ensure broadcast messages are received at all destinations, some messages (e.g. hardware messages) may be sent redundantly on all links, while some messages (e.g. software messages) may be sent broadcast within partitioned domains, as described below.
In some embodiments, broadcast hardware messages (BHM) are used for critical events. To ensure that such messages reach all matrix processors 50 for which a path exists, each data switch 52 may forward any received BHM on all matrix links except the matrix link on which the BHM was received. Because of the greedy nature of such a fault-tolerant algorithm, some data switches 52 will receive the same BHM several times. Each data switch 52 may remember a predetermined number of the latest BHMs in their entirety (Source and Message) and drop all consecutive identical BHMs. A BHM source does not send two consecutive identical BHMs; if a BHM to be sent is identical to an immediately-previous BHM sent by a source, the source may send a NULL BHM first to prevent the sending of two consecutive identical BHMs. Such a broadcasting algorithm guarantees that all data switches 52 are reached as long as there is a route from source to destination. Because an island of functional data switches 52 cannot be reached, the sender may use a real-time interrupt if the sender waits for a reply.
In some embodiments, broadcast software messages (BSM) are used more often than BHM; for such messages it may be particularly desirable to use matrix links more efficiently and to avoid the use of NULL messages. In some embodiments, in the absence of defective data switches 52, BSMs may be routed as described above with reference to FIGS. 5-A-B.
In some embodiments, if matrix 24 includes some defective data switches 52 or otherwise inoperative matrix links, a boot matrix processor 50 may determine during a system initialization process whether to partition matrix 24 in multiple broadcast domains, or to leave matrix 24 as a single broadcast domain and instead allow the broadcast message sender (e.g. the master matrix processor) to reach any shadowed matrix processors 50 by sending individual P-to-P messages to all matrix processors 50 in the shadow of defective data switches.
FIG. 9-B shows an exemplary partitioning of matrix 24 into three broadcast domains; inter-domain boundaries are illustrated by dashed lines in FIG. 9-B. To partition matrix 24, a boot or master matrix processor 50 may send P-to-P messages to each matrix processor 50 along the domain boundaries to set the BcstEn field in the data switch link register to a value disabling broadcast message transfer through the boundaries. The prospective sender matrix processor 50 (matrix processor (4,6) in FIG. 9-B) selects a domain-specific broadcast proxy (or broadcast master) for each partitioned domain other than its own (e.g. matrix processors (2,3) and (4,b) in FIG. 9-B), and sends to P-to-P messages to each selected proxy for broadcast within each corresponding domain. The original sender and each selected proxy then broadcasts the BSM within its broadcast domain according to the routing algorithm described with reference to FIGS. 5-A-B. Because an island of functional data switches 52 cannot be reached, each broadcast sender may use a real-time interrupt if the sender waits for a reply.
Boot/Reset/Initialization; Matrix Functionality Map, P-to-P and Broadcast Proxy Assignment
In some embodiments, matrix 24 performs a number of initialization and testing steps upon hard and/or soft resets, as described below. Some or all of the testing/initialization steps described below may also be performed at periodic time intervals, for example once a day or after a predetermined number of hours has elapsed from the latest test. Information resulting from the testing/initialization is stored and used at two levels, locally and globally. Local information may be used in hardware-directed matrix message routing, and global information in software-directed decisions on assignments of matrix processors to application function, P-to-P proxy assignment, and broadcast domain partitioning and broadcast proxy assignment. Locally, each data switch 52 stores information about its matrix link functionality status indicators (message-independent enabled, broadcast-enabled, and/or P-to-P enabled) in its link status hardware, which is used for routing matrix messages. Globally, a matrix functionality map is stored in the local memory of the master matrix processor 50 and/or in external memory. At least parts of the matrix functionality map may be used to set local matrix link functionality status indicators. In some embodiments, a boot matrix processor 50 acts as a matrix mapping and proxy assignment unit, directing the generation of the matrix functionality map as described below; matrix 24 may be then thought to be formed by all matrix processors 50 outside of the boot matrix processor. In some embodiments, dedicated mapping and/or proxy assignment units/processors linked to matrix 24 may be provided separately from any matrix processor 50.
After a hard-reset, all matrix processors 50 are in a boot state. In the boot state, all user threads are in an idle state and the kernel of each matrix processor 50 is active. The matrix processors 50 in the first column (e.g. left-most column) start fetching instructions from the boot/reset address segment (see Table 1). The I-cache 60a (FIG. 2-A) of each matrix processor in the first column forwards the instruction fetching request to data switch 52, which assigns the requests to matrix data link 4 (West). The incoming data received in response to a each request is stored by I-cache 60a and executed by pipeline 54. The matrix processors 50 not in the first column stay in the boot state until receiving a Software Reset message.
In some embodiments, one of the matrix processors 50 in the first column is selected by a boot finite state machine (FSM) as a boot control processor. The boot FSM may form part of boot controller 38 (FIG. 2-A). For example, the top left (0,0) processor may be selected if functional. If the top left processor does not respond on matrix link 4 (West) with an interrupt after a predetermined number of cycles, the next processor (1,0) is selected and tested, and so on.
In some embodiments, the selected boot matrix processor 50 performs a boot sequence comprising a number of steps shown in FIG. 10-A. In a step 180, the selected boot matrix processor 50 performs a minimal chip initialization and self-test. In a step 182, the boot matrix processor 50 performs a store to a predetermined address corresponding to matrix link 4 (West) with destination Read Interrupt (e.g. address 0xd810—0004) to confirm that the selected boot matrix processor 50 is functional. In a step 186, the current application program and data are copied from NVM 40 (FIG. 1) to RAM 44a-b. In a step 188, the boot matrix processor 50 broadcasts a Control Message 0 (Software Reset) to reset all other matrix processors 50 in matrix 24. In a step 190, the boot code performs a jump to the Soft Reset handler (address 0), which is in the cacheable address space. The boot matrix processor 50 then transitions from the boot state to the normal execution state (step 192).
In some embodiments, after a hard-reset and before any application starts, each matrix processor 50 programs the Data Switch Link and Time-Out registers (see Tables 8-10), and the boot matrix processor 50 sends software messages to all other matrix processors to ensure a consistent configuration of all matrix processors 50 in matrix 24.
In some embodiments, after each software reset, the kernel of each matrix processor 50 may go through the steps shown in FIG. 10-B to identify which matrix links are functional and thus generate a matrix link functionality map. In a step 200, a P-to-P ID register request message is sent to each immediate neighbor over the corresponding matrix link. A time out is then set (step 202). The time-out may be set using a real-time interrupt or polling, and is sufficient to allow the immediate neighbors time to respond. For example, the time-out period may be chosen to be on the order of a few hundred clock cycles. Each kernel then waits to receive matrix (OVP) interrupts from the immediate neighbors (step 204), and the contents of the data switch link register (see Table 9) are set according to the received responses (step 206). If an immediate neighbor does not respond, the corresponding link is disabled using the LinkEn field of the data switch link register. If an immediate neighbor responds, the corresponding link is enabled using the same field.
In some embodiments, after the first broadcast Software Reset sent by the boot matrix processor 50, the kernel of the boot matrix processor 50 performs the steps of FIG. 10-B, and subsequently the sequence of steps shown in FIG. 10-C. In a step 220, a time out is set. The time-out may be set using a real-time interrupt or polling. The time-out period may be chosen to be on the order of a few thousand clock cycles. In a step 224, a broadcast ID register request message is sent to all matrix processors 50. A time-out sufficient to receive ID request responses (e.g. on the order of a few thousand clock cycles) is set using a real-time interrupt or polling (step 226). In some embodiments, P-to-P broadcast ID register request messages may be sent to all matrix processors 50 instead of a broadcast ID register request. The boot processor kernel waits to receive interrupts from matrix processors 50 (step 228), and subsequently builds a matrix map of functioning data switches and/or matrix links according to the received responses (step 230). The matrix map may include a data structure identifying the matrix positions of each functional and non-functional data switch 52. In a step 234, the boot processor kernel determines how each functioning data switch 52 can be reached, and generates a map of functional matrix links. In a step 236, the boot matrix processor kernel programs the special-purpose registers (described above) of all functioning data switches 52 using hardware control messages. The message independent link-enable field values (see Table 9) of the link status register are set to an enabled or disabled status according to the matrix link functionality map. In a step 238, the kernel may program at least some pipeline internal special purpose registers. After the sequence of steps of FIG. 10-C has been performed, the hardware of the boot matrix processor 50 and all directly reachable data switches 52 are initialized, and the topology of matrix 24 has been determined.
In some embodiments, the kernel of the boot matrix processor 50 subsequently performs a sequence of steps, shown in FIG. 10-D, to determine which matrix processors 50 include functional processor pipelines 54 and other processor components shown in FIG. 2-A, and not merely functional data switches 52, and to select P-to-P and/or broadcast proxies if needed. In a step 240, the kernel sends software control messages to all matrix processors 50 previously determined to have functional data switches 52. The software control messages request the recipient matrix processors 50 to perform a hardware self-test and report test result indicators/status to the boot matrix processor kernel. The self-test includes checking whether each matrix processor 50 can access (read/write to/from) external memory and local memory. In a step 242, the kernel sets a real-time interrupt or polling time-out sufficient to allow the self-tests and reporting to be performed. The kernel waits to receive interrupts from matrix processors 50 (step 244), and subsequently builds a matrix map of functioning matrix processors 50 according to the received responses (step 246). The matrix map may include a data structure identifying the matrix positions of each fully-functional and non-functional matrix processor 50.
In a step 248, one or more proxies are selected if needed to ensure adequate communication between matrix processors 50 in the presence of data switch failures. A proxy selection process may be started selectively only if it is possible that there are functioning data switches 52 whose ID messages could not reach the boot matrix processor 50. The proxy selection process may include a P-to-P proxy selection step and a broadcast proxy selection step.
In some embodiments, to identify a P-to-P proxy, the boot matrix processor kernel first determines whether a default (non-proxy) P-to-P routing algorithm (e.g. a routing algorithm such as the ones illustrated in FIGS. 4-A-B, 6-A-B and 7) will deliver messages from all sender matrix processors to all receiver matrix processors having functioning data switches. Such a determination may simulate message routing selectively in matrix regions having concentrated data switch/matrix link failures, for example a fraction of failed matrix links that exceeds a predetermined threshold in any matrix region (e.g. square) of predetermined size. When the default (non-proxy) routing algorithm would not succeed in delivering a message from a given sender to a given receiver, one or more proxy candidates may be evaluated to determine whether designating the candidate as a proxy would ensure delivery of the message from the sender to the receiver. The message would travel in each of its two stages (sender-proxy and proxy-receiver) according to the default routing algorithm, and each matrix processor along the message path would perform its routing decision according to the default routing algorithm. The proxy candidates may be chosen to be proximal to the edges of regions with relatively high densities of failed matrix links/data switches. If designating a proxy candidate as a proxy would cause P-to-P messages to be delivered from the sender to the receiver, the proxy candidate is designated as a proxy for the given sender/receiver pair. The identity of the selected proxy may be remembered and used as a proxy candidate for subsequent evaluations of different sender/receiver pairs. If a single proxy candidate is not found, the total message path may be divided into three segments corresponding to two sequential proxies between the source and destination. Higher numbers of proxies may be used if two proxies are not sufficient. Each proxy may be treated as a new destination, and a proxy identification process may be performed as described above for segments of the original source-destination path.
In some embodiments, to identify a broadcast proxy and corresponding broadcast domain boundaries, the boot matrix processor first determines whether a default (single-domain) broadcast routing algorithm (e.g. a routing algorithm such as the one illustrated in FIGS. 5-A-B and 9-A) will deliver a broadcast message from a broadcast sender (e.g. a prospective master matrix processor 50) to all other matrix processors 50 having functioning data switches. When the default broadcast routing algorithm would not succeed in delivering the broadcast message to at least some receivers, the boot processor kernel may determine whether to partition matrix 24 in multiple broadcast domains, or to leave matrix 24 as a single broadcast domain and instead allow the broadcast message sender (e.g. the master matrix processor) to reach any shadowed matrix processors 50 by sending individual P-to-P messages to all matrix processors 50 in the shadow of defective data switches. The boot processor kernel may first determine how many matrix processors would not be reached by a single-domain (default) broadcast message routing algorithm, and may determine one or more broadcast domain partition boundaries and broadcast proxy positions suitable for reaching the shadowed matrix processors 50. Tentative domain partition boundaries may be chosen to abut non-functioning data switches, while tentative broadcast proxy locations may be chosen to be generally centered within their corresponding domains. P-to-P message delivery may be chosen for example when the number of shadowed matrix processors meets a predetermined threshold condition (e.g. is less than 4 or 8), or if a domain partitioning able to reach the shadowed processors is not readily found using a number of broadcast domains meeting a predetermined threshold condition (e.g. less than 4 or 8 domains). Broadcast domain partitioning may be chosen for example when the number of shadowed matrix processors meets a predetermined threshold condition (e.g. is higher than or equal to 4 or 8), and a domain partitioning able to reach the shadowed processors is readily found using a number of broadcast domains meeting a predetermined threshold condition (e.g. less than or equal to 4 or 8 domains). Matrix 24 may be partitioned in multiple broadcast domains using the BcstEn field in the data switch link register (Table 9) of each data switch 52 along the domain boundaries.
If any P-to-P and/or broadcast proxies are selected, the sequences of steps shown in FIGS. 10-C and 10-D are repeated to identify which data switches 52 and matrix processors 50 are functional and reachable through the selected proxies (step 250). When the matrix mapping process has converged, matrix processors 50 are sent control messages with internal special-purpose register values for each matrix processor 50 (step 254). Following the above steps, the topology of matrix 24 has been determined and all hardware has been initialized. In a step 256, the boot matrix processor 50 (e.g. the top left processor) hands over control to a master matrix processor 50 (e.g. a centrally-located processor such as the [4,6] processor). The control handover may include transferring the data structure (or a pointer to the data structure) representing the data switch and/or matrix processor functionality map to the master matrix processor 50. In a step 260, the kernel of the master matrix processor 50 performs a software specific initialization and launches the application of interest.
In some embodiments, matrix 24 may include a number of power-saving features. Matrix 24 may use two levels of clock gating. A high level may be controlled by the link control messages 8 and 9 listed in Table 21), and a low level may be controlled by the hardware for each individual register; a register clock is enabled only when the register content needs to change. In addition, each matrix column may use a different clock and Vdd voltage. If different clocks and/or Vdd voltages are used in different columns, the matrix links between matrix columns with different clocks may include synchronization registers in order to avoid meta-stability. Moreover, in some embodiments some of the matrix columns (e.g. a number of columns on the right side of matrix 24 in FIG. 1) can be selectively shut down completely. Similarly, some individual matrix processors 50 (e.g. a number of bottom matrix processors 50 in particular columns) can be selectively shut down completely. When a number of matrix processors 50 at the bottom of a column are shut down, the LastV field in the software configuration register (see Table 4) of the remaining active matrix processors 50 in the column may be set to the last active matrix processor 50 in the column.
In some embodiments, some of the matrix processors 50 include dedicated processing hardware rather than programmable pipelines 54. Such units may be used to implement functions for which high performance is particularly useful at low power levels. Such processing logic may implement mostly data path functions, and the hardware required may be relatively small and easy to design and verify. Such matrix processors 50 may include a data switch 52 and memory arbiter 68 (FIG. 2-A) as described above, and may behave on their external interfaces in the same way as programmable matrix nodes. For example, all link control messages may be routed identically in such matrix nodes as in programmable matrix nodes.
Exemplary systems and methods as described above allow addressing a number of limitations of conventional computer systems. Such limitations are of particular relevance for mobile devices, which incorporate increasingly complex functionality but are subject to stringent power constraints. Such limitations can be addressed by changes to both conventional hardware and software approaches. Exemplary systems and methods as described above allow employing a new hardware architecture that uses aspects of the serial algorithmic thinking that has been adopted by generations of software engineers and is thus difficult to change rapidly.
The evolution of semiconductor technology through scaling of feature sizes and transistor counts brings both benefits and challenges. Among the benefits is higher logic density. As logic gates are relatively inexpensive in terms of silicon area, complex functionality that was unthinkable until a few years ago is becoming commercially viable. At the same time, although the price per chip may go down, the tape-out cost has often gone up significantly, as have the development costs of complex SOCs (System-On-Chip). Other challenges include leakage current and power consumption in general, the ineffectiveness of attempts to increase performance by increasing clock frequency, and the common inability of memory bandwidth to keep up with increased logic performance. These limitations have led to the current developments in the areas of parallel processing, multicore, and mixed cores.
Multi-core systems face a different set of challenges, which are often related to inter-processor communications. Exemplary systems and methods as described above allow improved inter-processor communications, particularly in the presence of errors that disable at least some matrix processors and/or data switches. The exemplary fault tolerance aspects described above allow improvements in manufacturing yields as well as improved tolerance to failures in the field.
The above embodiments may be altered in many ways without departing from the scope of the invention. For example, a matrix may be a 3-D matrix including multiple stacked 2-D matrix layers, with matrix processors interconnected in-plane and along the stacking direction. Accordingly, the scope of the invention should be determined by the following claims and their legal equivalents.

## Claims

1. An integrated circuit comprising a microprocessor matrix of mesh-interconnected matrix processors, wherein each matrix processor comprises a data switch comprising:
at least one data switch link register including a first matrix link-enable register field specifying a first link enable status for a corresponding link—of a plurality of inter-processor matrix links of said each matrix processor, and a second matrix link-enable register field specifying a second link-enable status for the corresponding link, wherein the first link enable status is an enabled or disabled status for the corresponding link for an entire inter-processor message category selected from a group consisting of broadcast messages and processor-to-processor messages, and wherein the first matrix link-enable register field includes at least one bit specifying an enabled or disabled status for the entire inter-processor message category for each for the plurality of inter-processor matrix links; and
matrix routing logic connected to the at least one data switch link register and configured to route an inter-processor message through the matrix according to the first matrix link-enable register field.

2. The integrated circuit of claim 1, wherein
the second link-enable status is a message-independent link enable status enabling or disabling the corresponding link for all messages.

3. The integrated circuit of claim 2, wherein:
the first matrix link-enable register field specifies a processor-to-processor link-enable status for the corresponding link, the processor-to-processor link-enable status enabling or disabling the corresponding link for processor-to-processor messages; and
the at least one data switch link register comprises a third matrix link-enable register field specifying a broadcast link-enable status for the corresponding link, the broadcast link-enable status enabling or disabling the corresponding link for broadcast messages.

4. The integrated circuit of claim 1, wherein:
the first matrix link-enable register field is a processor-to-processor link-enable field,
the first link-enable status is a processor-to-processor link-enable status enabling or disabling the corresponding link for processor-to-processor messages, and
the inter-processor message is a processor-to-processor message.

5. The integrated circuit of claim 1, wherein:
the first matrix link-enable register field is a broadcast link-enable field,
the first link-enable status is a broadcast link-enable status enabling or disabling the corresponding link for broadcast messages, and
the inter-processor message is a broadcast message.

6. The integrated circuit of claim 1, wherein:
the at least one data switch link register further comprises a second matrix link-enable register field said each matrix processor, the second matrix link-enable register field specifying a second link-enable status for the corresponding link, and
the matrix routing logic is configured to route the inter-processor message through the matrix according to the second matrix link-enable register field.

7. The integrated circuit of claim 2, wherein said each matrix processor comprises a processing pipeline connected to the data switch and configured to set the second link enable status for the corresponding link according to a determination of whether a neighboring matrix processor directly connected to the corresponding link is functional.

8. A method comprising:
programming a first matrix link-enable register field and a second matrix link-enable register field in a matrix processor of an integrated circuit comprising a microprocessor matrix of mesh-interconnected matrix processors, the matrix processor including a data switch configured to control a routing of inter-processor messages through a plurality of inter-processor matrix links of the matrix processor, the first matrix link-enable register field specifying a first link-enable status for a corresponding link of the plurality of inter-processor matrix links, the second matrix link-enable register field specifying a second link-enable status for the corresponding link, wherein the first link enable status is an enabled or disabled status for the corresponding link for an entire inter-processor message category selected from a group consisting of broadcast messages and processor-to-processor messages, and wherein the first matrix link-enable register field includes at least one bit specifying an enabled or disabled status for the entire inter-processor message category for each for the plurality of inter-processor matrix links; and
employing the data switch to route an inter-processor message through the matrix according to the first matrix link enable register field.

9. The method of claim 8, wherein
the second link-enable status is a message-independent link enable status enabling or disabling the corresponding link for all messages.

10. The method of claim 9, wherein:
the first matrix link-enable register field specifies a processor-to-processor link-enable status for the corresponding link, the processor-to-processor link-enable status enabling or disabling the corresponding link for processor-to-processor messages; and
the method further comprises programming a third matrix link-enable register field specifying a broadcast link-enable status the corresponding link, the broadcast link-enable status enabling or disabling the corresponding link for broadcast messages.

11. The method of claim 8, wherein:
the first matrix link-enable register field is a processor-to-processor link-enable field,
the first link-enable status is a processor-to-processor link-enable status enabling or disabling the corresponding link for processor-to-processor messages, and
the inter-processor message is a processor-to-processor message.

12. The method of claim 8, wherein:
the first matrix link-enable register field is a broadcast link-enable field,
the first link-enable status is a broadcast link-enable status enabling or disabling the corresponding link for broadcast messages, and
the inter-processor message is a broadcast message.

13. The method of claim 8, further comprising:
programming a second matrix link-enable register field in the matrix processor, the second matrix link-enable register field specifying a second link-enable status for the corresponding link, and
employing the data switch to route the inter-processor message through the matrix according to the second matrix link-enable register field.

14. A system comprising:
means for programming a first matrix link-enable register field and a second matrix link-enable register field in a matrix processor of an integrated circuit comprising a microprocessor matrix of mesh-interconnected matrix processors, the matrix processor including a data switch configured to control a routing of inter-processor messages through a plurality of inter-processor matrix links of the matrix processor, the first matrix link-enable register field specifying a first link-enable status for a corresponding link of the plurality of inter-processor matrix links, the second matrix link-enable register field specifying a second link-enable status for the corresponding link, wherein the first link enable status is an enabled or disabled status for the corresponding link for an entire inter-processor message category selected from a group consisting of broadcast messages and processor-to-processor messages, and wherein the first matrix link-enable register field includes at least one bit specifying an enabled or disabled status for the entire inter-processor message category for each for the plurality of inter-processor matrix links; and
means for routing an inter-processor message through the matrix according to the first matrix link enable register field.