System with hybrid thread processor, hybrid thread fabric with configurable computing elements, and hybrid interconnect network

By designing a multi-threaded coarse-grained configurable computing architecture, we solve the limitations of existing technologies in computing speed, energy consumption and heat dissipation, and achieve high-performance and energy-saving computing solutions that are suitable for a variety of computing-intensive applications and have dynamic capabilities. Configuration and self-scheduling capabilities.

CN111602126BActive Publication Date: 2024-10-22MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880070353.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-05-07
Filing Date
2018-10-31
Publication Date
2024-10-22
Estimated Expiration
2038-10-31

AI Technical Summary

Technical Problem

Existing computing systems have significant limitations in computing speed, energy consumption, and heat dissipation, and are difficult to meet the rapidly developing needs of advanced computing, such as artificial intelligence and 5G base stations. In particular, there are deficiencies in dynamic configuration and high-performance computing.

Method used

A multi-threaded coarse-grained configurable computing architecture is designed, which has self-scheduling, dynamic self-configuration and self-reconfiguration capabilities. It uses asynchronous signaling backpressure control, ordered thread execution and loop thread execution, combined with nested loops and re-configuration. Queue to achieve advanced loop execution and parallel processing. The architecture includes interconnect networks, processors, configurable circuit groups, asynchronous packet networks, and synchronous networks, utilizing crossbar switches and configuration memory for data path configuration and instruction selection.

Benefits of technology

Enables high-performance and energy-efficient computing solutions for sensing, communications and analytics applications, such as fast Fourier transforms and finite impulse response filters, that can dynamically adjust to suit different application needs, improving efficiency and efficiency in computationally intensive tasks flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111602126B_ABST
    Figure CN111602126B_ABST
Patent Text Reader

Abstract

Representative apparatus, method, and system embodiments for configurable computing are disclosed. In a representative embodiment, a system includes: a first interconnection network; a processor coupled to the interconnection network; a host interface coupled to the interconnection network; and at least one configurable circuit group coupled to the interconnection network, the configurable circuit group including: a plurality of configurable circuits arranged in an array; a second asynchronous packet network coupled to each of the plurality of configurable circuits in the array; a third synchronous network coupled to each of the plurality of configurable circuits in the array; a memory interface circuit coupled to the asynchronous packet network and the interconnection network; and a scheduling interface circuit coupled to the asynchronous packet network and the interconnection network.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a non-provisional application and claims the benefit of and priority to: (1) U.S. Provisional Patent Application No. 62 / 579,749, filed on October 31, 2017; (2) U.S. Provisional Patent Application No. 62 / 651,128, filed on March 31, 2018; (3) U.S. Provisional Patent Application No. 62 / 651,131, filed on March 31, 2018; (4) U.S. Provisional Patent Application No. 62 / 651,132, filed on March 31, 2018; (5) U.S. Provisional Patent Application No. 62 / 651,134, filed on March 31, 2018; (6) U.S. Provisional Patent Application No. 62 / 651,135, filed on March 31, 2018; (7) U.S. Provisional Patent Application No. 62 / 651,137, filed on March 31, 2018; (8) U.S. Provisional Patent Application No. 62 / 651,140, ​​filed on March 31, 2018; (9) U.S. Provisional Patent Application No. 62 / 651,142, filed on March 31, 2018; (10) U.S. Provisional Patent Application No. 62 / 667,666, filed on May 7, 2018; (11) U.S. Provisional Patent Application No. 62 / 667,679, filed on May 7, 2018 (12) U.S. Provisional Patent Application No. 62 / 667,691, filed on May 7, 2018; (13) U.S. Provisional Patent Application No. 62 / 667,699, filed on May 7, 2018; (14) U.S. Provisional Patent Application No. 62 / 667,717, filed on May 7, 2018; (15) U.S. Provisional Patent Application No. 62 / 667,749, filed on May 7, 2018; (16) U.S. Provisional Patent Application No. 62 / 667,760, filed on May 7, 2018; (17) U.S. Provisional Patent Application No. 62 / 667,780, filed on May 7, 2018 (18) U.S. Provisional Patent Application No. 62 / 667,792, filed on May 7, 2018; (19) U.S. Provisional Patent Application No. 62 / 667,820, filed on May 7, 2018; (20) U.S. Provisional Patent Application No. 62 / 667,850, filed on May 7, 2018; and (21) U.S. Patent Application No. 16 / 176,434, filed on October 31, 2018; all of which are hereby jointly assigned and are hereby incorporated by reference in their entirety, with the same effect as if set forth in their entirety herein (hereinafter referred to as the "Related Applications"). Technical Field

[0003] Generally speaking, the present invention relates to configurable computing circuit systems, and more particularly, to heterogeneous computing systems including self-scheduling processors, which are configurable computing circuit systems with embedded interconnect networks and dynamic reconfiguration and dynamic control of energy or power consumption. Background Art

[0004] Many existing computing systems have reached significant limits in computing processing capabilities in terms of computing speed, energy consumption (or power consumption), and associated heat dissipation. For example, as the demand for advanced computing technologies continues to grow, such as to accommodate artificial intelligence and other important computing applications, existing computing solutions are increasingly unable to meet the requirements.

[0005] Therefore, there is a need for computing architectures that can provide high-performance and energy-efficient solutions for compute-intensive cores, for example, to compute Fast Fourier Transforms (FFTs) and Finite Impulse Response (FIR) filters for sensing, communication, and analytics applications, such as synthetic aperture radar, 5G base stations, and graph analytics applications, such as graph clustering using spectral techniques, machine learning, 5G networking algorithms, and large die codes, but not limited to these.

[0006] Additionally, there is a need for a configurable computing architecture that can be configured for any of these different applications, but most importantly, can also dynamically self-configure and self-reconfigure. Finally, there is a need for a processor architecture that can perform massively parallel processing and further interact with and control the configurable computing architecture to execute any of these different applications. Summary of the invention

[0007] As discussed in more detail below, representative devices, systems, and methods provide a computing architecture capable of providing high-performance and energy-efficient solutions for compute-intensive cores, for example, to compute fast Fourier transforms (FFTs) and finite impulse response (FIR) filters for sensing, communication, and analytical applications, such as synthetic aperture radar, 5G base stations, and graph analytics applications such as graph clustering using spectral techniques, machine learning, 5G networking algorithms, and large mold codes, but not limited to these.

[0008] Notably, various representative embodiments provide a multi-threaded coarse-grained configurable computing architecture that is capable of being configured for any of these different applications, but most importantly, is also capable of self-scheduling, dynamic self-configuration and self-reconfiguration, conditional branching, back pressure control of asynchronous signaling, ordered thread execution and loop thread execution (including data dependencies), automatic start of thread execution after completing data dependencies and / or sorting, providing loop access to private variables, using re-entrant queues to provide fast execution of loop threads, and using various thread identifiers for advanced loop execution, including nested loops.

[0009] As also discussed in greater detail below, representative devices, systems, and methods provide a processor architecture capable of self-scheduling, massively parallel processing, and further interacting with and controlling a configurable computing architecture to execute any of these various applications.

[0010] In a representative embodiment, a system includes: a first interconnection network; a processor coupled to the interconnection network; a host interface coupled to the interconnection network; and at least one configurable circuit group coupled to the interconnection network, the configurable circuit group including: a plurality of configurable circuits arranged in an array; a second asynchronous packet network coupled to each of the plurality of configurable circuits in the array; a third synchronous network coupled to each of the plurality of configurable circuits in the array; a memory interface circuit coupled to the asynchronous packet network and the interconnection network; and a scheduling interface circuit coupled to the asynchronous packet network and the interconnection network.

[0011] For any of the various representative embodiments, the interconnect network may include: a first plurality of crossbar switches having a folded Clos configuration and a plurality of direct mesh connections at an interface with a system endpoint 935. For any of the various representative embodiments, the asynchronous packet network may include: a second plurality of crossbar switches, each crossbar switch coupled to at least one configurable circuit of the plurality of configurable circuits of the array and another crossbar switch of the second plurality of crossbar switches. For any of the various representative embodiments, the synchronous network may include: a plurality of direct point-to-point connections coupling adjacent configurable circuits of the array of the plurality of configurable circuits of the configurable circuit group.

[0012] In a representative embodiment, a configurable circuit may include: a configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a configuration memory coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs, wherein the configuration memory includes: a first instruction memory storing a plurality of data path configuration instructions to configure a data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a master synchronization input of the synchronization network input.

[0013] In a representative embodiment, each of the plurality of configurable circuits comprises: a configurable computing circuit; a control circuit coupled to the configurable computing circuit, the control circuit comprising: a memory control circuit; a thread control circuit; and a plurality of control registers; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs coupled to the configurable computing circuit and the synchronous network; a plurality of synchronous network outputs coupled to the configurable computing circuit and the synchronous network; an asynchronous network input queue coupled to the asynchronous packet network; an asynchronous network output queue coupled to the asynchronous packet network; a second configuration memory circuit coupled to the configurable computing circuit, the control circuit system, the synchronous network input and the synchronous network output, the configuration memory circuit comprising: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a master synchronous input of the synchronous network input.

[0014] In another representative embodiment, a system may include: a first interconnect network; a processor coupled to the interconnect network; a host interface coupled to the interconnect network; and at least one configurable circuit group coupled to the interconnect network, the configurable circuit group comprising: a plurality of configurable circuits arranged in an array, each configurable circuit comprising: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs and outputs coupled to the configurable computing circuit; an asynchronous network input queue and an asynchronous network output queue; a second configuration memory circuit coupled to the configurable computing circuit, the control circuit system, the synchronous network input and the synchronous network output, the second configuration memory comprising: ... a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs and outputs coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing An instruction memory storing a plurality of datapath configuration instructions to configure the datapath of the configurable computing circuit; and a second instruction and instruction index memory storing: a plurality of spoke instructions and datapath configuration instruction indexes for selecting a master synchronization input of the synchronization network input, for selecting a current datapath configuration instruction of the configurable computing circuit, and for selecting a next datapath instruction or a next datapath instruction index of a next configurable computing circuit; and a control circuit coupled to the configurable computing circuit, the control circuit comprising: a memory control circuit; a plurality of control registers storing a completion table having a first data completion count; and a thread control circuit for queuing threads for execution.

[0015] In another representative embodiment, a system may include: a first interconnect network; a host interface coupled to the interconnect network; at least one configurable circuit group coupled to the interconnect network, the configurable circuit group including a plurality of configurable circuits arranged in an array; and a processor coupled to the interconnect network, the processor including: a processor core for executing a plurality of instructions; and a core control circuit coupled to the processor core, the core control circuit including: an interconnect network interface that may be coupled to the interconnect network to receive a work descriptor packet, decode the received work descriptor packet into an execution thread having an initial program count and any received arguments; a thread control memory coupled to the interconnect network interface and including a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers a processor core and the control logic and thread selection circuit to receive the initial program count and provide the processor core with a corresponding instruction of the plurality of instructions for execution.

[0016] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; and a configuration memory coupled to the configurable computing circuit, a control circuit system, a synchronization network input, and a synchronization network output, the configuration memory including: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a current data path configuration instruction of the configurable computing circuit.

[0017] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; and a configuration memory coupled to the configurable computing circuit, a control circuit system, a synchronization network input, and a synchronization network output, the configuration memory including: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select the next data path configuration instruction of the next configurable computing circuit.

[0018] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a control circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs coupled to the configurable computing circuit; a plurality of synchronous network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, the control circuit system, the synchronous network inputs and the synchronous network outputs, the configuration memory circuit including: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a master synchronous input of the synchronous network input.

[0019] In yet another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a thread control circuit; and a plurality of control registers.

[0020] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a configuration memory coupled to the configurable computing circuit, a control circuit system, a synchronous network input and a synchronous network output, the configuration memory including: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a next data path instruction or a next data path instruction index of a next configurable computing circuit; and a conditional logic circuit coupled to the configurable computing circuit, wherein, based on an output from the configurable computing circuit, the conditional logic circuit is used to provide a conditional branch by modifying the next data path instruction or the next data path instruction index provided on a selected output among the plurality of synchronous network outputs.

[0021] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a control circuit coupled to the configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs coupled to the configurable computing circuit; a plurality of synchronous network outputs coupled to the configurable computing circuit; an asynchronous network input queue coupled to an asynchronous packet network and the first memory circuit; an asynchronous network output queue; and a flow control circuit coupled to the asynchronous network output queue, the flow control circuit being configured to generate a stop signal when a predetermined threshold is reached in the asynchronous network output queue.

[0022] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a thread control circuit; and a plurality of control registers, wherein the plurality of control registers store a loop table having a plurality of thread identifiers and a next thread identifier for each thread identifier to be executed after executing a current thread to provide in-order thread execution.

[0023] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a plurality of control registers, wherein the plurality of control registers store a completion table having a first data completion count; and a thread control circuit for queuing a thread for execution when the completion count of a thread is decremented to zero for a thread identifier of the thread.

[0024] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs and outputs coupled to the configurable computing circuit; an asynchronous network input queue and an asynchronous network output queue; a second configuration memory circuit coupled to the configurable computing circuit, the control circuit system, the synchronous network input and the synchronous network output, the second configuration memory including: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing: a plurality of spoke instructions and data a path configuration instruction index for selecting a master synchronization input of the synchronization network input, for selecting a current data path configuration instruction of the configurable computing circuit, and for selecting a next data path instruction or a next data path instruction index of a next configurable computing circuit; and the configurable circuit further comprises a control circuit coupled to the configurable computing circuit, the control circuit comprising: a memory control circuit; a plurality of control registers, wherein the plurality of control registers store a completion table having a first data completion count; and a thread control circuit for queuing the thread for execution when the completion count of the thread is decremented to zero for a thread identifier of the thread.

[0025] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a plurality of control registers, wherein the plurality of control registers store a completion table having a first data completion count; and a thread control circuit for queuing the thread for execution when the completion count of the thread is decremented to zero for the thread identifier of the thread and its thread identifier is the next thread.

[0026] In yet another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and the configurable circuit further includes a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a thread control circuit; and a plurality of control registers storing a completion table having a plurality of types of thread identifiers, wherein each type of thread identifier indicates a loop level for loop and nested loop execution, and wherein the plurality of control registers further store a top of a thread identifier stack to allow each type of thread identifier to access private variables for a selected loop.

[0027] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; multiple synchronization network inputs coupled to the configurable computing circuit; multiple synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; multiple control registers; and a thread control circuit including: a continuation queue storing one or more thread identifiers of computing threads having a completion count allowed to execute but not yet having an assigned thread identifier; and a reentry queue storing one or more thread identifiers of computing threads having a completion count allowed to execute and having an assigned thread identifier, so that the threads in the reentry queue are executed after a specified spoke count.

[0028] In another representative embodiment, a configurable circuit may include: a configurable computing circuit; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronization network outputs coupled to the configurable computing circuit; and a second configuration memory circuit coupled to the configurable computing circuit, a control circuit system, the synchronization network inputs and the synchronization network outputs; and a control circuit coupled to the configurable computing circuit, the control circuit including: a memory control circuit; a plurality of control registers storing a thread identifier pool and a completion table having a loop count of a number of active loop threads; and a thread control circuit, wherein in response to receiving an asynchronous fabric message returning a thread identifier to the thread identifier pool, the control circuit decrements the loop count and transmits an asynchronous fabric completion message when the loop count reaches zero.

[0029] In a representative embodiment, a system is disclosed, which may include: an asynchronous packet network; a synchronous network; and a plurality of configurable circuits arranged in an array, each of the plurality of configurable circuits being coupled to the synchronous network and the asynchronous packet network simultaneously, the plurality of configurable circuits being used to form a plurality of synchronous domains using the synchronous network to perform a plurality of calculations, and the plurality of configurable circuits being further used to generate and transmit a plurality of control messages through the asynchronous packet network, the plurality of control messages including one or more completion messages and continue messages.

[0030] In another representative embodiment, a system may include: a plurality of configurable circuits arranged in an array; a synchronization network coupled to each of the plurality of configurable circuits in the array; and an asynchronous packet network coupled to each of the plurality of configurable circuits in the array.

[0031] In another representative embodiment, a system may include: an interconnection network; a processor coupled to the interconnection network; and a plurality of configurable circuit groups coupled to the interconnection network.

[0032] In a representative embodiment, a system includes: an interconnection network; a processor coupled to the interconnection network; a host interface coupled to the interconnection network; and a plurality of configurable circuit groups coupled to the interconnection network, each of the plurality of configurable circuit groups comprising: a plurality of configurable circuits arranged in an array; a synchronous network coupled to each of the plurality of configurable circuits in the array; an asynchronous packet network coupled to each of the plurality of configurable circuits in the array; a memory interface coupled to the asynchronous packet network and the interconnection network; and a scheduling interface coupled to the asynchronous packet network and the interconnection network.

[0033] In another representative embodiment, a system may include: a hierarchical interconnect network including a first plurality of crossbar switches having a folded Clos configuration and a plurality of direct mesh connections at interfaces with endpoints; a processor coupled to the interconnect network; a host interface coupled to the interconnect network; and a plurality of configurable circuit groups coupled to the interconnect network, each of the plurality of configurable circuit groups including: a plurality of configurable circuits arranged in an array; a synchronization network coupled to each of the plurality of configurable circuits of the array and providing a plurality of direct connections between adjacent configurable circuits of the array; an asynchronous packet network including a second plurality of crossbar switches, each crossbar switch coupled to at least one configurable circuit of the plurality of configurable circuits of the array and another crossbar switch of the second plurality of crossbar switches; a memory interface coupled to the asynchronous packet network and the interconnect network; and a scheduling interface coupled to the asynchronous packet network and the interconnect network.

[0034] In another representative embodiment, a system may include: an interconnection network; a processor coupled to the interconnection network; a host interface coupled to the interconnection network; and a plurality of configurable circuit groups coupled to the interconnection network, each of the plurality of configurable circuit groups comprising: a synchronous network; an asynchronous packet network; a memory interface coupled to the asynchronous packet network and the interconnection network; a scheduling interface coupled to the asynchronous packet network and the interconnection network; and a plurality of configurable circuits arranged in an array, each configurable circuit comprising: a configurable computing circuit; a control circuit coupled to the configurable computing circuit, the control circuit comprising: a memory control circuit; a thread control circuit; and a plurality of control register; a first memory circuit coupled to the configurable computing circuit; a plurality of synchronous network inputs and outputs coupled to the configurable computing circuit and the synchronous network; an asynchronous network input queue and an asynchronous network output queue coupled to the asynchronous packet network; a second configuration memory circuit coupled to the configurable computing circuit, the control circuit system, the synchronous network input and the synchronous network output, the configuration memory circuit comprising: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a master synchronous input of the synchronous network input.

[0035] In any of the various representative embodiments, the second instruction and instruction index memory may further store a plurality of spoke instructions and a datapath configuration instruction index to select a current datapath configuration instruction of the configurable computing circuit.

[0036] In any of the various representative embodiments, the second instruction and instruction index memory may further store a plurality of spoke instructions and a datapath configuration instruction index to select a next datapath configuration instruction for a next configurable computing circuit.

[0037] In any of the various representative embodiments, the second instruction and instruction index memory may further store a plurality of spoke instructions and a datapath configuration instruction index to select a synchronous network output from the plurality of synchronous network outputs.

[0038] In any of the various representative embodiments, the configurable circuit or system may further include: a configuration memory multiplexer coupled to the first instruction memory and the second instruction and instruction index memory.

[0039] In any of the various representative embodiments, when a select input of the configuration memory multiplexer has a first setting, the current datapath configuration instruction may be selected using an instruction index from the second instruction and instruction index memory.

[0040] In any of the various representative embodiments, the current datapath configuration instruction may be selected using an instruction index from the master synchronization input when the select input of the configuration memory multiplexer has a second setting different than the first setting.

[0041] In any of the various representative embodiments, the second instruction and instruction index memory may further store a plurality of spoke instructions and datapath configuration instruction indexes to configure a portion of the configurable circuit independent of the current datapath instruction.

[0042] In any of the various representative embodiments, a selected spoke instruction and datapath configuration instruction index of the plurality of spoke instructions and datapath configuration instruction indexes may be selected based on a modulo spoke count.

[0043] In any of the various representative embodiments, the configurable circuit or system may further include: a conditional logic circuit coupled to the configurable computation circuit.

[0044] In any of the various representative embodiments, the conditional logic circuit is operable to modify the next datapath instruction index provided at a selected output of the plurality of synchronous network outputs based on an output from the configurable computation circuit.

[0045] In any of the various representative embodiments, the conditional logic circuit is operable to provide conditional branching by modifying the next data path instruction or next data path instruction index provided on a selected output of the plurality of synchronous network outputs, depending on an output from the configurable computation circuit.

[0046] In any of the various representative embodiments, when enabled, the conditional logic circuit can be used to specify the next datapath instruction or datapath instruction index by ORing the least significant bits of the next datapath instruction with the output from the configurable computation circuit to provide conditional branching.

[0047] In any of the various representative embodiments, when enabled, the conditional logic circuitry may be used to specify the next datapath instruction index by ORing the least significant bits of the next datapath instruction index with the output from the configurable computation circuitry to provide conditional branching.

[0048] In any of the various representative embodiments, the plurality of synchronization network inputs may include: a plurality of input registers coupled to a plurality of communication lines of a synchronization network; and an input multiplexer coupled to the plurality of input registers and the second instruction and instruction index memory to select the master synchronization input.

[0049] In any of the various representative embodiments, the plurality of synchronous network outputs may include: a plurality of output registers coupled to a plurality of communication lines of the synchronous network; and an output multiplexer coupled to the configurable computing circuit to select outputs from the configurable computing circuit.

[0050] In any of the various representative embodiments, the configurable circuit or system may further include: an asynchronous fabric state machine coupled to the asynchronous network input queue and the asynchronous network output queue, the asynchronous fabric state machine being used to decode input data packets received from the asynchronous packet network and assemble output data packets for transmission on the asynchronous packet network.

[0051] In any of the various representative embodiments, the asynchronous packet network may include a plurality of crossbar switches, each crossbar switch coupled to a plurality of configurable circuits and at least one other crossbar switch.

[0052] In any of the various representative embodiments, the configurable circuit or system may further include: an array of multiple configurable circuits, wherein: each configurable circuit is coupled to the synchronous network through the multiple synchronous network inputs and the multiple synchronous network outputs; and each configurable circuit is coupled to the asynchronous packet network through the asynchronous network input and the asynchronous network output.

[0053] In any of the various representative embodiments, the synchronization network may include a plurality of direct point-to-point connections coupling adjacent configurable circuits of the array of the plurality of configurable circuits.

[0054] In any of the various representative embodiments, each configurable circuit may include: a direct path connection between the plurality of input registers and the plurality of output registers. In any of the various representative embodiments, the direct path connection may provide a direct point-to-point connection for data transmission from a second configurable circuit received on the synchronous network to a third configurable circuit transmitted on the synchronous network.

[0055] In any of the various representative embodiments, the configurable computing circuitry may include arithmetic, logic, and bitwise operation circuitry for performing at least one integer operation selected from the group consisting of signed and unsigned addition, absolute value, negation, logical NOT, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparison of equals or not equal to, logical AND operation, logical OR operation, logical XOR operation, logical NAND operation, logical NOR operation, logical NON XOR operation, logical NAND operation, logical NOR operation, and conversion between integer and floating point.

[0056] In any of the various representative embodiments, the configurable computing circuitry may include arithmetic, logic, and bitwise operation circuitry for performing at least one floating-point operation selected from the group consisting of signed and unsigned addition, absolute value, negation, logical NOT, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparison of equals or not equal to, logical AND operation, logical OR operation, logical XOR operation, logical NAND operation, logical NOR operation, logical NOR operation, logical NOR operation, conversion between integer and floating point, and combinations thereof.

[0057] In any of the various representative embodiments, the configurable computational circuitry may include multiplication and shift operation circuitry for performing at least one integer operation selected from the group consisting of: multiplication, shift, passan input, signed and unsigned multiplication, signed and unsigned right shift, signed and unsigned left shift, bit reversal, permutation, conversion between integer and floating point, and combinations thereof.

[0058] In any of the various representative embodiments, the configurable computational circuitry may include multiplication and shift operation circuitry for performing at least a floating point operation selected from the group consisting of: multiplication, shift, pass an input, signed and unsigned multiplication, signed and unsigned right shift, signed and unsigned left shift, bit reversal, permutation, conversion between integer and floating point, and combinations thereof.

[0059] In any of the various representative embodiments, the array of the plurality of configurable circuits may be further coupled to a first interconnect network. In any of the various representative embodiments, the array of the plurality of configurable circuits may further include: a third system memory interface circuit; and a scheduling interface circuit. In any of the various representative embodiments, the scheduling interface circuit may be operable to receive an operational descriptor packet via the first interconnect network, and in response to the operational descriptor packet, generate one or more data and control packets to the plurality of configurable circuits to configure the plurality of configurable circuits to perform a selected computation.

[0060] In any of the various representative embodiments, the configurable circuit or system may further include: a flow control circuit coupled to the asynchronous network output queue, the flow control circuit being configured to generate a stop signal when a predetermined threshold is reached in the asynchronous network output queue. In any of the various representative embodiments, in response to the stop signal, each asynchronous network output queue stops outputting data packets on the asynchronous packet network. In any of the various representative embodiments, in response to the stop signal, each configurable computing circuit stops executing after completing its current instruction.

[0061] In any of the various representative embodiments, a first plurality of configurable circuits in the array of the plurality of configurable circuits may be coupled in a first predetermined order via a synchronization network to form a first synchronization domain; and wherein a second plurality of configurable circuits in the array of the plurality of configurable circuits may be coupled in a second predetermined order via the synchronization network to form a second synchronization domain. In any of the various representative embodiments, the first synchronization domain may be used to generate a continue message that is transmitted to the second synchronization domain via the asynchronous packet network. In any of the various representative embodiments, the second synchronization domain may be used to generate a completion message that is transmitted to the first synchronization domain via the asynchronous packet network.

[0062] In any of the various representative embodiments, the plurality of control registers may store a completion table having a first data completion count. In any of the various representative embodiments, the plurality of control registers may further store a completion table having a second iteration count. In any of the various representative embodiments, the plurality of control registers may further store a loop table having a plurality of thread identifiers and, for each thread identifier, a next thread identifier for execution after execution of a current thread. In any of the various representative embodiments, the plurality of control registers may further store an identifier of a first iteration and an identifier of a last iteration in the loop table.

[0063] In any of the various representative embodiments, the control circuitry may be operable to queue the thread for execution when a completion count for a thread identifier of the thread is decremented to zero and its thread identifier is the next thread.

[0064] In any of the various representative embodiments, the control circuitry may be configured to queue the thread for execution when, for a thread identifier of the thread, a completion count of the thread indicates completion of any data dependency. In any of the various representative embodiments, the completion count may indicate a predetermined number of completion messages received for each selected thread of the plurality of threads before the selected thread is executed.

[0065] In any of the various representative embodiments, the plurality of control registers may further store a completion table having a plurality of types of thread identifiers, wherein each type of thread identifier indicates a loop level for loop and nested loop execution.

[0066] In any of the various representative embodiments, the plurality of control registers may further store a completion table having a loop count of the number of active loop threads, and wherein in response to receiving an asynchronous fabric message returning a thread identifier to a thread identifier pool, the control circuit decrements the loop count and transmits an asynchronous fabric completion message when the loop count reaches zero. In any of the various representative embodiments, the plurality of control registers may further store a top of a thread identifier stack to allow each type of thread identifier to access private variables for a selected loop.

[0067] In any of the various representative embodiments, the control circuitry may further include: a continuation queue; and a reentry queue. In any of the various representative embodiments, the continuation queue stores one or more thread identifiers of computing threads that have completion counts that allow execution but do not yet have assigned thread identifiers. In any of the various representative embodiments, the reentry queue may store one or more thread identifiers of computing threads that have completion counts that allow execution and have assigned thread identifiers. In any of the various representative embodiments, any thread in the reentry queue that has a thread identifier may be executed before any thread in the continuation queue that has a thread identifier is executed.

[0068] In any of the various representative embodiments, the control circuitry may further include: a priority queue, wherein any thread having a thread identifier in the priority queue may be executed before any thread having a thread identifier in the continuation queue or the reentrant queue is executed.

[0069] In any of the various representative embodiments, the control circuitry may further include: a run queue, wherein any thread in the run queue having a thread identifier may be executed after a spoke count of the thread identifier occurs.

[0070] In any of the various representative embodiments, the second configuration memory circuit may include: a first instruction memory storing a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and a second instruction and instruction index memory storing a plurality of spoke instructions and a data path configuration instruction index to select a master synchronization input of the synchronization network input.

[0071] In any of the various representative embodiments, the control circuitry may be used to self-schedule computing threads for execution.

[0072] In any of the various representative embodiments, the conditional logic circuitry may be operable to branch to a different second next instruction for execution by the next configurable circuitry.

[0073] In any of the various representative embodiments, the control circuitry may be used to order the computation threads for execution. In any of the various representative embodiments, the control circuitry may be used to order the loop computation threads for execution. In any of the various representative embodiments, the control circuitry may be used to start executing the computation threads in response to one or more completion signals from a data dependency.

[0074] Various method embodiments for configuring a configurable circuit are also disclosed. A representative method embodiment may include: using a first instruction memory to provide a plurality of datapath configuration instructions to configure a datapath of the configurable computing circuit; and using a second instruction and instruction index memory to provide a plurality of spoke instructions and datapath configuration instruction indexes to select a master synchronization input of a plurality of synchronization network inputs.

[0075] In any of various representative embodiments, a method for configuring a configurable circuit may include: using a first instruction memory to provide a plurality of data path configuration instructions to configure a data path of the configurable computing circuit; and using a second instruction and instruction index memory to provide a plurality of spoke instructions and a data path configuration instruction index to select a current data path configuration instruction of the configurable computing circuit.

[0076] In any of various representative embodiments, a method for configuring a configurable circuit may include: using a first instruction memory to provide a plurality of data path configuration instructions to configure the data path of the configurable computing circuit; and using a second instruction and instruction index memory to provide a plurality of spoke instructions and a data path configuration instruction index to select a next data path configuration instruction of a next configurable computing circuit.

[0077] A method of controlling thread execution of a multi-threaded configurable circuit is also disclosed, wherein the configurable circuit has a configurable computation circuit. A representative method embodiment may include: using a conditional logic circuit to provide a conditional branch by modifying a next data path instruction or a next data path instruction index provided to a next configurable circuit based on an output from the configurable computation circuit.

[0078] Another representative method embodiment of controlling thread execution of a multi-threaded configurable circuit may include generating, using a flow control circuit, a stall signal when a predetermined threshold is reached in an asynchronous network output queue.

[0079] Another representative method embodiment of controlling thread execution of a multi-threaded configurable circuit may include using a plurality of control registers to store a circular table having a plurality of thread identifiers and, for each thread identifier, a next thread identifier for execution after execution of a current thread to provide in-order thread execution.

[0080] Another representative method embodiment of controlling thread execution of a multi-threaded configurable circuit may include: using a plurality of control registers to store a completion table having a first data completion count; and using a thread control circuit to queue a thread for execution when the completion count of a thread is decremented to zero for a thread identifier of the thread.

[0081] A method for configuring and controlling thread execution of a multi-threaded configurable circuit having a configurable computing circuit is disclosed, wherein a representative method embodiment includes: using a first instruction memory to provide a plurality of configuration instructions to configure the data path of the configurable computing circuit; using a second instruction and instruction index memory to provide a plurality of spoke instructions and data path configuration instruction indexes to select a master synchronization input of a plurality of synchronization network inputs, select a current data path configuration instruction of the configurable computing circuit, and select a next data path instruction or a next data path instruction index of a next configurable computing circuit; using a plurality of control registers to provide a completion table with a first data completion count; and using a thread control circuit to queue the thread for execution when the completion count of the thread is decremented to zero for the thread identifier of the thread.

[0082] Another method for configuring and controlling thread execution of a multi-threaded configurable circuit may include: using a first instruction memory to provide a plurality of configuration instructions to configure a data path of the configurable computing circuit; using a second instruction and instruction index memory to provide a plurality of spoke instructions and data path configuration instruction indexes to select a master synchronization input of a plurality of synchronization network inputs, select a current data path configuration instruction of the configurable computing circuit, and select a next data path instruction or a next data path instruction index of a next configurable computing circuit; using a plurality of control registers to provide a completion table with a first data completion count; and using a thread control circuit to queue the thread for execution when the completion count of the thread is decremented to zero for the thread identifier of the thread and its thread identifier is the next thread.

[0083] Another method of controlling thread execution of a multi-threaded configurable circuit may include: using a plurality of control registers, storing a completion table having a plurality of types of thread identifiers, wherein each type of thread identifier indicates a loop level for loop and nested loop execution, and wherein the plurality of control registers further store a top of a stack of thread identifiers; and allowing each type of thread identifier to access private variables for a selected loop.

[0084] Another method for controlling thread execution of a multi-threaded configurable circuit may include: using multiple control registers to store a completion table with data completion counts; using thread control circuitry to provide a continuation queue that stores one or more thread identifiers of computing threads that have completion counts that allow execution but do not yet have assigned thread identifiers; and using thread control circuitry to provide a reentry queue that stores one or more thread identifiers of computing threads that have completion counts that allow execution and have assigned thread identifiers, so that the threads in the reentry queue are executed after a specified spoke count.

[0085] Another method of controlling thread execution of a multi-threaded configurable circuit may include: using a plurality of control registers to store a thread identifier pool and a completion table having a loop count of a number of active loop threads; and using thread control circuitry, in response to receiving an asynchronous fabric message returning a thread identifier to the thread identifier pool, decrementing the loop count and transmitting an asynchronous fabric completion message when the loop count reaches zero.

[0086] In any of the various representative embodiments, the method may further include: using the second instruction and instruction index memory, providing a plurality of spoke instructions and a datapath configuration instruction index to select a current datapath configuration instruction of the configurable computing circuit.

[0087] In any of the various representative embodiments, the method may further include providing a plurality of spoke instructions and a datapath configuration instruction index to select a next datapath configuration instruction of a next configurable computing circuit using the second instruction and the instruction index memory.

[0088] In any of the various representative embodiments, the method may further include: using the second instruction and instruction index memory, providing a plurality of spoke instructions and a datapath configuration instruction index to select a synchronous network output from the plurality of synchronous network outputs.

[0089] In any of the various representative embodiments, the method may further include providing, using a configuration memory multiplexer, a first selection setting to select the current datapath configuration instruction using an instruction index from the second instruction and instruction index memory.

[0090] In any of the various representative embodiments, the method may further include using a configuration memory multiplexer to provide a second selection setting, the second setting being different from the first setting, to select the current datapath configuration instruction using an instruction index from a master synchronization input.

[0091] In any of the various representative embodiments, the method may further include: using the second instruction and instruction index memory to provide a plurality of spoke instructions and datapath configuration instruction indexes to configure a portion of the configurable circuit independent of the current datapath instruction.

[0092] In any of the various representative embodiments, the method may further include selecting, using a configuration memory multiplexer, a spoke instruction and a datapath configuration instruction index from the plurality of spoke instructions and datapath configuration instruction indexes based on a modulo spoke count.

[0093] In any of the various representative embodiments, the method may further include modifying the next data path instruction or the next data path instruction index using a conditional logic circuit and depending on an output from the configurable computation circuit.

[0094] In any of the various representative embodiments, the method may further include providing conditional branching by modifying the next data path instruction or the next data path instruction index using conditional logic circuitry and depending on output from the configurable computation circuitry.

[0095] In any of the various representative embodiments, the method may further include: enabling a conditional logic circuit; and using the conditional logic circuit and based on an output from the configurable computing circuit, specifying the next data path instruction or a data path instruction index by performing an "OR" operation on the least significant bit of the next data path instruction and the output from the configurable computing circuit, thereby providing a conditional branch.

[0096] In any of the various representative embodiments, the method may further include: selecting the master synchronization input using an input multiplexer. In any of the various representative embodiments, the method may further include: selecting an output from the configurable computation circuit using an output multiplexer.

[0097] In any of the various representative embodiments, the method may further include decoding input data packets received from the asynchronous packet network and assembling output data packets for transmission on the asynchronous packet network using an asynchronous fabric state machine coupled to an asynchronous network input queue and an asynchronous network output queue.

[0098] In any of the various representative embodiments, the method may further include providing, using the synchronization network, a plurality of direct point-to-point connections coupling adjacent configurable circuits of the array of the plurality of configurable circuits.

[0099] In any of the various representative embodiments, the method may further include: providing a direct path connection between a plurality of input registers and a plurality of output registers using the configurable circuit. In any of the various representative embodiments, the direct path connection provides a direct point-to-point connection for data transmission from a second configurable circuit received on the synchronous network to a third configurable circuit transmitted on the synchronous network.

[0100] In any of the various representative embodiments, the method may further include: using the configurable computing circuit, performing at least one integer or floating-point operation selected from the group consisting of: signed and unsigned addition, absolute value, negation, logical NOT, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparison of equal to or not equal to, logical AND operation, logical OR operation, logical XOR operation, logical NAND operation, logical NOR operation, logical NON XOR operation, logical NAND operation, logical NOR operation, and conversion between integer and floating point.

[0101] In any of the various representative embodiments, the method may further include: using the configurable computing circuit, performing at least one integer or floating point operation selected from the group consisting of: multiplication, shift, passing an input, signed and unsigned multiplication, signed and unsigned right shift, signed and unsigned left shift, bit reversal, permutation, conversion between integer and floating point, and combinations thereof.

[0102] In any of the various representative embodiments, the method may further include: using the scheduling interface circuit, receiving an operation descriptor packet through the first interconnect network, and in response to the operation descriptor packet, generating one or more data and control packets to the plurality of configurable circuits to configure the plurality of configurable circuits to perform selected calculations.

[0103] In any of the various representative embodiments, the method may further include: using the flow control circuit to generate a stop signal when a predetermined threshold is reached in the asynchronous network output queue. In any of the various representative embodiments, in response to the stop signal, each asynchronous network output queue stops outputting data packets on the asynchronous packet network. In any of the various representative embodiments, in response to the stop signal, each configurable computing circuit stops executing after completing its current instruction.

[0104] In any of the various representative embodiments, the method may further include: coupling a first plurality of configurable circuits in an array of a plurality of configurable circuits through the synchronization network in a first predetermined order to form a first synchronization domain; and coupling a second plurality of configurable circuits in an array of a plurality of configurable circuits through the synchronization network in a second predetermined order to form a second synchronization domain.

[0105] In any of the various representative embodiments, the method may further include generating a continuation message from the first synchronization domain to the second synchronization domain for transmission over the asynchronous packet network.

[0106] In any of the various representative embodiments, the method may further include: generating a completion message from the second synchronization domain to the first synchronization domain for transmission over the asynchronous packet network. In any of the various representative embodiments, the method may further include storing a completion table with a first data completion count in the plurality of control registers.

[0107] In any of the various representative embodiments, the method may further include storing the completion table with a second iteration count in the plurality of control registers.

[0108] In any of the various representative embodiments, the method may further include storing a loop table having a plurality of thread identifiers in the plurality of control registers, and for each thread identifier, storing a next thread identifier for execution after execution of the current thread.

[0109] In any of the various representative embodiments, the method may further include storing an identification of a first iteration and an identification of a last iteration in the loop table in the plurality of control registers.

[0110] In any of the various representative embodiments, the method may further include: using the control circuitry, queuing the thread for execution when a completion count for a thread identifier of the thread is decremented to zero.

[0111] In any of the various representative embodiments, the method may further include: using the control circuitry, queuing the thread for execution when a completion count for a thread identifier of the thread is decremented to zero and its thread identifier is the next thread.

[0112] In any of the various representative embodiments, the method may further include: using the control circuitry, queuing the thread for execution when, for a thread identifier of the thread, a completion count of the thread indicates completion of any data dependency. In any of the various representative embodiments, the completion count may indicate a predetermined number of completion messages received for each selected thread of the plurality of threads before the selected thread is executed.

[0113] In any of the various representative embodiments, the method may further include storing a completion table having a plurality of types of thread identifiers in the plurality of control registers, wherein each type of thread identifier indicates a loop level for loop and nested loop execution.

[0114] In any of the various representative embodiments, the method may further include: storing a completion table having a loop count of the number of active loop threads in the plurality of control registers, and wherein in response to receiving an asynchronous fabric message returning a thread identifier to a thread identifier pool, using the control circuit, decrementing the loop count and transmitting an asynchronous fabric completion message when the loop count reaches zero.

[0115] In any of the various representative embodiments, the method may further include storing a top of a stack of thread identifiers in the plurality of control registers to allow each type of thread identifier to access private variables for a selected loop.

[0116] In any of the various representative embodiments, the method may further include: using a continuation queue, storing one or more thread identifiers of computing threads that have completion counts that allow execution but do not yet have assigned thread identifiers.

[0117] In any of the various representative embodiments, the method may further include: using a reentrant queue, storing one or more thread identifiers of computing threads having completion counts allowed to execute and having assigned thread identifiers.

[0118] In any of the various representative embodiments, the method may further include executing any thread having a thread identifier in the reentry queue before executing any thread having a thread identifier in the continuation queue.

[0119] In any of the various representative embodiments, the method may further include executing any thread having a thread identifier in a priority queue before executing any thread having a thread identifier in the continuation queue or the reentry queue.

[0120] In any of the various representative embodiments, the method may further include executing any thread in the run queue after the spoke count of the thread identifier occurs.

[0121] In any of the various representative embodiments, the method may further include: using the control circuitry, self-scheduling the computing thread for execution.

[0122] In any of the various representative embodiments, the method may further include: using the conditional logic circuit, branching to a different second next instruction for execution by the next configurable circuit.

[0123] In any of the various representative embodiments, the method may further include: using the control circuitry, ordering the computing threads for execution.

[0124] In any of the various representative embodiments, the method may further include, using the control circuitry, ordering the loop computation threads for execution.

[0125] In any of the various representative embodiments, the method may further include, using the control circuitry, commencing execution of the compute thread in response to one or more completion signals from the data dependencies.

[0126] A self-scheduling processor is disclosed. In a representative embodiment, the processor includes: a processor core for executing received instructions; and a core control circuit coupled to the processor core, the core control circuit for automatically scheduling instructions for execution by the processor core in response to a received work descriptor data packet. In another representative embodiment, the processor includes: a processor core for executing received instructions; and a core control circuit coupled to the processor core, the core control circuit for automatically scheduling instructions for execution by the processor core in response to a received event data packet.

[0127] Also disclosed is a multi-threaded self-scheduling processor that can create threads on local or remote computing elements. In a representative embodiment, the processor includes: a processor core that is used to execute a shred creation instruction; and a core control circuit that is coupled to the processor core, the core control circuit being used to automatically schedule the shred creation instruction for execution by the processor core, and generating one or more work descriptor packets to another processor or a hybrid thread organization circuit to execute corresponding multiple execution threads. In another representative embodiment, the processor includes: a processor core that is used to execute a shred creation instruction; and a core control circuit that is coupled to the processor core, the core control circuit being used to schedule the shred creation instruction for execution by the processor core, reserving a predetermined amount of memory space in a thread control memory to store return arguments, and generating one or more work descriptor packets to another processor or a hybrid thread organization circuit to execute corresponding multiple execution threads.

[0128] In another representative embodiment, a processor includes: a core control circuit, which includes: an interconnect network interface; a thread control memory, which is coupled to the interconnect network interface; an execution queue, which is coupled to the thread control memory; a control logic and thread selection circuit, which is coupled to the execution queue and the thread control memory; and an instruction cache, which is coupled to the control logic and thread selection circuit; the processor also includes a processor core, which is coupled to the instruction cache of the core control circuit.

[0129] In another representative embodiment, a processor includes: a core control circuit, which includes: an interconnect network interface; a thread control memory, which is coupled to the interconnect network interface; a network response memory; an execution queue, which is coupled to the thread control memory; a control logic and thread selection circuit, which is coupled to the execution queue and the thread control memory; an instruction cache, which is coupled to the control logic and thread selection circuit; and a command queue; the processor also includes a processor core, which is coupled to the instruction cache and the command queue of the core control circuit.

[0130] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: an interconnect network interface, which can be coupled to an interconnect network to receive a work descriptor data packet, decode the received work descriptor data packet into an execution thread having an initial program count and any received independent variables; an execution queue, which is coupled to the thread control memory; and control logic and thread selection circuitry, which is coupled to the execution queue, the control logic and thread selection circuitry being used to assign an available thread identifier to the execution thread, automatically place the thread identifier in the execution queue, and periodically select the thread identifier to execute the execution thread.

[0131] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: an interconnect network interface, which can be coupled to the interconnect network to receive a work descriptor data packet, decode the received work descriptor data packet into an execution thread having an initial program counter and any received independent variables; an execution queue, which is coupled to the thread control memory; and control logic and thread selection circuitry, which is coupled to the execution queue, the control logic and thread selection circuitry is used to assign an available thread identifier to the execution thread, automatically place the thread identifier in the execution queue, and periodically select the thread identifier for the processor core to execute instructions of the execution thread.

[0132] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: an execution queue, which is coupled to the thread control memory; and control logic and thread selection circuitry, which are coupled to the execution queue, the control logic and thread selection circuitry are used to assign available thread identifiers to the execution threads, automatically place the thread identifiers in the execution queue, and periodically select the thread identifiers for the processor core to execute instructions of the execution thread.

[0133] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: a thread control memory, which includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, a data cache, and a general register storing a received independent variable; an execution queue, which is coupled to the thread control memory; and a control logic and thread selection circuit, which is coupled to the execution queue, the control logic and thread selection circuit being used to assign available thread identifiers to the execution threads, automatically place the thread identifiers in the execution queue, and periodically select the thread identifiers for the processor core to execute instructions of the execution thread, the processor core using data stored in the data cache or the general registers.

[0134] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: a thread control memory, which includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, and a thread status register storing an effective state or a suspended state of each of the plurality of thread identifiers; an execution queue, which is coupled to the thread control memory; and a control logic and a thread selection circuit, which are coupled to the execution queue, the control logic and the thread selection circuit being used to assign an available thread identifier to the execution thread, automatically placing the thread identifier in the execution queue when the thread identifier has an effective state, and periodically selecting the thread identifier for the processor core to execute instructions of the execution thread for a duration during which the effective state remains unchanged until the execution thread is completed.

[0135] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: a thread control memory including a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, and a thread state register storing an effective state or a pause state of each of the plurality of thread identifiers; an execution queue coupled to the thread control memory; and a control logic and thread selection circuit coupled to the execution queue, the control logic and thread selection circuit being used to assign an available thread identifier to the execution thread, automatically placing the thread identifier in the execution queue when the thread identifier has an effective state, periodically selecting the thread identifier for the processor core to execute instructions of the execution thread during a duration during which the effective state remains unchanged, and pausing thread execution by not returning the thread identifier to the execution queue when the thread identifier has a pause state.

[0136] In another representative embodiment, a processor includes: a processor core and a core control circuit coupled to the processor core, wherein the core control circuit includes: a thread control memory, which includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program counter, a data cache, and a general register storing a received independent variable; an execution queue, which is coupled to the thread control memory; and a control logic and thread selection circuit, which is coupled to the execution queue, the control logic and thread selection circuit being used to assign an available thread identifier to the execution thread, automatically place the thread identifier in the execution queue, and periodically select the thread identifier for the processor core to execute instructions of the execution thread.

[0137] In another representative embodiment, a processor includes: a processor core for executing a plurality of instructions; and a core control circuit coupled to the processor core, wherein the core control circuit includes: an interconnect network interface that can be coupled to an interconnect network to receive a work descriptor data packet, decode the received work descriptor data packet into an execution thread having an initial program counter and any received independent variables; a thread control memory that is coupled to the interconnect network interface and includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program counter, a data cache, and a general purpose memory storing the received independent variables. register; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry for assigning available thread identifiers to the execution threads, placing the thread identifiers in the execution queue, selecting the thread identifiers for execution, accessing the thread control memory using the thread identifiers as an index to select the initial program count of the execution thread; and an instruction cache coupled to the processor core and the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions from the plurality of instructions to the processor core for execution.

[0138] In another representative embodiment, a processor includes: a core control circuit, which includes: an interconnect network interface, which can be coupled to an interconnect network to receive a work descriptor data packet, decode the received work descriptor data packet into an execution thread with an initial program counter and any received arguments; a thread control memory, which is coupled to the interconnect network interface and includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program counter, a data cache, and a general register storing received arguments; an execution queue, which is coupled to the thread control memory; a control logic and thread selection circuit, which is coupled to the thread control memory; The processor further comprises a processor core coupled to the execution queue and the thread control memory, the control logic and thread selection circuit being used to assign an available thread identifier to the execution thread, automatically place the thread identifier in the execution queue, periodically select the thread identifier for execution, use the thread identifier as an index to access the thread control memory to select the initial program count of the execution thread; and an instruction cache coupled to the control logic and thread selection circuit to receive the initial program count and provide corresponding instructions for execution; the processor further comprising a processor core coupled to the instruction cache of the core control circuit, the processor core being used to execute the corresponding instructions.

[0139] In another representative embodiment, a processor includes: a core control circuit, which includes: an interconnect network interface, which can be coupled to an interconnect network to receive a work descriptor data packet, decode the received work descriptor data packet into an execution thread with an initial program count and any received arguments; a thread control memory, which is coupled to the interconnect network interface and includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program count, and a general register storing received arguments; an execution queue, which is coupled to the thread control memory; control logic and thread selection circuitry, which is coupled to the execution queue; a row queue and the thread control memory, the control logic and thread selection circuit being used to assign available thread identifiers to the execution threads, place the thread identifiers in the execution queue, select the thread identifiers for execution, use the thread identifiers as indexes to access the thread control memory to select the initial program count of the execution thread; an instruction cache coupled to the control logic and thread selection circuit to receive the initial program count and provide corresponding instructions for execution; and a command queue; the processor further comprising a processor core coupled to the instruction cache and the command queue of the core control circuit, the processor core being used to execute the corresponding instructions.

[0140] In another representative embodiment, a processor includes: a core control circuit coupled to an interconnect network interface and including: an interconnect network interface that can be coupled to an interconnect network to receive a work descriptor packet, decode the received work descriptor packet into an execution thread having an initial program count and any received arguments; a thread control memory coupled to the interconnect network interface and including a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program count, and a general register storing received arguments; an execution queue coupled to the thread control memory; control logic and a thread selector; a selection circuit coupled to the execution queue and the thread control memory, the control logic and thread selection circuit being used to assign an available thread identifier to the execution thread, place the thread identifier in the execution queue, select the thread identifier for execution, use the thread identifier as an index to access the thread control memory to select the initial program count of the execution thread; and an instruction cache coupled to the control logic and thread selection circuit to receive the initial program count and provide corresponding instructions for execution; the processor further includes a processor core coupled to the instruction cache of the core control circuit, the processor core being used to execute the corresponding instructions.

[0141] In another representative embodiment, a processor includes: a core control circuit including: an interconnect network interface that can be coupled to an interconnect network to receive a call work descriptor data packet, decode the received work descriptor data packet into an execution thread with an initial program count and any received arguments, and encode the work descriptor packet for transmission to other processing elements; a thread control memory that is coupled to the interconnect network interface and includes a plurality of registers, the plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing a received program count, and a general register storing received arguments; an execution queue that is coupled to the thread control memory; a network response memory that is coupled to the interconnect network interface; control logic and thread selection circuitry , which is coupled to the execution queue, the thread control memory and the instruction cache, the control logic and thread selection circuit are used to assign an available thread identifier to the execution thread, place the thread identifier in the execution queue, select the thread identifier for execution, use the thread identifier as an index to access the thread control memory to select the initial program count of the execution thread; an instruction cache, which is coupled to the control logic and the thread selection circuit to receive the initial program count and provide corresponding instructions for execution; and a command queue, which stores one or more commands to generate one or more work descriptor packets; the processor also includes a processor core, which is coupled to the instruction cache and the command queue of the core control circuit, and the processor core is used to execute the corresponding instructions.

[0142] For any of the various representative embodiments, the core control circuit may further include: an interconnect network interface, which may be coupled to the interconnect network, the interconnect network interface for receiving a work descriptor data packet, decoding the received work descriptor data packet into an execution thread with an initial program count and any received arguments. For any of the various representative embodiments, the interconnect network interface may further be used to receive an event data packet, decoding the received event data packet into an event identifier and any received arguments.

[0143] For any of the various representative embodiments, the core control circuitry may further include: control logic and thread selection circuitry coupled to the interconnect network interface, the control logic and thread selection circuitry for assigning available thread identifiers to the execution threads.

[0144] For any of the various representative embodiments, the core control circuit may further include: a thread control memory having multiple registers, wherein the multiple registers include one or more of the following in any selected combination: a thread identifier pool register storing multiple thread identifiers; a thread status register; a program counter register storing a received initial program count; a general register storing received independent variables; a pending fiber return count register; a return independent variable buffer or register; a return independent variable linked list register; a custom atomic transaction identifier register; an event status register; an event mask register; and a data cache.

[0145] For any of the various representative embodiments, the interconnect network interface may be further operable to store the execution thread with the initial program counter and any received arguments in the thread control memory using a thread identifier as an index into the thread control memory.

[0146] For any of the various representative embodiments, the core control circuitry may further include: control logic and thread selection circuitry coupled to the thread control memory and the interconnect network interface, the control logic and thread selection circuitry for assigning available thread identifiers to the execution threads.

[0147] For any of the various representative embodiments, the core control circuitry may further include: an execution queue coupled to the thread control memory, the execution queue storing one or more thread identifiers.

[0148] For any of the various representative embodiments, the core control circuitry may further include: control logic and thread selection circuitry coupled to the execution queue, the interconnect network interface, and the thread control memory, the control logic and thread selection circuitry being used to assign available thread identifiers to the execution threads, place the thread identifiers in the execution queue, select the thread identifiers for execution, and use the thread identifiers as an index to access the thread control memory to select the initial program count of the execution thread.

[0149] For any of the various representative embodiments, the core control circuitry may further include: an instruction cache coupled to the control logic and the thread selection circuitry to receive the initial program count and provide corresponding instructions for execution.

[0150] In another representative embodiment, the processor may further include: a processor core coupled to the instruction cache of the core control circuit, the processor core being configured to execute the corresponding instruction.

[0151] For any of the various representative embodiments, the core control circuitry may be further configured to assign an initial active state to the execution thread. For any of the various representative embodiments, the core control circuitry may be further configured to assign a pause state to the execution thread in response to the processor core executing a memory load instruction. For any of the various representative embodiments, the core control circuitry may be further configured to assign a pause state to the execution thread in response to the processor core executing a memory store instruction.

[0152] For any of the various representative embodiments, the core control circuitry may be further configured to end execution of a selected thread in response to the processor core executing a return instruction. For any of the various representative embodiments, the core control circuitry may be further configured to return a corresponding thread identifier of the selected thread to the thread identifier pool register in response to the processor core executing a return instruction. For any of the various representative embodiments, the core control circuitry may be further configured to clean up a register of the thread control memory indexed by the corresponding thread identifier of the selected thread in response to the processor core executing a return instruction.

[0153] For any of the various representative embodiments, the interconnect network interface may be further operable to generate a return work descriptor packet in response to the processor core executing a return instruction.

[0154] For any of the various representative embodiments, the core control circuitry may further include: a network response memory. For any of the various representative embodiments, the network response memory may include one or more of the following in any selected combination: a memory request register; a thread identifier and transaction identifier register; a request cache line index register; a byte register; and a general register index and type register.

[0155] For any of the various representative embodiments, the interconnection network interface may be used to generate a point-to-point event data message.For any of the various representative embodiments, the interconnection network interface may be used to generate a broadcast event data message.

[0156] For any of the various representative embodiments, the core control circuitry may be further used to respond to a received event data packet using an event mask stored in the event mask register. For any of the various representative embodiments, the core control circuitry may be further used to determine an event number corresponding to the received event data packet. For any of the various representative embodiments, the core control circuitry may be further used to change the state of a thread identifier from suspended to valid in response to the received event data packet to resume execution of the corresponding execution thread. For any of the various representative embodiments, the core control circuitry may be further used to change the state of a thread identifier from suspended to valid in response to the event number of the received event data packet to resume execution of the corresponding execution thread.

[0157] For any of the various representative embodiments, the control logic and thread selection circuitry may be further used to continuously select the next thread identifier from the execution queue to execute a single instruction of the corresponding execution thread. For any of the various representative embodiments, the control logic and thread selection circuitry may be further used to perform a round-robin selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively, for executing a single instruction of the corresponding execution thread. For any of the various representative embodiments, the control logic and thread selection circuitry may be further used to perform a round-robin selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively, for executing a single instruction of the corresponding execution thread, until the execution thread is completed. For any of the various representative embodiments, the control logic and thread selection circuitry may be further used to perform a barrel selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively, for executing a single instruction of the corresponding execution thread.

[0158] For any of the various representative embodiments, the control logic and thread selection circuitry may be further configured to assign an active state or a paused state to a thread identifier. For any of the various representative embodiments, the control logic and thread selection circuitry may be further configured to assign a priority state to a thread identifier. For any of the various representative embodiments, the control logic and thread selection circuitry may be further configured to return a corresponding thread identifier having an assigned active state and an assigned priority to the execution queue after executing the corresponding instruction.

[0159] For any of the various representative embodiments, the core control circuit may further include: a network command queue coupled to the processor core.

[0160] For any of the various representative embodiments, the interconnect network interface may include: an input queue; a packet decoder circuit coupled to the input queue, the control logic and thread selection circuit, and the thread control memory; an output queue; and a packet encoder circuit coupled to the output queue, the network response memory, and the network command queue.

[0161] For any of the various representative embodiments, the execution queue may further include: a first priority queue; and a second priority queue. For any of the various representative embodiments, the control logic and thread selection circuit may further include: a thread selection control circuit system coupled to the execution queue, the thread selection control circuit system for selecting thread identifiers from the first priority queue at a first frequency and selecting thread identifiers from the second priority queue at a second frequency, the second frequency being lower than the first frequency. For any of the various representative embodiments, the thread selection control circuit system may be used to determine the second frequency as a skip count starting from selecting the thread identifier from the first priority queue.

[0162] For any of the various representative embodiments, the core control circuitry may further include: data path control circuitry for controlling access sizes through the first interconnect network. For any of the various representative embodiments, the core control circuitry may further include: data path control circuitry for increasing or decreasing memory load access sizes in response to a time average usage level. For any of the various representative embodiments, the core control circuitry may further include: data path control circuitry for increasing or decreasing memory storage access sizes in response to a time average usage level. For any of the various representative embodiments, the control logic and thread selection circuitry may further be used to increase the size of a memory load access request to correspond to a cache line boundary of the data cache.

[0163] For any of the various representative embodiments, the core control circuitry may further include: a system call circuitry for generating one or more system calls to the host processor. For any of the various representative embodiments, the system call circuitry may further include: a plurality of system call credit registers storing predetermined credit counts to modulate the number of system calls within any predetermined time period.

[0164] For any of the various representative embodiments, the core control circuit may be further configured to generate, in response to a request from a host processor, a command to cause the command queue of the interconnect network interface to copy and transfer all data corresponding to a selected thread identifier from the thread control memory to monitor a thread state.

[0165] For any of the various representative embodiments, the processor core can be used to execute a shred creation instruction to generate one or more commands that cause the command queue of the interconnect network interface to generate one or more call work descriptor packets to another processor core or hybrid thread fabric circuitry. For any of the various representative embodiments, the core control circuit can be further used to reserve a predetermined amount of memory space in the general register or return argument register in response to the processor core executing the shred creation instruction.

[0166] For any of the various representative embodiments, in response to generating one or more call work descriptor packets to another processor core or a hybrid thread fabric, the core control circuitry may be used to store a thread return count in the thread return register. For any of the various representative embodiments, in response to receiving a return data packet, the core control circuitry may be used to decrement the thread return count stored in the thread return register. For any of the various representative embodiments, in response to the thread return count in the thread return register being decremented to zero, the core control circuitry may be used to change the pause state of the corresponding thread identifier to an active state for subsequent execution of a thread return instruction to complete the created shred or thread.

[0167] For any of the various representative embodiments, the processor core may be used to execute a wait or non-wait shred join instruction. For any of the various representative embodiments, the processor core may be used to execute a shred all join instruction.

[0168] For any of the various representative embodiments, the processor core can be used to execute a non-cached read or load instruction to specify a general purpose register for storing data received from a memory. For any of the various representative embodiments, the processor core can be used to execute a non-cached write or store instruction to specify data in a general purpose register for storage in a memory.

[0169] For any of the various representative embodiments, the core control circuitry may be operable to assign a transaction identifier to any load or store request to memory and to associate the transaction identifier with a thread identifier.

[0170] For any of the various representative embodiments, the processor core can be used to execute a first thread priority instruction to assign a first priority to an execution thread having a corresponding thread identifier. For any of the various representative embodiments, the processor core can be used to execute a second thread priority instruction to assign a second priority to an execution thread having a corresponding thread identifier.

[0171] For any of the various representative embodiments, the processor core can be used to execute a custom atomic return instruction to complete the execution thread of the custom atomic operation. For any of the various representative embodiments, in conjunction with a memory controller, the processor core can be used to perform floating point atomic memory operations. For any of the various representative embodiments, in conjunction with a memory controller, the processor core can be used to perform custom atomic memory operations.

[0172] A method for self-scheduling execution of instructions is also disclosed, wherein a representative method embodiment includes: receiving a work descriptor data packet; and automatically scheduling instructions for execution in response to the received work descriptor data packet.

[0173] Another method of self-scheduled execution of instructions is also disclosed, wherein a representative method embodiment includes: receiving an event data packet; and automatically scheduling instructions for execution in response to the received event data packet.

[0174] A method is also disclosed in which a first processing element generates multiple execution threads for execution by a second processing element, wherein a representative method embodiment includes: executing a shred creation instruction; and in response to the execution of the shred creation instruction, generating one or more work descriptor data packets to the second processing element to execute the multiple execution threads.

[0175] Also disclosed is a method for a first processing element to generate multiple execution threads for execution by a second processing element, wherein a representative method embodiment includes: executing a fiber creation instruction; and in response to executing the fiber creation instruction, reserving a predetermined amount of memory space in a thread control memory to store return variables, and generating one or more work descriptor data packets to the second processing element to execute the multiple execution threads.

[0176] A method for self-scheduling execution of instructions is also disclosed, wherein a representative method embodiment includes: receiving a work descriptor data packet; decoding the received work descriptor data packet into an execution thread having an initial program counter and any received independent variables; assigning an available thread identifier to the execution thread; automatically queuing the thread identifier to execute the execution thread; and periodically selecting the thread identifier to execute the execution thread.

[0177] Another method for self-scheduled execution of instructions is also disclosed, in which a representative method embodiment includes: receiving a work descriptor data packet; decoding the received work descriptor data packet into an execution thread having an initial program counter and any received independent variables; assigning an available thread identifier to the execution thread; when the thread identifier has a valid state, automatically queuing the thread identifier to execute the execution thread; and periodically selecting the thread identifier to execute instructions of the execution thread for a duration that the valid state remains unchanged until the execution thread is completed.

[0178] Another method for self-scheduled execution of instructions is also disclosed, in which a representative method embodiment includes: receiving a work descriptor data packet; decoding the received work descriptor data packet into an execution thread having an initial program count and any received independent variables; assigning an available thread identifier to the execution thread; when the thread identifier has a valid state, automatically queuing the thread identifier in an execution queue to execute the execution thread; and periodically selecting the thread identifier to execute instructions of the execution thread for a duration that the valid state remains unchanged; and when the thread identifier has a paused state, pausing thread execution by not returning the thread identifier to the execution queue.

[0179] Another method for self-scheduling execution of instructions is also disclosed, in which a representative method embodiment includes: receiving a work descriptor data packet; decoding the received work descriptor data packet into an execution thread having an initial program count and any received independent variables; storing the initial program count and any received independent variables in a thread control memory; assigning an available thread identifier to the execution thread; when the thread identifier has a valid state, automatically queuing the thread identifier for execution of the execution thread; using the thread identifier as an index to access the thread control memory to select the initial program count of the execution thread; and periodically selecting the thread identifier to execute instructions of the execution thread for a duration that the valid state remains unchanged until the execution thread is completed.

[0180] For any of the various representative embodiments, the method may further include: receiving an event data packet; and decoding the received event data packet into an event identifier and any received arguments.

[0181] For any of the various representative embodiments, the method may further include assigning an initial valid state to the execution thread.

[0182] For any of the various representative embodiments, the method may further include: in response to executing a memory load instruction, assigning a pause state to the execution thread. For any of the various representative embodiments, the method may further include: in response to executing a memory store instruction, assigning a pause state to the execution thread.

[0183] For any of the various representative embodiments, the method may further include: in response to executing a return instruction, terminating execution of the selected thread. For any of the various representative embodiments, the method may further include: in response to executing a return instruction, returning the corresponding thread identifier of the selected thread to the thread identifier pool. For any of the various representative embodiments, the method may further include: in response to executing a return instruction, clearing a register of a thread control memory indexed by the corresponding thread identifier of the selected thread. For any of the various representative embodiments, the method may further include: in response to executing a return instruction, generating a return work descriptor packet.

[0184] For any of the various representative embodiments, the method may further include: generating a point-to-point event data message. For any of the various representative embodiments, the method may further include: generating a broadcast event data message.

[0185] For any of the various representative embodiments, the method may further include: using an event mask to respond to a received event data packet. For any of the various representative embodiments, the method may further include: determining an event number corresponding to the received event data packet. For any of the various representative embodiments, the method may further include: changing the state of a thread identifier from suspended to valid in response to the received event data packet to resume execution of the corresponding execution thread. For any of the various representative embodiments, the method may further include: changing the state of a thread identifier from suspended to valid in response to the event number of the received event data packet to resume execution of the corresponding execution thread.

[0186] For any of the various representative embodiments, the method may further include: continuously selecting the next thread identifier from the execution queue to execute a single instruction of the corresponding execution thread. For any of the various representative embodiments, the method may further include: performing a round-robin selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively for executing a single instruction of the corresponding execution thread. For any of the various representative embodiments, the method may further include: performing a round-robin selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively for executing a single instruction of the corresponding execution thread, until the execution thread is completed. For any of the various representative embodiments, the method may further include: performing a barrel selection of the next thread identifier from the execution queue among the multiple thread identifiers, respectively for executing a single instruction of the corresponding execution thread.

[0187] For any of the various representative embodiments, the method may further include: assigning an active state or a suspended state to the thread identifier. For any of the various representative embodiments, the method may further include: assigning a priority state to the thread identifier.

[0188] For any of the various representative embodiments, the method may further include, after executing the corresponding instruction, returning the corresponding thread identifier with the assigned valid state and the assigned priority to the execution queue.

[0189] For any of the various representative embodiments, the method may further include: selecting a thread identifier from a first priority queue at a first frequency and selecting a thread identifier from a second priority queue at a second frequency, the second frequency being lower than the first frequency. For any of the various representative embodiments, the method may further include: determining the second frequency as a skip count starting from selecting the thread identifier from the first priority queue.

[0190] For any of the various representative embodiments, the method may further include: controlling the data path access size. For any of the various representative embodiments, the method may further include: increasing or decreasing the memory load access size in response to the time average usage level. For any of the various representative embodiments, the method may further include: increasing or decreasing the memory storage access size in response to the time average usage level. For any of the various representative embodiments, the method may further include: increasing the size of the memory load access request to correspond to a cache line boundary of the data cache.

[0191] For any of the various representative embodiments, the method may further include: generating one or more system calls to the host processor. For any of the various representative embodiments, the method may further include: modulating the number of system calls within any predetermined time period using a predetermined credit count.

[0192] For any of the various representative embodiments, the method may further include, in response to a request from the host processor, copying and transmitting all data corresponding to the selected thread identifier from the thread control memory to monitor the thread state.

[0193] For any of the various representative embodiments, the method may further include: executing a shred creation instruction to generate one or more commands, the one or more commands being one or more call work descriptor packets to generate another processor core or a hybrid thread fabric circuit. For any of the various representative embodiments, the method may further include: in response to executing a shred creation instruction, reserving a predetermined amount of memory space to store any return arguments. For any of the various representative embodiments, the method may further include: in response to generating one or more call work descriptor packets, storing a thread return count in the thread return register. For any of the various representative embodiments, the method may further include: in response to receiving a return data packet, decrementing the thread return count stored in the thread return register. For any of the various representative embodiments, the method may further include: in response to the thread return count in the thread return register being decremented to zero, changing the pause state of the corresponding thread identifier to a valid state for subsequent execution of a thread return instruction to complete the created shred or thread.

[0194] For any one of the various representative embodiments, the method may further include: executing a waiting or non-waiting fiber join instruction. For any one of the various representative embodiments, the method may further include: executing a fiber all join instruction.

[0195] For any of the various representative embodiments, the method may further include executing a non-cached load or load instruction to specify a general purpose register for storing data received from the memory.

[0196] For any of the various representative embodiments, the method may further include executing a non-cached write or store instruction to specify data in a general purpose register for storage in the memory.

[0197] For any of the various representative embodiments, the method may further include assigning a transaction identifier to any load or store request to memory and correlating the transaction identifier with a thread identifier.

[0198] For any of the various representative embodiments, the method may further include: executing a first thread priority instruction to assign a first priority to an execution thread having a corresponding thread identifier. For any of the various representative embodiments, the method may further include: executing a second thread priority instruction to assign a second priority to an execution thread having a corresponding thread identifier.

[0199] For any of the various representative embodiments, the method may further include: executing a custom atomic return instruction to complete the execution thread of the custom atomic operation.

[0200] For any of the various representative embodiments, the method may further include performing a floating point atomic memory operation.

[0201] For any of the various representative embodiments, the method may further include performing a custom atomic memory operation.

[0202] Numerous other advantages and features of the present invention will become apparent from the following detailed description of the invention and its embodiments, the claims and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0203] The objects, features and advantages of the present invention will be more readily understood when reference is made to the following disclosure when considered in conjunction with the accompanying drawings in which like reference numerals are used to indicate the same components in the various figures and reference numerals with letter designations are used to indicate additional types, examples or variations of selected component embodiments in the various figures, wherein:

[0204] Figure 1 is a block diagram of a representative first embodiment of a hybrid computing system.

[0205] Figure 2 is a block diagram of a representative second embodiment of a hybrid computing system.

[0206] Figure 3 is a block diagram of a representative third embodiment of a hybrid computing system.

[0207] Figure 4 is a block diagram of a representative embodiment of a hybrid thread fabric having configurable computing circuitry coupled to a first interconnect network.

[0208] Figure 5 A high-level block diagram of a portion of a representative embodiment of a hybrid thread fabric circuit group.

[0209] Figure 6 is a high-level block diagram of a second interconnect network within a hybrid thread fabric circuit group.

[0210] Figure 7is a detailed block diagram of a representative embodiment of a hybrid thread fabric circuit group.

[0211] Figure 8 is a detailed block diagram of a representative embodiment of a hybrid thread fabric configurable computing circuit (tile).

[0212] Fig. 9A and 9B (collectively referred to as Fig. 9 ) are detailed block diagrams of representative embodiments of hybrid threaded configurable computing circuits (tiles).

[0213] Fig.10 is a detailed block diagram of a representative embodiment of a memory control circuit for a hybrid thread fabric configurable compute circuit (tile).

[0214] Fig.11 is a detailed block diagram of a representative embodiment of a thread control circuit for a hybrid thread fabric configurable computing circuit (tile).

[0215] Fig.12 A diagram of a representative hybrid thread fabric configurable computing circuit (tile) forming a synchronous domain and a representative asynchronous packet network messaging.

[0216] Fig.13 is a block diagram of a representative embodiment of a memory interface.

[0217] Fig.14 is a block diagram of a representative embodiment of a scheduling interface.

[0218] Fig.15 is a block diagram of a representative embodiment of an optional first network interface.

[0219] Fig.16 is a diagram of representative hybrid thread fabric configurable computing circuits (tiles) forming synchronous domains and representative asynchronous packet network messaging for a group of hybrid thread fabric circuits to perform computations.

[0220] Fig.17A , 17B and 17C (collectively, FIG. 17 ) are performed by a hybrid thread fabric configurable computing circuit (tile) for execution by a hybrid thread fabric circuit group. Fig.16 A flowchart of a representative asynchronous packet network messaging and execution of a computation.

[0221] Fig.18 is a diagram of representative hybrid thread fabric configurable computing circuits (tiles) forming synchronous domains and representative asynchronous packet network messaging for a group of hybrid thread fabric circuits to perform computations.

[0222] Fig.19A and 19B(collectively referred to as FIG. 19 ) is performed by a hybrid thread fabric configurable computing circuit (tile) for execution by a hybrid thread fabric circuit group Fig.18 A flowchart of a representative asynchronous packet network messaging and execution of a computation.

[0223] Fig. 20 is a diagram of representative hybrid thread fabric configurable computing circuits (tiles) forming synchronization domains and representative asynchronous packet network messaging for a group of hybrid thread fabric circuits to execute a computing cycle.

[0224] Fig.21 is performed by a hybrid thread fabric configurable computing circuit (tile) for execution by a hybrid thread fabric circuit group Fig. 20 A flowchart of a representative asynchronous packet network messaging and execution of a loop in the computation.

[0225] Fig. 22 is a block diagram of a representative flow control circuit.

[0226] Fig.23 is a diagram of representative hybrid thread fabric configurable computing circuits (tiles) forming synchronization domains and representative asynchronous packet network messaging and synchronous messaging for a group of hybrid thread fabric circuits to execute a computing cycle.

[0227] Fig.24 is a circuit block diagram of a representative embodiment of a conditional branching circuit system.

[0228] Fig.25 is a high-level block diagram of a representative embodiment of a hybrid threaded processor 300 .

[0229] Fig.26 is a detailed block diagram of a representative embodiment of a thread memory for a hybrid threaded processor.

[0230] Fig. 27 is a detailed block diagram of a representative embodiment of a network responsive memory for a hybrid threaded processor.

[0231] Fig.28 is a detailed block diagram of a representative embodiment of a hybrid threaded processor.

[0232] Fig.29A and 29B (collectively, FIG. 29 ) is a flow chart of a representative embodiment of a method for self-scheduling and thread control for a hybrid threaded processor.

[0233] Fig.30 is a detailed block diagram of a representative embodiment of thread selection control circuitry for a hybrid threaded processor and control logic and thread selection circuitry.

[0234] Fig.31A block diagram of a representative embodiment and representative data packets that are part of a first interconnect network.

[0235] Fig.32 is a detailed block diagram of a representative embodiment of data path control circuitry for a mixed thread processor.

[0236] Fig.33 is a detailed block diagram of a representative embodiment of system call circuitry and host interface circuitry for a hybrid threaded processor.

[0237] Fig.34 is a block diagram of a representative first embodiment of a first interconnection network.

[0238] Fig.35 is a block diagram of a representative second embodiment of the first interconnection network.

[0239] Fig.36 is a block diagram of a representative third embodiment of the first interconnection network.

[0240] Fig.37 A representative virtual address space format supported by the system architecture is shown.

[0241] Fig.38 A representative conversion process for each virtual address format is shown.

[0242] Fig.39 A representative send call example for a hybrid thread is shown.

[0243] Fig.40 A representative send fork example for hybrid threads is shown.

[0244] Fig.41 A representative send delivery example for hybrid threads is shown.

[0245] Fig.42 A representative call chain usage example for hybrid threads is shown. DETAILED DESCRIPTION

[0246] Although the present invention allows for many different forms of embodiments, it is understood that the present disclosure will be regarded as an example of the principles of the present invention and it is not desired to limit the present invention to the specific embodiments shown, and specific exemplary embodiments of the present invention are shown in the drawings and will be described in detail herein. In this regard, before explaining in detail at least one embodiment according to the present invention, it should be understood that the present invention is not limited to the construction details and component arrangements described above and below, shown in the drawings, or described in the examples. The method and apparatus according to the present invention can have other embodiments and can be practiced and implemented in various ways. And, it should be understood that the wording and terminology used herein and the summary contained below are for the purpose of description and should not be regarded as limiting.

[0247] I. Hybrid Computing System 100 and Interconnection Network:

[0248] Figure 1 , 2 3 are block diagrams of representative first, second, and third embodiments of hybrid computing systems 100A, 100B, 100C (collectively referred to as system 100). Figure 4 is a block diagram of a representative embodiment of a hybrid thread fabric ("HTF") 200 having configurable computing circuitry coupled to a first interconnect network 150 (also referred to simply as "NOC," which stands for "network-on-a-chip"). Figure 5 is a high-level block diagram of a portion of a representative embodiment of a hybrid thread fabric circuit group 205 having a second interconnect network 250. Figure 6 is a high-level block diagram of a second interconnect network within hybrid thread fabric group 205 . Figure 7 is a detailed block diagram of a representative embodiment of a hybrid thread fabric (HTF) group 205 .

[0249] Figure 8 is a high-level block diagram of a representative embodiment of a hybrid thread fabric configurable computing circuit 210 referred to as a “tile” 210 . Fig. 9 is a detailed block diagram of a representative embodiment of a hybrid thread fabric configurable computing circuit 210A referred to as a “tile” 210A as a specific representative example of a tile 210. Unless specifically referred to as tile 210A, references to tile 210 shall refer to tile 210 and tile 210A individually and collectively. The hybrid thread fabric configurable computing circuit 210 is referred to as a “tile” 210 because, in a representative embodiment, all such hybrid thread fabric configurable computing circuits 210 are identical to each other and may be arranged and connected in any order, i.e., each hybrid thread fabric configurable computing circuit 210 may be “tiled” to form a hybrid thread fabric group 205.

[0250] refer to Figures 1 to 9, the hybrid computing system 100 includes a hybrid thread processor ("HTP") 300, hereinafter referred to as Figures 25 to 33 Discussed in more detail, it is coupled to one or more hybrid thread fabric ("HTF") circuits 200 through a first interconnect network 150. It should be understood that as used herein, the term "fabric" refers to and includes an array of computing circuits, in this case, reconfigurable computing circuits. Figure 1 , 2 3 show different arrangements of systems 100A, 100B, and 100C that include additional components that form relatively larger and smaller systems 100, all of which are within the scope of the present disclosure. Figure 1 and 2 As shown in , for example but not limited to, the hybrid computing systems 100A, 100B may also optionally include a memory controller 120 in various combinations as shown, which may be coupled to a memory 125 (which may also be a separate integrated circuit), any of various communication interfaces 130 (e.g., a PCIe communication interface), one or more host processors 110, and a host interface ("HIF") 115. As shown in FIG. 1 , each of which may be an arrangement suitable for a "chiplet" configuration on a common substrate 101. Figure 3 As shown, for example but without limitation, with or without these other components, the hybrid computing system 100C may also optionally include a communication interface 130. These arrangements are all within the scope of the present disclosure and are collectively referred to herein as the system 100. Any of these hybrid computing systems 100 may also be viewed as a "node" operating under a single operating system ("OS"), and may also be coupled to other such local and remote nodes.

[0251] Each node of system 100 runs a separate operating system (OS) instance, thereby controlling the resources of the associated node. Applications across multiple nodes are executed by coordinating multiple OS instances of the nodes spanned. The process associated with the application running on each node has an address space, which provides access to node private memory and global shared memory distributed across nodes. Each OS instance contains a driver for managing local node resources. The shared address space of the application is jointly managed by a group of drivers running on the node. The shared address space is assigned a global space ID (GSID). The number of global spaces that are active at any given time is expected to be relatively small. GSID is set to 8 bits wide.

[0252] As used herein, hybrid threading refers to the ability to spawn multiple computational filaments and threads across different heterogeneous types of processing circuitry (hardware), for example, across HTF circuitry 200 (as a reconfigurable computing fabric) and across processors, such as HTP 300 or another type of RISC-V processor. Hybrid threading also refers to a programming language / style in which a worker thread transitions from one computing element to the next to move computation to where the data is located, which transition is also implemented in a representative embodiment. The host processor 110 is typically a multi-core processor that can be embedded within the hybrid computing system 100 or can be an external host processor coupled to the hybrid computing system 100 via a communication interface 130 (e.g., a PCIe-based interface). These processors, such as 300 and the one or more host processors 110 are described in more detail below.

[0253] The memory controller 120 may be implemented as known, or become known in the electronic field. Alternatively, in a representative embodiment, the memory controller 120 may be implemented as described in the related application. As described in more detail below, the first memory 125 may also be implemented as known, or become known in the electronic field.

[0254] Also in a representative embodiment, the HTP 300 is a multithreaded processor based on the RISC-V ISA having one or more processor cores 705 with an extended instruction set, as well as one or more core control circuits 710 and one or more second memories 715, which are referred to as core control (or thread control) memories 715, as discussed in more detail below. In general, the HTP 300 provides barrel-style round-robin instantaneous thread switching to maintain a high per-clock instruction rate.

[0255] For purposes herein, the HIF 115 enables the host processor 110 to send work to the HTP 300 and the HTF circuit 200, and enables the HTP 300 to send work to the HTF circuit 200, both as "work descriptor packets" transmitted over the first interconnect network 150. A common mechanism is provided to start and end work on the HTP 300 and the HTF circuit 200: work on the HTP 300 and the HTF circuit 200 is started using a "call" work descriptor packet, and work on the HTP 300 and the circuit 200 is ended using a "return" work descriptor packet. The HIF 115 contains scheduling circuitry and queues (referred to as "scheduling queues" 105) and also provides management functionality for monitoring the load provided to the HTF circuit 200 and / or the HTP 300 and the availability of resources of the HTF circuit 200 and / or the HTP 300. When resources are available on the HTF circuit 200 and / or HTP 300, the scheduling queue 105 determines the resources of the least loaded HTF circuit 200 and / or HTP 300. In the case where multiple HTF circuit groups 205 are loaded with the same or similar work, it selects the HTF circuit group 205 that is currently executing the same core (if possible) (to avoid loading or reloading the core configuration). For example, similar functionality of the HIF 115 may also be included in the HTP 300, especially for arrangements of the system 100 that may not include a separate HIF 115. The functions of other HIFs 115 are described in more detail below. The HIF 115 can be implemented as known, or become known in the electronic field, for example, as one or more state machines with registers (forming FIFOs, queues, etc.).

[0256] The first interconnect network 150 is a packet-based communication network that provides data packet routing between the HTF circuit 200, the hybrid thread processor 300, and other optional components (e.g., the memory controller 120, the communication interface 130, and the host processor 110). For the purposes of this disclosure, the first interconnect network 150 forms part of an asynchronous switch fabric ("AF"), meaning that data packets can be routed along any of a variety of paths, such that arrival of any selected data packet to an addressed destination can occur at any of a number of different times depending on the routing. This is in contrast to the synchronous mesh communication network 275 of the second interconnect network 250, discussed in more detail below.

[0257] Fig.31A diagram of a representative embodiment and representative data packets of a portion of a first interconnect network 150. In a representative embodiment, the first interconnect network 150 includes a network bus structure 152 (a plurality of conductors or lines), wherein a first plurality of network lines 154 are dedicated to addressing (or routing) data packets (158) and are used to set up data paths through various crossbar switches, and a remaining second plurality of network lines 156 are dedicated to transmitting data packets (data payloads, shown as a series or series of "N" data packets 1621-1622) containing operation metadata, arguments, results, etc. through the path. N ), the path being established by the addressing lines (the first plurality of network lines 154). Two such network bus structures 152 are typically provided as channels into and out of each computing resource, a first channel for receiving data and a second channel for transmitting data. A single first addressed (or routed) data packet (shown as addressed (or routed) data packet 1581) may be used to establish a route to a first designated destination and may be followed (generally after a number of clock cycles to allow switches to be set) by one or more data packets 162 to be transmitted to the first designated destination, up to a predetermined number of data packets 162 (e.g., up to N data packets). While the predetermined number of data packets 162 are being routed, another second addressed (or routed) data packet (shown as addressed (or routed) data packet 1582) may be transmitted and utilized to establish a route to this second designated destination for other subsequent one or more data packets 162 to be destined for the second designated destination (shown as data packet 162 N+1 ).

[0258] Figures 34 to 36 1 is a block diagram of a representative first, second, and third embodiment of a first interconnection network 150, showing various topologies of the first interconnection network 150 as examples, such as first interconnection networks 150A, 150B, 150C (collectively referred to herein as first interconnection network 150). The first interconnection network 150 is generally embodied as a plurality of crossbars 905, 910 having a folded clos configuration, shown as a central (or center) crossbar 905 coupled to peripheral (or edge) crossbars 910 via queues 925, wherein the peripheral crossbars 910 are in turn coupled (also via queues 925) to a mesh network 920 that provides, for example, a plurality of additional direct connections 915 between chiplets, e.g., up, down, left, right, depending on the embodiment of the system 100. Many network topologies are available and within the scope of the present disclosure, such as Fig.35 and 36 As shown in , the first interconnection network 150B, 150C further includes an endpoint crossbar switch 930.

[0259] Routing through any of the various first interconnection networks 150 includes load balancing, such that packets moving from the peripheral (or edge) crossbar switches 910 toward the central (or hub) crossbar switch 905 can be routed through any available crossbar switch of the central (or hub) crossbar switch 905, and packets moving from the endpoint crossbar switches 930 toward the peripheral (or edge) crossbar switches 910 can be routed through any available peripheral (or edge) crossbar switch 910, such as using round-robin distribution or random distribution to any available switches 905, 910. For routing from the central (or hub) crossbar 905 through the peripheral (or edge) crossbar 910 and / or the endpoint crossbar 930 to any endpoint (or destination) (which may be HTF200 or HTP300, memory controller 120, host processor 110, etc.), an identifier or address (e.g., virtual) of the endpoint (or destination) is utilized, which is typically an address or identifier having five fields: (a) a first (or horizontal) identifier; (b) a second (or vertical) identifier; (c) a third edge identifier; (d) a fourth group identifier; and (e) a fifth endpoint identifier. The first (or horizontal) identifier and the second (or vertical) identifier are used for routing to the correct destination hub, the edge identifier is used for routing to an edge (of the four available edges) of a selected chip or chiplet, the group identifier is used for routing to a selected communication interface that may be at a selected edge, and the endpoint identifier is used for any additional routing, such as through the endpoint crossbar 930 or mesh network 920. To save power, any of the central (or center) crossbar switches 905, the peripheral (or edge) crossbar switches 910, and the endpoint crossbar switches 930 may be power gated or clock gated so that the respective switches are turned off when the routing requirements may be lower and the required capacity may be less, and the respective switches are turned on when the routing requirements may be higher and the required capacity may be greater. Fig.30 Additional aspects of the first interconnection network 150 are discussed in greater detail.

[0260] The packets of the first interconnect network 150 consist of a fixed universal packet header plus a variable size packet payload. Each packet requires a single packet header, and the single packet header is used to route the packet from a source component to a destination component within the system 100. The size of the payload may vary depending on the type of request or response packet. Table 1 shows the information contained in the universal header of the packets of the first interconnect network 150, Table 2 shows the information contained in the read request packet of the first interconnect network 150, and Table 3 shows the information contained in the read response packet of the first interconnect network 150 for a 16B read with an 8B flit size.

[0261] Table 1:

[0262] Generic packet header of the first interconnection network 150

[0263]

[0264] Table 2:

[0265] The read request packet of the first interconnection network 150

[0266]

[0267] Table 3:

[0268] 16B read response packet of the first interconnect network 150 (with 8B flits)

[0269]

[0270] The HTF circuit 200 generally includes a plurality of HTF circuit groups 205, each of which is coupled to the first interconnection network 150 for data packet communication. Each HTF circuit group 205 can operate independently of each of the other HTF circuit groups 205. Each HTF circuit group 205 includes an array of a plurality of HTF reconfigurable computing circuits 210, which are equally referred to herein as "tiles" 210, and a second interconnection network 250. The tiles 210 are embedded in or otherwise coupled to the second interconnection network 250, which includes two different types of networks discussed in more detail below. In a representative embodiment, each HTF circuit group 205 also includes a memory interface 215, an optional first network interface 220 (which provides an interface for coupling to the first interconnection network 150), and an HTF scheduling interface 225. Each memory interface 215, HTF scheduling interface 225, and optional first network interface 220 can be implemented using any appropriate circuit system, such as one or more state machine circuits, to perform the functionality described in more detail below.

[0271] The HTP 300 is a barrel multithreaded processor designed to perform well in applications with a high degree of parallelism acting on sparse data sets (i.e., applications with a minimal degree of data reuse). The HTP 300 is based on an open source RISC-V processor and executes in user mode. The HTP 300 includes more RISC-V user mode instructions, plus a set of custom instructions that allow thread management, sending and receiving events to / from other HTPs 300, HTF circuits 200, and one or more host processors 110, as well as instructions for efficient access to memory 125.

[0272] Sparse data sets typically produce poor cache hit rates. HTP 300, with many threads per HTP processor core 705, allows some threads to wait for responses from memory 125 while other threads continue to execute instructions. This computing style allows memory 125 to have latency and allows for high persistence of executed instructions per clock. The event mechanism allows threads from many HTP cores 705 to communicate in an efficient manner. A thread pauses executing instructions while waiting for a response or event message from memory 125, allowing other threads to use instruction execution resources. HTP 300 is self-scheduling and event-driven, allowing threads to efficiently create, destroy, and communicate with other threads. Figures 25 to 33 The HTP 300 is discussed in more detail.

[0273] II. Mixed threads:

[0274] The hybrid thread of system 100 allows computing tasks to be transformed from host processor 110 to HTP 300 and / or HTF 200 on one node, and then to HTP 300 or HTF 200 on different nodes that may exist. During the transition work from one computing element to another computing element of this whole sequence, all aspects are processed completely in user space. In addition, the transformation of computing tasks from HTP 300 to another HTP 300 or HTF 200 can be carried out by executing a single HTP 300 instruction and not with reference to memory 125. This extremely light thread management mechanism allows application programs to quickly create a large number of threads to process the parallelizable core of application programs, and then rejoin when the core is completed. The computing elements of HTP 300 and HTF 200 process computing tasks (RISC-V instruction execution is compared to data flow) in extremely different ways, but they all support hybrid thread methods, and can represent application programs to interact seamlessly.

[0275] The work descriptor packet is used to start work on the HTP 300 and HTF circuit 200. Receipt of a work descriptor packet by the HTP 300 and / or HTF 200 constitutes an "event" in the HTP 300 and / or HTF 200 that will trigger hardware-based self-scheduling and subsequent execution of associated functions or work (referred to as an execution thread) without further access to main memory 125. Once a thread is started, it executes instructions until a thread return instruction is executed (by the HTP 300) or a return message is generated (by the HTF 200). The thread return instruction sends a return work descriptor packet to the original caller.

[0276] For purposes of this disclosure, at a high or general level, a work descriptor packet includes, for example but not limited to: (1) information needed to route the work descriptor packet to its destination; (2) initializing the thread context of the HTP 300 and / or HTF circuit 200, such as a program counter (e.g., as a 64-bit address) so that the stored instructions (stored in Fig.28 The instruction cache 740 or Fig. 9 100 ); (3) obtain any arguments or addresses in the first memory 125 that will be used for the execution of the thread; and (4) a return address for transmitting the result of the calculation. Although "work descriptor packets" are referred to in the singular as mentioned above, such work descriptor packets are actually divided into multiple packets for transmission through the first interconnect network 150, namely, the addressing (or routing) data packet 158 ​​and one or more data packets 162. Depending on the operation or instruction to be executed, there may be many different kinds of work descriptor packets, many examples of which are shown and discussed below. The instruction cache 740 and / or the first instruction RAM 315 have been populated before any execution, such as in the initial system 100 configuration. In general, for the HTF circuit 200, the work descriptor call packet will also have similar information, such as addressing, payload (e.g., configuration, argument values, etc.), call identifier (ID), and return information (e.g., for providing results to the endpoint), as well as other information, as discussed in more detail below.

[0277] Under high or general level, and as discussed in more detail below, host processor 110 or HTP 300 can initiate thread on another HTP 300 or HTF 200 by sending call work descriptor packet.Call information comprises destination node, the entry instruction address of call, and maximum four 64-bit independent variable values.Each HTP 300 is initialized to have stack and background structure pool.These structures reside in user space.When HTP 300 receives call, it selects stack and background structure from free pool.Then, HTP 300 utilizes call information and stack structure address to initialize new thread.At this moment, initialized thread is in active thread queue to start execution.The step of initiating thread on HTP 300 can be implemented as hardware state machine (relative to execution instruction) to maximize thread creation processing amount.There is similar hardware-based method for initiating work on HTF 200, as discussed below equally.

[0278] Once the thread is in the active thread queue on HTP 300, it will be selected to execute the instruction. Eventually, the thread will complete its computing task. At this point, HTP 300 will send the return message back to the calling processor by executing a single custom RISC-V send return instruction. Sending return is similar to sending a call. The instruction releases the stack and background structure, and sends up to four 64-bit parameters back to the calling processor. Calling HTP 300 to perform the receive return custom RISC-V instruction to receive the return. The HTP calling processor 300 copies the return variable into the ISA visible register for access by the execution thread. The original sending call contains the information required for the HTP 300 called to know its return sending position. The information is composed of the source HTP 300 and the thread ID of the calling thread.

[0279] The HTP 300 has three options for sending work tasks to another HTP 300 or HTF 200 computing element. These options are to perform a call, fork, or transfer, such as Figures 39 to 41 As shown in:

[0280] (a) A call (901) initiates a computing task on a remote HTP 300 or HTF 200 and suspends other instruction execution until a return (902) is received. The return information passed to the remote computing element is used by the remote computing task when it has completed and is ready to return.

[0281] (b) Forking (903) initiates a computing task on a remote HTP 300 or HTF 200 and continues to execute instructions. A single thread can initiate many computing tasks on a remote HTP 300 or HTF 200 computing element using the send fork mechanism. The original thread must wait until it has received a return (902) from each forked thread before sending its return. The return information passed to the remote computing element is used by the remote computing task when it has completed and is ready to return.

[0282] (c) transfer (904) initiates the computing task on the remote HTP 300 or HTF 200 and terminates the original thread. The return (902) information transferred to the remote computing element is the return information from the call, fork or transfer of the current thread. The sending fork (903) contains the information returned to the thread that performs the delivery fork instruction on the first HTP 300. The sending transfer (Xfer) performed on the second HTP 300 contains the information returned to the thread that performs the sending fork instruction on the first HTP 300. Basically, the sending transfer only transmits the return information provided when initiating. Finally, the thread that performs the sending return on the third or fourth HTP 300 uses the return information it receives to determine the destination of return.

[0283] Despite Figures 39 to 41 , the calling, forking and transferring for communication between HTP 300 are shown, but HTP 300 can also send similar work descriptor packets to HTF 200, such as Fig.42 As shown in the call chain example.

[0284] Threads can access private memory on local nodes and shared memory on local and remote nodes by referencing virtual address space. HTP 300 threads will mainly use the provided inbound call arguments and private memory stack to manipulate data structures stored in shared memory. Similarly, HTF 200 threads will use inbound call arguments and fabric internal memory to manipulate data structures stored in shared memory.

[0285] When a thread is created, a maximum of four call arguments and a stack are usually provided to the HTP 300 thread. The arguments are located in registers (memory 715 discussed below), and the stack is located in the node private memory. By using a calling method based on a standard stack frame, the thread will usually use a stack for thread private variables and HTP 300 local calls. The HTP 300 thread also accesses the entire partitioned global memory of the application. It is expected that the application data structure is mainly allocated from the partitioned global address space to allow all node computing elements to participate in the calculation with direct load / store access.

[0286] Each HTP 300 thread has a background block that is provided when the thread is initiated. The background block provides a location in the memory 125 where the thread background can be saved when needed. Usually, this is done for debugging, and if there are more threads created than the hardware resources available to process them, this situation will also occur. The user can limit the number of active threads to prevent the thread from constantly writing state to its memory-based background structure (unless it is for visibility debugging that may be performed).

[0287] Typically, when a thread is created, a maximum of four calling arguments are also provided to the HTF 200 thread. The arguments are in a fabric-internal memory structure for dataflow computation access. The fabric-internal memory is also used for thread-private variables. The HTF 200 thread can access the entire partitioned global memory of the application.

[0288] The computing elements of system 100 have different capabilities that are each uniquely suited for a specific computing task. When executing a single thread, the host processor 110 (inside or outside the device) is designed for the lowest possible latency. The HTP 300 is optimized for executing a larger set of threads in parallel to provide the highest execution throughput. The HTF 200 is optimized for the extremely high performance of data stream style cores. The computing elements have been constructed to extremely efficiently pass computing tasks from one element to the next to execute the computing core as efficiently as possible. Fig.42 A representative call chain usage example for hybrid threads utilizing each compute element is shown, and a traditional hierarchical usage model similar to simulation is shown.High throughput data intensive applications may use a different usage model towards several independent streams.

[0289] All applications begin executing on a host processor 110 (internal or external). The host processor 110 will typically make a set of nested calls as it decides to take appropriate action based on input parameters. Eventually, the application reaches the computation phase of the program. The computation phase may be best suited for execution on the host processor 110, or may be suitable for accelerated execution by calling HTP 300 and / or HTF 200 computational elements. Fig.42 The host processor 110 is shown to execute multiple calls (901) to the HTP 300. Each HTP 300 will usually fork several threads (903) to perform its computing tasks. Each thread can perform calculations (integer and floating point), access memory (read, write), and pass thread execution to another HTP 300 or HTF 200 (on the same node or remote node), such as by calling (901) to the HTF 200. The ability to move the execution of the core to another node can be advantageous because it allows computing tasks to be performed near the memory that needs to be accessed. Performing work on appropriate node devices can greatly reduce inter-node memory traffic and speed up the execution of applications. It should be noted that in a representative embodiment, the HTF 200 does not perform calls to the host processor 110 or HTP 300, and only performs calls to the HTF 200 in special cases (that is, when limited to compile time).

[0290] The host processor 110 can initiate threads on a HTP 300 or HTF 200 on a local node. For an external host processor 110, a local node is a node connected to the host via a PCIe or other communication interface 130. For an internal host processor 110, a local node is a node in which the host processor 110 is embedded. A description of how a host processor 110 on an HTP core 705 initiates work is presented. Work on an HTF 200 is initiated using a similar method.

[0291] The host processor 110 initiates the work on the HTP core 705 by writing the work descriptor to the dispatch queue 105 of the host interface (HIF) 115. The dispatch queue 105 is located in a private memory so that the host processor 110 writes to the cached data to optimize the performance of the host processor 110. The entry size in the dispatch queue 105 is usually 64 bytes, so that there is enough space for remote call information and up to four 64-bit parameters. It should be noted that in a representative embodiment, there is one dispatch queue 105 per application per node. For a 64-node system, there will be 64 operating system instances. Each OS instance will have one or more processes, and each process has its own dispatch queue 105.

[0292] HIF 115 monitors the write pointer of dispatch queue 105 to determine the time to insert an entry. When there is a new entry, HIF 115 verifies that there is space for a 64-byte return message in the return queue of host processor 110. This check is needed to ensure that the state of the completed call will not be discarded because of the lack of return queue space. Assuming that there is return space, HIF 115 reads the call entry from dispatch queue 105 and forwards it to HTP 300 or HTF 200 as a work descriptor packet. Then, HTP 300 or HTF 200 processes the work descriptor packet, as discussed in more detail below, and generates a return packet.

[0293] The entire process of the host processor 110 starting a new thread on the HTP 300 or HTF 200 requires temporary storage of call information through the dispatch queue 105 (64 bytes are written to the queue and 64 bytes are read from the queue), but there is no other access to the DRAM memory. Temporary storage of call information through the dispatch queue 105 provides the required back pressure mechanism. If the dispatch queue 105 becomes full, the host processor 110 will pause until progress is made and an entry in the dispatch queue 105 becomes available.

[0294] The return packet is transmitted to the HIF 115 via the first interconnect network 150. The HIF 115 writes the return packet to an available return queue entry. The host processor 110 will typically periodically poll the return queue to complete the call and obtain the status of any return. It should be noted that the return queue is accessed in FIFO order. If the return must be matched to a specific call, then the runtime library can be used to perform this sorting. For many applications, it is sufficient to know that all returns have been received and the next stage of the application can be started.

[0295] III. Hybrid Thread Fabric 200:

[0296] As an overview, the HTF circuit 200 is a coarse-grained reconfigurable computing fabric that includes interconnected computing tiles 210. The tiles 210 are interconnected with a synchronization fabric called a synchronization mesh communication network 275, allowing data to pass from one tile 210 to another tile 210 without queuing. This synchronization mesh communication network 275 allows many tiles 210 to be pipelined together to produce a continuous data flow through arithmetic operations, and each such pipeline of tiles 210 connected by the synchronization mesh communication network 275 for executing one or more computing threads is referred to herein as a "synchronization domain", which may have series connections, parallel connections, and possibly branched connections. The first tile 210 of a synchronization domain is referred to herein as a "base" tile 210.

[0297] The tiles 210 are also interconnected with an asynchronous fabric known as an asynchronous packet network 265, allowing synchronous domains of computation to be bridged through asynchronous operations, wherein in a representative embodiment, all packets on the asynchronous packet network 265 can be transmitted in a single clock cycle. These asynchronous operations include initiating synchronous domain operations, passing data from one synchronous domain to another, accessing system memory 125 (reading and writing), and executing branch and loop constructs. Together, the synchronous and asynchronous fabrics allow the tiles 210 to efficiently execute high-level language constructs. The asynchronous packet network 265 differs from the first interconnect network 150 in many ways, including, for example, but not limited to, requiring less addressing, being a single channel, utilizing depth-based back pressure for queuing, and utilizing packed data operands, such as having a 128-bit data path. It should be noted that, also for example, but not limited to, the internal data paths of the individual tiles 210 are also 128 bits. For example, but not limited to, instances of synchronous domains and instances of synchronous domains that communicate with each other through the asynchronous packet network 265 are in Fig.16 , 18 , as shown in 20.

[0298] In a representative embodiment, in most cases, thread (e.g., core) execution and control signaling are separated between the two different networks, where thread execution is performed using the synchronous mesh communication network 275 to form multiple synchronization domains for each tile 210, and control signaling is performed using message passing packets transmitted between the various tiles 210 through the asynchronous packet network 265. For example, the plurality of configurable circuits are used to form multiple synchronization domains using the synchronous mesh communication network 275 to perform multiple calculations, and the plurality of configurable circuits are further used to generate and transmit multiple control messages through the asynchronous packet network 265, wherein the multiple control messages include (for example but not limited to) one or more completion messages and continue messages.

[0299] In a representative embodiment, the second interconnection network 250 generally includes two different types of networks, each type of network providing data communication between tiles 210, a first asynchronous packet network 265 and a second synchronous mesh communication network 275 overlaid or combined therewith, such as Figure 6 and 7 . The asynchronous packet network 265 includes: a plurality of AF switches 260, which are typically implemented as crossbar switches (which may or may not additionally or optionally have (for example but not limited to) a Clos or folded Clos configuration); and a plurality of communication lines (or wires) 280, 285, which connect the AF switches 260 to the tiles 210, thereby providing data packet communication between the tiles 210 and other illustrated components discussed below. The synchronous mesh communication network 275 provides a plurality of direct (i.e., switchless, point-to-point) connections between tiles 210 via communication lines (or wires) 270, which may be temporarily stored by registers at the inputs and outputs of the tiles 210, but in other cases no queuing is required between the tiles 210, and no data packets need to be formed. (In Figure 6 , in order to better illustrate the overlay of the two networks, its tile 210 is embedded in the second interconnected network 250, the tile 210 is represented as a vertex of the synchronous mesh communication network 275, and the AF switch 260 is shown as "Xs", as indicated. )

[0300] refer to Figure 8 , tile 210 includes one or more configurable computing circuits 155, control circuitry 145, one or more memories 325, configuration memory (e.g., RAM) 160, synchronous network input 135 (coupled to synchronous mesh communication network 275), synchronous network output 170 (also coupled to synchronous mesh communication network 275), asynchronous (packet) network input 140 (coupled to asynchronous packet network 265), and asynchronous (packet) network output 165 (also coupled to asynchronous packet network 265). Each of these various components is shown coupled to each other via buses 180, 185, in various combinations, as shown. Those skilled in the art of electronics will recognize that fewer or more components may be included in tile 210, as well as any of the various coupling combinations, all of which are equally regarded and considered to be within the scope of the present disclosure.

[0301] Representative examples of each of these various components are referenced below. Fig. 9305 and 310. For example, in a representative embodiment, the one or more configurable computation circuits 155 are embodied as multiplication and shift operation circuits ("MS Op") 305 and arithmetic, logic, and bitwise operation circuits ("ALB Op") 310, and have associated configuration capabilities, such as (for example but not limited to) through intermediate multiplexers 365 and associated registers, such as register 312. Also in a representative embodiment, the one or more configurable computation circuits 155 may include (again for example but not limited to) a write mask generator 375 and conditional (branch) logic circuitry 370. Also in a representative embodiment, the control circuitry 145 may include (for example but not limited to) memory control circuitry 330, thread control circuitry 335, and control registers 340, such as those shown for tile 210A. Continuing with the example, the synchronous network input 135 may include an input register 350 and an input multiplexer 355, the synchronous network output 170 may include an output register 380 and an output multiplexer 395, the asynchronous (packet) network input 140 may include an AF input queue 360, and the asynchronous (packet) network output 165 may include an AF output queue 390, and may also include or share an AF message state machine 345.

[0302] Notably, as discussed in more detail below, the configuration memory (e.g., RAM) 160 includes a configuration circuit system (e.g., a configuration memory multiplexer 372) and two different configuration memories that perform different configuration functions, namely, a first instruction RAM 315 (which is used to configure the internal data path of the tile 210) and a second instruction and instruction index memory (RAM) 320, referred to herein as a "spoke" RAM 320 (which is used for multiple purposes, including configuring portions of the tile 210 independent of the current instruction, selecting the current instruction and the instruction for the next tile 210, and selecting a master synchronization input, etc., all of which are discussed in more detail below).

[0303] like Figure 8 and Fig. 9As shown in , the communication lines (or wires) 270 are shown as communication lines (or wires) 270A and 270B, such that communication line (or wire) 270A is an "input" (input communication line (or wire)) that feeds data into input register 350, and communication line (or wire) 270B is an "output" (output communication line (or wire)) that moves data out of output register 380. In a representative embodiment, there are multiple sets or buses of communication lines (or wires) 270 to and from each tile 210, from and to each adjacent tile (e.g., uplinks, downlinks, left links, and right links of a synchronous mesh communication network 275), as well as from and to other components to distribute various signals, such as data write masks, stop signals, and instructions or instruction indexes provided from one tile 210 to another tile 210, as discussed in more detail below. Alternatively and not separately shown, there may also be various dedicated communication lines, for example for validating a stop signal, such that a stop signal generated from any tile 210 in the HTF circuit cluster 205 may be promptly received by all other tiles 210 in the HTF circuit cluster 205 within a limited number of clock cycles.

[0304] It should be noted that there are various fields in the communication lines of each group or bus that forms the synchronous mesh communication network 275. For example, Figure 8 and Fig. 9 The incoming and outgoing communication lines (or wires) 270A and 270B of the quad bus are shown, respectively. Each of these sets of communication lines (or wires) 270A and 270B can carry different information, such as data, instruction indexes, control information, and thread information (such as TID, XID, loop dependency information, write mask bits for selecting valid bits, etc.). One of the inputs 270A can also be represented as a master synchronization input, including (for example but not limited to) an input (feedback from the output) internal to the tile 210, which can change for each time slice of the tile 210, and can have data of the instruction index of the tile 210 of the synchronization domain, as discussed in more detail below.

[0305] Additionally, as discussed in more detail below, for any input received on the synchronous mesh communication network 275 and stored in one or more input registers 350 (of the synchronous network input 135), each tile 210 may pass the input directly to one or more output registers 380 (of the synchronous network output 170) for output (typically on a single clock cycle) to another location on the synchronous mesh communication network 275, thereby allowing a first tile 210 to communicate with any other third tile 210 within the HTF circuit group 205 through one or more intermediate second tiles 210. This synchronous mesh communication network 275 enables configuration (and reconfiguration) of statically scheduled synchronous pipelines between tiles 210 so that once a thread as a synchronous domain begins along a selected data path between tiles 210, data processing is completed within a fixed period of time. Additionally, the synchronous mesh communication network 275 is used to minimize the number of times memory 125 accesses are required, because memory 125 may not need to be accessed to complete a computation because the thread is executing along the selected data path between tiles 210.

[0306] In the asynchronous packet network 265, each AF switch 260 is typically coupled to a plurality of tiles 210 and one or more other AF switches 260 via a communication line (or wire) 280. In addition, one or more selected AF switches 260 are also coupled (via a communication line (or wire) 285) to one or more of a memory interface 215, an optional first network interface 220, and an HTF scheduling interface 225. As shown, for example and without limitation, the HTF circuit group 205 includes a single HTF scheduling interface 225, two memory interfaces 215, and two optional first network interfaces 220. Also as shown, for example and without limitation, in addition to being coupled to the other AF switches 260, one of the AF switches 260 is further coupled to the memory interface 215, the optional first network interface 220, and the HTF scheduling interface 225, while another of the AF switches 260 is further coupled to the memory interface 215 and the optional first network interface 220.

[0307] In accordance with selected embodiments, each of the memory interface 215 and the HTF scheduling interface 225 may also be directly connected to the first interconnection network 150 and may be capable of receiving, generating, and transmitting data packets through the first interconnection network 150 and the asynchronous packet network 265, the first network interface 220 not being used for or included in the HTF circuit group 205. For example, the HTF scheduling interface 225 may be used by any of the individual tiles 210 to transfer data packets into and out of the first interconnection network 150. In other embodiments, any of the memory interface 215 and the HTF scheduling interface 225 may utilize the first network interface 220 to receive, generate, and transmit data packets through the first interconnection network 150, so as to use the first network interface 220 to provide additional addressing required by the first interconnection network 150.

[0308] Those skilled in the art of electronics will recognize that the connections between the AF switch 260, the tile 210, the optional first network interface 220, the memory interface 215, and the HTF scheduling interface 225 can be made in any selected combination, with any selected number of components and all such component selections and combinations being equally considered and considered to be within the scope of the present disclosure. Those skilled in the art of electronics will recognize that the HTF circuit 200 need not be divided into a plurality of HTF groups 205, but rather that a conceptual division is provided to facilitate description of the various components and connections between the various components. For example, although the HTF circuit group 205 is shown as having sixteen tiles 210, with four AF switches 260, a single HTF scheduling interface 225, two memory interfaces 215, and two first network interfaces 220 (optional), more or fewer of any of these components may be included in the HTF circuit group 205 or the HTF circuit 200, or both, and as described in more detail below, for any selected embodiment, the HTF circuit group 205 may be partitioned to change the number and type of components that may be active (e.g., powered on and running) at any selected time.

[0309] The synchronous mesh communication network 275 allows multiple tiles 210 to be pipelined without the need for data queuing. All tiles 210 participating in the synchronization domain act as a single pipelined data path. The first tile in this series of tiles 210 that forms a single pipelined data path is referred to herein as the "base" tile 210 of the synchronization domain, and such base tile 210 initiates a work thread through the pipelined tile 210. The base tile 210 is responsible for starting work at a predefined pace referred to herein as the "spoke count." As an example, if the spoke count is three, then the base tile 210 can initiate work every two clocks. It should also be noted that the calculations within each tile 210 can also be pipelined so that parts of different instructions can be executed when executing other instructions, such as inputting data for the next operation when executing the current operation.

[0310] Each of the tiles 210, memory interfaces 215, and HTF dispatch interface 225 has a different or unique address (e.g., as a 5-bit wide endpoint ID) as a destination or endpoint within any selected HTF circuit group 205. For example, tile 210 may have endpoint IDs 0-15, memory interfaces 215 (0 and 1) may have endpoint IDs 20 and 21, and HTF dispatch interface 225 may have endpoint ID 18 (with no address provided to the optional first network interface 220 unless it is included in a selected embodiment). The HTF dispatch interface 225 receives data packets containing work to be performed by one or more of the tiles 210, called work descriptor packets, which have been configured for various operations, as discussed in more detail below. The work descriptor packet will have one or more arguments, which are then provided or distributed to the various tiles by the HTF scheduling interface 225 as a packet or message (AF message) transmitted to the selected addressed tile 210 through the AF switch 260. In addition, these arguments will typically include an identification of the area in the tile memory 325 where the data (the arguments) is stored and a thread identifier ("ID") used to track and identify the associated computations and their completion.

[0311] Messages are routed from source endpoints to destination endpoints through the asynchronous packet network 265. Messages from different sources to the same destination take different paths and may encounter different levels of congestion. Messages may arrive in an order different from the order in which they were sent. The message delivery mechanism is built to function properly with non-deterministic arrival order.

[0312] Fig.13 is a block diagram of a representative embodiment of memory interface 215. Fig.13 , each memory interface 215 includes a state machine (and other logic circuitry) 480, one or more registers 485, and optionally one or more queues 474. The state machine 480 receives, generates, and transmits data packets on the asynchronous packet network 265 and the first interconnection network 150. The registers 485 store addressing information, such as the virtual address of the tile 210, the physical address within a given node, and various tables that convert virtual addresses to physical addresses. The optional queues 474 store messages waiting to be transmitted on the first interconnection network 150 and / or the asynchronous packet network 265.

[0313] The memory interface 215 allows the tiles 210 within the HTF circuit group 205 to request the system memory 125, such as DRAM memory. The memory request types supported by the memory interface 215 are load, store, and atomic. From the perspective of the memory interface 215, the load sends the address to the memory 125 and returns the data. The write sends both the address and the data to the memory 125 and returns a completion message. The atomic operation sends the address and the data to the memory 125 and returns the data. It should be noted that atoms (i.e., acquisitions and increments) that only receive data from the memory will be processed by the memory interface 215 as load requests. All memory interface 215 operations require a single 64-bit virtual address. The data size of the operation can vary from a single byte to 64 bytes. Larger data payload sizes can be used more efficiently for the device and can be used; however, the data payload size will be controlled by the ability of the high-level language compiler to detect access to large blocks of data.

[0314] Fig.14 is a block diagram of a representative embodiment of the HTF scheduling interface 225. Fig.14 , the HTF scheduling interface 225 includes a state machine (and other logic circuitry) 470, one or more registers 475, and one or more scheduling queues 472. The state machine 470 receives, generates, and transmits data packets on the asynchronous packet network 265 and the first interconnect network 150. The registers 475 store addressing information, such as the virtual address of the tile 210, and various tables that track the configuration and workload distributed to each tile, as discussed in more detail below. The scheduling queues 472 store messages waiting to be transmitted on the first interconnect network 150 and / or the asynchronous packet network 265.

[0315] As mentioned above, the HTF scheduling interface 225 receives work descriptor call packets (messages), for example, from the host interface 115 through the first interconnect network 150. The work descriptor call packet will have various information, such as a payload (e.g., configuration, argument values, etc.), a call identifier (ID), and return information (e.g., for providing results to the endpoint). The HTF scheduling interface 225 will create: various AF data messages for transmission to the tile 210 through the asynchronous packet network 265, including writing data to the memory 325, the tile 210 will be the base tile 210 (base tile ID, used to transmit AF completion messages); and the thread ID (thread identifier or "TID"), and will send a continue message to the base tile 210 (e.g., with completion and other counts for each TID) so that the base tile 210 can begin execution once it receives enough completion messages. The HTF scheduling interface 225 maintains various tables in registers 475 to track what content has been transmitted to which tile 210 for each thread ID and XID. When the result is generated or the execution is complete, the HTF dispatch interface 225 will receive either an AF data message (indicating completion and with data) or an AF completion message (indicating completion but without data). The HTF dispatch interface 225 also maintains (in registers 475) individual counts of the number of completion and data messages it needs to receive to know that the core execution has completed and will then assemble and transmit a work descriptor return data packet over the first interconnect network 150 with the resulting data, the call ID, return information (e.g., the address of the requester), and release the TID. Additional features and functionality of the HTF dispatch interface 225 are described in more detail below.

[0316] It should be noted that, as mentioned above, multiple levels (or types) of TIDs can be used, and are often used. For example, the HTF scheduling interface 225 allocates a first type of TID from the TID pool and transmits it to the base tile 210. The base tile 210 can in turn allocate additional TIDs, such as second and third types of TIDs, such as (for example but not limited to) for tracking threads for loops and nested loops. These different TIDs can then also be used to access variables that are private to a given loop. For example, a first type of TID can be used for an outer loop, and a second and third type of TID can be used to track iterations of a nested loop.

[0317] It should also be noted that individual memory requests are tracked through the first interconnect network 150 using separate transaction IDs.

[0318] Fig.15 is a block diagram of a representative embodiment of an optional first network interface. Fig.15When included, each first network interface 220 includes a state machine (and other logic circuitry) 490 and one or more registers 495. The state machine 490 receives, generates, and transmits data packets over the asynchronous packet network 265 and the first interconnect network 150. The registers 495 store addressing information, such as the virtual address of the tile 210, the physical address within a given node, and various tables that convert virtual addresses to physical addresses.

[0319] Reference again Fig. 9 , the representative HTF reconfigurable computing circuit (tile) 210A includes at least one multiplication and shift operation circuit ("MS Op") 305, at least one arithmetic, logic and bit operation circuit ("ALB Op") 310, a first instruction RAM 315, a second instruction (and index) RAM 320 referred to herein as a "spoke" RAM 320, one or more tile memory circuits (or memories) 325 (shown as memory "0" 325A, memory "1" 325B to memory "N" 325C, and individually and collectively referred to as memory 325 or tile memory 325). In addition, as previously mentioned, the representative tile 210A also typically includes input registers 350 and output registers 380 coupled to the synchronous mesh communication network 275 via communication lines (or wires) 270A, 270B, and an AF input queue 360 ​​and an AF output queue 390 coupled to the AF switch 260 via the communication lines (or wires) 280 of the asynchronous packet network 265. Control circuitry 145 is also typically included in tile 210, such as memory control circuitry 330, thread control circuitry 335, and control registers 340 shown for tile 210A. To decode and to prepare (assemble) packets received from or provided to asynchronous packet network 265, an AF message state machine 345 is also typically included in tile 210. As part of the configurability of tile 210, one or more multiplexers are typically included, shown as input multiplexer 355, output multiplexer 395, and one or more intermediate multiplexers 365, for selecting inputs to MS Op 305 and ALBOp 310. Optionally, other components may also be included in tile 210, such as conditional (branch) logic circuitry 370, write mask generator 375, and flow control circuitry 385 (which is shown as included as part of AF output queue 390, and may be equivalently provided as a separate flow control circuit). The capabilities of MS Op 305 and ALB Op 310 are described in more detail below.

[0320] The synchronous mesh communication network 275 delivers information required by the synchronization domain to the functions. The synchronous mesh communication network 275 includes the fields specified below. In addition, many parameters for these fields are also stored in the control register 340 and are distributed to the threads that will be executed in the synchronization domain formed by multiple tiles 210. The specified fields of the synchronous mesh communication network 275 include:

[0321] 1. Data: typically has a field width of 64 bits and includes calculated data that is passed from one tile 210 to the next tile 210 in the sync domain.

[0322] 2. Instruction RAM 315 address: referred to as "INSTR", typically has a field width of 8 bits, and includes the instruction RAM 315 address for the next tile 210. The base tile 210 specifies the instruction RAM 315 address of the first tile 210 in the domain. Subsequent tiles 210 may pass on the instructions unmodified, or may conditionally change the instructions of the next tile 210 to allow conditional execution (i.e., if-then-else or switch statements), as described in more detail below.

[0323] 3. Thread Identifier: Referred to herein as "TID", typically has a field width of 8 bits and comprises a unique identifier for a thread of a core, where a predetermined number of TIDs ("TID pool") are stored in a control register 340 and are potentially available for use by a thread (if not in use by another thread). The TID is allocated at the base tile 210 of the synchronization domain and can be used as a read index for the tile memory 325. The TID can be transferred from one synchronization domain to another via the asynchronous packet network 265. Because the number of TIDs available for use is limited, to perform other functions or calculations, the TID should eventually be released back to the TID pool of the allocated base tile for subsequent reuse. The release is achieved using an asynchronous fabric message transmitted over the asynchronous packet network 265.

[0324] 4. Transfer Identifier: called "XID", usually has a field width of 8 bits and includes a unique identifier for transferring data from one synchronization domain to another synchronization domain, where a predetermined number of XIDs ("XID pool") are stored in the control register 340 and are potentially available for use by a thread (if not used by another thread). The transfer can be a direct write of data from one domain to another, as "XID_WR", or it can be the result of a memory 125 read (as "XID_RD"), where the source domain sends a virtual address to the memory 125 and the destination domain receives the memory read data. The XID_WR is allocated at the base tile 210 of the source domain. The XID_WR in the source domain becomes an XID_RD in the destination domain. The XID_WR can be used as a write index for the tile memory 325 in the destination domain. The XID_RD is used as a read index for the tile memory 325 in the destination domain. Because the number of XIDs available for use is limited, to perform other functions or calculations, the final XID should be released back to the XID pool of the allocated base tile for subsequent reuse. The destination domain should release the XID by sending an asynchronous message to the source domain's base tile 210 , also via the asynchronous packet network 265 .

[0325] The synchronous mesh communication network 275 provides data and control information. The control information (INSTR, XID, TID) is used to set up the data path, and the DATA field can be selected as the source of the configured data path. It should be noted that the control field is required much earlier than the data field (to configure the data path). In order to minimize the synchronous domain pipeline delay through the tile 210, the control information arrives at the tile 210 several clock cycles ahead of the data.

[0326] A highly innovative feature of the architecture of the HTF circuit 200 and its composite HTF circuit cluster 205 and their composite tile 210 is the use of two different configuration RAMs, an instruction RAM 315 for datapath configuration and a spoke RAM 320 for a number of other functions, including configuring portions of the tile 210 that are independent of any selected or given datapath, selecting datapath instructions from the instruction RAM 315, selecting a master synchronization input (among the available inputs 270A) for each clock cycle, etc. As discussed in more detail below, this novel use of the instruction RAM 315 and the independent spoke RAM 320 enables dynamic self-configuration and self-reconfiguration of the HTF circuit cluster 205 and the HTF circuit 200 as a whole, among others.

[0327] Each tile has an instruction RAM 315 containing configuration information that sets up the data path of the tile 210 for a particular operation, i.e., data path instructions that determine, for example, whether a multiplication, shift, addition, etc. will be performed in a given time slice of the tile 210 and which data to use (e.g., data from memory 325, or data from input registers 350). The instruction RAM 315 has multiple entries, allowing the tile 210 to be time-sliced ​​to perform multiple different operations in pipelined synchronization domains, where the instruction RAM 315 is used to perform multiple operations in a pipelined synchronization domain. Fig. 9 200. Any given instruction may also specify which inputs 270A will have data and / or control information for use by the instruction. In addition, each time slice may conditionally execute different instructions based on the time slice data-dependent conditional operations of the previous tile 210, as shown in FIG. Fig.24 The number of entries in instruction RAM 315 is typically about 256. The number may be changed based on experience gained from porting cores to HTF 200.

[0328] The supported instruction set should meet the needs of the target application, such as applications with data types of 32 and 64-bit integer and floating point values. Additional applications such as machine learning, image analysis, and 5G wireless processing can be executed using HTF 200. This complete set of applications will require 16, 32, and 64-bit floating point and 8, 16, 32, and 64-bit integer data types. The supported instruction set needs to support these data types for load, store, and arithmetic operations. The supported operations need to allow the compiler to efficiently map high-level language sources to instructions of tile 210. In a representative embodiment, tile 210 supports the same instruction set as a standard high-performance processor, including single instruction multiple data (SIMD) instruction variations.

[0329] The spoke RAM 320 has multiple functions, and in a representative embodiment, one of those functions is to be used to configure portions of the tile 210 that are independent of the current instruction (of a time slice) in the datapath, i.e., the tile 210 configuration stored in the spoke RAM 320 can be used to configure constant portions of the configuration of the tile 210, e.g., those settings of the tile 210 that remain the same for different datapath instructions. For example, as a selection control for the input multiplexer 355, the spoke RAM 320 is used to specify which input of the tile 210 (e.g., the array input communication line 270A or one of the input registers 350) is the master synchronization input for each clock cycle. This is important because the instruction index of the instruction (from the instruction RAM 315) that selects the given time slice of the tile 210, as well as the thread ID (TID), is provided on the master synchronization input. Thus, even though the actual instruction index provided on the input 270A to a given tile 210 may vary (as shown in reference to FIG. 1 ), the master synchronization input may be used to select the instruction of the tile 210. Fig.24 The configuration stored in the spoke RAM 320 also typically specifies which outputs 270B will be used for the selected instruction (or time slice). The spoke RAM 320 reads the address input, i.e., the spoke index, from a counter that goes from zero to the spoke count minus one count (modulo). All tiles 210 within the HTF circuit group 205 should generally have the same spoke RAM input value at each clock to have proper sync domain operation. The spoke RAM 320 also stores the instruction index and is also used to select instructions from the instruction RAM 315 so that for the base tile 210 of the sync domain, a series of instructions can be selected for the tile 210 to execute when the count of the spoke RAM 320 changes. As for subsequent tiles in the sync domain, the instruction index can be provided by the previous tile 210 of the sync domain. This aspect of the spoke RAM 320 also refers to Fig.24 In the following, the spoke RAM 320 is innovative and enables dynamic self-configuration and reconfiguration of the HTF circuit group 205 .

[0330] The spoke RAM 320 also specifies when the synchronization input 270A is written to the tile memory 325. This situation can occur if a tile instruction requires multiple inputs and one of the inputs arrives early. The input that arrives early can be written to the tile memory 325 and then read from the memory 325 when the other inputs arrive. For this situation, the tile memory 325 is accessed as a FIFO. The FIFO read and write pointers are stored in the tile memory area ram.

[0331] Each tile 210 contains one or more memories 325, and each memory typically has the width of the datapath (64 bits), and for example, the depth will be in the range of 512 to 1024 elements. The tile memories 325 are used to store data required to support datapath operations. The stored data can be constants that are part of the load configured as part of the core group 205, or variables that are calculated as part of the data flow. The tile memories 325 can be written from the synchronous mesh communication network 275 as a result of data transfer from another synchronization domain or load operations initiated by another synchronization domain. Tile memories are only read by synchronous datapath instructions.

[0332] The tile memory 325 is typically divided into regions. Smaller tile memory region RAMs store information needed to access the memory region. Each region represents a different variable in the core. Regions can store shared variables (i.e., variables shared by all execution threads). Scalar shared variables have an index value of zero. Shared variable arrays have variable index values. Regions can store thread-private variables indexed by TID identifiers. Variables can be used to pass data from one synchronization domain to the next synchronization domain. For this case, the variable is written using the XID_WR identifier in the source synchronization domain and read using the XID_RD identifier in the destination domain. Finally, regions can be used to temporarily store data previously generated by a tile 210 in the synchronization data path until other tile data inputs are ready. For this case, the read and write indexes are FIFO pointers. The FIFO pointers are stored in the tile memory region RAM.

[0333] The tile memory area RAM typically contains the following fields:

[0334] 1. Region Index Upper Bit: It is the upper bit of the tile memory region index. The lower index bits are obtained from the asynchronous fabric message, TID, XID_WR or XID_RD identifier, or from the FIFO read / write index value. The region index upper bit is ORed with the lower index bit to generate the index of the tile memory 325.

[0335] 2. Region SizeW: It is the width of the lower index of the memory region. The size of the memory region is 2 SizeW elements.

[0336] 3. Region FIFO Read Index: It is the read index of the memory region acting as FIFO.

[0337] 4. Region FIFO Write Index: It is the write index of the memory region that acts as FIFO. The tile performs the computational operations of HTF200.

[0338] Computational operations are performed by configuring data paths within tile 210. There are two functional blocks that perform all computations for tile 210: multiplication and shift operation circuitry ("MS Op") 305, and arithmetic, logic, and bitwise operations circuitry ("ALB Op") 310. MS Op 305 and ALB Op 310 are controlled by instructions from instruction RAM 315, and can be configured to perform, for example but not limited to, two pipelined operations, such as multiplication and addition, or shift and "AND" operations. (In a representative embodiment, all devices supporting HTF200 will have a complete set of supported instructions. This will provide binary compatibility for all devices. However, it may be desirable to have a set of base functionality and optional instruction set classes to meet die size tradeoffs. This approach is similar to how the RISC-V instruction set has a base and multiple optional instruction subsets.) Fig. 9 As shown in , the outputs of MS Op 305 and ALB Op 310 may be provided to register 312 , or directly to other components such as output multiplexer 395 , conditional logic circuitry 370 , and / or write mask generator 375 .

[0339] The various operations performed by MS Op 305 include, for example, but not limited to, integer and floating point multiplication, shifts, passing inputs, signed and unsigned integer multiplication, signed and unsigned right shifts, signed and unsigned left shifts, bit reversals, permutations (all of which are performed as floating point operations), and conversions between integer and floating point, such as truncation below double precision or converting floating point to integer. The various operations performed by ALB Op 310 include, for example, but not limited to, signed and unsigned addition, absolute value, negation, logical NOR operation, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparisons (equal to or not equal to), logical operations (AND, OR, XOR, NAND, NOR, NON XOR, NAND, NOR (all of which are floating point operations), and conversions between integer and floating point, such as truncation or converting floating point to integer.

[0340] Inputs to ALB Op 310 and MS Op 305 come from sync tile input 270A (held in register 350), from internal tile memory 325, or from a small constant value provided in instruction RAM 315. Table 4 below shows the tile 210 datapath input sources, listing typical inputs to ALB Op 310 and MS Op 305.

[0341] Table 4:

[0342]

[0343]

[0344] As part of the communication lines 270 of the synchronous mesh communication network 275, each output 270B of the tile 210 is individually enabled, thereby achieving clock gating of disabled outputs. The outputs of the ALB Op 310 can be sent to multiple destinations, as shown in Table 5.

[0345] Table 5:

[0346] Destination Name Destination Description SYNC_U Synchronous Mesh Communication Network 275 Uplink SYNC_D Synchronous Mesh Communication Network 275 Downlink SYNC_L Synchronous mesh communication network 275 left link SYNC_R Synchronous mesh communication network 275 right link WRMEM0_Z Write to memory 0. Use the value zero as an index to write to a region of memory 325. WRMEM0_C Write to memory 0. Write to a region of memory 325 using the instruction constant field as an index. WRMEM0_T Write to memory 0. Write to the area of ​​memory 325 using the TID value as an index.

[0347] At a high level, and all as non-limiting representative examples, the general operation of the tile 210 is as follows. When the configuration is loaded into the system, as part of the program compilation, the synchronous mesh communication network 275 and the synchronization domains of each tile 210 are all scheduled. Unless paused or stopped, the tile 210 can perform its operation when all required inputs are ready, such as data variables in input registers 350 or memory 325, and can be read or obtained from registers or memory and used, as described in more detail below. In a representative embodiment, each pipeline stage can operate in a single clock cycle, but in other representative embodiments, each pipeline stage can utilize additional clock cycles. In the first pipeline stage 304, data is input, for example, into the AF input queue 360 ​​and input registers 350, and optionally directly into the memory 325. In the next pipeline stage 306, for example, the AF message is decoded by the AF state machine 345 and moved to the memory 325; the AF state machine 345 reads data from the memory 325 or receives from the output multiplexer 395 and generates a data packet for transmission through the asynchronous packet network 265; the data in the input register 350 is moved to the memory 325 or selected as operation metadata (using the input multiplexer 355 and the intermediate multiplexer 365), or directly passed to the output register 380 for output on the synchronous mesh communication network 275. In one or more of the subsequent pipeline stages 307 and 308, the calculation is performed by the ALB Op 310 and / or the MS Op 305, the write mask can be generated by the write mask generator 375, and the instruction (or instruction index) can be selected based on the test condition in the conditional (branch) logic circuit system 370. In the next pipeline stage 309 , the output is selected using the output multiplexer 395 , and the output message (which may have been stored in the AF output queue 390 ) is transmitted over the asynchronous packet network 265 , and the output data in any output register 380 is transmitted over the synchronous mesh communication network 275 .

[0348] Fig.10is a detailed block diagram of a representative embodiment of a memory control circuit 330 (with associated control registers 340 ) of a hybrid thread fabric configurable compute circuit (tile) 210 . Fig.10 A diagram of the read index logic of the tile memory 325 of the memory control circuit 330 is shown, and is replicated for each memory 325 (not shown separately). The instruction RAM 315 has a field that specifies which region of the tile memory 325 is being accessed, and a field that specifies the access index mode. The memory region RAM 405 (part of the control register 340) specifies a region read mask that provides the upper memory address bits of a particular region. The mask is ORed (OR gate 408) with the lower address bits supplied by the read index selection multiplexer 403. When the tile memory 325 is accessed in FIFO mode, the memory region RAM 405 also contains a read index value. When accessed in FIFO mode, the read index value in the RAM 405 is incremented and written back. In various embodiments, the memory region RAM 405 can also save the top of the TID stack through a nested loop, as described below.

[0349] Fig.10 Also shown is the control information (INSTR, XID, TID) needed by the synchronous mesh communication network 275 several clocks ahead of the data input. For this reason, the control information is sent from the previous tile 210 several clocks before the data is sent. This staging of the information of the synchronous mesh communication network 275 reduces the overall pipeline stage number for each tile 210, but it makes it challenging to use the calculated value as an index into the tile memory 325. Specifically, the data of the synchronous mesh communication network 275 may arrive too late to be used as an index into the tile memory 325. The architectural solution to this problem is to provide the calculated index from the previous tile 210 in the variable index register of the control register 340. Then, another input 270A causes the variable index register to be used as an index into the tile memory 325.

[0350] The asynchronous packet network 265 is used to perform operations asynchronously with the synchronous domain. Each tile 210 contains an interface to the asynchronous packet network 265, such as Fig. 9. The inbound interface (from communication line 280A) is the AF input queue 360 ​​(as a FIFO) to provide storage for messages that cannot be processed immediately. Similarly, the outbound interface (to communication line 280B) is the AF output queue 390 (as a FIFO) to provide storage for messages that cannot be issued immediately. Messages passing through the asynchronous packet network 265 can be classified as data messages or control. Data messages contain a 64-bit data value written to one of the tile memories 325. Control messages are used to control thread creation, release resources (TID or XID), or issue external memory references. Table 6 below lists the asynchronous packet network 265 outbound message operations:

[0351] Table 6:

[0352]

[0353]

[0354] The asynchronous packet network 265 allows messages to be sent and received from tiles 210 in different sync domains. In some cases, it makes sense for a sync domain to send a message to itself, for example, when a sync domain's base tile 210 allocates a TID and the TID is to be released by the same sync domain.

[0355] Asynchronous packet network 265 may become congested if the synchronization domains of various tiles 210 generate and send messages faster than the messages can be received, routed, and processed by asynchronous packet network 265 or receiving endpoints. In this case, a back pressure mechanism is provided to alleviate any such congestion. Fig. 22 is a block diagram of a representative flow control circuit 385. In general, there is at least one flow control circuit 385 per HTF circuit group 205. When a message is waiting to be sent on the asynchronous packet network 265, the asynchronous fabric output queue 390 of the tile 210 will hold the message. A predetermined threshold is provided for the output queue 390, which, when reached, will cause the output queue 390 of the tile 210 to generate an indicator, such as setting a bit that asserts a "stop" signal 382 provided to the flow control circuit 385 on the communication pipeline 384. Each communication pipeline 384 is provided from the tile 210 in the HTF circuit group 205 to the flow control circuit 385. The flow control circuit 385 has one or more "OR" gates 386, which will continue to assert the stop signal 382 on the communication pipelines 388 distributed to all tiles 210 in the affected HTF circuit group 205 for the duration that any one of the tiles 210 generates the stop signal 382,

[0356] The stop signal 382 may be distributed through a dedicated communication pipeline 388 or through a synchronous mesh communication network 275, which is not part of the synchronous mesh communication network 275 or the asynchronous packet network 265 as shown. In a representative embodiment, there is a single stop signal 382 that all tile output queues 390 within the HTF circuit group 205 can assert, and all tiles 210 within the HTF circuit group 205 are held (paused or stopped) when the stop signal 382 is asserted. This stop signal 382 continues to allow all AF input queues 360 to receive AF messages and packets, thereby avoiding deadlock, and causes all synchronous domain pipelines to be held or paused (which also prevents additional AF data packets from being generated). The stop signal 382 allows the asynchronous packet network 265 to drain the output queues 390 of the tiles 210 to the extent that the number of messages in the output queues 390 (which trigger the output queues 390) drops below a threshold level. Once the size of the output queue 390 drops below the threshold level, the signal through the communication pipeline 384 for that tile 210 returns to zero (the stop signal 382 is no longer generated). When this happens for all tiles 210 in the HTF circuit group 205, the signal on the communication pipeline 388 also returns to zero, meaning that the stop signal is no longer asserted, and the stop or pause on the tile 210 ends.

[0357] The first or "base" tile 210 of the synchronization domain is responsible for launching work threads through the multi-tile 210 synchronization pipeline. New threads can be launched at a predetermined pace. The pace interval is referred to as the "spoke count" in this article, as mentioned above. For example, if the spoke count is three, then a new work thread can be launched on the base tile 210 once every three clocks. If you skip starting a new thread (for example, no thread is ready to start), you must wait for the full spoke count before another thread can start. A spoke count greater than one allows each physical tile 210 to be used multiple times within the synchronization pipeline. As an example, if the synchronization domain is executed on a single physical tile and the spoke count is one, then the synchronization domain may contain only a single tile time slice. If for this example, the spoke count is four, then the synchronization domain may contain four tile time slices. Typically, the synchronization domain is executed by multiple tiles 210 interconnected by synchronization links of a synchronous mesh communication network 275. Sync domains are not limited to a subset of tiles 210 within a group 205, i.e., multiple sync domains may share tiles 210 of a group 205. A single tile 210 may join multiple sync domains, e.g., spoke 0, tile 210 acting on sync domain "A"; spoke 1, tile 210 acting on sync domain "B"; spoke 2, tile 210 acting on sync domain "A"; and spoke 3, tile 210 acting on sync domain "C". Fig.11 Describes thread control for a tile.

[0358] Fig.11is a detailed block diagram of a representative embodiment of a thread control circuit 335 (with associated control registers 340) of a hybrid thread fabric configurable computing circuit (tile) 210. Fig.11 , several registers are included in the control register 340, namely, TID pool register 410, XID pool register 415, pause table 420 and completion table 422. In various embodiments, the data of completion table 422 can be equally stored in pause table 420, and vice versa. Thread control circuit system 335 includes continuation queue 430, reentry queue 445, thread control multiplexer 435, run queue 440, iteration increment 447, iteration index 460 and loop iteration count 465. Alternatively, continuation queue 430 and run queue 440 can be equally embodied in control register 340.

[0359] Fig.12 Schematic of the tiles 210 forming the first and second synchronization domains 526, 538 and representative asynchronous packet network messaging. One difficulty with the asynchronous packet network 265 is that the required data may arrive at the tile 210 at different times, which may make it difficult to ensure that the started thread can run to completion with a fixed pipeline delay. In a representative embodiment, the tiles 210 forming the synchronization domain do not execute the computing thread until all resources are ready, such as by having the required data available, any required variables, etc., which have all been distributed to the tiles through the asynchronous packet network 265, and can therefore arrive at the specified tile 210 at any time in various times. In addition, data may need to be read from the system memory 125 and passed through the asynchronous packet network 265, and can therefore also arrive at the specified tile 210 at any time in various times.

[0360] In order to run a thread to completion with a fixed pipeline latency, a representative embodiment provides a completion table 422 (or pause table 420) indexed by the TID of the thread at the base tile 210 of the synchronization domain. The completion table 422 (or pause table 420) maintains a count of dependency completions that must be received before initiating execution of the thread. The completion table 422 (or pause table 420) contains a field named "Completion Count", which is initialized to zero when reset. Two types of AF messages are used to modify the count field. The first message type is a thread start or continue message, and the field is incremented by a count indicating the number of dependencies that must be complied with before the thread can be started in the synchronization domain. The second AF message type is a completion message, and the count field is decremented by one, indicating that a completion message has been received. Once a thread start message is received and the completion count field reaches zero, the thread is ready to start.

[0361] like Fig.12As shown in , tile 210B of the first sync domain 526 has transmitted an AF memory load message (293) to the memory interface 215 via the asynchronous packet network 265, which in turn will generate another message (296) to the system memory 125 via the first interconnect network 150 to obtain the requested data (returned in message 297). However, the data will be used by tile 201E in the second sync domain 538 and transmitted (message 294) to tile 201E. When the first sync domain 526 has completed its pipeline portion, one of the tiles (210C) in the first sync domain 526 transmits an AF continue message (291) to the base tile 210D of the second sync domain 538. The AF continue message (291) contains the TID of the thread of the first sync domain 526 (e.g., TID=1, which is also contained in the Fig.12 ), and a completion count of 1, indicating that the base tile 210D of the second synchronization domain 538 will wait to start a thread on the second synchronization domain 538 until it receives a completion message.

[0362] Therefore, when tile 210 receives such data (e.g. Fig.12 420), it acknowledges receipt by sending a completion message (with a thread ID (TID)) back to the base tile 210, here, the base tile 210D of the second sync domain 538. As part of the configuration provided to the base tile 210 (either at the time of initial configuration or as part of a continue message) and stored as a completion count in the completion table 422 (or pause table 420), the base tile 210D knows the number of such completion messages that must be received in order for the tiles 210 of the sync domain, in this case, the second sync domain 538, to begin execution of the base tile 210. As completion messages are received by the base tile 210, the completion count of the pause table is decremented for the particular thread with that TID, and when it reaches zero for that thread, indicating that all required completion messages have been received, the base tile 210 can begin execution of the thread. To begin execution, the thread's TID is passed to the continuation queue 430, from which it is selected to run (at the appropriate spoke count for the appropriate time slice of the tile 210). Note that data determined during the execution of a thread and that can be passed between tiles 210 in a synchronization domain over the synchronous mesh communication network 275 does not require a completion message.

[0363] This type of thread control has several advantages. This thread control waits for all dependencies to complete before starting a thread, allowing the started threads to have fixed, synchronous execution times. Fixed execution times allow register levels to be used throughout the pipeline, rather than FIFOs. In addition, while one thread of a tile 210 can be waiting to execute, other threads can be executing on the tile 210, providing much higher total throughput and minimizing idle time and unused resources.

[0364] Similar control is provided when spanning sync domains, such as for executing multiple threads (e.g., for related compute threads forming a compute fiber). For example, a first sync domain will notify the base tile 210 of the next sync domain in a continue message transmitted over the asynchronous packet network 265 about the number of completion messages it needs to receive in order to begin execution of the next thread. For another example, for an iterative loop spanning sync domains, the first sync domain will notify the base tile 210 of the next sync domain in a loop message (with a loop count and the same TID) transmitted over the asynchronous packet network 265 about the number of completion messages it needs to receive in order to begin execution of the next thread.

[0365] It should also be mentioned that various delays may need to be implemented, for example when first data is available from the first tile 210 and second data is still being determined by the second tile 210, both of which will be needed when the third tile 210 performs the next calculation. For this case, the delay can be introduced at the output register 380 of the first tile 210 that created the first data or in the tile memory 325 of the third tile 210. This delay mechanism also applies to data that can be passed from the first tile 210 to the third tile 210 using the second tile 210 as a pathway.

[0366] The pause table 420 is used to hold or pause the creation of a new synchronization thread in the tile 210 until all required completion messages are received. A thread from a previous synchronization domain sends a message to the base tile 210, which contains the number of completion messages expected for the new synchronization thread and the action to be taken when all completion messages are received. The action includes: call, continue, or loop. Many pause operations usually run in parallel. All messages of a specific pause operation (i.e., a set of pause and completion messages) will have the same pause index in the corresponding message. The pause index is the TID from the sending tile 210. The entries of the pause table 420 are initialized to inactive, where the completion increment count is zero. Receiving a pause message increments the increment count by the number of required completion counts and sets the entry of the pause table 420 to active. Receiving a completion message decrements the increment count one by one. It should be noted that the completion message can arrive before the associated pause message, making the increment count negative. When the entry of the pause table 420 is active and the increment count is zero, the associated activity (e.g., a new thread) is initiated (and the entry of the start pause table 420 is revoked).

[0367] The continuation (or call) queue 430 keeps threads ready to start on the synchronization domain. When all completions for the call operation are received, the thread is pushed into the continuation queue 430. It should be noted that the threads in the continuation queue 430 may need TIDs and / or XIDs to be allocated before the threads can start on the synchronization domain, for example, if all TIDs are in use, then once the TID is released and available, the threads in the continuation queue 430 can start, that is, the threads can wait until the TIDs and / or XIDs are available.

[0368] The reentry queue 445 prepares threads to start on the synchronization domain, where the execution of those threads takes precedence over those in the continuation queue 430. When all completions for the continuation operation are received and the thread already has a TID, the thread is pushed into the reentry queue 445. It should be noted that the threads in the reentry queue 445 do not need to be assigned a TID. A separate reentry queue 445 and continue (continue / continuation) queue 430 are provided to avoid deadlock situations. A special type of continuation operation is a loop. The loop message contains a loop iteration count. The count is used to specify the number of times the thread is started once the pause operation is completed.

[0369] An optional priority queue 425 may also be implemented such that any thread having a thread identifier in the priority queue 425 is executed before any thread having a thread identifier in the continuation queue 430 or the reentry queue 445 .

[0370] When starting a thread for a loop operation, the state of iteration index 460 is used. Iteration index 460 is initialized to zero and incremented for each thread. Iteration index 460 is pushed into the run queue 440 with thread information from the continuation queue 430. Iteration index 460 can be used as a selection for the data path input multiplexer 365 within the first tile (base tile) 210 of the sync domain.

[0371] Loop iteration count 465 is received as part of the loop message, saved in pause table 420, pushed into resume queue 430, and then used to determine when the appropriate number of threads for the loop operation has been started.

[0372] Run queue 440 stores threads ready to run, which have allocated TID and / or XID and can be executed after the appropriate spoke count clock occurs. When a thread starts on a synchronization domain, TID pool 410 provides a unique thread identifier (TID) to the thread. Only threads in continuation queue 430 can obtain TID. When a thread starts on a synchronization domain, XID pool 415 provides a unique transfer identifier (XID) to the thread. Threads from continuation queue 430 can obtain XID. The allocated XID becomes the XID_WR of the thread started.

[0373] For any given or selected program to be executed, the code or instructions for that program, written or generated in any appropriate or selected programming language, are compiled for and loaded into the system 100, including instructions for the HTP 300 and HTF circuit 200, and any instructions applicable to the host processor 110, to provide the selected configuration to the system 100. Thus, the respective instruction sets for one or more selected calculations are loaded into the instruction RAM 315 and spoke RAM 320 of each tile 210, and into any of the respective registers maintained in the memory interface 215 and HTF dispatch interface 225 of each tile 210, to provide the configuration for the HTF circuit 200, and, depending on the program, into the HTP 300.

[0374] For example, but not limited to, a core is started using a work descriptor message containing zero or more arguments, typically generated by a host processor 110 or HTP 300, for execution by one or more HTF circuits 200. The arguments are sent to the HTF scheduling interface 225 within the work descriptor AF message. These arguments provide thread-specific input values. The host processor 110 or HTP 300 may use its corresponding operating system ("OS") to send a "host" message to the core that initializes the location of the tile memory 325, where such a host message provides non-thread-specific values. A typical example is a host message that sends the base address of a data structure used by all core threads.

[0375] A host message sent to a core is sent to all HTF circuit groups 205 where the core is loaded. In addition, the order of sending host messages and sending core schedules is maintained. Sending a host message essentially makes the core idle before sending the message. The completion message ensures that the write of the tile memory 325 has been completed before starting a new synchronization thread.

[0376] Control messaging via the asynchronous packet network 265 is as follows:

[0377] (1) The HTF dispatch interface 225 receives the host message and sends the AF data message to the destination tile 210. The destination tile 210 writes the data of the AF data message into the selected memory.

[0378] (2) The destination tile 210 sends an AF completion message to the HTF scheduling interface 225 to confirm that the tile writing is complete.

[0379] (3) The HTF scheduling interface 225 holds all new core threads from starting until all message writes have been confirmed. Once confirmed, the HTF scheduling interface 225 transmits an AF call message to the base tile of the sync domain to start the thread.

[0380] The HTF scheduling interface 225 is responsible for managing the HTF circuit group 205, including: (1) interacting with the software of the system 100 to prepare the HTF circuit group 205 for use by the process; (2) scheduling work to the tiles 210 of the HTF circuit group 205, including loading the HTF circuit group 205 with one or more core configurations; (3) saving and restoring the context of the HTF circuit group 205 to the memory 125 for breakpoints and exceptions. As mentioned above, the registers 475 of the HTF scheduling interface 225 may include various tables to track what has been scheduled to and received from any of the various tiles 210, such as tracking any of the message passing used in the representative embodiment. The primitive operations of the HTF scheduling interface 225 used to perform these operations are listed in Table 7.

[0381] Table 7:

[0382]

[0383]

[0384] Fig.1617 provide an example of message passing and thread control within the system 100, wherein an example calculation is provided to illustrate how the synchronous mesh communication network 275 and the asynchronous packet network 265 cooperate to execute a simple kernel, here solving a simple expression R = *A + B. To illustrate such message passing, the calculation has been divided across two different synchronization domains 526 and 538. The variable B is passed as a host message to all HTF circuit groups 205, and the address of A is passed to the call as an argument in the work descriptor packet. The result R is passed back through the first interconnect network 150 in the return data packet. The example performs almost no calculations, so the number of messages per calculation performed is extremely high. The performance of the HTF circuit 200 is much higher when a large number of calculations are performed within the loop so that the number of messages per calculation is low.

[0385] Fig.16 17 is a diagram of a representative hybrid thread fabric configurable computing circuit (tile) 210 forming a synchronous domain and representative asynchronous packet network messaging for HTF circuit group 205 to perform computation. Fig.16 Flowchart of representative asynchronous packet network messaging and execution of computations of the process. First, at step 506, the host processor 110 sends a message (504) to all HTF circuit groups 205 within the node. The message is the value of variable B. The message is contained in a single data packet, commonly referred to as a work descriptor packet, which is written to the dispatch queue 105 (at the HIF 115 associated with the process) of the HIF 115. Figure 1 and 2 100). HIF 115 reads the message from dispatch queue 105 and sends a copy of the packet to each HTF circuit group 205 assigned to the process. The packet is received via dispatch interface 225 of the assigned HTF circuit group 205. It should also be noted that HIF 115 performs various load balancing functions for all HTP 300 and HTF 200 resources.

[0386] At step 510, the host processor 110 sends a call message (508) to one of the HTF circuit groups 205 assigned to the process. The host processor 110 can manually target a particular HTF circuit group 205 to execute the kernel, or allow the HTF circuit group 205 to be automatically selected. The host processor 110 writes the call parameters to the dispatch queue associated with the process. The call parameters include the kernel address, the start instruction, and a single argument (the address of variable A). The host interface (HIF) 115 reads the queued message and forwards the message as a data packet over the first interconnect network 150 to the assigned HTF circuit group 205, typically the HTF circuit group 205 with the least load.

[0387] At step 514, the HTF dispatch interface 225 receives the host message (the value of variable B), waits until all previous calls to the HTF circuit group 205 are complete, and sends the value to the first selected destination tile 210H using an AF message (512) over the asynchronous packet network 265. The HTF dispatch interface 225 has a table of information stored in registers 475 for each possible host message indicating the destination tile 210H, the tile memory 325, and the memory area (in RAM 405) of the tile 210H. At step 518, the tile 210H writes the value to the memory 325 in the tile 210H using the message information, and once the value is written to the tile memory, sends a write complete AF message (516) back to the HTF dispatch interface 225 over the asynchronous packet network 265.

[0388] The HTF dispatch interface 225 waits for all message completion messages to arrive (in this case, only a single message). In step 522, once all completion messages have arrived, the HTF dispatch interface 225 sends the call argument (the address of variable A) in an AF message (520) to the second selected destination tile 210B to write the value to the tile memory 325. The HTF dispatch interface 225 has a call argument table stored in registers 475 that indicates the destination tile 210B, the tile memory 325, and the memory area (in RAM 405) of the tile 210B.

[0389] Then, at step 528, the HTF dispatch interface 225 sends an AF call message (524) to the base tile 210A of the first sync domain 526. The AF call message indicates that a single completion message should be received before the call can begin execution through the sync tile 210 pipeline. The required completion message has not arrived, so the call is suspended.

[0390] At step 532 , once the value is written to the tile memory 325 of the tile 210B, a write completion message ( 530 ) is sent by the tile 210B to the base tile 210A of the first sync domain 526 via the asynchronous packet network 265 .

[0391] The base tile 210A has received the call message (524) and the required completion message (530), and is now ready to initiate execution on the sync domain 526 (tile pipeline). At step 536, the base tile 210A initiates execution by providing an initial instruction and a valid signal (534) to the tile 210B via the sync mesh communication network 275. The base tile 210A allocates an XID value from the XID pool 415 for use in the first sync domain 526. If the XID pool 415 is empty, the base tile 210A must wait until an XID is available before starting the sync pipeline.

[0392] When execution continues, at step 542, tile 210B or another tile 210E within the first sync domain 526 sends an AF continue message (540) to the base tile 210C of the second sync domain 538. The continue message contains the number of required completion messages (in this case, a single completion message) that must arrive before the second sync domain 538 can initiate execution. The continue message also contains a transfer ID (XID). The XID is used as a write index in one sync domain (526) and then as a read index in the next sync domain (538). The XID provides a tile memory index that is common to different sync domains.

[0393] At step 546, tile 210B or another tile 210F within first sync domain 526 sends an AF memory load message (544) to memory interface 215 of HTF circuit group 205. The message contains the request ID, virtual address, and XID to be used as an index to write the load data to destination tile (210G) memory 325.

[0394] The memory interface 215 receives the AF load message and converts the virtual address to a node local physical address or a remote virtual address. The memory interface 215 uses the request ID of the AF message to index into a request table stored in register 485, which contains the parameters of the memory request. At step 550, the memory interface 215 issues a load memory request packet (548) to the first interconnection network 150, which has the converted address and size information from the request table.

[0395] Subsequently, at step 554, the memory interface 215 receives a memory response packet (552) having payload data (the value of variable A) through the first interconnect network 150. At step 558, the memory interface 215 sends an AF message (556) to the tile 210G within the second synchronization domain 538. The AF message contains the value of variable A and writes the value to the tile memory using the parameters from the request table stored in the register 485.

[0396] At step 562 , once the values ​​are written to the tile storage, an AF write completion message ( 560 ) is sent to the base tile 210C of the second sync domain 538 via the asynchronous packet network 265 .

[0397] The base tile 210C of the second sync domain 538 receives the continue message (540) and the required completion message (560) and is ready to initiate execution on the second sync domain 538 (tile pipeline). At step 566, the base tile 210C initiates execution by providing an initial instruction and a valid signal (564) to a tile 210 (e.g., tile 210H) of the second sync domain 538. The base tile 210C also allocates an XID value from the XID pool for use in the second sync domain 538.

[0398] At step 568, the tile 210H in the second sync domain performs an addition operation on the B value delivered from the host message and the A value read from the system memory 125. The resulting value is the R value of the expression.

[0399] At step 572, tile 210J in the second synchronization domain sends an AF message (570) containing the R value to the HTF dispatch interface 225. The AF message contains the XID value assigned from the base tile 210A. The XID value is used as an index within the HTF dispatch interface 225 to a table stored in registers 475 that holds return parameters until the value has been read and the return message has been generated for transmission over the first interconnect network 150.

[0400] At step 576, an AF message (574) from the second sync domain (tile 210K) sends the XID value allocated in the first sync domain back to the base tile 210A for return to the XID pool. At step 580, a first interconnect network 150 message (578) from the HTF dispatch interface 225 is sent to the HIF 115. The HIF writes the return work descriptor to the dispatch return queue. At step 584, once the first interconnect network 150 has sent the return packet, the XID value is sent in an AF message (582) to the base tile 210C of the second sync domain 538 through the HTF dispatch interface 225 for return to the XID pool.

[0401] It should be noted that Fig.16 In this example of FIG. 17 , many tiles 210 are used in order to illustrate the various AF messages that can be used for thread control. In practice, particularly for such simple calculations, far fewer tiles 210 may be used so that the calculations are performed entirely within a single synchronization domain.

[0402] exist Fig.18 Another example of message passing for thread control across multiple synchronization domains is provided in and 19, also using AF completion and continue messages over the asynchronous packet network 265. Fig.1819 is a diagram of a representative hybrid thread fabric configurable computing circuit (tile) forming a synchronization domain and representative asynchronous packet network messaging for hybrid thread fabric circuit groups to perform computations. Fig.18 A flowchart of a representative asynchronous packet network messaging and execution of a computation.

[0403] For this example, the HTF scheduling interface 225 sends a message to the base tile 210A of the first synchronization domain 526. The message starts a thread on the first synchronization domain 526. The thread sends a thread continue message to the second synchronization domain 538. The continue message indicates that the thread will be started on the second synchronization domain 538 when the specified number of completion messages have been received. The first synchronization domain 526 sends a completion message to the second synchronization domain 538 to complete the pause and start the synchronized second thread. The second thread sends a completion message back to the HTF scheduling interface 225 indicating that the second synchronization thread is completed, thereby completing the scheduled core. Fig.18 An additional message for releasing TID and XID identifiers is shown in FIG.

[0404] At step 604, the HTF scheduling interface 225 receives the work descriptor packet (602), ensures that the correct core configuration has been loaded, determines that the XID and TID pools are not empty, and obtains the XID and TID values ​​of the new work thread from the TID and XID pools stored in registers 475 within the HTF scheduling interface 225. At step 608, the HTF scheduling interface 225 starts core execution by sending an AF call message (606) to the base tile 210A of the first synchronization domain 526 (with assigned XID and TID values, e.g., XID=3 and (first type) TID=11). In step 610, the base tile 210A receives the AF call message (606), determines that the TID and XID pools (410, 415) are not empty, assigns TID and XID values ​​(e.g., XID_WR=7 and (second type) TID=1), and the spoke Ram 320 is selecting the base tile as input to the tile data path so that it begins execution using the first specified instruction, which is specified by the instruction index stored in its spoke Ram 320, rather than possibly executing an instruction based on an instruction index that may be provided by a previous tile 210 (e.g., as discussed in more detail below, regarding conditional execution).

[0405] In step 614, the base tile 210A starts the first thread (612) through the first synchronization domain 526, where a TID value has been assigned (e.g., (second type) TID=1), XID_RD is assigned a value from the AF call message (606) (e.g., XID_RD=3), XID_WR is assigned a value obtained from the XID pool (e.g., XID_WR=7), and TID is from the AF call message (606) (e.g., (first type) TID=11).

[0406] At step 618, as the computation continues in the first sync domain 526, another tile 210B within the first sync domain 526 sends an AF Continue message (616) to the base tile 210D of the second sync domain 538. When the appropriate number of completion messages arrive, the AF Continue message (616) provides the information needed to start the second thread on the second sync domain 538. The AF Continue message (616) contains a Completion Count field with a value that specifies the number of completion messages required. One tile (210C) in the first sync domain 526 also transmits a Free XID (e.g., XID=3) message (641) to the HTF dispatch interface 225.

[0407] The AF Continue message (616) may include a TID or XID_WR value as an index to the Pause table 420 on the destination base tile 210D. In step 620, the Pause table accumulates the received completion messages and determines when the required number is reached and the new thread can be started. The tile 210B that sends the AF Continue message (616) sends the selected TID or XID_WR value as the PID (Pause Table Index) and changes the downstream TID value of the sync domain to the selected value (e.g., (first type) TID=11, (second type) TID=1). This new TID value is passed in all AF Completion messages to be used as an index to the Pause table 420 of the base tile 210D.

[0408] At step 624, an AF completion message (622) with a TID value (e.g., (first type) TID=11) is sent to the base tile 210D of the second synchronization domain 538. The AF completion message (622) decrements the entry of the incremental count field in the pause table 420 of the base tile 210D. The AF completion message (622) and the AF continue message (616) may arrive in any order. The last message to arrive will observe that the AF continue message (616) has arrived and the incremental count field in the pause table 420 has reached zero. This condition indicates that the pause has been completed and the second synchronization thread (626) can be started. At step 628, the base tile 210D also determines or observes that the pause operation has been completed, determines that the XID identifier pool is not empty and assigns an XID (e.g., XID=5), and the spoke Ram is selecting the base tile as the input to the tile data path.

[0409] Next, in step 630, the base tile 210D starts a second synchronization thread (626) through the second synchronization domain 538, where TID and XID_RD are assigned the values ​​obtained from the AF Continue message (616) (e.g., (first type) TID=11, (second type) TID=1, XID_RD=7). XID_WR is assigned the value obtained from the XID pool in step 628 (e.g., XID_WR=5).

[0410] When the computation of the second synchronization thread (626) is complete, several housekeeping messages are sent through the various tiles 210 of the second synchronization domain 538. At step 634, an AF free TID message (632) is sent to the base tile 210A of the first synchronization domain 526, and at step 636, the receiving base tile 210A adds the TID value to the TID pool 410 so it is available for use again. At step 640, an AF free XID message (638) is sent to the base tile 210A of the first synchronization domain 526, and at step 642, the receiving base tile 210 adds the XID value to the XID pool 415 so it is also available for use again. At step 646, an AF completion message (644) is sent to the HTF scheduling interface 225 indicating that the second synchronization thread 626 has completed. The HTF scheduling interface 225 has a count of expected completion messages. The AF Done message (644) contains the XID_WR value and the TID value ((first type) TID=11) to the second sync domain 538 of the dispatch interface. Next, at step 650, the HTF dispatch interface 225 sends an AF Free XID message (648) to the base tile 210D of the second sync domain 538. Then, at step 652, the receiving base tile 210D adds the XID value to the XID pool 415 so that it is also available for use again.

[0411] Data is transferred from one sync domain to the next sync domain using a data transfer operation. Typically, data transfer is used in conjunction with a load operation that obtains data from memory 125. Once the load data arrives at the second sync domain 538, the calculated data from the first sync domain 526 is required in the second sync domain 538. In this case, a single pause is sent from the first sync domain 526 to the second sync domain 538 containing a completion message from all loads and a total count of data transfer operations.

[0412] Next, the data transfer operation between the sync domains utilizes a variation of step 624. Instead of sending the AF completion message (622) in step 624, the first sync domain 526 sends an AF data message with data to the second sync domain 538. The destination tile 210 in the second sync domain 538 writes the data within the AF data message to the selected tile memory 325. Next, the tile 210 that receives the AF data message sends the AF completion message to the base tile 210 of the second sync domain 538. Then, once the payload data arrives at the second sync domain 538, the base tile 210 of the second sync domain 538 can start a second thread on the second sync domain 538.

[0413] Control of iterative thread loops across synchronization domains utilizes a similar control messaging pattern. The loop message flow allows multiple synchronization domains to be started from a single loop message. Each of the started synchronization threads can access its iteration index. Fig. 20 is a diagram of representative hybrid thread fabric configurable computing circuits (tiles) forming synchronization domains and representative asynchronous packet network messaging for a group of hybrid thread fabric circuits to perform cycles in a computation. Fig.21 is performed by a hybrid thread fabric configurable computing circuit (tile) for execution by a hybrid thread fabric circuit group Fig. 20 A flowchart of a representative asynchronous packet network messaging and execution of a loop in the computation.

[0414] Fig. 20 Three synchronization domains are shown, namely a first synchronization domain 526, a second synchronization domain 538, and a third synchronization domain 654. The first synchronization domain 526 is used for pre-loop setup, the second synchronization domain 538 starts with an iteration count (IterCnt) of the number of threads, and the final third synchronization domain 654 is the post-loop. It should be noted that loops can also be nested using additional indexing layers, as discussed in more detail below.

[0415] Reference again Fig.11, the control register 340 includes a completion table 422 (or pause table 420). For a loop, two types of completion information are maintained in the completion table 422, namely, a first completion count related to the number of completion messages that should arrive before the thread can start, as discussed above, and a second loop or iteration (completion) count for tracking the number of loop threads that have started and completed. The loop is started by sending an AF loop message containing a loop count (and individual TIDs, as discussed below) to the base tile 210 of the synchronization domain. The loop count is stored in the completion table 422 (or pause table 420) and is used to determine the number of times a new thread is started on the synchronization domain. In one embodiment, each thread starts with a new TID obtained from the TID pool 410. For example, each active thread has a unique TID, allowing thread-private variables to exist. A thread of a nested loop can access data or variables of its own TID, plus the TID of the outer loop. In a second embodiment discussed below, the TID is reused by consecutive threads of the loop.

[0416] The TID is returned to the TID pool 410 by sending an AF message from the tile in the synchronization domain when the thread terminates. The AF message can be an AF completion message, or for the second embodiment, an AF reentry message. This can also be achieved by a free TID message to the base tile 210. The AF message that returns the TID to the pool or reuses the TID is also used by the loop base tile 210 to maintain a count of the number of active loop threads in the loop count of the completion table 422 (or pause table 420). When the number of active loop threads reaches zero, the loop is completed. When the loop completion is detected by the loop count turning to zero, the AF completion message is sent to the post-loop synchronization domain to notify the completion. This mechanism provides a minimum (if not zero) idle loop for nested loops, resulting in better performance.

[0417] refer to Fig. 20 and 21 , at step 658, the first sync domain 526 (shown as tile 210B, but it can be any other tile in the first sync domain 526) sends an AF Continue message (656) to the base tile 210D of the third post-loop sync domain 654 to wait for the loop completion message (which will come from the second sync domain 538). At step 664, one of the tiles in the first sync domain 526 (shown as tile 210B) sends an AF Loop message (660) with an iteration (loop) count to the base tile 210C of the loop domain, which is the second sync domain 538. The base tile 210C starts a loop (IterCnt) thread (662, e.g., 6620, 6621, to the loop completed message through 662 N-1, where "N" is the iteration count (IterCnt). Each thread 662 has the same TID and XID_RD identifier. The XID_WR identifier is assigned by the loop base tile 210C (if enabled). The iteration index (i.e., ordered from zero to IterCnt-1 (N-1)) is accessible as a data path multiplexer selection in the base tile 210C of the loop domain.

[0418] Next, at step 668, each iteration of the loop domain sends an AF completion message (666) back to the base tile 210C of the second synchronization (loop) domain 538. Note that Fig. 20 The second synchronization domain 538 shown in the figure can actually be several synchronization domains. In the case where multiple synchronization domains form a loop, the thread of the last synchronization domain in the loop should transmit an AF completion message (666) so that the third post-loop synchronization domain 654 properly waits for all loop operations to complete. Once the base tile 210C of the second synchronization (loop) domain 538 receives all iterative AF completion messages (666), it sends a loop AF completion message (or AF continuation message) (670) to the base tile 210D of the third (post-loop) synchronization domain 654.

[0419] For example and without limitation, for loops containing nested and doubly nested loops, several additional novel features are utilized to minimize idle time, including a reentry queue 445 and additional sub-TIDs, such as TID2 for the outermost loop, TID1 for the middle or intermediate loop, and TID0 for the innermost loop. Each thread executing in the loop also has a unique TID, such as TID2 0-49 for an outer loop that will have fifty iterations, which are also used for corresponding completion messages when each iteration completes execution, also for example and without limitation.

[0420] Reference again Fig.11, providing several novel mechanisms to support efficient loops and minimize idle time. For example, loops with data-dependent end conditions (e.g., "while" loops) require the end conditions to be calculated when the loop is executed. In addition, for the control and execution of the loop, if all TIDs are allocated from the TID pool 410, but the thread at the head of the execution queue is a new loop that cannot be executed due to the lack of available TIDs, then a potential deadlock problem may occur, thereby preventing other loop threads from completing and releasing their allocated TIDs. Therefore, in a representative embodiment, the control register 340 includes two separate queues for threads ready to run, wherein the first queue is used to initiate a new loop (continue queue 430, also for non-loop threads), and a separate second queue (reentrant queue 445) is used for loop continuation. The continuation queue 430 allocates TIDs from the TID pool 410 to start the thread, as previously discussed. When each iteration of the loop thread executes and transmits an AF reentrant message with a previously allocated TID, the reentrant queue 445 uses the previously allocated TID. Any thread (TID) in the reentrant queue 445 will be moved into the run queue 440 ahead of threads (TIDs) that may be in other queues (continue queue 430). Thus, once a loop is started, loop iterations can proceed extremely quickly, with each subsequent thread of the loop being started quickly by using a separate reentrant queue 445, and further, without potential deadlock issues. Additionally, the reentrant queue 445 allows this fast execution, which is extremely important for loops with data-dependent end conditions, which can now run effectively to the last iteration that generates the data-dependent end condition without interruption.

[0421] Reference again Fig. 9 and 10, the control register 340 includes a memory area RAM 405. In various embodiments, the memory area RAM 405 can also maintain the top of the TID stack (with identifiers) through the nested loops, as described below. As mentioned above, each nested loop uses a new (or reused) set of TIDs to initiate threads. The thread of the loop may need to access its TID and the TID of the outer loop thread. Accessing the TID of each nested loop thread allows access to private variables of each thread, such as the different levels or types of TIDs described above, TID0, TID1, and TID2. The top of the stacked TID identifier indicates the TID of the active thread. The top of the stacked TID identifier is used to select which of the three TIDs (TID0, TID1, and TID2) is used to perform each operation. These three TIDs and the top of the stacked TID identifier are included in the synchronization fabric control information (or message) transmitted through the synchronous mesh communication network 275, and are therefore known to each thread. Because multiple TIDs are included within the sync fabric message and include the top of the stacked TID identifiers, the multiple TIDs allow threads in a nested loop to access variables from any level within the nested loop threads. Private thread variables are accessed using the selected TID and tile memory region RAM 405 identifier.

[0422] Another novel feature of the present disclosure is a mechanism for ordering loop thread execution to handle loop iteration dependencies, which also accommodates any delays in completion messages and data received over the asynchronous packet network 265. Fig.23 The tiles 210 form a synchronization domain and representative asynchronous packet network messaging and synchronous messaging for the hybrid thread fabric circuit group to perform calculations in the loop insertion diagram. Fig.23 As shown in , multiple synchronization domains 682, 684, and 686 are involved in executing a loop computation, namely, the second synchronization domain 682, the third synchronization domain 684, the fourth synchronization domain 686, and the pre-loop first synchronization domain 526 and the post-loop (fifth) synchronization domain 654. The loop computation can be any kind of loop, including nested loops, in which case there are data dependencies within the individual loops. For example, these data dependencies can occur within a single iteration, such as when information from the memory 125 is required, involving AF messaging through the asynchronous packet network 265. Therefore, thread execution should be performed in a defined order, not just when any particular thread has a zero completion count (which means that the thread is not waiting for any data, and all completion messages for the thread have arrived).

[0423] To provide ordered loop thread execution, in a representative embodiment, additional messaging and additional fields are utilized in the completion table 422 for each loop iteration. The loop base tile 210B provides four pieces of information (for each loop iteration) that are passed in a sync message 688 through each sync domain 682, 684, 686 and through the synchronous mesh communication network 275 (i.e., passed to each consecutive tile 210 in the given sync domain), and an AF continue message 692 that goes to the base tile 210 of the consecutive sync domain through the asynchronous packet network 265 (which is then passed in a sync message to each consecutive tile 210 in the given sync domain). Then, those four information fields are stored and indexed in the completion table 422 and used for comparison as the loop execution progresses. The four pieces of information are: a first flag indicating the first thread in a set of threads for the loop, a second flag indicating the last thread in a set of threads for the loop, the TID of the current thread, and the TID of the next thread. The TID of the current thread is obtained from the TID pool, and the TID of the next thread is the TID from the pool that will be provided for the next thread. These four pieces of information are used by the base tile of each consecutive synchronization domain to order the thread starts. If the dependency count of the thread has reached zero and the thread is the first thread of the loop, or the thread TID is equal to the next TID of the previously started thread, then it can start.

[0424] In other words, for each thread that has received all data completions (and is therefore ready to run), the thread control circuitry 330 (which generally includes various state machines) checks the completion table 422 to determine if the thread is the next thread to run (with the next thread ID, e.g., TID=4), and if so, moves the thread (TID=4) to the run queue 440, and if not, does not start the thread (e.g., the thread whose data completion count has become zero but has TID=5), but maintains the index of its TID to be started next. When the data completions of the thread with the next TID decrement to zero (in this case, TID=4) and therefore all completion messages have arrived, the thread is queued for execution, and the thread to be executed (TID=4) also has the next TID, in this case, its next TID is TID=5. Therefore, when the thread with TID=4 has completed, the thread control circuitry 330 checks the completion table 422 and has now determined that the thread (TID=5) is the next thread ID, and queues the thread for execution. When the thread ID is the last TID, after its execution, an AF completion message (656) may be transmitted to the post-loop base tile (in this case, 210E). Note that this use of additional fields in completion table 422 may be extended to any situation where a specific ordering of thread execution should be maintained.

[0425] Fig.24 3 is a circuit block diagram of a representative embodiment of the conditional branching circuit system 370. A synchronization domain, such as the first, second, and third synchronization domains mentioned above, is a set of interconnected tiles that are connected in sequence or in series through the synchronization mesh communication network 275. The execution of a thread begins at the first tile 210 of the synchronization domain, referred to as the base tile 210, and proceeds from it to other tiles 210 of the synchronization domain through the configured connection of the synchronization mesh communication network 275. Fig.24 As shown in , when a tile 210 has been configured as a base tile 210 of a sync domain (those configurations have been loaded to the HTF circuit 200 prior to run time), the selection 374 of the configuration memory multiplexer 372 is set equal to 1, thereby selecting the spoke RAM 320 to provide the instruction index for selecting the instruction from the instruction RAM 315. For all other tiles 210 of the sync domain, the selection 374 of the configuration memory multiplexer 372 is set equal to 0, thereby selecting the instruction index provided by the previous tile 210 in the sequence of tiles 210 of the sync domain. Therefore, the base tile 210 provides the instruction index (or instruction) to be executed to the next second tile of the domain through the specified field (or portion) of the communication lines (or wires) 270B and 270A (which has been specified by the master synchronization input, as mentioned above). By default, this next tile 210 and each subsequent tile 210 of the sync domain will then provide the same instruction as a static configuration to each next tile 210 of the connected tiles 210 for execution.

[0426] However, in a representative embodiment, a mechanism is provided for dynamic self-configuration using spoke RAM 320, instruction RAM 315, and conditional branch circuitry 370. Fig.24 , for the current tile 210, the ALB Op 310 may be configured to generate an output that is the result of a test condition, such as whether one input is greater than a second input. The test condition output is provided to the conditional branch circuit system 370 on the communication line (or wire) 378. When the conditional branch circuit system 370 is enabled (by providing one or more bits of the instruction on the line (or wire) 379), the test condition output is used to select the next instruction index (or instruction) provided to the next tile 210 of the synchronization domain to select between the "X" instruction or the "Y" instruction for the next tile 210, thereby providing a conditional branch of the data path when the first or second instruction is selected. Such conditional branches can also be cascaded, such as when the next tile 210 is also enabled to provide conditional branches. Dynamic self-configuration and self-reconfiguration are enabled in each such HTF circuit group 205 by selecting the next instruction for one or more of the subsequent tiles 210.

[0427] In a representative embodiment, the conditional branch circuit system 370 has been arranged to select or switch between two different instructions depending on the test condition result. The branch enable is provided in a field in the current (or current next) instruction and is provided to the AND gate 362 of the conditional branch circuit system 370, where it is ANDed with the test condition output. Depending on whether the test condition output is a logic "0" or "1", the AND gate 362 will generate a logic "0" or "1" as an output, which is provided as an input to the OR gate 364. Another designated bit of the selected field of the current next instruction index is typically the least significant bit ("LSB") of the next instruction index, which is also provided to the OR gate 364, where it is ORed with the output of the AND gate 362. If the LSB of the next instruction index is zero and it is ORed with the logic "1" of the output of the AND gate 362, then the output next instruction index has been increased by one, thereby providing a different next instruction index to the next tile 210. If the LSB of the next instruction index is zero and it is ORed with the logic "0" of the output of the AND gate 362, then the output next instruction index has not been incremented by one, thereby providing the same next instruction index to the next tile 210. Therefore, the current tile 210 conditionally specifies an alternative instruction for execution via the connected tile 210, enabling execution of one or more case statements in the HTF circuit group 205. The alternative instruction is selected by causing the data path of the current tile to generate a Boolean conditional value and using the Boolean value to select between the instruction of the current tile and the alternative instruction provided as the next instruction index to the next tile 210 in the synchronization domain. And, as a result, the current tile 210 has dynamically configured the next tile 210, and so on, thereby achieving dynamic self-configuration and self-reconfiguration in each HTF circuit group 205.

[0428] IV. Hybrid Thread Processor 300:

[0429] Fig.25 is a high-level block diagram of a representative embodiment of a hybrid thread processor (“HTP”) 300 . Fig.26 is a detailed block diagram of a representative embodiment of thread memory 720 (also referred to as thread control memory 720 ) of HTP 300 . Fig. 27 is a detailed block diagram of a representative embodiment of the network response memory 725 of the HTP 300. Fig.28 FIG. 29 is a flow chart of a representative embodiment of a method for self-scheduling and thread control of HTP 300.

[0430] HTP 300 generally includes one or more processor cores 705, which may be any type of processor core, such as a RISC-V processor core, an ARM processor core, etc., all of which are examples and not limiting. Core control circuitry 710 and core control memory 715 are provided for each processor core 705 and are Fig.25 705. For example, when multiple processor cores 705 are implemented in one or more HTPs 300, corresponding multiple core control circuits 710 and core control memories 715 are also implemented, where each core control circuit 710 and core control memory 715 is used to control the corresponding processor core 705. In addition, one or more of the HTPs 300 may also include a data path control circuit system 795, which is used to control the access size (e.g., load request of the memory 125) through the first interconnection network 150 to manage potential congestion of the data path.

[0431] The core control circuitry 710 in turn includes control logic and thread selection circuitry 730 and network interface circuitry 735. The core control memory 715 includes a plurality of registers or other memory circuitry, conceptually divided and referred to herein as a thread memory (or thread control memory) 720 and a network response memory 725. For example and without limitation, the thread memory 720 includes a plurality of registers for storing information related to thread state and execution, while the network response memory 725 includes a plurality of registers for storing information related to data packets transmitted to and from the first memory 125 over the first interconnection network 150, such as requests to read or store data from the first memory 125.

[0432] refer to Fig.26, the thread memory 720 includes a plurality of registers, including: a thread ID pool register 722 (storing a predetermined number of thread IDs that are available and are usually filled with identification numbers 0 to 31 for a total of 32 thread IDs when the system 100 is configured, for example but not limited to); a thread state (table) register 724 (storing thread information, such as valid, idle, paused, waiting for instructions, first (normal) priority, second (low) priority, temporary change of priority when resources are not available); a program counter register 726 (for example, storing the address or virtual address where the thread will start next in the instruction cache 740); a general register 728 for storing integers and floating point numbers 744; and a data cache 746 (typically providing 4 to 8 cache lines of cache memory for each thread). All of the different registers of thread memory 720 are indexed using the assigned thread ID of a given or selected thread.

[0433] refer to Fig. 27 , the network response memory 725 includes a plurality of registers, such as a memory request (or command) register 748 (e.g., a command to read, write, or perform a custom atomic operation); a thread ID and transaction identifier ("transaction ID") register 752 (where the transaction ID is used to track any request for memory and to associate each such transaction ID with the thread ID of the thread that generated the request for memory 125); a request cache line index register 754 (used to specify which cache line in the data cache 746 is to be written to when data is received from memory for a given thread (thread ID); a register byte register 756 (specifies the number of bytes to be written to the general register 728); and a general register index and type register 758 (indicates which general register 728 is to be written to and whether it is sign-extended or floating point).

[0434] As described in more detail below, the HTP 300 will receive the work descriptor packet. In response, the HTP 300 will find an idle or empty background and initialize the background block, thereby assigning a thread ID to the execution thread (generally referred to as "thread" in this article) (if the thread ID is available), and placing the thread ID in the execution (i.e., "ready to run") queue 745. The threads in the execution (ready to run) queue 745 are typically selected for execution in a round-robin or "bucket" selection process, wherein a single instruction of the first thread is provided to the execution pipeline 750 of the processor core 705, then a single instruction of the second thread is provided to the execution pipeline 750, then a single instruction of the third thread is provided to the execution pipeline 750, then a single instruction of the next thread is provided to the execution pipeline 750, and so on, until all threads in the execution (ready to run) queue 745 have provided corresponding instructions to the execution pipeline 750, at which time thread selection begins again, wherein the next instruction of the first thread in the execution (ready to run) queue 745 is provided to the execution pipeline 750, then the next instruction of the second thread is provided to the execution pipeline 750, and so on, in a cycle for all threads of the execution (ready to run) queue 745. This execution will continue for each such thread until the execution of the thread has been completed, such as by executing a thread return instruction, at which time a response packet (with the thread execution results) is transmitted back to the source of the work descriptor packet, i.e., back to the source of the work descriptor call packet. Additionally, in a representative embodiment and as discussed in more detail below, the execution (ready to run) queue 745 optionally has different levels of priority, shown as a first priority queue 755 and a second (lower) priority queue 760, where execution of threads in the first priority queue 755 occurs more frequently than execution of threads in the second (lower) priority queue 760.

[0435] Therefore, HTP 300 is an "event driven" processor, and will automatically start thread execution (condition is that thread ID is available, but does not have any other requirements for initiating execution) after receiving work descriptor packet, that is, the arrival of work descriptor packet automatically triggers the start of local thread execution, without reference to memory 125 or additional request for memory 125. This is extremely useful, because the response time of starting to execute many threads (such as thousands of threads) in parallel is quite low. HTP 300 will continue thread execution until thread execution is completed, or it waits for response, and thread will enter "pause" state when responding, as discussed in more detail below. Several different pause states are discussed in more detail below. After receiving the response, thread returns to active state, in which thread resumes execution, wherein its thread ID returns to execution (ready to run) queue 745. In conjunction with thread state information stored in thread memory 720, this thread execution control is performed in hardware by control logic and thread selection circuit system 730.

[0436] In addition to the host processor 110 generating work descriptor packets, the HTP 300 may also generate and transmit work descriptor packets to initiate work as one or more computing threads on another computing resource (e.g., another HTP 300 or any HTF circuit 200). Such work descriptor packets are "call" work descriptor packets and generally include a source identifier or address of the host processor 110 or HTP 300 that is generating the call work descriptor packet, a thread ID (e.g., a 16-bit call identifier (ID)) for identifying the return or associating the return with the original call, a 64-bit virtual core address (as a program counter, used to locate the first instruction to start executing the thread, typically stored in the instruction cache 740 of the HTP 300 (or HTF circuit 200), which may also be a virtual address space), and one or more call arguments, e.g., up to four call arguments.

[0437] Similarly, when a thread has completed, the HTP 300 or HTF circuit 200 generates another work descriptor packet, referred to as a "return" work descriptor packet, which is generally created when the HTP 300 or HTF circuit 200 executes the last instruction of the thread (referred to as a return instruction), wherein the return work descriptor packet is assembled by the packet encoder 780, as discussed below. The return packet will be addressed back to the source (using the identifier or address provided in the call work descriptor packet), the thread ID (or call ID) from the call work descriptor packet (to allow the source to correlate the return with the call issued, particularly when multiple calls have been generated by the source and are pending at the same time), and one or more return values ​​(as a result), for example, up to four return values.

[0438] Fig.28is a detailed block diagram of a representative embodiment of HTP 300. For ease of illustration and discussion, it should be noted that Fig.28 Not all registers of the thread memory 720 and the network response memory 725 are shown in FIG. Fig.28 , the core control circuit 710 includes a control logic and thread selection circuit system 730 and a network interface circuit system 735. For example but not limited to, the control logic and thread selection circuit system 730 includes a circuit system formed by a combination of any one of a plurality of different logic gates (e.g., "NAND", "NOR", "AND", "OR", "XOR", etc.) and different state machine circuits (control logic circuit 731, thread selection control circuit system 805), and multiplexers (e.g., input multiplexer 787, thread selection multiplexer 785). The network interface circuitry 735 includes: an AF input queue 765 for receiving data packets (including work descriptor packets) from the first interconnect network 150; an AF output queue 770 for passing data packets (including work descriptor packets) to the first interconnect network 150; a packet decoder circuit 775 for decoding incoming data packets from the first interconnect network 150, extracting data (in designated fields) and passing the data provided in the packets to the thread memory 720 and the associated registers of the network response memory 725 (in conjunction with the thread ID assigned to the thread by the control logic and thread selection circuitry 730, which also provides or forms an index to the thread memory 720, as discussed in more detail below); and a packet encoder circuit 780 for encoding outgoing data packets (e.g., for requests for memory 125, using a transaction ID from the thread ID and transaction identifier (“transaction ID”) register 752) for transmission over the first interconnect network 150. The packet decoder circuit 775 and the packet encoder circuit 780 may each be implemented as a state machine or other logic circuitry. Depending on the selected embodiment, there may be a separate core control circuit 710 and a separate core control memory 715 for each HTP processor core 705 , or a single core control circuit 710 and a single core control memory 715 may be used for multiple HTP processor cores 705 .

[0439] When the work descriptor packet arrives, the control logic and thread selection circuit system 730 assigns the available thread ID to the thread of the work descriptor packet from the thread ID pool register 722, wherein the thread ID is used as the index of other registers in the thread memory 720 through the distribution, and then the corresponding data from the work descriptor packet, usually the program counter and one or more independent variables, are used to fill the register. For example, but not limited to, when preparing to start the thread execution instruction, the control logic and thread selection circuit system 730 autonomously initialize the remainder of the thread background state, such as the load data cache register 746 and the load thread return register 736. For another example, the execution thread has a main memory stack space and a main memory background space. The background space is only used when the state of the thread needs to be written to the memory to be accessed by the host. Each HTP 300 processor core 705 is initialized with a core stack base address and a core background base address, wherein the base address points to a stack block and a background space block. The thread stack base address is obtained by obtaining the core stack base address and adding the thread ID multiplied by the thread stack size. The thread background base address is obtained in a similar manner.

[0440] The thread ID is given a valid state (indicating that it is ready to execute), and the thread ID is pushed to the first priority queue 755 of the execution (ready to run) queue 745, because threads are generally assigned the first (or normal) priority. The control logic and the selection circuitry of the thread selection circuitry 730, such as the multiplexer 785, selects the next thread ID in the execution (ready to run) queue 745, which is used as an index into the thread memory 720 (the program counter register 726 and the thread state register 724) to select an instruction from the instruction cache 740 that is then provided to the execution pipeline 750 for execution. The execution pipeline then executes the instruction.

[0441] Upon completion of the execution of the instruction, under the control of the control logic and thread selection circuit system 730, the same triplet of information (thread ID, valid state and priority) may be returned to the execution (ready to run) queue 745, depending on various conditions, for continued selection for round-robin execution. For example, if the last instruction of the selected thread ID is a return instruction (indicating that the thread execution is complete and a return data packet has been provided), then the control logic and thread selection circuit system 730 returns the thread ID to the available thread ID pool in the thread ID pool register 722 for use by another different thread. For another example, the valid indicator may change, such as to a suspended state (e.g., while the thread may be waiting for information to be returned from or written to memory 125 or waiting for another event), in which case the thread ID (now having a suspended state) is not returned to the execution (ready to run) queue 745 until the state changes back to valid.

[0442] Continuing with the previous example, when the last instruction for the selected thread ID is a return instruction, the return information (thread ID and return arguments) is pushed to the network command queue 790, which is typically implemented as a first-in, first-out (FIFO), through the execution pipeline 750. The thread ID is used as an index into the thread return register 736 to obtain the return information, such as the transaction ID and source (caller) address (or other identifier), and the packet encoder circuit (on the first interconnect network 150) generates an outgoing return data packet.

[0443] Continuing with the latter example, the thread's instruction may be a load instruction, i.e., a read request for memory 125, which is then pushed to the network command queue 790 by the execution pipeline 750. Next, the packet encoder circuit (on the first interconnection network 150) generates an outgoing data packet with a request (either a read or a write request) for memory 125, including the request size and the assigned transaction ID (from the thread ID and transaction ID register 752, which is also used as an index to the network response memory 725), the address of the HTP 300 (as the return address for the requested information). When the packet is received from the first interconnection network 150 and decoded, the transaction ID is used as an index to the network response memory 725, the thread ID of the thread making the request is obtained, which also provides the location in the data cache 746 where the data returned in the response is written, and then the transaction ID is returned to the thread ID and transaction ID register 752 for reuse, and the state of the corresponding thread ID is set to valid again, and the thread ID is pushed to the execution (ready to run) queue 745 again to resume execution.

[0444] A storage request to memory 125 is performed in a similar manner, where the outgoing packet also has the data to be written to memory 125, the assigned transaction ID, the source address of the HTP 300, and where the return packet is an acknowledgment with the transaction ID. The transaction ID is then also returned to the thread ID and transaction ID register 752 for reuse, and the state of the corresponding thread ID is again set to valid, and the thread ID is again pushed to the execution (ready to run) queue 745 to resume execution.

[0445] Figure 29 is a flow chart of a representative embodiment of a method for self-scheduling and thread control for HTP 300, and provides a useful overview, wherein HTP 300 has been filled with a predetermined number of thread IDs in the instruction cache 740 and thread identifier pool register 722. The method begins at step 798, after receiving a work descriptor packet. In step 802, the work descriptor packet is decoded, and in step 804, each register of the thread memory 720 is filled with the information received in the work descriptor packet, thereby initializing the background block. When in step 806, the thread ID is available, in step 808, the thread ID is allocated (if the thread ID is not available in step 806, then in step 810, the thread will wait until the thread ID becomes available). In step 812, a valid state is initially allocated to the thread (together with any initially allocated priority, such as the first or second priority), and in step 814, the thread ID is provided to the execution (ready to run) queue 745. Next, at step 816, a thread ID in the execution (ready to run) queue 745 is selected for execution (at a predetermined frequency, as discussed in more detail below). At step 818, using the thread ID, the thread memory 720 is accessed and the program count (or address) is obtained. At step 820, the instruction corresponding to the program count (or address) is obtained from the instruction cache 740 and provided to the execution pipeline 750 for execution.

[0446] When the thread execution is completed in step 822, that is, when the executed instruction is a return instruction, in step 824, the thread ID is returned to the thread ID pool register 722 for reuse by another thread, in step 826, the register of the thread memory 720 associated with the thread ID can be cleaned up (optionally), and the thread control of the thread can be ended when returning to step 834. When the thread execution is not completed in step 822, and when the thread state remains valid in step 828, the thread ID (and its valid state and priority) is returned to the execution (ready to run) queue 745, and the execution is returned to step 814 to continue. When the thread state is no longer valid (that is, the thread is suspended) in step 828, wherein the suspended state of the thread ID is indicated in the thread memory 720, the execution of the thread is suspended in step 830 until the state of the thread ID returns to valid and the thread ID (and its valid state and priority) is returned to the execution (ready to run) queue 745 in step 832, and the execution is returned to step 814 to continue.

[0447] Similarly, HTP 300 can generate calls to create threads on local or remote computing elements, thereby creating threads on other HTP 300 or HTF circuit 200. Such calls are also created as outgoing data packets, and more specifically, as outgoing work descriptor packets on first interconnection network 150. For example, the instruction of the current thread being executed can be a "fiber creation" instruction (stored as a possible instruction in instruction cache 740) to enable multiple threads to execute on various computing resources. As discussed in more detail below, such fiber creation instructions specify (using addresses or virtual addresses (node ​​identifiers)) what computing resources will execute threads, and will also provide associated independent variables. When the fiber creation instruction is executed in execution pipeline 750, the fiber creation command is pushed into network command queue 790, and the next instruction is executed in execution pipeline 750. The command is pulled out of network command queue 790, and data packet encoder circuit 780 has the information needed to create and send a work descriptor packet to the specified destination HTF 200 or HTP 300.

[0448] If the created thread will have return arguments, such instructions will also allocate and reserve associated memory space, such as in the return argument buffer 734. If there is not enough space in the return argument buffer 734, the instruction will be suspended until the return argument buffer 734 is available. The number of created shreds or threads is limited only by the amount of space to store the response arguments. Threads created without return arguments can be exempted from reserving return argument space, thereby avoiding a possible pause state. This mechanism ensures that returns from completed threads always have a place to store their arguments. When the returns are returned to the HTP 300 as data packets on the first interconnect network 150, those packets are decoded, as discussed above, where the return data is stored in the associated reserved space in the return argument buffer 734 of the thread memory 720, which is indexed by the thread ID associated with the shred creation instruction. Because many registers can be used for return arguments, the return argument buffer 734 can be provided as a linked list of all generated threads or a return argument buffer or register allocated for the thread ID. Notably, this mechanism can make it possible to create thousands of threads extremely quickly, effectively minimizing the time involved in transitioning from single thread execution to high thread count parallelism.

[0449] As discussed in more detail below, various types of fiber join instructions are utilized to determine when all threads generated are completed, and may be instructions with or without waiting. The count of the number of generated threads is stored in the pending fiber return count register 732, which is decremented when the HTP 300 receives the thread return. The join operation can be implemented by copying the return into a register associated with the generated thread ID. If the join instruction is a wait instruction, it will remain in a paused state until the return of the thread ID of the specified generated thread arrives. During this period, other instructions are executed by the execution pipeline 750 until the paused state of the join instruction becomes an effective state and the join instruction returns to the execution (ready to run) queue 745.

[0450] The thread return instruction may also be used as an instruction following the fiber creation instruction, rather than an add instruction. When the count in the pending fiber return count register 732 reaches zero and the last thread return packet is received, the thread return instruction may also be executed and indicates that the fiber creation operation has been completed and all returns have been received, allowing the thread ID, return argument buffer 734, and linked list to be released for other purposes. In addition, it may also generate and transmit a work descriptor return packet (e.g., with result data) to a source called the primary thread (e.g., an identifier or address of a source that generates a call).

[0451] The join all instruction does not need to return an argument, only to cause the pending shred to return an acknowledgment of the decrement of the count in count register 732. When the count reaches zero, the thread restarts because the join all is now complete.

[0452] Communication between processing elements is required to facilitate the processing of parallel algorithms. Representative embodiments provide an efficient means for threads of a set of processing resources to communicate using individual event messages, which may also contain data (e.g., arguments or results). Event messaging allows any host processor 110 with hardware-maintained cache coherence and any accelerator processor (e.g., HTP 300) with software-maintained cache coherence to efficiently participate in event messaging.

[0453] Event messaging supports both point-to-point and broadcast event messages. Each processing resource (HTP 300) can determine when a received event operation is complete and when the processing resource should be notified. Event reception modes include simple (a single received event completes the operation), collection (a counter is used to determine when enough events have been received to complete the operation), and broadcast (an event received on a specific channel completes the event). In addition, events can be sent with an optional 64-bit data value.

[0454] HTP 300 has a set of event receive states consisting of a 2-bit receive mode, a 16-bit counter / channel number, and a 64-bit event data value, stored in event state register 744. HTP 300 can have multiple sets of event receive states for each thread background, wherein each set is indexed by an event number. Therefore, events can be for a specific thread (thread ID) and an event number. The events sent can be point-to-point messages with a single destination thread, or broadcast messages sent to all threads within a set of processing resources belonging to the same process. When such events are received, a paused or sleeping thread can be reactivated to resume processing.

[0455] This use of the event status register 744 is much more efficient than a standard Linux-based host processor that can send and receive events through an interface that allows the host processor 110 to periodically poll for completed receive events. Threads waiting for event messages can be suspended until the receive operation is complete, i.e., the HTP 300 can suspend execution of threads pending completion of receive events, rather than wasting resources by polling, thereby allowing other threads to execute during these intervals. Each HTP 300 also maintains a list of processing resources that should participate in receiving events to avoid process safety issues.

[0456] Point-to-point message will specify event number and destination (e.g., node number, which HTP 300, which core and which thread ID). On the receiving side, HTP 300 will be configured or programmed with one or more event numbers stored in event status register 744. If the HTP 300 receives event information with the event number, it is triggered and transitions to an active state from a pause state to resume execution, such as executing an event received instruction (e.g., EER below). Then, the instruction will determine whether the correct event number is received, and if so, any associated 64-bit data is written to the general register 728 for use by another instruction. If the event has received instruction execution and the correct event number is not received, it will be suspended until the specific event number is received, so.

[0457] Event listening (EEL) instructions may also be utilized, wherein an event mask is stored in the event received mask register 742, indicating one or more events that will be used to trigger or wake up the thread. When event information with any of those specified events arrives, the receiving HTP 300 will know which event number was triggered, e.g., which other process may have completed, and will receive event data from those completed events. Event listening instructions may also have wait and no wait variations, as discussed in more detail below.

[0458] For event messaging in collection mode, the receiving HTP 300 will collect (wait) a set of receive events before triggering, setting the count in the event status register 744 to the required value, decrementing when the required event message is received, and triggering when the count decrements to zero.

[0459] In broadcast mode, the sender processing resource can transmit messages to any thread within the node. For example, the sending HTP 300 can transmit a series of point-to-point messages to each other HTP 300 within the node, and then each receiving HTP 300 passes the message to each internal core 705. Each core control circuit 710 will check its thread list to determine whether it corresponds to the event number it is initialized to receive, and determine which channel may have been specified on the first interconnection network 150.

[0460] This broadcast mode is particularly useful when thousands of threads can be executed in parallel, with the last thread to execute transmitting a broadcast event message indicating completion. For example, a first count of all threads that need to be completed can be stored in event status register 744, and a second count of all threads that have been executed can be stored in memory 125. As each thread executes, it also performs an atomic operation of getting and incrementing the second count, such as through atomic operations of memory 125 (and comparing it to the first count), and sets its mode to receive broadcast messages by executing an EER instruction that waits until it receives a broadcast message. The last thread to execute treats the acquired value of the second count as the required first count minus one, indicating that it is the last thread to execute, and therefore sends a broadcast message, which is an extremely fast and efficient way to indicate the completion of a large amount of parallel processing.

[0461] As mentioned above, while the HTP 300 can utilize standard RISC-V instructions, it is worth noting that an extended instruction set can be provided to utilize all of the computing resources of the system 100, as discussed in more detail below. Threads created from the host processor 110 are generally referred to as main threads, and threads created from the HTP 300 are generally referred to as shreds or shred threads, all of which are executed identically on the destination HTP 300 and HTF 200 without passing through the memory 125.

[0462] New load instructions:

[0463] HTP 300 has a relatively small read / write buffer for each thread, also referred to as data cache register 746. The buffer (data cache register 746) temporarily stores shared memory data for use by the own thread. The data cache register 746 is managed by a combination of hardware and software. When needed, the hardware automatically allocates the buffer and reclaims the data. By using RISC-V instructions, the software determines which data should be cached (read and write data), and when the data cache register 746 should be invalidated (if valid) or written back to the memory (if invalid). The RISC-V instruction set provides a FENCE instruction, and acquires and releases indicators on atomic instructions.

[0464] Standard RISC-V load instructions automatically use read data cache registers 746. Standard loads check to determine if the required data is in the existing data cache registers 746. If so, the data is obtained from the data cache registers 746, and the execution thread can continue to execute without pausing. If the required data is not in the data cache registers 746, the HTP 300 looks for an available data cache register 746 (needs to retrieve data from the buffer) and reads 64 bytes from memory into the data cache registers 746. The execution thread is paused until the memory read is completed and the load data is written to the RISC-V registers.

[0465] Read buffering has two main benefits: 1) greater access to the memory controller 120 is more efficient, and 2) access to the buffer allows the execution thread to not stall. However, there are situations where the use of the buffer creates problems. An example is a gather operation, where access would normally result in thrashing of the data cache register 746. For this reason, a set of special load instructions are provided that force the load instruction to check for a cache hit, but on a cache miss, only issue a memory request for the requested operand and do not place the obtained data in the data cache register 746, but instead place the data in one of the general registers 728.

[0466] The new load instructions provide "probabilistic" caching based on expected access frequency for frequently used data versus infrequently or rarely used data. This is particularly important when used with sparse data sets, which, if placed in data cache registers 746, will also more frequently overwrite other data that is needed, effectively polluting data cache registers 746. The new load instructions (NB or NC) allow frequently used data to remain in data cache registers 746, while infrequently used (sparse) data that would normally be cached is actually designated for non-cached storage in general registers 728.

[0467] This type of instruction has an NB suffix (non-buffered) (or equivalently, an NC suffix (non-cacheable):

[0468] LB.NB RA,40(SP).

[0469] The NB(NC) load instruction is intended for use with runtime libraries written in assemblies.

[0470] In Table 8, the following load instructions are added as 32-bit instructions, where Imm is the immediate field, RA is the register name, rs1 is the source index, rd is the destination index, and the bits in fields 14-12 and 6-0 specify the instruction.

[0471] Table 8:

[0472]

[0473] Bandwidth to memory is often the primary factor limiting application performance. Representative embodiments provide a means of informing HTP 300 of the size of memory load requests that should be issued to memory 125. Since access to memory data is not for use by the application, representative embodiments reduce waste of memory and bandwidth of first interconnect network 150.

[0474] There is another optimization, wherein the application knows the size of the data structure accessed, and can specify the amount of data to be loaded into the data cache register 746. As an example, if the algorithm uses a structure of size 16 bytes, and the structure is scattered in the memory, it will be optimal to issue a 16-byte memory read and place the data into the data cache register 746. Representative embodiments limit a group of memory load instructions, which provide the size of the operand to be loaded into the HTP 300 register and the size of the access to the memory when the load misses the data cache register 746. If the memory access crosses the cache line boundary, the actual load of the memory 125 can be less than the size specified by the instruction. In this case, reduce the access size to ensure that the response data is written to the single cache line of the data cache register 746.

[0475] When the requested data is smaller than a cache line, the load instruction may also request additional data that is not currently needed by the HTP 300 but may be needed in the future and is worth obtaining at the same time (e.g., as a prefetch), thereby optimizing the read size access to the memory 125. This instruction may also overwrite (as discussed in more detail below, see Fig.32 ) any reduction in access size that may have been used for bandwidth management.

[0476] Thus, representative embodiments minimize bandwidth waste by only requesting memory data that is known to be needed. The result is improved application performance.

[0477] A set of load instructions have been defined that allow the specification of the amount of data to be accessed. The data is written to the buffer and invalidated by an eviction, FENCE, or atomic with a specified fetch. The load instruction provides a hint as to how much additional data (in 8-byte increments) will be accessed from memory and written to the store buffer. The load will only access additional data to the next 64-byte boundary. The load instruction specifies the number of additional 8-byte elements to load using the operation suffixes RB0-RB7:

[0478] LD.RB7 RA,40(SP)

[0479] The instruction format is shown in Table 9. The number of 8-byte data elements to be loaded into the buffer is specified as bits 6 and 4:3 in the 32-bit instruction. These load instructions can be used to assemble a routine written in assembly, or ideally, assembled by a compiler. It is expected that assemblies that are initially just hand-written will make use of these instructions.

[0480] Table 9:

[0481]

[0482] New storage instructions

[0483] The HTP 300 has a small amount of storage buffers for temporarily storing shared memory data. The storage buffers allow multiple writes to the memory to be merged into a smaller number of memory write requests. This has two benefits: 1) fewer write requests are more efficient for the first interconnection network 150 and the memory controller 120, and 2) the HTP 300 suspends the thread executing the memory store until the data is stored in the HTP 300 storage buffer or the memory controller 120. Storage to the HTP 300 storage buffer is extremely fast and does not usually cause the thread to suspend execution. When the buffer is written to the memory controller 120, the thread is suspended until completion is received to ensure the consistency of the memory 125.

[0484] Standard RISC-V storage instructions write data to the HTP 300 storage buffer. However, there are known situations where it is better to write data directly to the memory instead of writing to the storage buffer. Suc...

Claims

1. A system for processing data, comprising: Interconnection network; a first processor coupled to the interconnection network; as well as A configurable circuit group coupled to the interconnection network, the configurable circuit group comprising: A plurality of configurable circuits arranged in an array, each configurable circuit in the array of the plurality of configurable circuits comprising: Configurable computing circuits; a plurality of synchronization network inputs coupled to the configurable computing circuit; a plurality of synchronous network outputs coupled to the configurable computing circuit; and a configuration memory circuit coupled to the configurable computing circuit, the plurality of synchronous network inputs, and the plurality of synchronous network outputs, the configuration memory circuit comprising: a first instruction memory storing a first plurality of datapath configuration instructions to configure a datapath of the configurable computing circuit; and a second instruction memory storing a second plurality of datapath configuration instructions or instruction indexes to select a master synchronization network input of the plurality of synchronization network inputs, the master synchronization network input being used to receive a current datapath configuration instruction or instruction index from an adjacent configurable circuit in the array of the plurality of configurable circuits; an asynchronous packet network coupled to each of the plurality of configurable circuits of the array; and A synchronization network is coupled to the plurality of synchronization network inputs and the plurality of synchronization network outputs of each of the plurality of configurable circuits of the array.

2. The system of claim 1, wherein the interconnection network comprises: A first plurality of crossbar switches having a Folded Clos configuration and a plurality of direct mesh connections at interfaces with system endpoints.

3. The system of claim 2, wherein the asynchronous packet network comprises: A second plurality of crossbars, each crossbar in the second plurality of crossbars coupled to at least one configurable circuit in the array of the plurality of configurable circuits and another crossbar in the second plurality of crossbars.

4. The system of claim 3, wherein the synchronization network comprises: A plurality of direct point-to-point connections couple adjacent configurable circuits in the array of the plurality of configurable circuits.

5. The system of claim 1 , wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A control circuit coupled to the configurable computing circuit, the control circuit comprising: a thread control circuit; and a number of control registers; an asynchronous network input queue coupled to the asynchronous packet network; and An asynchronous network output queue is coupled to the asynchronous packet network.

6. The system of claim 1, wherein the second plurality of datapath configuration instructions or instruction indexes further comprises one or more instructions or instruction indexes to select the current datapath configuration instruction from the first plurality of datapath configuration instructions for the configurable computing circuit.

7. The system of claim 1 , wherein the second plurality of datapath configuration instructions or instruction indexes further comprises one or more instructions or instruction indexes to select a next datapath configuration instruction or instruction index to output to the master synchronous network input of a next configurable circuit in the array of the plurality of configurable circuits.

8. The system of claim 1, wherein the second plurality of datapath configuration instructions or instruction indexes further comprises one or more instructions or instruction indexes to select a synchronous network output of the plurality of synchronous network outputs.

9. The system of claim 1 , wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A configuration memory multiplexer is coupled to the first instruction memory and the second instruction memory, the configuration memory multiplexer having a select input.

10. The system of claim 9, wherein when the select input of the configuration memory multiplexer has a first setting, the current datapath configuration instruction is selected from the first plurality of datapath configuration instructions in the first instruction memory using a selected datapath configuration instruction or an instruction index from the second instruction memory.

11. The system of claim 10, wherein when the select input of the configuration memory multiplexer has a second setting, the second setting being different from the first setting, the current datapath configuration instruction is selected using a datapath configuration instruction or an instruction index received from the master synchronization network input.

12. The system of claim 1, wherein the second plurality of datapath configuration instructions or instruction indexes further comprises one or more instructions or instruction indexes to configure at least a portion of selected configurable circuits in the array of the plurality of configurable circuits independently of the current datapath configuration instruction or instruction index.

13. The system of claim 1, wherein each data path configuration instruction or instruction index in the second plurality of data path configuration instructions or instruction indexes is selected according to a predetermined modulo count.

14. The system of claim 7, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A conditional logic circuit is coupled to the configurable computation circuit.

15. The system of claim 14 , wherein the conditional logic circuit is configured to provide conditional branching based on an output from the configurable computing circuit by providing a first next data path configuration instruction or instruction index to be output to the primary synchronous network input of the next configurable circuit or providing a different second next data path configuration instruction or instruction index to be output to the primary synchronous network input of the next configurable circuit.

16. The system of claim 14, wherein the conditional logic circuit is used to provide conditional branching based on the output from the configurable computing circuit by modifying the next data path configuration instruction or instruction index provided for output to the main synchronous network input of the next configurable circuit.

17. The system of claim 14, wherein the conditional logic circuit is used to provide conditional branching based on the output from the configurable computing circuit by modifying the next data path configuration instruction or instruction index provided on a selected synchronization network output of the plurality of synchronization network outputs.

18. The system of claim 14, wherein when enabled, the conditional logic circuit is configured to provide conditional branching based on an output from the configurable computing circuit by ORing the output from the configurable computing circuit with a least significant bit of the next datapath configuration instruction or instruction index to provide the next datapath configuration instruction or instruction index output to the primary synchronous network input of the next configurable circuit.

19. The system of claim 1, wherein the synchronization network comprises a plurality of communication lines, and wherein the plurality of synchronization network inputs comprises: a plurality of input registers coupled to the plurality of communication lines of the synchronization network; as well as An input multiplexer is coupled to the plurality of input registers and the second instruction memory to select the master synchronous network input.

20. The system of claim 19, wherein the plurality of synchronized network outputs comprises: a plurality of output registers coupled to the plurality of communication lines of the synchronization network; as well as An output multiplexer is coupled to the configurable computation circuit to select a synchronous network output from the plurality of synchronous network outputs.

21. The system of claim 5, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: An asynchronous fabric state machine is coupled to the asynchronous network input queue and the asynchronous network output queue, the asynchronous fabric state machine being used to decode input data packets received from the asynchronous packet network and assemble output data packets for transmission on the asynchronous packet network.

22. The system of claim 20, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A direct path connection between the plurality of input registers and the plurality of output registers.

23. The system of claim 22, wherein the direct path connection of a first configurable circuit in the array of the plurality of configurable circuits provides a direct point-to-point connection for data transmission over the synchronous network from data received from a second configurable circuit in the array of the plurality of configurable circuits to a third configurable circuit in the array of the plurality of configurable circuits.

24. The system of claim 1 , wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: Arithmetic, logic and bitwise operation circuits for performing at least one integer operation selected from the group consisting of: signed and unsigned addition, absolute value, negation, logical NOT, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparisons for equality or inequality, logical AND, logical OR, logical XOR, logical NAND, logical NOR, logical NON XOR, logical NAND, logical NOR, conversions between integer and floating point, and combinations thereof.

25. The system of claim 1 , wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: Arithmetic, logic and bitwise operation circuitry for performing at least one floating point operation selected from the group consisting of: signed and unsigned addition, absolute value, negation, logical NOT, addition and negation, subtraction AB, reverse subtraction BA, signed and unsigned greater than, signed and unsigned greater than or equal to, signed and unsigned less than, signed and unsigned less than or equal to, comparison for equality or inequality, logical AND, logical OR, logical XOR, logical NAND, logical NOR, logical NON XOR, logical NAND, logical NOR, conversion between integer and floating point, and combinations thereof.

26. The system of claim 1, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: Multiplication and shift operation circuitry for performing at least one integer operation selected from the group consisting of: multiplication, shift, passing input, signed and unsigned multiplication, signed and unsigned right shift, signed and unsigned left shift, bit reversal, permutation, conversion between integer and floating point, and combinations thereof.

27. The system of claim 1, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: Multiplication and shift operation circuitry for performing at least one floating point operation selected from the group consisting of: multiplication, shift, passing input, signed and unsigned multiplication, signed and unsigned right shift, signed and unsigned left shift, bit reversal, permutation, conversion between integer and floating point, and combinations thereof.

28. The system of claim 1, wherein the configurable circuit group further comprises: a scheduling interface circuit coupled to the asynchronous packet network and the interconnect network, the scheduling interface circuit being operative to generate one or more data and control packets in response to receiving a work descriptor packet from the interconnect network, and to transmit the one or more data and control packets over the asynchronous packet network to one or more configurable circuits in the array of the plurality of configurable circuits to configure the one or more configurable circuits in the array of the plurality of configurable circuits to perform a selected computation.

29. The system of claim 5, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A flow control circuit is coupled to the asynchronous network output queue, and is configured to generate a stop signal when a predetermined threshold is reached in the asynchronous network output queue.

30. The system of claim 29, wherein in response to the stop signal, each asynchronous network output queue of each configurable circuit in the array of the plurality of configurable circuits stops outputting data packets on the asynchronous packet network.

31. The system of claim 29, wherein in response to the stall signal, each configurable computing circuit of each configurable circuit in the array of the plurality of configurable circuits stops executing after completing its current instruction.

32. A system according to claim 5, wherein one or more of the configurable circuits in the array of the multiple configurable circuits are coupled through the synchronization network in a first predetermined order to form a first synchronization domain having a first tile; and wherein one or more of the configurable circuits in the array of the multiple configurable circuits are coupled through the synchronization network in a second predetermined order to form a second synchronization domain having a second tile.

33. The system of claim 32, wherein the first synchronization domain is used to generate a continue message and transmit the continue message to the second tile of the second synchronization domain through the asynchronous packet network.

34. The system of claim 32, wherein the second synchronization domain is used to generate a completion message and transmit the completion message to the first synchronization domain through the asynchronous packet network.

35. The system of claim 5, wherein the plurality of control registers stores a completion table having a plurality of thread identifiers identifying a plurality of computing threads and having a corresponding data completion count for each of the plurality of thread identifiers.

36. The system of claim 35, wherein the plurality of control registers further store, in the completion table, an iteration count for each thread identifier of the plurality of thread identifiers.

37. The system of claim 35, wherein the plurality of control registers further store, in the completion table, for each of the plurality of thread identifiers, an identification of a last iteration or a next thread identifier identifying a next computing thread to perform subsequent execution of the current computing thread to provide sequential computing thread execution.

38. The system of claim 37, wherein the plurality of control registers further store an identification of a first iteration in the completion table.

39. A system according to claim 37, wherein the thread control circuit is used to queue the selected computing thread among the multiple thread identifiers for execution when the corresponding data completion count for the thread identifier of the selected computing thread among the multiple thread identifiers is decremented to zero and the thread identifier of the selected computing thread identifies the selected computing thread as the next computing thread to be executed.

40. The system of claim 35, wherein the thread control circuit is to queue a selected one of the plurality of computing threads for execution when a corresponding data completion count for the thread identifier of the selected one of the plurality of thread identifiers indicates completion of one or more data dependencies.

41. The system of claim 35, wherein the corresponding data completion count indicates a predetermined number of completion messages received for a selected one of the plurality of computing threads prior to execution of the selected computing thread.

42. The system of claim 35, wherein the plurality of control registers further store a plurality of types of thread identifiers in the completion table, wherein each type of thread identifier of the plurality of types indicates a loop level for loop and nested loop execution.

43. The system of claim 35, wherein the plurality of control registers further store a loop count of the number of active loop calculation threads in the completion table, and wherein in response to receiving an asynchronous fabric message that returns a thread identifier to a thread identifier pool, the control circuit decrements the loop count, and when the loop count reaches zero, the control circuit transmits an asynchronous fabric completion message.

44. The system of claim 42, wherein the plurality of control registers further store a top of a thread identifier stack to allow each of the plurality of types of thread identifiers to access private variables for a selected loop.

45. The system of claim 35, wherein the control circuit further comprises: a run queue that stores one or more thread identifiers of one or more computational threads ready for execution; Continue the queue; as well as Reenter the queue.

46. ​​The system of claim 45, wherein the continuation queue stores one or more computing threads that are ready to execute and do not have an assigned thread identifier.

47. The system of claim 46, wherein the reentrant queue stores one or more thread identifiers of computing threads that are ready to execute and have assigned thread identifiers.

48. A system according to claim 47, wherein the thread control circuit is used to provide continued execution of the computing thread having the one or more thread identifiers in the re-entry queue by moving the one or more thread identifiers in the re-entry queue into the run queue and before any computing thread in the continuation queue.

49. The system of claim 47, wherein the control circuit further comprises: A priority queue, wherein any computing thread in the priority queue is executed before any computing thread in the continuation queue or the reentrant queue is executed.

50. The system of claim 45, wherein any computing thread in the run queue executes after a predetermined count occurs.

51. The system of claim 5, wherein the control circuit is used to self-schedule computing threads for execution.

52. The system of claim 5, wherein the control circuitry is to order a plurality of computing threads for execution.

53. The system of claim 5, wherein the control circuit is to order a plurality of cycle computation threads for execution.

54. The system of claim 5, wherein the control circuit is to begin executing a compute thread of a plurality of compute threads in response to one or more completion signals of a data dependency.

55. The system of claim 1, wherein the first processor comprises: A processor core, which is used to execute multiple instructions; as well as A core control circuit is coupled to the processor core, the core control circuit being configured to automatically schedule instructions of the plurality of instructions for execution by the processor core in response to a received work descriptor data packet or in response to a received event data packet.

56. The system of claim 1, wherein the first processor comprises: A processor core for executing fiber creation instructions; as well as A core control circuit is coupled to the processor core, the core control circuit is used to automatically schedule the shred creation instruction for execution by the processor core, and the core control circuit is further used to generate one or more work descriptor packets and transmit the one or more work descriptor packets over the interconnect network to a second processor or the array of the plurality of configurable circuits to execute the corresponding plurality of execution threads.

57. The system of claim 1, wherein the first processor comprises: Thread control memory; A processor core for executing fiber creation instructions; as well as a core control circuit coupled to the processor core, the core control circuit being used to reserve a predetermined amount of memory space in the thread control memory for storing return arguments, the core control circuit being further used to schedule the shred creation instruction for execution by the processor core, and the core control circuit being further used to generate one or more work descriptor packets and transmit the one or more work descriptor packets to a second processor or the array of the plurality of configurable circuits for execution of the corresponding plurality of execution threads.

58. The system of claim 1, wherein the first processor comprises: Processor core; as well as The core control circuit includes: Interconnect network interface; a core control memory coupled to the interconnect network interface; an execution queue coupled to the core control memory; control logic and thread selection circuitry coupled to the execute queue and the core control memory; and An instruction cache is coupled to the control logic and thread selection circuitry and to the processor core.

59. The system of claim 1, wherein the first processor comprises: Processor core; as well as The core control circuit includes: Interconnect network interface; a thread control memory coupled to the interconnect network interface; a network responsive memory coupled to the interconnect network interface; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execute queue and the thread control memory; an instruction cache coupled to the control logic and thread selection circuitry and to the processor core; and A network command queue is coupled to the processor core and the interconnect network interface.

60. The system of claim 1, wherein the first processor comprises: Processor core; as well as The core control circuit includes: a thread control memory comprising a plurality of registers including a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, a data cache, and a general register storing a received argument; an execution queue coupled to the thread control memory; as well as A control logic and thread selection circuit is coupled to the execution queue and the thread control memory, the control logic and thread selection circuit is used to assign a thread identifier from the plurality of thread identifiers to an execution thread and automatically place the thread identifier in the execution queue, and the control logic and thread selection circuit is further used to periodically select the thread identifier in the execution queue for the processor core to execute instructions of the execution thread, and the processor core uses data stored in the data cache or general registers.

61. The system of claim 1, wherein the first processor comprises: Processor core; as well as The core control circuit includes: a thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, and a thread status register storing an active state or a suspended state of each of the plurality of thread identifiers; an execution queue coupled to the thread control memory; and A control logic and thread selection circuit is coupled to the execution queue and the thread control memory, the control logic and thread selection circuit is used to assign a thread identifier from the plurality of thread identifiers to an execution thread, and automatically place the thread identifier in the execution queue when the thread identifier has the valid state, and the control logic and thread selection circuit is further used to periodically select the thread identifier in the execution queue for the processor core to execute instructions of the execution thread for a duration during which the valid state of the thread identifier remains unchanged until the execution thread is completed.

62. The system of claim 1, wherein the first processor comprises: Processor core; as well as The core control circuit includes: a thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a program counter register storing a received program counter, and a thread status register storing an active state or a suspended state of each of the plurality of thread identifiers; an execution queue coupled to the thread control memory; and A control logic and thread selection circuit coupled to the execution queue and the thread control memory, the control logic and thread selection circuit being used to assign a thread identifier from the plurality of thread identifiers to an execution thread and automatically place the thread identifier in the execution queue when the thread identifier has the valid state, the control logic and thread selection circuit being further used to periodically select the thread identifier in the execution queue for the processor core to execute instructions of the execution thread during a duration during which the valid state of the thread identifier remains unchanged, and the control logic and thread selection circuit being further used to suspend execution of the execution thread by not returning the thread identifier to the execution queue when the thread identifier has the pause state.

63. The system of claim 1, wherein the first processor comprises: A processor core, which is used to execute multiple instructions; as well as A core control circuit coupled to the processor core, the core control circuit comprising: an interconnect network interface coupled to the interconnect network, the interconnect network interface for receiving a work descriptor packet and decoding the received work descriptor packet into an initial program count of an execution thread and a received argument of the execution thread; a thread control memory coupled to the interconnect network interface, the thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing the initial program counter, a data cache, and a general register storing received arguments; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry being configured to assign a thread identifier from the plurality of thread identifiers to the execution thread and place the thread identifier in the execution queue, the control logic and thread selection circuitry being further configured to select the thread identifier in the execution queue and access the thread control memory using the thread identifier as an index into the thread control memory to thereby select the initial program count of the execution thread; and An instruction cache is coupled to the processor core and the control logic and thread selection circuitry to receive the initial program count for the execution thread and provide corresponding instructions of the plurality of instructions to the processor core for execution.

64. The system of claim 1, wherein the first processor comprises: The core control circuit includes: an interconnect network interface coupled to the interconnect network, the interconnect network interface for receiving a work descriptor packet and decoding the received work descriptor packet into an initial program count for an execution thread and a received argument for the execution thread; a thread control memory coupled to the interconnect network interface, the thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a thread status register, a program counter register storing the initial program counter, a data cache, and a general register storing received arguments; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry for automatically assigning a thread identifier from the plurality of thread identifiers to the execution thread in response to receiving the work descriptor packet and automatically placing the thread identifier in the execution queue, the control logic and thread selection circuitry further for periodically selecting the thread identifier in the execution queue and accessing the thread control memory using the thread identifier as an index to the thread control memory to select the initial program count of the execution thread; and an instruction cache coupled to the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions for execution; as well as A processor core is coupled to the instruction cache, the processor core being configured to execute the corresponding instruction using the received argument.

65. The system of claim 1, wherein the first processor comprises: The core control circuit includes: an interconnect network interface coupled to the interconnect network, the interconnect network interface configured to receive a work descriptor packet and decode the received work descriptor packet into an initial program count of an execution thread; a thread control memory coupled to the interconnection network interface, the thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a thread status register, and a program counter register storing the initial program counter; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry for automatically assigning a thread identifier from the plurality of thread identifiers to the execution thread in response to receiving the work descriptor packet and placing the thread identifier in the execution queue, the control logic and thread selection circuitry further for selecting the thread identifier for execution and accessing the thread control memory using the thread identifier as an index into the thread control memory to select the initial program count of the execution thread; and an instruction cache coupled to the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions for execution; and A processor core is coupled to the instruction cache, and the processor core is configured to execute the corresponding instruction.

66. The system of claim 1, wherein the first processor comprises: The core control circuit includes: an interconnect network interface coupled to the interconnect network, the interconnect network interface for receiving a work descriptor packet and decoding the received work descriptor packet into an initial program count of an execution thread and a received argument of the execution thread; a thread control memory coupled to the interconnect network interface, the thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a thread status register, and a program counter register storing the initial program counter; an execution queue coupled to the thread control memory; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry being configured to assign a thread identifier from the plurality of thread identifiers to the execution thread and place the thread identifier in the execution queue, and the control logic and thread selection circuitry being further configured to select the thread identifier and access the thread control memory using the thread identifier as an index into the thread control memory to thereby select the initial program count of the execution thread; and an instruction cache coupled to the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions for execution; as well as A processor core is coupled to the instruction cache, the processor core being configured to execute the corresponding instruction using the received argument.

67. The system of claim 1, wherein the first processor comprises: The core control circuit includes: an interconnect network interface coupled to the interconnect network, the interconnect network interface for receiving a call work descriptor data packet and decoding the received call work descriptor data packet into an initial program count for an execution thread and any received arguments for the execution thread, and the interconnect network interface further for encoding one or more work descriptor packets and transmitting the one or more work descriptor packets over the interconnect network to a second processor or to the array of the plurality of configurable circuits; a thread control memory coupled to the interconnect network interface, the thread control memory comprising a plurality of registers, the plurality of registers comprising a thread identifier pool register storing a plurality of thread identifiers, a thread status register, and a program counter register storing the initial program counter; an execution queue coupled to the thread control memory; a network responsive memory coupled to the interconnect network interface; control logic and thread selection circuitry coupled to the execution queue and the thread control memory, the control logic and thread selection circuitry for assigning a thread identifier from the plurality of thread identifiers to the execution thread and placing the thread identifier in the execution queue, the control logic and thread selection circuitry for further selecting the thread identifier and using the thread identifier as an index to access the thread control memory to select the initial program count of the execution thread; an instruction cache coupled to the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions for execution; and a network command queue storing one or more commands for the interconnect network interface to generate the one or more work descriptor packets; as well as A processor core is coupled to the instruction cache and the network command queue, and the processor core is used to execute the corresponding instruction.

68. The system of claim 1, wherein the first processor comprises: Processor core; as well as A core control circuit is coupled to the processor core.

69. The system of claim 68, wherein the core control circuit comprises: An interconnect network interface is coupled to the interconnect network, the interconnect network interface being configured to receive a work descriptor packet and decode the received work descriptor packet into an initial program count for an execution thread and any received arguments for the execution thread.

70. The system of claim 69, wherein the interconnection network interface is further used to receive an event data packet and decode the received event data packet into an event identifier, and the interconnection network interface is further used to generate a point-to-point event data message or generate a broadcast event data message.

71. The system of claim 69, wherein the core control circuit further comprises: Control logic and thread selection circuitry is coupled to the interconnect network interface, the control logic and thread selection circuitry being configured to assign a thread identifier from a plurality of thread identifiers to the execution thread.

72. The system of claim 71, wherein the core control circuit further comprises: A thread control memory having a plurality of registers, wherein the plurality of registers comprises: a thread identifier pool register storing the plurality of thread identifiers; thread state register; and A program counter register stores the initial program counter.

73. The system of claim 72, wherein the control logic and thread selection circuitry are further operable to return a corresponding thread identifier of a selected thread to the thread identifier pool register in response to the processor core executing a return instruction for the selected thread.

74. The system of claim 73, wherein the control logic and thread selection circuitry are further for clearing one or more of the plurality of registers of the thread control memory indexed by the corresponding thread identifier of the selected thread in response to the processor core executing the return instruction.

75. The system of claim 72, wherein the thread control memory further comprises one or more registers or one or more buffers selected from the group consisting of: Pending fiber return count register; return argument buffer or register; thread return argument linked list register; custom atomic transaction identifier register; data cache; event status register; event mask register; general register; and combinations thereof.

76. The system of claim 72, wherein the interconnect network interface is further for storing the initial program count of the execution thread in the thread control memory using a thread identifier as an index into the thread control memory.

77. The system of claim 72, wherein the core control circuit further comprises: An execution queue is coupled to the thread control memory, the execution queue storing one or more thread identifiers of the plurality of thread identifiers.

78. The system of claim 77, wherein the control logic and thread selection circuitry are further operable to place the thread identifier from the plurality of thread identifiers in the execution queue, and wherein the control logic and thread selection circuitry are further operable to select the thread identifier from the execution queue for execution, and to access the thread control memory using the thread identifier as an index to select the initial program count of the execution thread for execution of the corresponding single instruction by the processor core.

79. The system of claim 77, wherein the control logic and thread selection circuitry are further for successively selecting a next thread identifier of the one or more thread identifiers from the execution queue to execute a single instruction of the corresponding execution thread.

80. The system of claim 77, wherein the control logic and thread selection circuitry are further configured to perform a round-robin or barrel selection of a next thread identifier from the one or more thread identifiers from the execution queue for the processor core to execute a single instruction of the corresponding execution thread until the corresponding execution thread is completed.

81. The system of claim 77, wherein the control logic and thread selection circuitry are further operable to assign an active state or a suspended state to a selected thread identifier of the plurality of thread identifiers.

82. The system of claim 81, wherein the control logic and thread selection circuitry are further operable to assign a priority state to the selected thread identifier of the plurality of thread identifiers.

83. The system of claim 82, wherein the control logic and thread selection circuitry are further for returning the selected thread identifier with an assigned valid state and an assigned priority state to the execution queue after execution of a corresponding instruction by the processor core.

84. The system of claim 77, wherein the execution queue further comprises: a first priority queue storing one or more first priority thread identifiers of the plurality of thread identifiers; as well as A second priority queue stores one or more second priority thread identifiers of the plurality of thread identifiers.

85. The system of claim 84, wherein the control logic and thread selection circuitry comprises: and a thread selection control circuit system coupled to the execution queue, the thread selection control circuit system being configured to select a first priority thread identifier from the one or more first priority thread identifiers from the first priority queue at a first frequency and to select a second priority thread identifier from the one or more second priority thread identifiers from the second priority queue at a second frequency, the second frequency being lower than the first frequency.

86. The system of claim 85, wherein the thread selection control circuitry is further for determining the second frequency as a skip count starting from selecting the one or more first priority thread identifiers from the first priority queue.

87. The system of claim 77, wherein the core control circuit further comprises: A network command queue is coupled to the processor core.

88. The system of claim 87, wherein the processor core is configured to execute a shred creation instruction to generate one or more commands and provide the one or more commands to the network command queue, and wherein in response to the one or more commands in the network command queue, the interconnect network interface is further configured to generate one or more call work descriptor packets and transmit the one or more call work descriptor packets to a second processor or to the array of the plurality of configurable circuits to execute the corresponding plurality of execution threads.

89. The system of claim 88, wherein in response to the processor core executing a shred creation instruction, the core control circuit is to reserve a predetermined amount of memory space in the thread control memory.

90. The system of claim 78, wherein the thread control memory further comprises a thread return register, and wherein the core control circuitry is to store a thread return count in the thread return register.

91. The system of claim 90, wherein in response to receiving a return packet, the core control circuit is to decrement the thread return count stored in the thread return register.

92. A system according to claim 91, wherein when the thread return count in the thread return register has been decremented to zero, the core control circuit is further used to change the pause state of the corresponding thread identifier among the multiple thread identifiers to a valid state, so that the processor core can subsequently execute a thread return instruction to complete the execution of the corresponding multiple execution threads.

93. The system of claim 71, wherein the core control circuit further comprises: An instruction cache is coupled to the control logic and thread selection circuitry to receive the initial program count and provide corresponding instructions for execution by the processor core.

94. The system of claim 71, wherein the control logic and thread selection circuitry are further operable to assign an initial valid state to the execution thread.

95. The system of claim 71 wherein the control logic and thread selection circuitry are further operable to assign a halt state to the execution thread in response to the processor core executing a memory load instruction or a memory store instruction.

96. The system of claim 71, wherein the control logic and thread selection circuitry are further operable to terminate execution of a selected thread in response to the processor core executing a return instruction of the selected thread.

97. The system of claim 96, wherein the interconnect network interface is further for generating a return work descriptor packet in response to the processor core executing the return instruction and transmitting the return work descriptor packet over the interconnect network.

98. The system of claim 87, wherein the core control circuit further comprises: Network Response Storage.

99. The system of claim 98, wherein the network response memory comprises: Memory request register; as well as Thread identifier and transaction identifier registers.

100. The system of claim 99, wherein the network response memory further comprises one or more registers selected from the group consisting of: Request cache line index register; byte register; general register index and type register; and combinations thereof.

101. The system of claim 72, wherein the interconnect network interface is further configured to receive an event data packet, wherein the plurality of registers further include an event mask register, and wherein the control logic and thread selection circuitry are further configured to respond to the received event data packet using an event mask stored in the event mask register.

102. The system of claim 71, wherein the interconnect network interface is further configured to receive an event data packet, and wherein the control logic and thread selection circuitry is further configured to determine an event number corresponding to the received event data packet.

103. The system of claim 71, wherein the interconnect network interface is further configured to receive an event data packet, and wherein the control logic and thread selection circuit are further configured to change the state of the thread identifier from a suspended state to a valid state in response to receiving the event data packet to resume execution of the corresponding execution thread.

104. The system of claim 71, wherein the interconnect network interface is further configured to receive an event data packet, and wherein the control logic and thread selection circuit are further configured to change the state of the thread identifier from a suspended state to a valid state in response to an event number of the received event data packet to resume execution of the corresponding execution thread.

105. The system of claim 98, wherein the interconnect network interface comprises: Input queue; a packet decoder circuit coupled to the input queue, the control logic and thread selection circuitry, and the thread control memory; Output queue; as well as A packet encoder circuit is coupled to the output queue, the network response memory, and the network command queue.

106. The system of claim 71, wherein the core control circuit further comprises: Data path control circuitry is provided for controlling the size of accesses through the interconnect network.

107. The system of claim 71, wherein the core control circuit further comprises: Data path control circuitry for increasing or decreasing memory load access size in response to a time average usage level.

108. The system of claim 71, wherein the core control circuit further comprises: Data path control circuitry for increasing or decreasing memory storage access size in response to a time average usage level.

109. The system of claim 71 wherein the control logic and thread selection circuitry are further operable to increase the size of a memory load access request to correspond to a cache line boundary of a data cache.

110. The system of claim 71, wherein the core control circuit further comprises: System call circuitry for generating one or more system calls to a host processor.

111. The system of claim 110, wherein the system call circuitry comprises: A plurality of system call credit registers store a predetermined credit count to modulate a number of the one or more system calls within a predetermined time period.

112. The system of claim 87, wherein the core control circuit is configured to generate a command for monitoring thread status in response to a request from a host processor and provide the command for monitoring thread status to the network command queue, and in response to the command for monitoring thread status, the interconnection network interface is further configured to copy and transmit all data corresponding to a selected thread identifier from the plurality of thread identifiers from the thread control memory for the host processor to monitor the thread status.

113. The system of claim 68, wherein the processor core is configured to execute a wait or non-wait shred join instruction.

114. The system of claim 68, wherein the processor core is configured to execute a shred join all instruction.

115. The system of claim 72, wherein the plurality of registers further comprises a data cache and a general purpose register, and wherein the processor core is configured to execute a non-cached read or load instruction to specify the general purpose register for storing data received from a memory.

116. The system of claim 115, wherein the processor core is further configured to execute a non-cached write or store instruction to specify data in the general purpose register for storage in the memory.

117. The system of claim 72, wherein the core control circuitry is to assign a transaction identifier to a load or store request to a memory and to associate the transaction identifier with a selected thread identifier of the plurality of thread identifiers.

118. The system of claim 68, wherein the processor core is to execute a first thread priority instruction to assign a first priority level to an execution thread having a corresponding thread identifier.

119. The system of claim 118, wherein the processor core is configured to execute a second thread priority instruction to assign a second priority level to an execution thread having a corresponding thread identifier.

120. The system of claim 68, wherein the processor core is configured to execute a custom atomic return instruction to complete a thread of execution of a custom atomic operation.

121. The system of claim 68, wherein the processor core is used in conjunction with a memory controller to perform floating point atomic memory operations.

122. The system of claim 68, wherein the processor core is used in conjunction with a memory controller to perform custom atomic memory operations.

123. The system of claim 1, wherein data communications through the interconnection network are conducted using virtual addressing across multiple nodes and independent of physical addresses of the multiple nodes.

124. The system of claim 1, wherein data communications through the interconnected network are conducted using a plurality of virtual node identifiers.

125. The system of claim 1, further comprising: One or more memory circuits capable of operating in: a private and non-shared mode; a shared and interleaved mode; or a shared and non-interleaved mode.

126. The system of claim 1, wherein data communications through the interconnect network are conducted using a split header and payload configuration to pipeline multiple communications.

127. The system of claim 126, wherein the interconnect network is used to perform delayed payload switching using the split header and payload configuration.

128. The system of claim 126, wherein the interconnect network is used to route multiple data payloads as consecutive data bursts using a single header.

129. The system of claim 1, wherein the interconnect network is used to interleave a first acknowledgment message to a destination in an unused header field of a second message to the destination.

130. The system of claim 1, wherein the interconnect network is adapted to provide power gating or clock gating based on load requirements.

131. The system of claim 5, wherein each configurable circuit in the array of the plurality of configurable circuits further comprises: A plurality of delay registers for synchronizing the transmission and reception of data for the threads of execution.

132. The system of claim 1, wherein the configurable circuit group further comprises: A scheduling interface circuit is coupled to the asynchronous packet network and the interconnect network, the scheduling interface circuit being configured to receive work descriptor packets and distribute the work descriptor packets to one or more selected configurable circuits in the array of the plurality of configurable circuits based on load balancing.

133. The system of claim 1, wherein the configurable circuit group further comprises: A scheduling interface circuit is coupled to the asynchronous packet network and the interconnect network, the scheduling interface circuit is used to receive one or more completion messages from one or more configurable circuits in the array of the plurality of configurable circuits, and the scheduling interface circuit is further used to generate a return work descriptor packet having one or more return values.

134. The system of claim 1, wherein one or more configurable circuits in the array of the plurality of configurable circuits are configured to utilize an execution mask to select one or more valid data elements.

135. A system for processing data, comprising: Interconnection network; a processor coupled to the interconnection network; a plurality of configurable circuits arranged in an array; a synchronization network coupled to each configurable circuit of the plurality of configurable circuits of the array; as well as an asynchronous packet network coupled to each configurable circuit of the plurality of configurable circuits of the array; wherein each configurable circuit in the array of the plurality of configurable circuits comprises: Configurable computing circuits; a plurality of synchronization network inputs coupled to the configurable computation circuit and to the synchronization network; a plurality of synchronization network outputs coupled to the configurable computation circuit and to the synchronization network; an asynchronous network input queue coupled to the asynchronous packet network; an asynchronous network output queue coupled to the asynchronous packet network; a configuration memory circuit coupled to the configurable computing circuit, the plurality of synchronous network inputs, and the plurality of synchronous network outputs, the configuration memory circuit comprising: a first instruction memory storing a first plurality of datapath configuration instructions to configure a datapath of the configurable computing circuit; and a second instruction memory storing: a second plurality of datapath instructions or instruction indexes for selecting a current datapath configuration instruction of the first plurality of datapath configuration instructions from the first instruction memory, for selecting a master synchronization network input of the plurality of synchronization network inputs, for receiving the current datapath configuration instruction or instruction index from an adjacent configurable circuit in the array of the plurality of configurable circuits, and for selecting a next datapath configuration instruction or instruction index for a next configurable circuit in the array of the plurality of configurable circuits; and a control circuit coupled to the configurable computing circuit, the control circuit comprising: a plurality of control registers, wherein the plurality of control registers store a completion table having a data completion count; and Thread control circuitry, which is used to queue threads for execution.