A multi-core architecture with heterogeneous processors and data processing method thereof
By introducing FPGA and DSP processing cores into AI chips, a heterogeneous processor architecture is formed, which solves the problem of simple processor functions in homogeneous designs, achieves efficient and complex calculations and low energy consumption, and improves the computing power and flexibility of AI chips. sex.
Patent Information
- Application Number
- CN202010183264.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-03-16
AI Technical Summary
Existing AI chips adopt an isomorphic design, resulting in simple processor functions, lack of complex logical judgment and control mechanisms, difficulty in supporting new algorithms and models, low efficiency of complex operations and high energy consumption.
Integrated FPGA and DSP processing cores are introduced into the many-core array to realize a heterogeneous processor architecture. Complex logic control and scientific calculations are processed through inter-core routing communication to improve computing efficiency and reduce energy consumption.
There is no need to modify the existing on-chip network structure, and the processing core type is added to support complex logic control and scientific calculations, save transmission bandwidth, reduce energy consumption, improve computing efficiency, improve processing efficiency, and have higher flexibility.
Smart Images

Figure CN113407238B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of many-core architecture, and in particular to a many-core architecture with heterogeneous processors and a data processing method thereof. Background Art
[0002] Currently, most AI chips use a homogeneous design, that is, the structure of each processor core is the same. This makes it very simple to set the function of each processor in order to control the chip area and power consumption. It lacks many simple logical judgments and control mechanisms, so that many new algorithms and models cannot be supported. Once complex calculations are encountered, it is necessary to design special circuits or use an off-chip CPU to process them, which has low computing efficiency and high energy consumption. Summary of the invention
[0003] To solve the above problems, the purpose of the present invention is to provide a many-core architecture with heterogeneous processors and a data processing method thereof, and to add processing cores with integrated FPGA and processing cores with integrated DSP in the many-core array to realize a many-core architecture with heterogeneous processors, so that the many-core array can handle various complex logic controls and complex scientific calculations, improve computing efficiency and reduce energy consumption.
[0004] The present invention provides a many-core architecture with heterogeneous processors, comprising: a many-core array, wherein the many-core array includes multiple computing cores and at least one processing core with different functions from the multiple computing cores, the processing core is set with a synchronous clock with the multiple computing cores, and the processing core communicates with its adjacent computing cores through inter-core routing.
[0005] As a further improvement of the present invention, the many-core array comprises:
[0006] Multiple computing cores; and,
[0007] At least one processing core integrated with an FPGA and / or at least one processing core integrated with a DSP.
[0008] As a further improvement of the present invention, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP is arranged at the corners of the many-core array, and the processing core integrated with FPGA and / or the processing core integrated with DSP communicates with its two adjacent computing cores through two inter-core routing paths.
[0009] As a further improvement of the present invention, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP is arranged inside the many-core array, and the processing core integrated with FPGA and / or the processing core integrated with DSP communicates with its four adjacent computing cores through four inter-core routing paths.
[0010] As a further improvement of the present invention, the many-core array is a two-dimensional matrix network, at least one processing core integrated with DSP is arranged at the corner of the many-core array, and the processing core integrated with DSP communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core integrated with FPGA is arranged inside the many-core array, and the processing core integrated with FPGA communicates with its four adjacent computing cores through four inter-core routing paths.
[0011] As a further improvement of the present invention, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA is arranged at the corner of the many-core array, and the processing core integrated with FPGA communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core integrated with DSP is arranged inside the many-core array, and the processing core integrated with DSP communicates with its four adjacent computing cores through four inter-core routing paths.
[0012] As a further improvement of the present invention, the processing core of the integrated FPGA is used to process operations that the computing core cannot process, and to perform processing of logic control and judgment instructions; the processing core of the integrated DSP is used to process operations that the computing core cannot process, and to perform processing of non-customized operations.
[0013] The present invention also provides a data processing method for a many-core architecture with heterogeneous processors. Using the many-core architecture with heterogeneous processors, the data processing method includes: the calculation data of the current computing core is transmitted from the current computing core to at least one processing core with different functions from the computing core through inter-core routing for calculation.
[0014] As a further improvement of the present invention, the operation data of the current computing core is transmitted from the current computing core to at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP through inter-core routing for operation.
[0015] As a further improvement of the present invention, a single computing task is divided into several sub-computing tasks, and the several sub-computing tasks are assigned to the multiple computing cores, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP for parallel processing. At the same time, the multiple computing cores, the processing core integrated with FPGA and / or the processing core integrated with DSP process their respective sub-computing tasks in parallel.
[0016] As a further improvement of the present invention, the computing data of the sub-computing tasks corresponding to the processing core of the integrated FPGA and / or the processing core of the integrated DSP is transmitted from the current computing core to the processing core of the integrated FPGA and / or the processing core of the integrated DSP through inter-core routing for computing.
[0017] As a further improvement of the present invention, the processing core with integrated FPGA or the processing core with integrated DSP that is closest to the computing core where the computing data corresponding to the current single sub-computing task is located is found through inter-core routing, and the computing data is transmitted to the processing core with integrated FPGA or the processing core with integrated DSP for computing. After the processing core with integrated FPGA or the processing core with integrated DSP completes the computing, the computing result is transmitted to the next computing core through inter-core routing to continue the computing.
[0018] As a further improvement of the present invention, the processing cores of the integrated FPGA and / or the processing cores of the integrated DSP that are closest to the computing cores where the computing data corresponding to the current multiple sub-computing tasks are located are found through inter-core routing, and the computing data are transmitted to the processing cores of each integrated FPGA and / or each integrated DSP for computing. After the processing cores of each integrated FPGA and / or each integrated DSP complete the computing, the computing results are transmitted to the next computing core through inter-core routing to continue the computing.
[0019] As a further improvement of the present invention, the computing data that cannot be processed by the computing core includes computing data of logic control and judgment instructions, which are transmitted from the current computing core to the processing core of the integrated FPGA through inter-core routing for calculation; the computing data that cannot be processed by the computing core includes non-customized computing data, which are transmitted from the current computing core to the processing core of the integrated DSP through inter-core routing for calculation.
[0020] The present invention also provides a many-core chip, which adopts the many-core architecture with heterogeneous processors.
[0021] The present invention also provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the data processing method of the multi-core architecture with heterogeneous processors.
[0022] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the data processing method of the multi-core architecture with heterogeneous processors.
[0023] The beneficial effects of the present invention are:
[0024] There is no need to modify the existing on-chip network structure. You only need to increase the type of nodes to support the newly added processing core types and realize a many-core architecture with heterogeneous processors. Integrating FPGA processing cores and DSP processing cores in the many-core array enables the many-core array to handle various complex logic controls and complex scientific calculations, which can greatly save transmission bandwidth, reduce energy consumption, improve computing efficiency, and accelerate the reasoning / training process of neural networks. At the same time, without the need for instruction scheduling of the on-chip processor, a pipeline data processing mode can be formed to reduce processing delays and improve processing efficiency. At the same time, using the programmable characteristics of FPGA and DSP, it can be recompiled according to the needs of calculation, logic, and scheduling, which is more flexible than the existing pure computing core many-core architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0026] Figure 1 A schematic diagram of a many-core architecture with heterogeneous processors according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0028] It should be noted that if the embodiments of the present disclosure involve directional indications (such as up, down, left, right, front, back, etc.), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0029] In addition, in the description of the present disclosure, the terms used are only for illustrative purposes and are not intended to limit the scope of the present disclosure. The terms "include" and / or "comprise" are used to specify the existence of the elements, steps, operations and / or components, but do not exclude the existence or addition of one or more other elements, steps, operations and / or components. The terms "first", "second" and the like may be used to describe various elements, do not represent the order, and do not limit these elements. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is two and more than two. These terms are only used to distinguish one element from another element. In conjunction with the following drawings, these and / or other aspects become apparent, and it is easier for those of ordinary skill in the art to understand the description of the embodiments described in the present disclosure. The accompanying drawings are used to describe the embodiments described in the present disclosure for illustrative purposes only. Those skilled in the art will easily recognize from the following description that, without departing from the principles described in the present disclosure, alternative embodiments of the structures and methods shown in the present disclosure can be adopted.
[0030] At present, most AI chips adopt a homogeneous design, that is, the structure of each processor core is the same. This makes the function of each processor very simple in order to control the area and power consumption of the chip, lacking many simple logical judgments and control mechanisms, so that many new algorithms and models cannot be supported. Once complex calculations are encountered, it is necessary to design special circuits or use off-chip CPUs to process them. If a special circuit is designed, the later optimization of the chip will be inflexible and the development time will be delayed. Processing by off-chip CPUs will interrupt the originally designed pipeline parallel processing, resulting in performance degradation.
[0031] A many-core architecture with heterogeneous processors according to an embodiment of the present disclosure includes: a many-core array, the many-core array includes multiple computing cores and at least one processing core with different functions from the multiple computing cores, the processing core and the multiple computing cores are set with synchronous clocks, and the processing core communicates with its adjacent computing cores through inter-core routing.
[0032] In one possible implementation, the many-core array includes:
[0033] Multiple computing cores, and
[0034] At least one processing core integrated with an FPGA and / or at least one processing core integrated with a DSP.
[0035] A multi-core architecture with heterogeneous processors described in an embodiment of the present disclosure does not need to modify the existing on-chip network structure. It only needs to increase the type of nodes in the existing on-chip network structure to support the newly added processing core type, thereby realizing a multi-core architecture with heterogeneous processors. The newly added processing core (processing core integrated with FPGA, processing core integrated with DSP) can be used as an ordinary computing core, so there is no need to modify the software and various applications that have been adjusted in the upper layer. The added heterogeneous processor can simultaneously support various operations, including operations of logic control and judgment instructions and non-customized operations, etc., wherein non-customized operations can refer to any operations other than operations supported by the computing core, so that the multi-core chip can support multiple algorithms and models. When encountering complex operations, the processing core integrated with DSP is called to complete the corresponding non-customized operations. When designing multiple processing cores integrated with DSP, multiple small networks can be supported to perform non-customized operations simultaneously. When encountering complex logic control operations, the processing core integrated with FPGA is called to complete the corresponding operations. When designing multiple processing cores integrated with FPGA, multiple small networks can be supported to perform logic control simultaneously. When the original computing core is performing calculations, there is no need to schedule the FPGA and / or DSP through the on-chip CPU, maintaining parallel pipeline processing of data, thereby reducing processing delays and improving processing efficiency. The present disclosure adds a processing core integrated with FPGA and a processing core integrated with DSP, which can be recompiled according to the needs of calculation, logic, and scheduling by utilizing the programmable characteristics of FPGA and DSP. Compared with the existing pure computing core multi-core architecture, it is more flexible.
[0036] In an achievable implementation, the computing core includes an AI computing unit, a storage unit, and a route, the processing core integrated with FPGA includes an FPGA computing unit, a storage unit, and a route, and the processing core integrated with DSP includes a DSP computing unit, a storage unit, and a route. The storage unit and the routing configuration of the computing core, the processing core integrated with FPGA, and the processing core integrated with DSP are the same. For example, the storage capacity of the storage unit of the computing core, the processing core integrated with FPGA, and the processing core integrated with DSP can be the same. The computing core, the processing core integrated with FPGA, and the processing core integrated with DSP are designed as equally positioned modules for integration, with the same timing control and communication mode, to form an array integration architecture of a quasi-isomorphic two-dimensional grid.
[0037] In one feasible implementation, the storage capacities of the storage units of the computing core, the processing core integrated with FPGA, and the processing core integrated with DSP may be different or not completely the same. For example, the storage capacities of the storage units of each core (including the computing core, the processing core integrated with FPGA, and the processing core integrated with DSP) may be different, or the storage capacities of the cores may not be completely the same. The present disclosure does not impose any restriction on the size of the storage capacities of the storage units of the computing core, the processing core integrated with FPGA, and the processing core integrated with DSP, or whether they are the same.
[0038] The many-core array can generally be a two-dimensional matrix network, a two-dimensional ring network, a two-dimensional star network or a three-dimensional hierarchical network. The selection of the many-core array network structure can be selected and designed according to the functions and requirements of the chip. The number of processing cores integrated with FPGA and integrated with DSP can be adaptively designed according to the functions and requirements of the chip. For example, when the processing volume of logic control and judgment instructions is small, an integrated FPGA processing core can be set in the on-chip many-core array, and when the processing volume of logic control and judgment instructions is large, the number of integrated FPGA processing cores can be appropriately increased. Similarly, when the processing volume of non-customized operations is small, an integrated DSP processing core can be set in the on-chip many-core array, and when the processing volume of non-customized operations is large, the number of integrated DSP processing cores can be appropriately increased.
[0039] As mentioned above, non-customized operations can refer to any operations other than those supported by the computing core, such as various operations including but not limited to sin, cos, log, exponential, etc. For example, when the operations solidified or customized by the common computing core include floating point and integer operations, and sin, cos, log, exponential, etc. operations are not solidified or customized, sin, cos, log, exponential, etc. operations are non-customized operations and can be processed by the processing core integrated with DSP.
[0040] For example, when recognizing a person's face, there are situations where the position of the person's face in the acquired picture is different, the shooting angle is different, etc., which may result in different regions of interest (ROI) of the selected picture and different sizes of the ROI area during data processing. In the process of data processing, the data may change dynamically, resulting in non-customized operations that the computing core cannot handle. In the prior art, these data can only be transferred to the CPU for processing, while the present disclosure can directly process these non-customized operations on the chip through the processing core of the integrated DSP. In addition, multiple processing cores with integrated FPGAs and / or multiple processing cores with integrated DSPs are designed in a many-core array, so that the many-core array can support the simultaneous operation of multiple small networks, thereby improving the overall computing speed of the chip.
[0041] In a preferred embodiment, the many-core array is designed as a two-dimensional square network. The symmetrical structure design optimizes data transmission, processing, chip power consumption and heat dissipation, thereby improving the overall performance of the chip.
[0042] As for the positions of the processing cores integrated with FPGA and the processing cores integrated with DSP in the many-core array, their optimal positions can be determined according to the position of the computing core specified by the computing data input, so as to quickly find the processing core integrated with FPGA and / or the processing core integrated with DSP that is closest to the computing core, thereby improving the overall computing speed of the chip.
[0043] In an achievable implementation, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP is arranged at a corner of the many-core array, and the processing core integrated with FPGA and / or the processing core integrated with DSP communicates with two adjacent computing cores via two inter-core routing paths. For example, a processing core integrated with FPGA or a processing core integrated with DSP may be arranged at a corner of the many-core array. It is also possible to arrange multiple processing cores integrated with FPGA or multiple processing cores integrated with DSP at multiple corners of the many-core array. It is also possible to arrange one processing core integrated with FPGA and one processing core integrated with DSP at multiple corners of the many-core array. It is also possible to arrange one processing core integrated with FPGA and multiple processing cores integrated with DSP at multiple corners of the many-core array. It is also possible to arrange multiple processing cores integrated with FPGA and one processing core integrated with DSP at multiple corners of the many-core array. It is also possible to arrange multiple processing cores integrated with FPGA and one processing core integrated with DSP at multiple corners of the many-core array. It is also possible to arrange multiple processing cores integrated with FPGA and multiple processing cores integrated with DSP at multiple corners of the many-core array. It is also possible to arrange multiple processing cores integrated with FPGA and multiple processing cores integrated with DSP at multiple corners of the many-core array. Each additional processing core integrated with FPGA can increase the processing capabilities of the chip's logic control and judgment instructions, and each additional processing core integrated with DSP can increase the processing capabilities of the chip's non-customized operations, thereby improving the computing efficiency. However, in the specific design, it is necessary to comprehensively consider the chip's area, functions, and energy consumption, and to adaptively design the number and location of the processing cores integrated with FPGA and integrated with DSP.
[0044] In an achievable implementation, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP is arranged inside the many-core array, and the processing core integrated with FPGA and / or the processing core integrated with DSP communicates with its four adjacent computing cores through four inter-core routing paths. For example, one processing core integrated with FPGA or one processing core integrated with DSP can be arranged inside the many-core array. Multiple processing cores integrated with FPGA or multiple processing cores integrated with DSP can also be arranged inside the many-core array. One processing core integrated with FPGA and one processing core integrated with DSP can also be arranged inside the many-core array. One processing core integrated with FPGA and multiple processing cores integrated with DSP can also be arranged inside the many-core array. Multiple processing cores integrated with FPGA and one processing core integrated with DSP can also be arranged inside the many-core array. Multiple processing cores integrated with FPGA and multiple processing cores integrated with DSP can also be arranged inside the many-core array. As in the above implementation, more processing cores improve the complex computing processing capability of the chip, but in the specific design, it is necessary to comprehensively consider the area, function and energy consumption of the chip, and adaptively design the number and position of the processing cores.
[0045] In an achievable implementation, multiple processing cores with integrated FPGAs or multiple processing cores with integrated DSPs may be arranged on the diagonal inside the many-core array. This method in which the processing cores are symmetrical to the diagonal inside the many-core array is particularly suitable for two-dimensional square networks. For example, for a two-dimensional 4*4 network, an integrated FPGA processing core or an integrated DSP processing core may be arranged in the second row and second column and the third row and third column of the many-core array. An integrated FPGA processing core or an integrated DSP processing core may also be arranged in the second row and third column and the third row and second column of the many-core array. An integrated FPGA processing core or an integrated DSP processing core may also be arranged in the second row and second column, the second row and third column, the third row and second column, and the third row and third column of the many-core array. This mode is generally aimed at situations where the processing volume of logic control and judgment instructions or non-customized operations is large. An integrated FPGA processing core may also be arranged in the second row and third column and the third row and second column of the many-core array, and an integrated DSP processing core may be arranged in the second row and third column and the third row and second column of the many-core array. Similar to the above implementation, more processing cores improve the complex computing and processing capabilities of data. However, in the specific design, it is necessary to comprehensively consider the area, function and energy consumption of the chip, and adaptively design the number and position of the processing cores.
[0046] In one achievable implementation, the many-core array is a two-dimensional matrix network, at least one processing core with integrated DSP is arranged at a corner of the many-core array, and the processing core with integrated DSP communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core with integrated FPGA is arranged inside the many-core array, and the processing core with integrated FPGA communicates with its four adjacent computing cores through four inter-core routing paths. For example, a processing core with integrated DSP can be arranged at a corner of the many-core array, and a processing core with integrated FPGA can be arranged inside the many-core array. It is also possible to arrange a processing core with integrated DSP at each of the multiple corners of the many-core array, and arrange a processing core with integrated FPGA inside the many-core array. It is also possible to arrange a processing core with integrated DSP at a corner of the many-core array, and arrange multiple processing cores with integrated FPGA inside the many-core array. It is also possible to arrange a processing core with integrated DSP at each of the multiple corners of the many-core array, and arrange multiple processing cores with integrated FPGA inside the many-core array. It is also possible to arrange a processing core with integrated DSP at each of the multiple corners of the many-core array, and arrange multiple processing cores with integrated FPGA inside the many-core array. Similar to the above implementation, the positions and quantities of the two processing cores, the integrated FPGA and the integrated DSP, are designed based on the logic control and judgment instruction operations and non-customized operation processing required by the chip, while also comprehensively considering the chip area, functionality, and energy consumption. Figure 1 An example of a multi-core architecture with heterogeneous processors described in an embodiment of the present disclosure is shown. In a 4*4 two-dimensional network, a processing core with integrated DSP is set at each of the four corners, and a processing core with integrated FPGA is set at each of the second row and second column and the third row and third column.
[0047] In one achievable implementation, the many-core array is a two-dimensional matrix network, at least one processing core integrated with FPGA is arranged at a corner of the many-core array, and the processing core integrated with FPGA communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core integrated with DSP is arranged inside the many-core array, and the processing core integrated with DSP communicates with its four adjacent computing cores through four inter-core routing paths. For example, a processing core integrated with FPGA can be arranged at a corner of the many-core array, and a processing core integrated with DSP can be arranged inside the many-core array. It is also possible to arrange a processing core integrated with FPGA at each of the multiple corners of the many-core array, and arrange a processing core integrated with DSP inside the many-core array. It is also possible to arrange a processing core integrated with FPGA at a corner of the many-core array, and arrange multiple processing cores integrated with DSP inside the many-core array. It is also possible to arrange a processing core integrated with FPGA at each of the multiple corners of the many-core array, and arrange multiple processing cores integrated with DSP inside the many-core array. It is also possible to arrange a processing core integrated with FPGA at each of the multiple corners of the many-core array, and arrange multiple processing cores integrated with DSP inside the many-core array. Similar to the above implementation, the positions and quantities of the two processing cores, the integrated FPGA and the integrated DSP, are designed according to the required logic control and judgment instructions and the non-customized computing processing capacity, while the chip area, functions and energy consumption need to be comprehensively considered.
[0048] The processing core of the integrated FPGA in the above-mentioned implementation mode can be used as an ordinary computing core, and can also be used to process complex computing data, including computing data that the computing core cannot process, such as computing data of logic control and judgment instructions, etc. The processing core of the integrated DSP can be used as an ordinary computing core, and can also be used to process complex computing data, including computing data that the computing core cannot process, such as non-customized computing data, etc.
[0049] The data processing method of a many-core architecture with heterogeneous processors described in an embodiment of the present disclosure adopts the many-core architecture with heterogeneous processors. The data processing method includes: the operation data of the current computing core is transmitted from the current computing core to at least one processing core with different functions from the computing core through inter-core routing for calculation.
[0050] In an achievable implementation, the processing core with different functions from the computing core can be designed as a processing core integrated with an FPGA and / or a processing core integrated with a DSP. In this case, the data processing method includes: the operation data of the current computing core is transmitted from the current computing core to at least one processing core integrated with an FPGA and / or at least one processing core integrated with a DSP through inter-core routing for operation.
[0051] In an achievable implementation, a multi-core architecture with heterogeneous processors described in an embodiment of the present disclosure maintains parallel pipeline processing of data, a single computing task is divided into a number of sub-computing tasks, and the sub-computing tasks are assigned to multiple computing cores, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP for parallel processing, and at the same time, multiple computing cores process their respective sub-computing tasks in parallel. It can be understood that a single computing task is divided into a number of sub-computing tasks, each computing core and processing core only processes their respective corresponding sub-computing tasks, and a number of sub-computing tasks are processed simultaneously by each computing core and processing core, so that in this processing mode, data transmission and operation between the multi-cores do not require intervention and scheduling of the on-chip CPU, which reduces processing delays and improves processing efficiency.
[0052] In an achievable implementation, after a single computing task is divided into sub-computing tasks, the computing data of the sub-computing tasks are transmitted from the computing core to each processing core. The computing data of the sub-computing tasks corresponding to the processing core of the integrated FPGA and / or the processing core of the integrated DSP are transmitted from the current computing core to the processing core of the integrated FPGA and / or the processing core of the integrated DSP through inter-core routing for computing.
[0053] In an achievable implementation, the processing core integrated with FPGA can be used to process logic control and judgment instructions, etc., and the processing core integrated with DSP can be used to process non-customized operations, etc. The operation data of logic control and judgment instructions that cannot be processed by multiple computing cores are transmitted from the current computing core to the processing core integrated with FPGA through inter-core routing for operation, and the non-customized operation data that cannot be processed by multiple computing cores are transmitted to the processing core integrated with DSP through inter-core routing for operation.
[0054] In an achievable implementation, when the public core array includes multiple processing cores, if the current computing core encounters an unsupported sub-computing task (for example, a logic control and judgment instruction or a non-customized operation), at this time, the processing core with integrated FPGA or integrated DSP that is closest to the computing core where the computing data corresponding to the current single sub-computing task is located can be found through inter-core routing, and the computing data can be transmitted to the processing core with integrated FPGA or integrated DSP for computing. After the processing core with integrated FPGA or integrated DSP completes the computing, the computing result is transmitted to the next computing core through inter-core routing to continue computing. By quickly finding the processing core with integrated FPGA or integrated DSP that is closest to the computing core, the overall computing speed of the chip is improved.
[0055] In one achievable implementation, in a multi-core array, when there is only a single logic control and judgment instruction sub-operation task or a single non-customized sub-operation task: the processing core of the integrated FPGA closest to the computing core where the operation data of the logic control and judgment instruction corresponding to the current single logic control and judgment instruction sub-operation task is located is found through inter-core routing, and the operation data of the logic control and judgment instruction is transmitted to the processing core of the integrated FPGA to perform the operation of the logic control and judgment instruction. After the processing core of the integrated FPGA completes the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation; or the processing core of the integrated DSP closest to the computing core where the non-customized operation data corresponding to the current single non-customized sub-operation task is located is found through inter-core routing, and the non-customized operation data is transmitted to the processing core of the integrated DSP to perform the non-customized operation. After the processing core of the integrated DSP completes the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation.
[0056] In one feasible implementation, when the public core array includes multiple processing cores, if the current computing core encounters multiple unsupported sub-operation tasks (for example, one logic control and judgment instruction sub-operation and one non-customized sub-operation, one logic control and judgment instruction sub-operation and multiple non-customized sub-operations, multiple logic control and judgment instruction sub-operations and one non-customized sub-operations, multiple logic control and judgment instruction sub-operations and multiple non-customized sub-operations), at this time, the processing core of the integrated FPGA and / or the processing core of the integrated DSP that is closest to the computing core where the operation data corresponding to the current multiple sub-operation tasks is located can be found through inter-core routing, and the operation data can be transmitted to each processing core of the integrated FPGA and / or each processing core of the integrated DSP for operation. After the operation of each processing core of the integrated FPGA and / or each processing core of the integrated DSP is completed, the operation results are transmitted to the next computing core through inter-core routing to continue the operation.
[0057] In an achievable implementation, in a many-core array, when there is a single logic control and judgment instruction sub-operation task and a single non-customized sub-operation task: the processing core of the integrated FPGA closest to the computing core where the operation data of the logic control and judgment instruction corresponding to the current single logic control and judgment instruction sub-operation task is located is found through inter-core routing, and the operation data of the logic control and judgment instruction is transmitted to the processing core of the integrated FPGA to perform the operation of the logic control and judgment instruction. After the processing core of the integrated FPGA completes the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation; and the processing core of the integrated DSP closest to the computing core where the non-customized operation data corresponding to the current single non-customized sub-operation task is located is found through inter-core routing, and the non-customized operation data is transmitted to the processing core of the integrated DSP to perform the non-customized operation. After the processing core of the integrated DSP completes the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation.
[0058] In an achievable implementation, in a many-core array, when there is a single logic control and judgment instruction sub-operation task and multiple non-customized sub-operation tasks: the processing core of the integrated FPGA closest to the computing core where the operation data of the logic control and judgment instruction corresponding to the current single logic control and judgment instruction sub-operation task is located is found through inter-core routing, and the operation data of the logic control and judgment instruction is transmitted to the processing core of the integrated FPGA to perform the operation of the logic control and judgment instruction. After the processing core of the integrated FPGA completes the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation; and the processing cores of the multiple integrated DSPs closest to the computing core where the non-customized operation data corresponding to the current multiple non-customized sub-operation tasks are located are found through inter-core routing, and the non-customized operation data is transmitted to the processing cores of each integrated DSP for non-customized operation. After the processing cores of each integrated DSP complete the operation, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation.
[0059] In an achievable implementation, in a many-core array, when there are multiple logic control and judgment instruction sub-operation tasks and a single non-customized sub-operation task: through inter-core routing, find multiple integrated FPGA processing cores closest to the computing core where the operation data of the logic control and judgment instructions corresponding to the current multiple logic control and judgment instruction sub-operation tasks are located, and transmit the operation data of the logic control and judgment instructions to the processing cores of each integrated FPGA for logic control and judgment instruction operations. After the processing cores of each integrated FPGA complete the operation, the operation results are transmitted to the next computing core through inter-core routing to continue the operation; and through inter-core routing, find the integrated DSP processing core closest to the computing core where the non-customized operation data corresponding to the current single non-customized sub-operation task is located, and transmit the non-customized operation data to the processing core of the integrated DSP for non-customized operation. After the processing core of the integrated DSP completes the operation, the operation results are transmitted to the next computing core through inter-core routing to continue the operation.
[0060] In an achievable implementation, in a many-core array, when there are multiple logic control and judgment instruction sub-operation tasks and multiple non-customized sub-operation tasks: multiple integrated FPGA processing cores closest to the computing cores where the operation data of the logic control and judgment instructions corresponding to the current multiple logic control and judgment instruction sub-operation tasks are located are found through inter-core routing, and the operation data of the logic control and judgment instructions are transmitted to the processing cores of each integrated FPGA for the operation of the logic control and judgment instructions. After the operation of each integrated FPGA processing core is completed, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation; and multiple integrated DSP processing cores closest to the computing cores where the non-customized operation data corresponding to the current multiple non-customized sub-operation tasks are located are found through inter-core routing, and the non-customized operation data are transmitted to the processing cores of each integrated DSP for non-customized operation. After the operation of each integrated DSP processing core is completed, the operation result is transmitted to the next computing core through the inter-core routing to continue the operation.
[0061] The present disclosure also relates to a multi-core chip, which adopts a multi-core architecture with heterogeneous processors described in the embodiment of the present disclosure. This multi-core chip takes advantage of the complex logic control and judgment instruction processing of FPGA and the scientific computing processing advantages of DSP. Without changing the existing on-chip network structure, it only needs to increase the type of nodes, so that the chip can support various complex logic controls and complex operations while realizing ordinary AI calculations. FPGA and DSP are integrated into the multi-core array, and external communication is carried out through the inter-chip routing of the AI computing core array to reduce chip energy consumption. The multi-core chip can be applied to the field of artificial intelligence. By adding heterogeneous cores to the AI computing array, it can process algorithms, logic control and judgment instructions, non-customized operations, etc. that the AI computing core cannot process or processes inefficiently, which can greatly save transmission bandwidth, reduce energy consumption, improve computing efficiency, and accelerate the reasoning / training process of neural networks.
[0062] The present disclosure also relates to an electronic device, including a server, a terminal, etc. The electronic device includes: at least one processor; a memory connected to the at least one processor; and a communication component connected to the storage medium, wherein the communication component receives and sends data under the control of the processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the data processing method of the multi-core architecture with heterogeneous processors in the above-mentioned embodiment.
[0063] In an optional implementation, the memory is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in the memory, that is, realizing the data processing method of the multi-core architecture with heterogeneous processors.
[0064] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0065] One or more modules are stored in the memory, and when executed by one or more processors, the data processing method with a multi-core architecture having heterogeneous processors in any of the above method embodiments is executed.
[0066] The above-mentioned product can execute the data processing method of the many-core architecture with heterogeneous processors provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the data processing method of the many-core architecture with heterogeneous processors provided in the embodiment of the present application.
[0067] The present disclosure also relates to a computer-readable storage medium for storing a computer-readable program, wherein the computer-readable program is used for a computer to execute part or all of the above-mentioned data processing method embodiments of a many-core architecture with heterogeneous processors.
[0068] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0069] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0070] In addition, it will be understood by those skilled in the art that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
[0071] It will be appreciated by those skilled in the art that, although the present invention has been described with reference to exemplary embodiments, various changes may be made and equivalents may be substituted for its elements without departing from the scope of the present invention. In addition, many modifications may be made to adapt specific circumstances or materials to the teachings of the present invention without departing from the essential scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed, but the present invention will include all embodiments falling within the scope of the appended claims.
Claims
1. A many-core architecture with heterogeneous processors, characterized in that: include: A many-core array, the many-core array comprising a plurality of computing cores and at least one processing core having functions different from the plurality of computing cores, the processing core being set with a synchronous clock with the plurality of computing cores, and the processing core communicating with its adjacent computing cores via an inter-core routing; The many-core array is a two-dimensional matrix network, at least one processing core integrated with DSP is arranged at the corner of the many-core array, and the processing core integrated with DSP communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core integrated with FPGA is arranged inside the many-core array, and the processing core integrated with FPGA communicates with its four adjacent computing cores through four inter-core routing paths.
2. The many-core architecture with heterogeneous processors according to claim 1, characterized in that: The many-core array is a two-dimensional matrix network, and the two-dimensional matrix network can also be: at least one processing core integrated with FPGA and at least one processing core integrated with DSP are arranged at the corners of the many-core array, and the processing core integrated with FPGA and the processing core integrated with DSP communicate with their two adjacent computing cores through two inter-core routing paths.
3. The many-core architecture with heterogeneous processors according to claim 1, characterized in that: The many-core array is a two-dimensional matrix network, and the two-dimensional matrix network can also be: at least one processing core integrated with FPGA and at least one processing core integrated with DSP are arranged inside the many-core array, and the processing core integrated with FPGA and the processing core integrated with DSP communicate with their four adjacent computing cores through four inter-core routing paths.
4. The many-core architecture with heterogeneous processors according to claim 1, characterized in that: The many-core array is a two-dimensional matrix network, and the two-dimensional matrix network can also be: at least one processing core integrated with FPGA is arranged at the corner of the many-core array, and the processing core integrated with FPGA communicates with its two adjacent computing cores through two inter-core routing paths, and at least one processing core integrated with DSP is arranged inside the many-core array, and the processing core integrated with DSP communicates with its four adjacent computing cores through four inter-core routing paths.
5. A many-core architecture with heterogeneous processors according to any one of claims 1 to 4, characterized in that: The processing core integrated with FPGA is used to process operations that the computing core cannot process, and to process logic control and judgment instructions. The processing core integrated with DSP is used to process operations that the computing core cannot process, and to process non-customized operations.
6. A data processing method with a many-core architecture having heterogeneous processors, characterized in that: A multi-core architecture with heterogeneous processors as described in any one of claims 1 to 5 is adopted, and the data processing method includes: the operation data of the current computing core is transmitted from the current computing core to at least one processing core with different functions from the computing core through inter-core routing for calculation.
7. The data processing method of a many-core architecture with heterogeneous processors according to claim 6, characterized in that: The operation data of the current computing core is transmitted from the current computing core to at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP through inter-core routing for operation.
8. The data processing method of a many-core architecture with heterogeneous processors according to claim 7, characterized in that: A single computing task is divided into several sub-computing tasks, and the several sub-computing tasks are assigned to the multiple computing cores, at least one processing core integrated with FPGA and / or at least one processing core integrated with DSP for parallel processing. At the same time, the multiple computing cores, the processing core integrated with FPGA and / or the processing core integrated with DSP process their respective sub-computing tasks in parallel.
9. The data processing method of a many-core architecture with heterogeneous processors according to claim 8, characterized in that: The operation data of the sub-operation tasks corresponding to the processing core of the integrated FPGA and / or the processing core of the integrated DSP are transmitted from the current computing core to the processing core of the integrated FPGA and / or the processing core of the integrated DSP through inter-core routing for operation.
10. The data processing method of a many-core architecture with heterogeneous processors according to claim 9, characterized in that: Through inter-core routing, the processing core with integrated FPGA or the processing core with integrated DSP that is closest to the computing core where the computing data corresponding to the current single sub-computing task is located is found, and the computing data is transmitted to the processing core with integrated FPGA or the processing core with integrated DSP for computing. After the processing core with integrated FPGA or the processing core with integrated DSP completes the computing, the computing result is transmitted to the next computing core through inter-core routing to continue the computing.
11. The data processing method of a many-core architecture with heterogeneous processors according to claim 9, characterized in that: Through inter-core routing, the integrated FPGA processing core and / or the integrated DSP processing core that is closest to the computing core where the computing data corresponding to the current multiple sub-computing tasks are located is found respectively, and the computing data is transmitted to each integrated FPGA processing core and / or each integrated DSP processing core for computing. After the computing of each integrated FPGA processing core and / or each integrated DSP processing core is completed, the computing result is transmitted to the next computing core through inter-core routing to continue computing.
12. A data processing method with a many-core architecture having heterogeneous processors according to any one of claims 7 to 11, characterized in that: The computing data that cannot be processed by the computing core includes computing data of logic control and judgment instructions, which are transmitted from the current computing core to the processing core of the integrated FPGA through inter-core routing for calculation; the computing data that cannot be processed by the computing core includes non-customized computing data, which are transmitted from the current computing core to the processing core of the integrated DSP through inter-core routing for calculation.
13. A many-core chip, characterized in that: A many-core architecture with heterogeneous processors as described in any one of claims 1 to 5 is adopted.
14. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement a data processing method of a many-core architecture with heterogeneous processors as described in any one of claims 6-12.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement a data processing method of a many-core architecture with heterogeneous processors as described in any one of claims 6 to 12.
