Systems and methods for implementing an intelligent processing computing architecture
Through the intelligent processing integrated circuit system, token counting tables and program control tables are used to automate data flow and processing, solving the delay and energy consumption problems of traditional systems on edge devices, achieving low-latency, energy-saving AI processing, suitable for real-time Task.
Patent Information
- Application Number
- CN201980045334.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-05
- Filing Date
- 2019-07-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-07-01
AI Technical Summary
In the existing technology, when traditional computing systems for artificial intelligence models are deployed on edge devices, delays and energy consumption are too high, and it is difficult to predict or infer in real-time or basically real-time, and the continuous access costs and infrastructure of remote computing systems Not applicable due to limitations.
An intelligent processing integrated circuit system is designed, including an intelligent processing pipeline, a token-based governance module and a matrix multiplication accelerator. It automates input data flow and processing through token counting tables and program control tables to achieve asynchronous data processing and low latency. computing power.
It realizes low-latency, energy-saving AI processing on edge devices, reduces storage requirements, improves computing efficiency, is suitable for real-time or basically real-time prediction and inference tasks, and reduces dependence on remote computing systems.
Smart Images

Figure CN112771498B_ABST
Abstract
Description
Technical Field
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Provisional Application No. 62 / 694,355, filed on July 5, 2018, which is incorporated herein by reference in its entirety.
[0003] The invention described herein relates generally to the field of integrated circuit system architecture, and more particularly to new and useful intelligent integrated circuits and methods of using intelligent integrated circuits for computing in the field of integrated circuit system architecture. Background Art
[0004] Today, various implementations of artificial intelligence and machine learning are driving innovation in many areas of technology. Artificial intelligence (AI) systems and artificial intelligence models (including algorithms) are defined by many system architectures and models that support machine learning (deep learning), reasoning, inference capabilities, and big data processing capabilities of machines (e.g., computers and / or computing servers). These AI systems and models are often trained intensively to perform one or more specific tasks, such as natural language processing, image recognition, planning, decision-making, etc. For example, a subset of these AI systems and models includes artificial neural network models. In many cases, the training of artificial neural network models may require thousands of hours of training cycles and trillions of bytes of training data to fine-tune the relevant neural network algorithms of the model before use.
[0005] However, once trained, the neural network model or algorithm can be quickly deployed to make inferences based on relatively small data sets compared to the larger training data sets used during the training cycle to accomplish a specific task (e.g., recognizing speech from speech input data, etc.). The inferences made by the neural network model or algorithm based on the smaller data set can be predictions about what the neural network model computes as the correct answer or indication about the environment.
[0006] However, while a neural network model implementing one or more neural network algorithms may not require the same amount of computing resources as required during the training phase, deploying neural network models in the field continues to require significant circuit system area, energy, and computing power to classify data and infer or predict outcomes. For example, weighted sum calculations are commonly used in pattern matching and machine learning applications, including neural network applications. In a weighted sum calculation, an integrated circuit can be used to convert a set of inputs (x i ) multiplied by a set of weights (w i), and sums the results of each multiplication operation to compute the final result (z). However, typical weighted sum calculations for machine learning applications include hundreds or thousands of weights, which makes it computationally expensive to calculate weighted sum calculations using traditional digital circuit systems. Specifically, accessing hundreds or thousands of weights from digital memory requires a lot of computation time (i.e., increased latency) and significant energy.
[0007] Therefore, conventional digital circuitry required to compute weighted sums of computations such as neural network models tends to be large to accommodate the large amounts of digital memory circuitry required to store the millions of weights required by the neural network models. Due to the large size of the circuitry, more energy is required to support the computational power of many conventional computers and circuits.
[0008] Additionally, these conventional computers and circuits for implementing artificial intelligence models (and, i.e., neural network models) may be suitable for remote computing processes (such as in a distributed computing system (e.g., the cloud)) or where many on-site computing servers are used, etc. However, when these remote artificial intelligence processing systems are used in computational reasoning, etc. for remote, edge computing devices or on-site devices, latency issues are significant. That is, since input data must often be transmitted over a network with varying bandwidth and the inferences generated by the remote computing system must then be transmitted back to the far-field device via the same or similar network, when these conventional remote systems seek to implement a neural network model to generate inferences to be used in the far-field device, there is an unavoidable delay in receiving input data from the far-field device. Additionally, these conventional circuits are often unable to manage computational loads (e.g., limited storage and / or limited computation) and may often rely on remote computing systems (such as the cloud) to perform computationally intensive computations and store computational data (e.g., raw inputs and outputs). Therefore, constant and / or continuous access (e.g., 24x 7 access) to a remote computing system (e.g., the cloud) is required for continuous operation, which may be unsuitable for many applications due to cost, infrastructure limitations (e.g., limited bandwidth, low-grade communication systems, etc.), etc.
[0009] Implementing an AI processing system at the field level (e.g., locally at a far-field device) may be a proposed solution to address some of the latency issues. However, as described above, attempting to implement some of these traditional AI computers and systems at an edge device (e.g., a far-field device) may result in a bulky system with many circuits that consumes a lot of energy due to the complex architecture required for the computing system to process data and generate inferences. Therefore, such a proposal alone may not be feasible and / or sustainable under existing technology without more context.
[0010] Therefore, there is a need for a deployable system for implementing artificial intelligence models locally on-site (e.g., local AI), and preferably for use in edge devices, which does not result in large, bulky (edge) devices, reduces latency, and has the necessary computing power to make predictions or inferences in real time or substantially real time, while also being energy efficient.
[0011] The following embodiments of the present application provide such advanced and improved integrated circuits and implementation techniques that are capable of addressing the deficiencies of traditional systems and integrated circuit architectures for implementing AI and machine learning. Summary of the invention
[0012] In one embodiment, a system for automated data propagation and automated data processing within an integrated circuit includes an intelligent processing integrated circuit, wherein the intelligent processing integrated circuit includes at least one intelligent processing pipeline, wherein the at least one intelligent processing pipeline includes: a main data buffer, storing input data; a plurality of different intelligent processing slices, wherein each different intelligent processing slice includes a computing circuit and a local data buffer; a token-based governance module, wherein the token-based governance module implements: a first token-based control data structure; a second token-based control data structure, wherein the first token-based control data structure and the second token-based control data operate in conjunction to control automated input data flow and / or automated processing of the input data through the at least one intelligent processing pipeline.
[0013] In one embodiment, the token-based governance module includes: a token interface, presenting a token to the token-based governance module, wherein in response to the presentation of the token interface, the token-based governance module updates an internal state based on one or more token parameters and one or more governance configurations of the first token-based control data structure.
[0014] In one embodiment, the token-based governance module includes a notification interface that indicates to one or more processing components of the integrated circuit that a program trigger condition is satisfied based on one or more token counter values associated with the second token-based control data structure.
[0015] In one embodiment, the first token type comprises a flow control token that is presented to the token-based governance module and used as a signal for updating an internal state of the token-based governance module.
[0016] In one embodiment, the second token type includes an interrupt token, which is presented to one of the multiple different intelligent processing slices, causing the processing circuit of the different intelligent processing slice to accept an interrupt, which is used to stop or pause the process of the different intelligent processing slice and occupy the payload or work processing command associated with the interrupt token.
[0017] In one embodiment, a method for implementing a token control process within an integrated circuit includes: collecting input data from one or more input data sources at a primary data buffer of the integrated circuit; implementing a data processing pipeline, wherein the data processing pipeline is defined by at least the following items: one or more matrix multiplication accelerators; one or more local data buffers; implementing one or more stream scoreboard modules by the integrated circuit, wherein implementing the one or more stream scoreboard modules includes: (i) implementing a token count table, wherein the token count table tracks one or more tokens within the integrated circuit; (ii) implementing a program control table, wherein the program control table monitors one or more program execution conditions based on the one or more tokens; and automatically propagating one or more portions of the input data from the primary data buffer along the data processing pipeline based on the implementation of the token count table and the implementation of the program control table.
[0018] In one embodiment, the method includes automatically executing one or more programs or one or more applications at one or more of the one or more matrix multiplication accelerators of the data processing pipeline based on a state of the program control table.
[0019] In one embodiment, the token count table: is indexed according to multiple different token identifiers; includes an entry for each of the multiple different token identifiers, the entry storing a running count of the number of different tokens having one of the multiple different token identifiers; and each entry stores a software programmable configuration bit that sets a corresponding counter trigger condition.
[0020] In one embodiment, the token count table is configured with at least one pointer, which points to an entry in the program control table when a counter trigger condition is satisfied based on count values of different tokens in the token control table.
[0021] In one embodiment, the program control table: is indexed according to multiple different program identifiers of multiple different programs; each entry of the program table includes a counter, which stores counter values of one or more different tokens associated with one or more different token identifiers; and each entry of the program table stores software programmable configuration bits, which set program execution conditions based on the counter values of the one or more different tokens.
[0022] In one embodiment, the method includes generating status data for each of the one or more of the local data buffers and each of the one or more matrix multiplication accelerators, wherein the status data indicates a utilization level of each of the one or more of the local data buffers and each of the one or more matrix multiplication accelerators.
[0023] In one embodiment, the method includes generating, by the integrated circuit, one or more tokens based on the state data of each of the one or more local data buffers and each of the one or more matrix multiplication accelerators.
[0024] In one embodiment, the method includes tracking the one or more tokens generated by the integrated circuit; and updating an internal state of the token count table based on the tracking.
[0025] In one embodiment, the method includes tracking the one or more tokens generated by the integrated circuit; and updating an internal state of the program control table based on the tracking.
[0026] In one embodiment, when an update to the token count of the token count table causes a token counter condition to change from not satisfied to satisfied, a corresponding entry in the program control table is accessed and the counter value of the program control table is incremented or decremented.
[0027] In one embodiment, when the update of the counter value of the program table entry causes the program trigger condition to change from not satisfied to satisfied, the notification interface is updated to reflect the change.
[0028] In one embodiment, the method includes identifying a state of the at least one local data buffer; generating one or more tokens based on the identified state; and triggering a notification to an upstream component or a downstream component within the data processing pipeline of the integrated circuit based on the one or more tokens.
[0029] In one embodiment, the method includes: in response to the notification, automatically loading one or more portions of the input data into the at least one local data buffer, or automatically loading the one or more portions of the input data from the at least one local data buffer into one of the one or more matrix multiplication accelerators.
[0030] In one embodiment, the method includes multiple computing slices, wherein each of the multiple computing slices includes: a matrix multiplication accelerator in the one or more matrix multiplication accelerators, a computational processing circuit; and a stream scoreboard module in the one or more stream scoreboard modules; a local data buffer in the one or more local data buffers, wherein the multiple computing slices together define an intelligent processing array; an on-chip network system, comprising: multiple on-chip network routers, establishing a communication network between each of the multiple computing slices, wherein each on-chip network router is operably communicatively connected to at least one of the multiple computing slices and different on-chip network routers in the multiple on-chip network routers; and a main buffer, remotely arranged from each of the multiple computing slices, wherein the main buffer stores original input data and / or data received from an upstream process or upstream device.
[0031] In one embodiment, the integrated circuit includes a plurality of computing slices, wherein each of the plurality of computing slices includes: a matrix multiplication accelerator, a computational processing circuit; and a stream scoreboard module; a local data buffer, wherein the plurality of computing slices together define an intelligent processing array; an on-chip network system, comprising: a plurality of on-chip network routers, establishing a communication network between the plurality of computing slices, wherein each on-chip network router is operably communicatively connected to at least one of the plurality of computing slices and a different on-chip network router among the plurality of on-chip network routers; and an off-chip buffer, arranged to remotely communicate with the plurality of computing slices, wherein the off-chip buffer stores raw input data and / or data received from an upstream process or an upstream device.
[0032] In one embodiment, a different one of the plurality of local data buffers is disposed proximate to the matrix multiplication accelerator of a corresponding one of the plurality of compute slices.
[0033] In one embodiment, the flow scoreboard module includes a configuration interface that reads and / or writes the internal state of the flow scoreboard module; a token interface that presents a token to the flow scoreboard module, and the flow scoreboard module responsively triggers an update to the internal state of the flow scoreboard module; and a notification interface that indicates to the integrated circuit whether one or more conditions for executing one or more programs or one or more applications have been met.
[0034] In one embodiment, the integrated circuit includes a slice sector controller circuit, which includes a high voltage circuit that reprograms each of the multiple non-volatile memories of at least a subset of the multiple computing slices to one or more different memory states.
[0035] In one embodiment, the integrated circuit includes a serial connection bus arranged between the off-chip buffer and the plurality of computing slices, wherein the serial connection bus transfers data from the off-chip buffer to one or more local data buffers of the plurality of computing slices.
[0036] In one embodiment, each of the plurality of computing slices further comprises: a single instruction multiple data unit.
[0037] In one embodiment, the intelligent processing array includes a plurality of different data processing pipelines, wherein each of the plurality of different data processing pipelines is defined by a different subset of the plurality of computational slices within the intelligent processing array.
[0038] In one embodiment, the intelligent processing array processes a plurality of different applications or programs, and each of the plurality of different data processing pipelines of the integrated circuit array processes one of the plurality of different applications or programs.
[0039] In one embodiment, the intelligent processing array processes multiple different partitions of a single application or a single program, and each of the multiple different data processing pipelines of the integrated circuit array processes one of the multiple different partitions of the single application or the single program.
[0040] In one embodiment, each of the plurality of intelligent processing pipelines includes a plurality of different stages, wherein each of the plurality of different stages includes at least one of the plurality of computing slices that is specifically programmed to execute a portion of an application or program.
[0041] In one embodiment, each of the plurality of compute slices accesses input data from its respective local data buffer; processes the input data at its respective matrix multiplication accelerator; and returns output of the input data to the respective local data buffer.
[0042] In one embodiment, the flow scoreboard module includes multiple different interfaces that implement flow control of data through one or more intelligent processing pipelines and control the execution of applications or programs processed by the one or more intelligent processing pipelines of the intelligent processing array.
[0043] In one embodiment, the serial connection bus includes one of a Universal Serial Bus and a Peripheral Component Interconnect Express bus.
[0044] In one embodiment, the flow scoreboard comprises: a token count table, tracking: one or more different tokens generated by the integrated circuit, one or more token-based conditions; a program control table, controlling the execution of one or more programs based on the tracking of the one or more different tokens.
[0045] In one embodiment, an intelligent processing integrated circuit includes multiple intelligent processing slices, wherein each of the multiple intelligent processing slices includes: an accelerator circuit, a processing circuit; and a token-based governance module; a local data storage circuit, wherein the multiple intelligent processing slices together define an intelligent processing array; an on-chip network system, including: multiple on-chip network routers, establishing a communication network between components of the intelligent processing integrated circuit, wherein each on-chip network router is operably communicatively connected to at least one of the multiple computing slices and different on-chip network routers among the multiple on-chip network routers; and an off-chip buffer arranged to remotely communicate with the multiple computing slices, wherein the off-chip buffer stores raw input data and / or data received from an upstream process or upstream device.
[0046] In one embodiment, the token-based governance module includes: a first token-based control data structure; a second token-based control data structure, wherein the first token-based control data structure and the second token-based control data structure operate in coordination to control automated input data flow and / or automated processing of the input data through the intelligent processing array. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figures 1 to 1A A schematic diagram of a smart integrated circuit 100 according to one or more embodiments of the present application is shown;
[0048] Figure 2 A data processing method using an integrated circuit according to one or more embodiments of the present application is shown;
[0049] Figure 3 A method of automating data flow and processing using an integrated circuit according to one or more embodiments of the present application is shown;
[0050] Figure 4 A schematic diagram showing a first token-based control data structure for implementation using an integrated circuit according to one or more embodiments of the present application;
[0051] Figure 5A schematic diagram showing a second token-based control data structure for implementation using an integrated circuit according to one or more embodiments of the present application;
[0052] Figure 6 A schematic diagram of a first token-based control data structure interacting with a second token-based control data structure implemented using an integrated circuit according to one or more embodiments of the present application is shown. DETAILED DESCRIPTION
[0053] The following description of the preferred embodiments of the application is not intended to limit the invention to these preferred embodiments, but rather to enable any person skilled in the art to make and use the inventions.
[0054] 1. Overview of Intelligent Processing
[0055] Embodiments of the present application provide a flexible and reprogrammable system that can be programmed to accommodate a variety of computationally intensive applications or programs of varying complexity and size. Although the physical configuration of the integrated circuit architecture according to one or more embodiments of the present application can remain the same or substantially the same, different processing elements within the architecture can be programmed to process multiple applications or one or more portions of a single application.
[0056] Further, the implementation and specific arrangement of storage devices implemented within one or more embodiments of the present application provide several technical advantages over prior art integrated circuits, including reducing the overall demand for memory or storage devices required to process data-intensive applications or programs. For example, in one embodiment, a main (large) buffer may be provided to receive input data (e.g., raw input data or data from an upstream layer or source), and each of a plurality of different local buffers may be arranged with a computing element (e.g., a matrix multiplication accelerator) 111. In such an embodiment, each local buffer may be arranged near or in close proximity to a computing element to quickly access and therefore efficiently process input data from the main buffer.
[0057] Additionally, such an arrangement may allow data to be processed asynchronously along a data processing pipeline, thereby enabling multiple data segments to be processed at the same time and potentially at different stages along the pipeline. The requirement for data replication may be greatly reduced.
[0058] Additionally, one or more embodiments of the present application may be used to implement a token-driven data processing system in which central process control may not be required.
[0059] Specifically, in one or more embodiments, the integrated circuit of the present application may include an architecture that can use tokens to trigger microprocessor (sometimes referred to herein as "nanoprocessor") programs and / or applications. Although in many embodiments described herein, tokens can be used to automatically trigger the execution and / or implementation of programs or applications, in various implementations, tokens can be used to trigger other units. Several examples include using tokens to trigger finite state machines, trigger the release of packets or work queue items, trigger the generation of another token, etc. The token-based governance module (sometimes referred to herein as a flow scoreboard module) described in several embodiments can have unlimited applications for automatically triggering any type and / or any number of functions / operations with an integrated circuit.
[0060] In a preferred embodiment of the present application, the integrated circuit architecture may include an on-chip network system that enables communication and / or token passing between different components of the integrated circuit. However, it should be noted that any suitable token communication scheme and / or interconnection may be used, including but not limited to serial communication buses, etc. The internally recognized constraints in some embodiments of the token-based integrated circuit architecture include constraints on the ordering and / or delay between the token and the event or request that the token may represent. For example, in one embodiment of the present application, the token may not be released and / or generated (regardless of the interconnection) until the associated triggering event is completed (e.g., the emptying of the local data buffer, the calculation of the input data by the MMA, etc., and / or any suitable event). In another embodiment, if the early release of the token does not result in a violation of the ordering constraint, the token may be generated and / or released before the associated triggering event. Therefore, in several embodiments of the present application, it should be noted that the token can be deployed in any suitable manner to achieve token-based control of the data flow and / or processing of data in the entire integrated circuit.
[0061] Additionally, the token-based governance module described herein can generally be used to implement token-based control by tracking tokens and token trigger conditions, etc. The token-based governance module can have configurable constraints so that the trigger can also depend on the state of the local unit or circuit, rather than just based on the number of tokens identified or received. That is, in several embodiments of the present application, data flow, data processing, one or more operations / functions, etc. can be managed based on the release or generation of tokens. It should be noted that simply determining and / or identifying the state of a component of an integrated circuit and / or identifying the state of a process or operation within an integrated circuit can act as a trigger event for automating another operation, function, process, or flow. For example, the state of utilization state (e.g., depth) and / or the state of the capacity of one or more work queues can be used as a trigger event. The technical benefit of such an embodiment can be that the operation can be run only when the computing resources that may be required (e.g., space with the one or more work queues) are available. Thus, embodiments of the present application can provide flexibility in how events and / or correlations that trigger automatic operations, functions, or processes are configured, and thereby allow the generation of more complex programs or applications that use more resources or use resources more efficiently, which improves the operational efficiency of one or more systems described herein by reducing the number of events that need to be generated in order to perform certain actions.
[0062] 2. Intelligent processing computing architecture
[0063] like Figures 1 to 1AAs shown, an intelligent processing computing architecture 100 (or alternatively referred to herein as an intelligent processing integrated circuit 100) for processing computationally intensive programs and / or applications (e.g., machine learning applications, neural networks, etc.) includes an intelligent processing array 105, which includes a plurality of intelligent (computing) processing (chip) units 110, a chip network system 120 including a plurality of chip network routers 125, an integrated circuit controller circuit 130, a chip sector controller circuit 140, and a serial connection bus 150. Preferably, each of the plurality of intelligent processing units 110 includes a matrix multiplication accelerator 111 (also referred to herein as an accelerator circuit), a computer processing circuit (e.g., a microprocessor, a nanoprocessor, etc.) 112, a streaming scoreboard (token-based governance) module 114, a single instruction multiple data (SIMD) unit 116 (e.g., a streaming arithmetic logic unit, etc.), and a local buffer (e.g., a static random access memory (SRAM), etc.) 118. Additionally, in a preferred embodiment, each of 130, 140, and 150 may include a computer processing circuit 112, a stream scoreboard module 114, a SALU 116, and a local buffer 118. In one or more embodiments, the local data buffer 118 may sometimes be referred to herein as an on-chip memory or an on-chip buffer, which indicates that the local data buffer 118 may be disposed within the smart processing slice 110 and directly communicate with various or one or more circuits, components, and / or modules within the smart processing slice 110. Figure 1A Further detailed embodiments of the intelligent processing computing architecture 100 are included, and include additional peripheral interconnects for interfacing with the intelligent processing array 105. For example, test structures, monitors, analog probes, and / or any suitable peripheral devices may be connected or arranged along the periphery of the intelligent processing array 105 of the intelligent computing architecture 100.
[0064] Although in one or more preferred embodiments, the intelligent processing unit 110 may include a matrix multiplication accelerator 111, a computer processing circuit 112, a stream scoreboard module 114, a SIMD unit 116, and a local buffer 118, it should be noted that the intelligent processing unit 110 may include any suitable combination of circuits and modules, and therefore may exclude one or more of the above circuits and modules and / or may include any combination of the above circuits and modules without meaningfully departing from the scope of the invention described in this application. For example, in some embodiments, the intelligent processing unit 110 may include or consist of a stream scoreboard module 114 and a local buffer 118 (SRAM) without a computing circuit system, etc. (e.g., a computer processing circuit 112). In another example, the intelligent processing unit 110 may include or consist of a stream scoreboard module 114, a local buffer 118 (SRAM), and an off-chip interface (e.g., USB, PCIe, HDMI, MIPI-CSI, I2C, Ethernet, Bluetooth, and / or any suitable off-chip interface component).
[0065] Additionally or alternatively, although processing within architecture 100 may include analog processing components, etc., it should be noted that embodiments of architecture 100 may also utilize any suitable circuit system to implement digital processing, including but not limited to embedded field programmable gate arrays (eFPGAs), systolic arrays, floating point units, etc.
[0066] The intelligent processing array 105 (intelligent accelerator) preferably includes the plurality of different intelligent processing units 110, which can be used to work in concert to perform computationally intensive applications, etc. In some embodiments, the intelligent processing array 105 can be used to define one or more intelligent processing pipelines that enable processing of raw input data and / or data from an upstream device or process to a final output state. In such embodiments, each stage of the intelligent processing pipeline (e.g., by one or more different intelligent processing units 110, etc.) can be defined by a different intelligent processing unit 110, which can be specifically programmed to execute a portion of an application or program. Each of the different intelligent processing units 110 of the intelligent processing array 105 is preferably used to operate or compute independently of other or heterogeneous intelligent processing units 110 within the intelligent processing array 105. Therefore, because each stage of the intelligent processing pipeline can be configured with its own processing portion (e.g., intelligent processing unit 110), each intelligent processing pipeline can be used to process input data independently along each stage within the pipeline, thereby achieving considerable efficiency in processing input. That is, asynchronous processing of data or raw input data may be achieved based on independent processing and / or calculation of corresponding intelligent processing units 110 .
[0067] Additionally or alternatively, each of the one or more intelligent processing pipelines defined within the intelligent processing array 105 may be flexibly configured to enable execution of different (non-related) applications or programs within a single array 105, or to enable execution of different portions of a single application or a single program along various intelligent processing units 110 within the array 105. For example, a first neural network application may be programmed along a first portion of the intelligent processing array 105 including a first set of intelligent processing units 110 and a second neural network application may be programmed along a second portion of the intelligent processing array 105 including a second different set of intelligent processing units 110. In a second example, a single computationally intensive application (e.g., a neural network, etc.) may be divided into sub-applications (or programs), and each portion may be programmed to a different intelligent processing unit 110 within the array 105. Additionally or alternatively, in this second example, multiple portions of an application or multiple sub-applications may be programmed to the same intelligent processing unit 110. In yet another example, multiple intelligent processing units 110 may be aggregated to execute one or more sub-portions of a single application or a single program. That is, a separate intelligent processing unit 110 may be used to implement only a portion of an application or program, and thus, the entire application or program is processed by multiple intelligent processing units 110, each of which processes only a portion of the entire application or program. It should be noted that the integrated circuit array 105 and / or each intelligent processing unit 100 may be used to compute multiple different applications and / or multiple different partitions of a single application or a single program in parallel (i.e., simultaneously), concurrently (i.e., processed within a common time period, processed nearly simultaneously, etc.), or synchronously (i.e., independently of processing by other processes and / or processing units 110). Additionally, it should be noted that any suitable and / or type of application or program may be partitioned along the intelligent processing array 105, including applications and / or programs that may be partitioned into multiple operating phases that may have dependencies that may be represented as tokens.
[0068] The plurality of intelligent processing (slice) units 110 are preferably used to execute applications or programs for some input data received from an upstream device or upstream layer (such as a buffer or another intelligent processing unit 110). As described above, each of the plurality of intelligent processing units 110 includes a matrix multiplication accelerator (e.g., data processing circuit, etc.) 111, a computer processing circuit (e.g., a microprocessor) 112, a stream scoreboard module 114, a SIMD unit 116, and a local data buffer 118, which enables each of the plurality of intelligent processing units 110 to implement and / or complete the processing of input data to output data and / or execute an application or program.
[0069] Each of the plurality of intelligent processing units 110 is preferably configured to extract and / or access input data from its local buffer 118, perform calculations on the input data at the matrix multiplication accelerator 111, and output the results of the calculations on the input data (output data) back to its local buffer 118 (or possibly to a local buffer of a downstream component or processing portion).
[0070] In additional and / or alternative embodiments of the present application, one or more different subsets (i.e., two or more) of the plurality of intelligent processing units 110 of the smart array may be clustered and / or aggregated into smaller chips (e.g., chiplets, system-in-package (SIP), 3D packages, etc.) relative to the entire architecture 100. In such embodiments, chiplets may be constructed within the entire architecture 100 to fabricate complete and / or independent chips. The technical advantages of such embodiments enable an enhanced level of customization of the architecture.
[0071] In some other embodiments, multiple integrated circuit architectures 100 can be combined and / or packaged together in a multi-chip architecture. In such embodiments, the multiple architectures 100 can be constructed at the system or circuit board (panel) level. The interconnection between the multiple chips can be carried out using any suitable interconnection technology or interface (including PCIe or a specially created bridge interface).
[0072] The stream scoreboard module 114 is preferably implemented by a combination of one or more computational processing circuits and stream scoreboard submodules. Additionally, the stream scoreboard module 114 may include multiple interfaces for implementing flow control of data through the one or more intelligent processing pipelines, and control of the execution of programs or applications processed by the one or more intelligent processing pipelines of the intelligent processing array 105.
[0073] In a preferred embodiment, the stream scoreboard module 114 may include a configuration interface, a token interface, and a notification interface. The configuration interface of the stream scoreboard 114 may be used to read and write the internal state of the stream scoreboard module 114, such as to program trigger conditions. The token interface of the stream scoreboard 114 may enable the intelligent integrated circuit 100 to present a token to the stream scoreboard 114. In response to presenting a token via the token interface, the stream scoreboard 114 may be used to update its internal state, and if necessary, update the notification interface according to the token parameter value (e.g., a token count value, etc. as discussed in further detail in method 300) and the configuration of the stream scoreboard 114. The notification interface of the stream scoreboard may be implemented by the stream scoreboard module 114 to indicate to the intelligent integrated circuit 110 that one or more conditions (or prerequisites) for executing one or more programs have been met. It should be noted that the notification interface of the stream scoreboard module 114 may be used to trigger any number of operations within the intelligent integrated circuit 110, for example, data transfer without explicit program execution.
[0074] It should be noted that the configuration interface, token interface and / or notification interface may be implemented in any suitable manner, including using a combination of modules executed by one or more processing circuits, such as a microprocessor.
[0075] A network-on-chip system 120, which includes a plurality of network-on-chip routers 125 for establishing a communication network between different components of the intelligent integrated circuit 100. In one embodiment, each of the chip routers 125 may include dedicated input and output links for receiving and transmitting communications in the north, south, east, and west directions along the architecture 100 (and specifically, within the intelligent processing array 105). In some embodiments, the network-on-chip system 120 enables each of the different intelligent processing units 110 to pass data between them, so that when one intelligent processing unit 110 completes processing input data to generate output, the one intelligent processing unit 110 can be used to pass the output to another intelligent processing unit via one or more of the network routers of the network-on-chip system and / or allow another intelligent processing unit 110 to obtain the output data. As an example, digital tokens and / or data packets can be carried along the plurality of network routers of the network-on-chip system 120.
[0076] Integrated circuit controller 130 preferably includes chip-level control logic including boot logic, security features, clock logic, and the like.
[0077] The slice sector controller circuit 140 preferably comprises a high voltage portion or circuit of the intelligent processing computing architecture 100 that enables reprogrammable non-volatile memory within the matrix multiplication accelerator 111 .
[0078] The serial connection bus 150 preferably includes one of a Universal Serial Bus (USB) port and a Peripheral Component Interconnect Express (PCI Express) interface and / or any suitable high speed. In a preferred embodiment, raw input data (e.g., raw image data, etc.) and / or processed input data (e.g., from an upstream device, an upstream layer, etc.) can be received at the serial connection bus 150 and passed to the system via a primary or primary buffer component. Additionally or alternatively, the input data received at the serial connection bus 150 can be passed to the primary buffer of the intelligent processing integrated circuit 100, or directly to the local buffer 118 of the intelligent processing unit 100 via the on-chip network system 120. Additionally or alternatively, the primary buffer (sometimes referred to as the primary buffer in this article) can also be referred to as an off-chip (off-unit) memory or buffer. Specifically, since the primary buffer operating with the architecture 100 can be arranged remotely from or outside the intelligent processing chip 110, it can be considered an off-chip component.
[0079] Additionally or alternatively, any suitable off-chip connections may be implemented for transferring data into and / or from the intelligent processing array 105 and / or throughout the intelligent integrated circuit 100. For example, any suitable peripheral device includes, but is not limited to, an imaging device (e.g., a camera), a host system (e.g., a system on a chip) or workstation, another intelligent integrated circuit, etc.
[0080] Therefore, it should be noted that any type or kind of data, including tokens, can be passed along the serial connection bus 150 or other suitable off-chip connection / interface. For example, data from the smart integrated circuit 100 (e.g., calculation results or other outputs, etc.) can be sent to another device or system via the serial connection bus 150 or off-chip connection. Therefore, as described in one or more embodiments herein, when operably connected or engaged in some manner, flow control can be extended from the smart integrated circuit 100 to other devices. That is, in some embodiments, token-based flow control can be enabled between multiple smart integrated circuits 100 or between a device and a host.
[0081] 3. Intelligent processing method
[0082] like Figure 2 As shown, method 200 of automated and intelligent processing of data by an intelligent processing integrated circuit (e.g., circuit 100) includes receiving input data S210, loading the input data into an intelligent processing slice S220, performing calculations using the input data S230, generating tokens based on state data S240, and providing a final output S250.
[0083] S210 including receiving input data is used to collect input data from one or more input sources. The input data collected at S210 may include any type or kind of data, including image data, audio data, any suitable sensor data (e.g., temperature sensor data, pressure sensor data, proximity sensor data, infrared sensor data, motion sensor data, etc.), etc. In a preferred embodiment, S210 may be used to collect image data from a device operating one or more image capture devices or image capture sensors (e.g., still images or cameras). Therefore, in such a preferred embodiment, S210 may be used to collect or receive a continuous stream of image data from the one or more image capture devices or image capture sensors.
[0084] Additionally or alternatively, S210 can be used to collect input data using any suitable input port and preferably using a high-speed communication bus. For example, S210 can be used to collect input data using a universal serial bus (USB) port. Alternatively, S210 can be used to collect input image data using a high-speed serial computer expansion bus (such as a peripheral component interconnect express (PCIe) express, etc.).
[0085] Additionally or alternatively, S210 may be used to collect input data from one or more upstream input sources. The one or more upstream input sources may include another integrated circuit layer of the system implementing method 200 (e.g., the intelligent processing integrated circuit 100), an external input sensor (e.g., a camera, etc.), a switch, an off-chip device or circuit (e.g., an off-chip memory, etc.), etc.
[0086] Additionally or alternatively, S210 may be used to store the input data at one or more memory storage devices. Preferably, S210 is used to store the input data at a main or primary buffer of a system implementing method 200. The primary buffer may include one or more physical memory storage devices from which method 200 transfers or loads data to one or more processing elements.
[0087] S220 for loading input data into the smart processing pipeline is used to load one or more components of the data processing pipeline of the input data smart processing circuit, etc. In a preferred embodiment, S220 can be used to distribute the load of input data from the main input data buffer to one or more input data processing parts (smart processing slices) of the smart processing integrated circuit, etc. In such a preferred embodiment, S220 can be used to automatically load the input data from the main input data buffer to one or more local buffers of the one or more input data processing parts.
[0088] In a preferred embodiment, S220 can be used to implement token-driven or token-controlled data loading for automatically loading input data from the main input data buffer to the one or more local buffers of the processing portion. That is, in such a preferred embodiment, the data loading performed in S220 is based on the identification of the token, the receipt of the token, and / or another similar event or thing that triggers the transfer of a certain amount or portion of data from the main data buffer to the local data buffer of the processing portion.
[0089] The one or more tokens implemented within method 200 may include any suitable and / or type of digital tokens, including but not limited to flow scoreboard / flow control tokens, interrupt tokens, timer+tokens, etc. In a preferred embodiment, the flow scoreboard token may be presented to the flow scoreboard module and used as a signal for updating the internal state of the flow scoreboard module (including incrementing one or more counters associated with one or more of the token count table and the program control table).
[0090] In a preferred embodiment, an interrupt token may be presented to a microprocessor or nanoprocessor of an intelligent processing slice or unit. In such an embodiment, the interrupt token is preferably used to cause the processing circuit of the intelligent processing unit to accept an interrupt, which is used to stop or pause the process of the intelligent processing unit and occupy the payload or work processing command associated with the interrupt token. Therefore, the interrupt token can be generated according to a token generation process different from the flow scoreboard token. For example, the flow scoreboard token can be generated based on the state of one or more local components of the intelligent processing pipeline, etc., and the interrupt token can be generated according to a situation related to a system, component, etc. outside the intelligent processing pipeline.
[0091] Additionally or alternatively, a type of interrupt token and associated function pointer may preferably be included in the payload of the interrupt token. In an exemplary embodiment, the interrupt token may be implemented as a tail token that may be appended to a data packet or the like (wherein the data payload of the data packet is a program or application), and the tail token containing the interrupt token causes an intelligent processing unit or processing portion of an intelligent processing pipeline to automatically execute the program or application.
[0092] Thus, further token types may include tail tokens that may be appended to data packets, work packets, and / or suitable packets (as described in the above section), and in preferred embodiments, operate as a synchronization mechanism. In some embodiments, the tail token may be a read tail token or a write tail token, which may be associated with a read stream or a write stream, respectively. Thus, once the intelligent processing unit performs a read or write, the read tail token or the write tail token may be processed, thereby acting as a synchronization mechanism. That is, the processing of the read or write tail token operates as a signal to a downstream device or process or to a component of the intelligent integrated circuit, indicating that the corresponding read or write function was successfully completed, thereby triggering the automatic execution of one or more downstream functions or operations, etc.
[0093] It should be noted that while in some embodiments, the tail token may be appended to a data packet or work item, in other embodiments, the token may travel independently of the data packet and / or work item.
[0094] Another token type or variant of the flow control token may include a timer+token. That is, in some embodiments, the timer may be modified to include the issuance of any type of token. That is, upon expiration of a timer or an expiration event, one or more of an interrupt token or a flow control token, etc. may be automatically generated and / or released by the system implementing method 200 and / or method 300.
[0095] Preferably, the one or more tokens that trigger data loading at S220 are generated by a downstream processing part, etc. In a preferred embodiment, the processing part of the intelligent processing integrated circuit can be used to identify the state of one or more local buffers (or any storage device) in or associated with the processing part and generate a token that is passed upstream to the main data buffer or the processing circuit (or controller) associated with the main data buffer based on the state of the one or more local buffers identified. The generated token can generally be used to indicate or identify the state of the one or more local buffers associated with the processing part. Therefore, the one or more local buffers associated with the processing part can have one or more states, including, for example, a loaded state or an unloaded state or a busy state or a non-busy state, etc. In the case where the token passed to the main data buffer indicates that the one or more local data buffers of the processing part are in an unloaded state, etc., S220 can be used to automatically pass or load a certain amount of input data from the main data buffer to the one or more local data buffers associated with the processing part. Alternatively, if the token indicates that the one or more local data buffers are busy or in a loading state, S220 may not pass or load data to the one or more local data buffers.
[0096] It should be noted that although in a preferred embodiment, a downstream device may be used to generate a token that triggers a data load operation and pass the token from a data buffer to one or more processing portions of the smart processing pipeline of the smart processing integrated circuit, any upstream, downstream or lateral device (e.g., a token generation device that is not arranged along the flow, etc.) may be used to generate a token that causes input data to be loaded from a primary data buffer, or passed from any upstream local data buffer or processing circuit to one or more downstream processing portions of the smart processing pipeline. It should be noted that although the smart processing integrated circuit may generally be used to load data from an upstream component to a downstream component and to pass a token from a downstream device to an upstream device, reverse loading and reverse token passing may be implemented by the smart processing integrated circuit.
[0097] Additionally or alternatively, the intelligent processing integrated circuit can be used to skip or bypass one or more components along the flow of the data processing pipeline, so that input data can be processed in a non-sequential manner along the data processing pipeline, or so that a token passed upstream can be passed past the immediately upstream component of the intelligent processing integrated circuit to a component further upstream in the data processing pipeline.
[0098] Additionally or alternatively, S220 may be used to load the input data from the main data buffer to the one or more processing parts in segments. That is, in some embodiments, S220 may be used to divide the input data load stored at the main data buffer into segments and load to the one or more local data buffers of the processing part. The divided segments of the input data from the main data buffer may be referred to herein as input data segments or segments of the input data, because in some embodiments, only a portion or segment of the entire input data at the main data buffer is loaded at a time, or multiple segments of a corpus of input data may be loaded simultaneously.
[0099] The size of the input data fragments that can be divided and loaded into the local data buffer can be based on the storage capacity of the local data buffer. That is, the system implementing method 200 can be used to decompose relatively large-sized input data into smaller parts or data packets that are more easily consumed or accepted by the one or more circuit components (e.g., local data buffers, matrix multiplication accelerators, etc.) within the data processing pipeline. In some embodiments, the local data buffer associated with the processing part may have a smaller storage capacity than the main data buffer. For example, in the case of an input image data stream, etc., the main data buffer may have sufficient storage capacity to store the entire input image data stream, while the local buffer may only have sufficient storage capacity to store a portion of the input image data stream. In such an embodiment, S220 can be used to identify the storage capacity of the local data buffer of the processing part and divide the fragments of the input data from the buffer, the size of the fragments being equal to or less than the storage capacity of the local data buffer.
[0100] Additionally or alternatively, the size of the input data segments loaded from the primary data buffer to the one or more local data buffers of the processing portion may be based on a predetermined or dynamically calculated value defining a maximum or minimum size of a segment of the input data.
[0101] Additionally or alternatively, in some embodiments, the processing circuitry operating the primary data buffer may be specifically programmed to operate or pass data from the primary data buffer to a destination based on the receipt or identification of a predetermined number of tokens or based on the identification of one or more predetermined events. In such embodiments, the one or more tokens may include source data identifying the source of the tokens, and additionally or alternatively, destination data identifying the destination for sending the tokens from the primary data buffer, and status data of the destination. The status data may relate to or include the availability or unavailability and / or capacity of computing resources at the destination.
[0102] S230 including processing input data is used to process the input data at one or more processing parts (e.g., smart processing slices). In a preferred embodiment, S230 can be used to access input data or input data fragments from a local buffer, which is particularly coupled to or associated with a computing element of the smart processing slice. Preferably, the smart processing slice includes a matrix multiplication accelerator or any suitable computing circuit, etc., for processing input data access from the local buffer of the smart processing slice. In such an embodiment, the processing part can be used to calculate the input data for one or more weight or coefficient matrices (of a neural network algorithm, etc.) and output the calculation results to the local buffer of the smart processing slice.
[0103] In some embodiments, the intelligent processing pipeline of the integrated circuit implementing method 200 includes multiple intelligent processing parts or slices. Preferably, different programs can be mapped to each of the multiple intelligent processing slices. For example, a computationally intensive program, such as a neural network application, can be divided into different programs (e.g., program A + program B + program C = neural network application) and each of the different program parts of the computationally intensive program can be mapped to a different intelligent processing slice along the intelligent processing pipeline, such as described in U.S. Provisional Application No. 62 / 607,203, the entire text of which is incorporated herein by this reference. Preferably, each different program can be assigned to the multiple intelligent processing slices within the intelligent processing pipeline in a serial order. That is, when configuring the intelligent processing pipeline, the different program parts that usually operate on the input data first can be assigned to the first intelligent processing slice, where the multiple intelligent processing slices are arranged in a linear, serial order, etc. Therefore, in some embodiments, multiple different intelligent processing slices implementing different programs can be arranged in a linear manner (or any suitable manner) to process input data from a main data buffer into a final output, thereby defining an intelligent processing pipeline (e.g., main data buffer + multiple intelligent processing slices, etc.).
[0104] Additionally or alternatively, multiple programs or multiple applications may be mapped to a single intelligent processing slice, such that multiple different computationally intensive programs or applications may run on the same intelligent processing slice.
[0105] Therefore, once the input data is accessed from the local data buffer and passed to the computing element of the intelligent processing slice, S230 can be used to process the input data according to the program mapped to the computing element. During the processing of the input data and / or the passing of the input data to the computing element of the intelligent processing slice, the status data of each of the local buffer and the computing element can be generated. As described above, the status data preferably involves one or more of a busy state, an occupied state, a capacity state, a utilization state (e.g., 0%, 50%, 100% utilization), and / or an activity state of one or more computing resources of the intelligent processing slice. Therefore, the status data may include the status data of the local buffer, the status data of the computing element (e.g., a matrix multiplication accelerator), any component of the integrated circuit, and / or any operating element of the intelligent processing slice (and / or any computing resource along the intelligent processing pipeline).
[0106] S240 including generating tokens based on state data is used to identify the state data of the one or more computing resources of the intelligent processing slice, and generates one or more tokens based thereon. As described above, one or more generated tokens can be used to facilitate multiple automated data movement / storage and / or input data processing actions within the intelligent processing pipeline. In some embodiments, the tokens can be generated by a dedicated token generator circuit of an integrated circuit implementing 200. Additionally or alternatively, some or all tokens can be generated by any computing element along the intelligent processing pipeline.
[0107] Therefore, based on the detection or identification state of the one or more computing resources of the intelligent processing pipeline, S240 can be used to generate a token, which can be passed to an upstream device or a downstream device for triggering the operation of the upstream or downstream device. That is, the one or more tokens generated in S240 can be used to notify any upstream or downstream device in the intelligent processing pipeline about the state of the intermediate computing resources. For example, once the computing element of the intelligent processing slice accesses input data from its local buffer, a first token about the state of the local data buffer (e.g., the local buffer has capacity or it is empty) can be generated and a second token about the state of the computing element (e.g., the computing element / MMA is occupied, being utilized, etc.) can be generated. In such an example, the generated first token can indicate that the local buffer is now empty and is ready to receive additional input data from one or more of another local buffers (e.g., output buffers) of different intelligent processing slices and / or the main data buffer. Therefore, the first token can be passed to an upstream computing resource, such as an output buffer or a main data buffer. Further, with respect to this example, the second token may indicate that a computing element of the intelligent processing slice is now actively processing (e.g., busy state, utilized state, etc.) input data, and thus, the token may include status data indicating that the computing element is unavailable or not busy, and therefore cannot accept additional work from its local data buffer, etc.
[0108] In yet another example, once a computing element of an intelligent processing slice completes processing of input data and outputs the processed data to a downstream local buffer or other memory storage device, a first token identifying the current state of the computing element as available can be generated and a token that can trigger the local buffer to automatically pass any input data stored thereon to the computing element for processing can be passed to the local buffer of the intelligent processing slice. Once the local input data buffer of the intelligent processing slice is cleared, a second token indicating that the local buffer is cleared can be generated (simultaneously or concurrently with the first token) and a token indicating the state of the local buffer and triggering the automatic passing of input data to the local buffer can be passed to an upstream device (e.g., another local buffer or a primary data buffer). Additionally, a third token can be generated for a downstream local buffer (etc.) of a downstream intelligent processing slice that receives the output of the computing element. A third token indicating that the downstream local buffer has input data ready to be passed to the downstream computing element for processing can be passed to a downstream computing element associated with the downstream local buffer.
[0109] Therefore, whenever the state of the computing resources of the intelligent processing slice is adjusted or changed, S240 can be used to automatically generate a token identifying the current state of the computing resource, and correspondingly, pass the token to another related computing resource, which can respond to the receipt of the token in some way.
[0110] It should be appreciated that tokens may be delivered to and / or generated by any suitable token management or computing resource within and / or associated with an intelligent processing pipeline including a central token repository and / or token processing circuitry or the like.
[0111] Additionally or alternatively, S240 may be used only to publish status data of the one or more computing resources of the intelligent processing slice and / or pipeline, and based on the published status data, the one or more computing resources may be automatically used to pass input data and / or output data to one or more downstream devices for storage and / or processing.
[0112] In some embodiments, S220 to S240 may be additionally or alternatively executed multiple times in a cyclic (eg, asynchronous, parallel) manner, and then a final output may be generated and produced in S250 .
[0113] S250 including providing a final output is used to provide a final output of the intelligent processing pipeline processing input data. In some embodiments, one or more final tokens indicating that all input data have been processed at each stage of the intelligent processing pipeline and no input data needs to be processed by the application are generated by the one or more computing resources of the intelligent processing pipeline, and S250 can be used to pass the token or other notification to the output circuit to generate the final output and / or the readout circuit to read the final output. In some embodiments, the final output can be based on a collection of input data fragments processed by the intelligent processing pipeline.
[0114] 4. Automated data flow and intelligent processing mechanism (FSB)
[0115] like Figure 3 As shown, the method 300 for configuring and implementing an automated data flow control process includes configuring a first token-controlled event data structure and a second token-controlled program control data structure S310, monitoring token requirements S320, identifying whether a processing condition is satisfied S330, and providing event notification S340.
[0116] The method 300 is generally used to automate the input data flow and its corresponding storage and / or processing by specifying the prerequisites of one or more processes within the intelligent processing integrated circuit, etc. based on the occurrence of things and / or preferably based on the tokens required for one or more operations and / or actions of computing resources associated with the intelligent processing integrated circuit. In some embodiments, the method can achieve bidirectional regulation between upstream, intermediate and downstream devices within the intelligent processing integrated circuit, which enables one or more components of the upstream, intermediate and / or downstream devices to interact with each other by automatically performing one or more of passing input data, storing input data, processing input data, passing output derived from input data, etc. based on the generation and / or reception of tokens. That is, the circuit components along the intelligent processing pipeline can be operated to communicate and / or interact with other circuit components arranged upstream or downstream of the circuit components.
[0117] Additionally or alternatively, the method 300 can track or manage tokens transmitted and / or received between different computing resources within the intelligent processing integrated circuit to determine when any prerequisites for automatic actions of the computing resources are met.
[0118] Thus, method 300 may be used to implement a multi-level token-based governance structure in some embodiments, wherein at least a first token-based control structure and a second token-based control structure may be used to automatically perform flow control within a system and / or chip architecture implementing method 300. In such an embodiment, a first-level table (i.e., a first token-based control data structure) may be used to track and / or monitor one or more different token types and generate different types of tokens that are consumed and / or used to control the execution of one or more programs and / or applications managed by the second-level table (i.e., a second token-based control data structure). Thus, in such an embodiment, the first-level table receives tokens and generates tokens and the second-level table receives tokens and generates commands for executing programs and / or applications.
[0119] 4.1 Configuring Token-Based Control Data Structures
[0120] S310 including configuring a first token-based data structure and a second token-based data structure for establishing a token-based data structure that operates in conjunction to control automated data flow and / or automated data processing in a system (e.g., an integrated circuit, an intelligent processing pipeline, etc.). The first token-based data structure and the second token-based data structure can be any suitable data structure and / or value storage structure (e.g., a list, table, array that allows management and / or tracking of digital tokens. Preferably, the first token-based data structure and the second token-based data structure are preferably reference tables that are used to store token data, including token values, token identifiers, token parameters, program parameters, and token count values, as well as one or more conditions that can be triggered and / or satisfied by the token. The second token-based data structure can additionally cause the execution of one or more programs or applications based on the count values of its one or more token counters and token-based parameters or triggering conditions.
[0121] Although it may be generally described that the first token-based data structure and the second token-based data structure may be configured and / or implemented within the method 300 or other suitable process described herein (e.g., the method 200) to operate interdependently, it should be noted that the second token-based data structure may be operable to operate independently of and / or unrelated to the first token-based data structure. For example, in some embodiments, the second token-based data structure may be operable to receive tokens directly from one or more token sources (or token generators), rather than tokens generated by the first token-based data structure.
[0122] In a preferred embodiment, the first token-based data structure preferably includes a token count table that stores a running count of received tokens (e.g., a flow scoreboard or a flow control token). Configuring the first token-based data structure in S310 preferably includes configuring a token index and / or a token index function (S312) for the first token-based data structure, which enables the first token-based data structure to index tokens managed and / or tracked thereby by token identification values, etc. The token identification value may include any suitable value for identifying and / or distinguishing different tokens. For example, the token identification value may be any combination of characters, symbols, numbers, spaces, etc., including a string of numbers, a string of letters, a combination of characters and numbers, etc.
[0123] Additionally or alternatively, S310 may be used to configure the first token-based data structure to include a token counter function (S314) (having a token counter module, etc.) that enables the first token-based data structure to count different types of tokens received in or by a system implementing method 200 and / or method 300. That is, in some embodiments, the token counter may be used to count the values of tokens of the same type (e.g., the same token identification value, the same token configuration or parameters, etc.). That is, the token counter may be used to maintain a running count of each type or kind of token received. Additionally or alternatively, the token counter may be used to count the values of condition-specific tokens (e.g., positive values, negative values, and / or zero). That is, for one or more specific conditions associated with the first token-based data structure, the token counter may be used to maintain a running count of tokens according to the specific conditions, and when the required token count for the specific condition is reached, the token count may affect or satisfy the specific condition.
[0124] Additionally or alternatively, S310 may be used to configure within the first token-based data structure a pointer and / or pointer functionality (S316) for pointing to an entry in a second token-based data structure. In a preferred embodiment, the pointer within the first token-based data structure may be configured such that the pointer points to an entry in the second token-based data structure for which the token counter condition is a prerequisite. That is, when the token counter condition is met or triggered, the pointer is used to automatically reference a program entry within the second token-based data structure and to cause an update of one or more values within the second token-based data structure, cause execution of one or more programs associated with the token-based data structure, and / or obtain data associated with the referenced entry.
[0125] Similarly, S310 may be used to configure a second token-based control data structure to index and count tokens based on a token identifier, etc. However, S310 preferably configures the second token-based control data structure to index programs or any suitable application or computer code by their respective identifiers (e.g., by program identifiers). The second token-based control data structure is preferably a program control table, which may be used to identify one or more programs that may be controlled (e.g., activated / deactivated, etc.) based on a token (token count) or any suitable event-based triggering scheme. Therefore, in some embodiments, the second token-based data structure may include a list or multiple programs indexed by their program identifiers and corresponding token count values and corresponding conditions that may be satisfied or not satisfied by their corresponding token count values.
[0126] S310 may additionally or alternatively be used to set a condition and a corresponding token counter parameter and / or value for each of the first token-based control data structure and the second token-based control data structure (S318). Preferably, S310 is used to set the counter value within the first token-based control data structure and / or the second token-based control data structure using a software programmable configuration bit. For example, if the token-based control data structure includes a table, S310 may be used to set a software-programmed configuration bit value within an entry field of the table that specifies a counter value (e.g., positive, negative, or zero) that satisfies the counter trigger condition.
[0127] Similarly, S310 can be used to set a counter trigger condition in each of the first token-based control data structure and the second token-based control data structure. The condition can be set to any suitable value. For example, the condition can be set to any specific positive or negative value or zero. Preferably, S310 can function the condition as positive, negative or zero, so that if the counter value is any positive value, any negative value or zero, the set condition can be met. Therefore, S310 can be used to roughly define the condition as positive, negative or zero, rather than setting a specific value as a trigger condition; this means that if a positive or negative number is detected, regardless of its value, the trigger condition can be met. For example, if a positive (>0) trigger condition is set in the first data structure, when the token counter value corresponding to this condition exceeds zero and is positive, the condition is triggered, and some actions are taken in response to meeting the condition. A technical benefit of roughly configuring conditions with positive, negative, or zero is that in mixed-signal computing systems that can operate and / or perform calculations based on current values or current outputs, these systems can more easily produce conditions in which a certain positive current value, a certain negative current value, or a zero current value is generated as a token or used to construct a token (for example, the sum of current values over time to achieve a positive, negative, or zero value).
[0128] S310 may be used to additionally configure a first token-based control data structure (S316) with pointer data and pointer functionality, so that the first token-based control data structure can controllably interact with a second token-based control data structure. In a preferred embodiment, S310 may be used to set a pointer for each token identifier entry indexed by the token-based control data structure. The pointer may be any suitable programming language object, etc., that stores a memory address of another value located in a second token-based control data structure stored in memory.
[0129] Thus, in some embodiments, when an update to a token count value in a first token-based control data structure causes a corresponding token counter condition to be satisfied (i.e., transitions from not satisfied to satisfied), a pointer to the first token-based control data structure enables access to a corresponding entry (e.g., a token count value) in a second token-based control data structure and increments (or decrements) the count of the entry, etc. Thus, the one or more pointers configured for each token identifier entry of the first token-based control data structure preferably reference a location in the second token-based control data structure, thereby indicating to the second token-based control data structure that a condition affecting an entry (token count) value has been satisfied in the first token-based control data structure.
[0130] S310 may additionally or alternatively be used to configure a notification interface that enables the first token-based control data structure and / or preferably the second token-based control data structure to notify and / or inform the system implementing method 300 that an update to a counter value and / or condition has occurred in either the first token-based data structure and / or the second token-based data structure. Thus, the notification interface is used to indicate to the system that a prerequisite for one or more programs has been met so that the operation of the one or more programs can be executed or terminated. For example, if the second token-based control data structure includes a program control table that controls multiple programs, etc., when an update to the counter value of a program control table entry causes the program trigger condition to change from not being met to being met, the notification interface may be updated to reflect the change, and the notification interface may be further used to notify the system implementing the program control table of the update.
[0131] It should be noted that although the flow scoreboard module or token-based governance module can preferably be implemented using the at least two different token-based control data structures (i.e., the token-controlled event data structure and the token-controlled program control data structure), as described above, in some embodiments, the method 300 and / or the system 100, etc. can be used to implement a single token-based control data structure or table in which any or all of the above-mentioned data structure entries, indexes, trigger conditions and / or counters, etc. can be configured. That is, in one or more embodiments, a single-level or integrated token-based governance module or token-controlled governance data structure can be implemented to automate the flow control data and / or process of the system implementing the method 300 and / or method 200. In such an embodiment, the single-level token-based governance module can be used to implement a predetermined and / or fixed number of token counters and associated program control trigger conditions. Therefore, in one embodiment, the single-level token-based governance module can be used to track multiple different tokens (e.g., tokens associated with different token identifiers) for controlling the execution of multiple different programs and / or applications. In one example, for each different token identifier, a single-level token-based governance module may include a column or row of token counters that track the different tokens, a column or row of associated program trigger conditions based on the counter values of the token counters, and a column or row that explicitly identifies a program or application to be executed when or if the counter value satisfies the program trigger condition.
[0132] 4.2 Implementing Token-Based Control Data Structures in the System
[0133] S320, which includes monitoring the tokens and conditions of each of the first token-based control data structure and / or the second token-based control data structure, is used to track the relevance of multiple computing applications or programs associated with one or more token-based control data structures. In some embodiments, each of the multiple computing applications can have different conditions (or prerequisites) to automate some operations, executions, or performances of each corresponding computing application. It should be noted that S320 can be used to track the relevance of single or multiple computing applications. Additionally, the relevance tracked by S320 within the system can include any type of relevance in operations, executions, data movement, data storage, and / or any other event or thing in the system (which can be a prerequisite or trigger condition for a conditional action).
[0134] In a preferred embodiment, the correlation tracked in S320 can be specifically associated with one or more tokens, which can be automatically generated in response to detecting one or more correlations or events within the system. Therefore, monitoring and / or tracking correlations can be equivalent to monitoring the one or more tokens generated by the system implementing method 200 and / or method 300.
[0135] Additionally or alternatively, tracking of dependencies may include counting and / or adjusting count values of any tokens observed within a system implementing method 200 and / or 300. That is, S320 may be used to update count values within a first token-based control data structure and / or a second token-based control data structure based on token and / or dependency tracking data. In some embodiments, count values of different counters of a token-based control data structure may be incremented up or down depending on whether an upstream or downstream dependency or event is being tracked. For example, for an upstream dependency, a token counter may be decremented until a trigger condition is met, and for a downstream dependency, another token counter may be incremented until an associated trigger condition is met. It should be noted that the opposite may be implemented in one or more embodiments.
[0136] If through Figure 4 As shown in the example in, a token count table (e.g., a first token-based control data structure) is provided with multiple programs, including: program A and program B, each of which has different conditions for one or more operations and / or executions of each corresponding program. In this example, a prerequisite or condition for executing program A can be that a system implementing the first token count table should receive four (4) tokens with a token identifier (ID) "0"; four (4) tokens with a token ID "17"; and two (2) tokens with a token ID "18". Therefore, in this example, the first token count table can be used to maintain at least token count data and corresponding condition data that triggers one or more executions and / or operations of the corresponding programs identified in the first token count table.
[0137] To accomplish this, the token count table entries corresponding to token IDs "0" and "17" are programmed with an initial count value of negative four (-4) and a trigger condition configuration value that specifies a trigger condition when the count value is greater than or equal to "0." The token count table may additionally include an entry corresponding to token ID "18" that is programmed with an initial count value of negative two (-2) and the same trigger condition when the count value is greater than or equal to "0." The program ID field of all three entries within the token count table may be set to the program ID of program A.
[0138] Additionally, for the execution and / or operation of program B, it may be necessary to receive two tokens with a token ID of "19" and four tokens with a token ID of "126". The token count table entry for token ID 19 may be programmed with an initial value of negative two (-2), a trigger condition greater than or equal to zero, and a program ID pointer pointing to entry B (i.e., program B) in the program table (see below). The token count table entry for token ID 126 may be programmed to be the same as token ID 19 (except for the initial count value of -4). The program table entry for program B may be programmed with an initial count value of -2 because it may be adjusted to wait for two token count triggers from the token count table, and a trigger condition greater than or equal to zero.
[0139] Continuing with this example, S320 can be used to monitor tokens generated by one or more components (e.g., upstream and / or downstream components) of a system (e.g., an integrated circuit, an intelligent processing pipeline, etc.), and when a token is detected (by a token detection circuit, etc.), S320 can update (a token count or a conditional count) or create an entry corresponding to program A in a first token count table.
[0140] S330 including identifying whether one or more execution conditions are satisfied is used to monitor the token count value and the condition count value at each of the first token count table and the second program table (e.g., the second token-based control data structure), and determine whether the execution conditions of one or more programs have been satisfied. When implemented in an intelligent processing unit or similar integrated circuit, S330 can be used to implement a comparison circuit system, etc., to determine whether one or more execution conditions of a given program identified in the program table are satisfied by comparing the token count value data of each program with the trigger condition data of the program.
[0141] If through Figure 5 As shown in the example in , a program table (e.g., a second token-based control data structure) corresponding to the second token-based control data structure or table (discussed in the above example in S320) may be configured with an index value including a program identifier of program A and another index value including a program identifier of program B. The program table may be further configured and / or initialized with a conditional count value of negative three (-3) corresponding to program A and a corresponding program trigger (execution) condition where the count value is greater than or equal to zero.
[0142] Thus, when each of the three token count table entries "0", "17", and "18" satisfies their respective trigger conditions, the satisfaction of each of their respective trigger conditions may be used to cause the count value of program A at the program table to be incremented. That is, in some embodiments, the satisfaction of the trigger condition of the corresponding entry at the token count table associated with program A at the program table may cause a single increment (e.g., from -3 to -2) or a single decrement (e.g., from 3 to 2); however, it should be noted that the program table may be configured with varying increment and / or decrement schemes (e.g., increments of 2, .5, 3, or any programmable increment). Once all three token count conditions in the token count table have been met or satisfied, the count value of program A in the exemplary program table will also satisfy its conditions.
[0143] S340 including providing event notification is used to generate one or more notifications to the slave system component using a notification interface when a trigger condition for the execution and / or operation of a program or application associated with the slave system component is detected. Additionally or alternatively, S340 can be used to update a trigger condition-related state associated with a corresponding program identifier within a token-based control data structure (e.g., a second token-based control data structure).
[0144] Referring to the exemplary program table (described above), when the count value of program A in the exemplary program table has satisfied its condition, S340 may be used to update the notification interface to reflect that the trigger condition-related state of program A has met its prerequisite, such as by Figure 6 That is, S340 may be used to change an entry of a trigger condition-related state from not satisfied to satisfied, etc. Any suitable update indicating the satisfaction of the condition for executing program A may be made by S340. In response, a system implementing method 200 and / or method 300 may be used to automatically execute program A, etc., at one or more of the smart processing slices or other computing circuit systems within the system.
[0145] 5. Computer program products implementing intelligent processing and / or token-based intelligent processing control
[0146] The systems and methods of the preferred embodiments and variations thereof may be at least partially embodied and / or implemented as a machine configured to receive a computer-readable medium storing computer-readable instructions. The instructions are preferably executed by a computer-executable component preferably integrated with one or more portions of the system and a processor and / or controller. The computer-readable medium may be stored on any suitable computer-readable medium such as RAM, ROM, flash memory, EEPROM, optical device (CD or DVD), hard drive, floppy disk drive, or any suitable device. The computer-executable component is preferably a general-purpose or special-purpose processor, but any suitable special-purpose hardware or hardware / firmware combination device may alternatively or additionally execute the instructions.
[0147] Although omitted for the sake of brevity, the preferred embodiment includes every combination and permutation of the various methods described herein.
[0148] As those skilled in the art will recognize from the foregoing detailed description and from the accompanying drawings and claims, modifications and variations may be made to the preferred embodiments of the present invention without departing from the scope of the invention as defined by the following claims.
Claims
1. A method for implementing a token control process within an integrated circuit, the method comprising: collecting input data from one or more input data sources at a primary data buffer of the integrated circuit; Implementing a data processing pipeline, wherein the data processing pipeline is defined by at least: one or more matrix multiplication accelerators; one or more local data buffers; One or more flow scoreboard modules are implemented by the integrated circuit, wherein implementing the one or more flow scoreboard modules comprises: (i) implementing a token counter table that tracks one or more tokens within the integrated circuit; (ii) implementing a program control table that monitors one or more program execution conditions based on the one or more tokens; Based on the implementation of the token count table and the implementation of the program control table, one or more portions of the input data from the primary data buffer are automatically propagated along the data processing pipeline.
2. The method according to claim 1, further comprising: One or more programs or one or more applications are automatically executed at one or more of the one or more matrix multiplication accelerators of the data processing pipeline based on the state of the program control table.
3. The method according to claim 1, wherein the token count table: are indexed according to a number of different token identifiers; including an entry for each of the plurality of different token identifiers, the entry storing a running count of the number of different tokens having one of the plurality of different token identifiers; and Each entry stores software programmable configuration bits that set the corresponding counter trigger condition.
4. The method according to claim 3, wherein The token count table is configured with at least one pointer, which points to an entry in the program control table when a counter trigger condition is satisfied based on count values of different tokens in the token control table.
5. The method according to claim 1, wherein the program control table: being indexed according to a plurality of different program identifiers of a plurality of different programs; Each entry of the program control table includes a counter storing a counter value for one or more different tokens associated with one or more different token identifiers; and Each entry of the program control table stores software programmable configuration bits that set program execution conditions based on the counter values of the one or more different tokens.
6. The method according to claim 1, further comprising: Status data is generated for each of the one or more of the local data buffers and each of the one or more matrix multiplication accelerators, wherein the status data indicates a utilization level of each of the one or more of the local data buffers and each of the one or more matrix multiplication accelerators.
7. The method according to claim 6, further comprising: One or more tokens are generated by the integrated circuit based on the state data of each of the one or more local data buffers and each of the one or more matrix multiplication accelerators.
8. The method according to claim 7, further comprising: tracking the one or more tokens generated by the integrated circuit; and An internal state of the token count table is updated based on the tracking.
9. The method according to claim 7, further comprising: tracking the one or more tokens generated by the integrated circuit; and An internal state of the program control table is updated based on the tracking.
10. The method according to claim 1, wherein When an update to the token count of the token count table causes a token counter condition to change from not satisfied to satisfied, a corresponding entry in the program control table is accessed and the counter value of the program control table is incremented or decremented.
11. The method according to claim 10, wherein When the update of the counter value of the program control table entry causes the program trigger condition to change from not satisfied to satisfied, the notification interface is updated to reflect the change.
12. The method according to claim 1, further comprising: identifying a state of at least one local data buffer of the one or more local data buffers; generating one or more tokens based on the identified state; and Notification of an upstream component or a downstream component within the data processing pipeline of the integrated circuit is triggered based on the one or more tokens.
13. The method according to claim 12, further comprising: In response to the notification, automatically loading one or more portions of the input data into the at least one local data buffer, or The one or more portions of the input data are automatically loaded from the at least one local data buffer into one of the one or more matrix multiplication accelerators.
14. The method of claim 1, wherein the integrated circuit comprises: A plurality of computing slices, wherein each of the plurality of computing slices comprises: a matrix multiplication accelerator of the one or more matrix multiplication accelerators, Calculation processing circuit; as well as a flow scoreboard module of the one or more flow scoreboard modules; a local data buffer of the one or more local data buffers, wherein the plurality of computing slices together define an intelligent processing array; Network-on-chip system, including: a plurality of network-on-chip routers establishing a communication network between each of the plurality of computing slices, wherein each network-on-chip router is operatively communicatively connected with at least one of the plurality of computing slices and a different network-on-chip router of the plurality of network-on-chip routers; as well as A primary buffer is remotely disposed from each of the plurality of computing slices, wherein the primary buffer stores raw input data and / or data received from an upstream process or upstream device.
