Multi-core heterogeneous system and method of interaction thereof

By receiving processor signals in a multi-core heterogeneous system and sending corresponding signals to the target circuit through the controller, the system can process the signals in parallel, which solves the problem of low efficiency in interaction between FPGA and multiple processors and improves system efficiency and flexibility.

CN116185938BActive Publication Date: 2026-11-20BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310102452.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-28
Publication Date
2026-11-20
Estimated Expiration
2043-01-28

AI Technical Summary

Technical Problem

In multi-core heterogeneous systems, the low efficiency of processor requests when the FPGA interacts with multiple processors leads to low system interaction efficiency.

Method used

After receiving interaction signals from multiple processors, the controller identifies the target circuit and sends corresponding interaction signals to it, enabling the target circuit to process in parallel and optimizing the interaction process.

Benefits of technology

It improves the interaction efficiency of multi-core heterogeneous systems, enhances system flexibility and resource utilization, and reduces power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185938B_ABST
    Figure CN116185938B_ABST
Patent Text Reader

Abstract

The application discloses a multi-core heterogeneous system and an interaction method thereof. In the method, after receiving a plurality of first interaction signals sent by a plurality of first processors, a controller can send at least one corresponding target first interaction signal to each target circuit in a plurality of target circuits. Thus, the plurality of target circuits can process the received target first interaction signals in parallel, thereby improving the interaction efficiency of the multi-core heterogeneous system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer science, specifically to a multi-core heterogeneous system and its interaction method. Background Technology

[0002] With the development of computer technology, the improvement of chip design level, and the increase in application requirements, multi-core heterogeneous systems are being used more and more widely in products.

[0003] In related technologies, multi-core heterogeneous systems may include multiple processors and field-programmable gate arrays (FPGAs), and these multiple processors and FPGAs can interact with each other.

[0004] However, when multiple processors interact with the FPGA simultaneously, the FPGA is less efficient at processing requests sent by multiple processors, resulting in lower efficiency for multi-core heterogeneous system interactions. Summary of the Invention

[0005] This application aims to at least partially address one of the technical problems in the related art. To this end, one objective of this application is to propose a multi-core heterogeneous system and its interaction method, in which a controller, after receiving multiple first interaction signals from multiple first processors, can send at least one corresponding target first interaction signal to each of the multiple target circuits, thereby enabling the multiple target circuits to process the received target first interaction signals in parallel, thus improving the efficiency of interaction in the multi-core heterogeneous system.

[0006] Firstly, an interaction method for a multi-core heterogeneous system is provided, applied to a controller in the multi-core heterogeneous system, which further includes: multiple processors and programmable logic devices, the programmable logic devices comprising multiple circuits; the method includes:

[0007] Receive multiple first interaction signals sent by multiple first processors among multiple processors, wherein each of the multiple first interaction signals corresponds one-to-one with the multiple first processors;

[0008] A plurality of target circuits to be accessed by a plurality of first interaction signals are identified, and each of the plurality of target circuits corresponds to at least one target first interaction signal;

[0009] Send at least one target first interaction signal to each target circuit so that the target circuit executes at least one target first interaction signal.

[0010] Optionally, at least one target first interaction signal is sent to each target circuit, including:

[0011] Determine the state of each target circuit;

[0012] If the target circuit is in an interactive state, then send at least one target first interaction signal to the target circuit.

[0013] If the target circuit is in a non-interactive state, then at least one target first interaction signal is stored, and after the target circuit is updated from a non-interactive state to an interactive state, at least one target first interaction signal is sent to the target circuit.

[0014] Optionally, the number of at least one target first interaction signal can be multiple; sending at least one target first interaction signal to the target circuit further includes:

[0015] Based on the priority of multiple target first processors, multiple target first interaction signals are sent to the target circuit in sequence;

[0016] Among them, the first interaction signals of multiple targets correspond one-to-one with the first processors of multiple targets.

[0017] Optionally, before receiving multiple first interaction signals sent by multiple first processors among multiple processors, the method further includes:

[0018] The configuration processor is determined to be the highest priority among multiple processors, and is the processor that sends configuration information to the programmable logic device.

[0019] Determine the priority of processors other than the configuration processor among multiple processors;

[0020] Before sequentially sending multiple target first interaction signals to the target circuit based on the priority of multiple target first processors, the method further includes:

[0021] The priority of the first processor is determined based on the priority of multiple processors.

[0022] Optionally, after sequentially sending multiple target first interaction signals to the target circuit based on the priority of multiple target first processors, the method further includes:

[0023] Update the priority of multiple processors.

[0024] Optionally, before receiving multiple first interaction signals sent by multiple first processors among multiple processors, the method further includes:

[0025] Receive first configuration information sent by the first configuration processor among multiple processors;

[0026] Send first configuration information to the programmable logic device so that the programmable logic device generates multiple circuits based on the first configuration information.

[0027] Optionally, after sending at least one corresponding target first interaction signal to each target circuit, the method further includes:

[0028] Receive second configuration information sent by the second configuration processor among multiple processors;

[0029] Send second configuration information to the programmable logic device so that the programmable logic device updates multiple circuits based on the second configuration information.

[0030] Optionally, the multi-core heterogeneous system further includes: direct memory access (DMA) and memory; after sending at least one corresponding target first interaction signal to each target circuit, the method further includes:

[0031] Receive the first response data sent by the target circuit. The first response data is generated by the target circuit executing a target first interaction signal.

[0032] If the type of the first response data is a first preset type, then the first response data is sent to the corresponding processor;

[0033] If the type of the first response data is the second preset type, then the first response data is sent to the DMA so that the DMA stores the first response data in the memory.

[0034] Optionally, the method also includes:

[0035] Receive a second interaction signal sent by the second processor among multiple processors. The second interaction signal is used to instruct the DMA to retrieve second response data from the memory.

[0036] Send a second interaction signal to the DMA so that the DMA can retrieve the second response data from the memory based on the second interaction signal and send the second response data;

[0037] Send the second response data to the second processor.

[0038] Secondly, a multi-core heterogeneous system is provided, comprising: a controller, multiple processors, and a programmable logic device, wherein the programmable logic device includes multiple circuits; the controller is used for:

[0039] Receive multiple first interaction signals sent by multiple first processors among multiple processors, with each of the multiple first interaction signals corresponding one-to-one with the multiple first processors;

[0040] A plurality of target circuits to be accessed are identified, and each of the plurality of target circuits corresponds to at least one target first interaction signal;

[0041] Send at least one target first interaction signal to each target circuit so that the target circuit executes at least one target first interaction signal.

[0042] Optionally, the controller includes: control circuitry and an advanced high performance bus (AHB) matrix;

[0043] The control circuit is connected to the programmable logic device and the AHB matrix respectively. The control circuit is used to obtain the state of multiple circuits in the programmable logic device.

[0044] The AHB matrix is ​​also connected to multiple processors; the AHB matrix is ​​used for:

[0045] Obtain the state of each target circuit from the control circuit;

[0046] If the target circuit is in an interactive state, then at least one target first interactive signal is sent to the target circuit through the control circuit;

[0047] If the target circuit is in a non-interactive state, at least one target first interaction signal is stored, and after the target circuit is updated from a non-interactive state to an interactive state, at least one target first interaction signal is sent to the target circuit through the control circuit.

[0048] Optionally, the number of at least one target first interaction signals can be multiple; the AHB matrix is ​​also used for:

[0049] Based on the priority of the multiple target first processors, multiple target first interaction signals are sent to the control circuit in sequence, and the multiple target first interaction signals correspond one-to-one with the multiple target first processors;

[0050] The control circuit is used to send the first interactive signal of the target circuit to the input port of the target circuit.

[0051] Optionally, the AHB matrix is ​​also used for:

[0052] Before receiving multiple first interaction signals sent by multiple first processors among multiple processors, the priority of the configuration processor among the multiple processors is determined to be the highest priority, and the configuration processor is the processor that sends configuration information to the programmable logic device;

[0053] Determine the priority of processors other than the configuration processor among multiple processors;

[0054] Before sending multiple target first interaction signals to the control circuit in sequence based on the priority of multiple target first processors, the priority of multiple target first processors is determined based on the priority of multiple processors.

[0055] Optionally, the AHB matrix is ​​also used for:

[0056] After sending multiple target first interaction signals to the control circuit in sequence based on the priority of multiple target first processors, the priorities of multiple processors are updated.

[0057] Optionally, the controller includes: control circuitry and an AHB matrix; the AHB matrix is ​​also used for:

[0058] Before receiving multiple first interaction signals sent by multiple first processors among multiple processors, first configuration information sent by the first configuration processor among multiple processors is received, and the first configuration information is sent to the control circuit.

[0059] The control circuit is also used to send first configuration information to the programmable logic device;

[0060] Programmable logic devices are used to generate multiple circuits based on first configuration information.

[0061] Optionally, the AHB matrix is ​​also used to receive second configuration information sent by the second configuration processor among multiple processors, and to send the second configuration information to the control circuit.

[0062] The control circuit is also used to send second configuration information to the programmable logic device;

[0063] Programmable logic devices are also used to update multiple circuits based on second configuration information.

[0064] Optionally, the control circuit includes: a first control sub-circuit, a second control sub-circuit, a configuration sub-circuit, and a clock sub-circuit;

[0065] The first control sub-circuit is connected to the AHB matrix, the second control sub-circuit, the configuration sub-circuit, and the clock sub-circuit, respectively. The second control sub-circuit and the configuration sub-circuit are also connected to the clock sub-circuit, the programmable logic device, and the AHB matrix, respectively.

[0066] The first control subcircuit is used to control the configuration subcircuit to be in the off state and control the second control subcircuit to be in the on state if a target first interaction signal sent by the AHB matrix is ​​received; if configuration information is received, the configuration subcircuit is controlled to be in the on state and the second control subcircuit is controlled to be in the off state.

[0067] The second control sub-circuit is used to receive the target first interaction signal sent by the AHB matrix and send the target first interaction signal to the corresponding target circuit.

[0068] The configuration sub-circuit is used to receive configuration information sent by the AHB matrix and send configuration information to the programmable logic device.

[0069] Optionally, the multi-core heterogeneous system also includes: DMA and memory, with the AHB matrix connected to the DMA and memory respectively;

[0070] The control circuit is also used for:

[0071] Receive the first response data sent by the target circuit and send the first response data to the AHB matrix. The first response data is generated by the target circuit executing a target first interaction signal.

[0072] If the type of the first response data is a first preset type, then the first response data is sent to the corresponding first processor through the AHB matrix;

[0073] If the type of the first response data is the second preset type, then the first response data is sent to the DMA through the AHB matrix;

[0074] DMA is used to store the first response data to memory.

[0075] Optionally, the AHB matrix is ​​also used to receive a second interaction signal sent by a second processor among multiple processors, and to send a second interaction signal to the DMA, the second interaction signal being used to instruct the DMA to retrieve second response data from memory;

[0076] DMA is used to retrieve second response data from memory in response to a second interaction signal and send the second response data to the AHB matrix;

[0077] The AHB matrix is ​​also used to send the second response data to the second processor.

[0078] Thirdly, a chip is provided, comprising: the multi-core heterogeneous system described above.

[0079] Fourthly, a computer device is provided, comprising: at least one chip as described in the preceding aspects.

[0080] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0081] Figure 1 This is a schematic diagram of the structure of a multi-core heterogeneous system provided in an embodiment of this application;

[0082] Figure 2 This is a flowchart of an interaction method for a multi-core heterogeneous system provided in an embodiment of this application;

[0083] Figure 3This is a flowchart of another interaction method for a multi-core heterogeneous system provided in an embodiment of this application;

[0084] Figure 4 This is a partial structural diagram of another multi-core heterogeneous system provided in an embodiment of this application;

[0085] Figure 5 This is a partial structural diagram of another multi-core heterogeneous system provided in the embodiments of this application. Detailed Implementation

[0086] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0087] Figure 1 This is a schematic diagram of the structure of a multi-core heterogeneous system provided in an embodiment of this application, such as... Figure 1 As shown, the multi-core heterogeneous system may include a controller 10, multiple processors, and a programmable logic device 20. The programmable logic device may include multiple circuits. The functions implemented by these multiple circuits may be different, or the functions implemented by these multiple circuits may be the same, or some circuits may implement the same function while others implement different functions. This application embodiment does not limit this.

[0088] The programmable logic device 20 can be an FPGA, an embedded FPGA, or a complex programmable logic device (CPLD), etc.

[0089] In the embodiments of this application, the chip embedded with an eFPGA, compared to a conventional system-on-a-chip, combines the high performance of an integrated circuit (ASIC) with the flexible reprogrammability of an FPGA on a single chip. Furthermore, compared to an FPGA, an eFPGA eliminates the need for large programmable input / output buffers, resulting in lower interface latency, higher performance, and significant savings in power consumption and chip area.

[0090] Figure 1 The plurality of processors shown may include a first processor C1, a second processor C2 and a third processor C3, and the programmable logic device 20 may include a first circuit 21 to a fifth circuit 25.

[0091] Figure 2 This is a flowchart illustrating an interaction method for a multi-core heterogeneous system provided in an embodiment of this application. This method can be applied to... Figure 1The controller 10 in the multi-core heterogeneous system shown. For example... Figure 2 As shown, the method includes:

[0092] Step 201: Receive multiple first interaction signals sent by multiple first processors among multiple processors.

[0093] In this embodiment of the application, the controller can receive multiple first interaction signals sent by multiple first processors among multiple processors, wherein each of the multiple first interaction signals corresponds one-to-one with the multiple first processors.

[0094] Step 202: Determine multiple target circuits to be accessed by multiple first interaction signals.

[0095] After receiving multiple first interaction signals, the controller can determine multiple target circuits that the multiple first interaction signals are to be accessed. Each of these multiple target circuits corresponds to at least one target first interaction signal among the multiple first interaction signals.

[0096] If the number of target circuits can be the same as the number of first interaction signals, then each target circuit corresponds to one target first interaction signal. If the number of target circuits is less than the number of first interaction signals, then some target circuits correspond to multiple target first interaction signals.

[0097] Step 203: Send at least one target first interaction signal to each target circuit.

[0098] After identifying multiple target circuits, the controller can simultaneously send at least one target first interaction signal to each target circuit, so that the target circuit executes the at least one target first interaction signal.

[0099] In summary, the embodiments of this application provide an interaction method for a multi-core heterogeneous system. In this method, after receiving multiple first interaction signals sent by multiple first processors, the controller can send at least one corresponding target first interaction signal to each of the multiple target circuits, thereby enabling the multiple target circuits to process the received target first interaction signals in parallel, thus improving the efficiency of interaction in the multi-core heterogeneous system.

[0100] In the embodiments of this application, by acting as multiple slave devices in a programmable logic device, the controller enables multiple processors and multiple circuits to perform low-latency parallel communication by executing the method provided in the embodiments of this application. This improves the flexibility and efficiency of interaction in multi-core heterogeneous systems, reduces the power consumption of multi-core heterogeneous systems, and improves bandwidth and resource utilization.

[0101] Figure 3This is a flowchart of another interaction method for a multi-core heterogeneous system provided in an embodiment of this application. This method can be applied to... Figure 1 The controller 10 in the multi-core heterogeneous system shown. For example... Figure 3 As shown, the method includes:

[0102] Step 301: Receive first configuration information sent by the first configuration processor among multiple processors, and send the first configuration information to the programmable logic device.

[0103] In this embodiment, the controller can receive first configuration information sent by a first configuration processor among multiple processors, and send the first configuration information to a programmable logic device, so that the programmable logic device generates multiple circuits based on the first configuration information, for example, Figure 1 The first circuit 21 to the fifth circuit 25 are shown.

[0104] The first configuration processor can be any one of multiple processors, and the first configuration processor can pre-store the first configuration information, which can be bitstream data.

[0105] The bitstream data can be the instruction stream obtained by converting an executable file designed and compiled in C language. For example, the size of the bitstream data can be 256 megabytes (MB).

[0106] In the embodiments of this application, reference is made to Figure 1 The multi-core heterogeneous system may also include flash memory connected to each processor, with each flash memory being larger than the size of the bitstream data. Figure 1 Five flash memory modules, from the first flash memory F1 to the fifth flash memory F5, are shown. The flash memory modules connected to the first configuration processor are also used to connect to an external device, which can send the first configuration information to the first configuration processor via these flash memory modules.

[0107] Example, reference Figure 1 If the second processor C2 is the first configuration processor, then the second flash memory F2 connected to the second processor C2 is used to send the first configuration information sent by the external device to the second processor C2.

[0108] In this embodiment of the application, after receiving the first configuration information sent by the first configuration processor, the controller can also determine that the first configuration processor has the highest priority among the multiple processors, and determine the priorities of the other processors among the multiple processors besides the first configuration processor.

[0109] Optionally, the controller can determine the priority of other processors based on their labels. The controller can pre-store labels for multiple processors. If there are multiple other processors, the priority of each processor can be negatively correlated with the size of its label, or it can be positively correlated. This embodiment uses the example of a negative correlation between the priority of multiple other processors and the size of their labels for illustration.

[0110] For example, if the first processor is labeled 1, the second processor is labeled 2, and the third processor is labeled 3, and the second processor is the first configured processor, then since the second processor is the first configured processor, and the label 1 of the first processor is less than the label 3 of the third processor, the controller can determine that the priority of the second processor is the highest priority, the priority of the first processor is higher than the priority of the third processor, and lower than the priority of the second processor.

[0111] Step 302: Receive multiple first interaction signals sent by multiple first processors among multiple processors.

[0112] After sending the first configuration information to the programmable logic device, the controller can also receive multiple first interaction signals sent by multiple first processors among multiple processors. The number of multiple first processors may be less than or equal to the number of processors, and the multiple first interaction signals correspond one-to-one with the multiple first processors.

[0113] Example, reference Figure 1 Multiple first processors may include a first processor C1, a second processor C2, and a third processor C3.

[0114] Step 303: Determine the multiple target circuits to be accessed by the multiple first interaction signals.

[0115] After receiving multiple first interaction signals, the controller can determine multiple target circuits that the multiple first interaction signals are to be accessed. Each of these multiple target circuits corresponds to at least one target first interaction signal among the multiple first interaction signals.

[0116] If the number of target circuits and the number of first interaction signals can be the same, then each target circuit corresponds to one target first interaction signal. If the number of target circuits is less than the number of first interaction signals, then some of the target circuits correspond to multiple target first interaction signals.

[0117] For each target circuit, if the target circuit corresponds to one target first interaction signal, it indicates that one first processor accesses the target circuit. If the target circuit corresponds to multiple target first interaction signals, it indicates that multiple first processors access the target circuit simultaneously.

[0118] For example, if multiple first interaction signals include three first interaction signals sent by a first processor, a second processor, and a third processor, and the target circuit to be accessed by the first interaction signals sent by the first processor and the second processor is both the first circuit, and the target circuit to be accessed by the first interaction signal sent by the third processor is the second circuit, then the first circuit corresponds to two target first interaction signals, and the second circuit corresponds to one target first interaction signal.

[0119] In the embodiments of this application, each first interaction signal may carry the address of the target circuit to be accessed. For each first interaction signal, the controller may determine the target circuit to be accessed by the first interaction signal based on the address carried by the first interaction signal.

[0120] Step 304: Determine the state of each target circuit.

[0121] In this embodiment, the controller can periodically or in real-time acquire the state of each circuit in the programmable logic device, thereby acquiring the state of each target circuit. The state of each circuit can include an interactive state and a non-interactive state. An interactive state means that the circuit can receive and execute an indication signal (e.g., the indication signal can be a first interactive signal), while a non-interactive state means that the circuit cannot execute the indication signal. If the circuit is in a busy state (e.g., the circuit is executing other indication signals), then the circuit is in a non-interactive state.

[0122] Step 305: Detect whether the target circuit is in an interactive state.

[0123] For each target circuit, the controller can detect whether the target circuit is in an interactive state. If the target circuit is in an interactive state, the controller can execute step 306 below. If the target circuit is in a non-interactive state, the controller can execute step 307.

[0124] Step 306: Send at least one corresponding target first interaction signal to the target circuit.

[0125] If the controller determines that the target circuit is in an interactive state, it can send at least one corresponding target first interaction signal to the target circuit so that the target circuit executes at least one target first interaction signal.

[0126] If the number of the at least one target first interaction signal is one, the controller can send the one target first interaction signal to the target circuit.

[0127] If there are multiple target first interaction signals, and each of the multiple target first interaction signals corresponds one-to-one with a multiple target first processor among the multiple first processors, then the controller can send multiple target first interaction signals to the target circuit in sequence according to the priority of the multiple target first processors.

[0128] Optionally, the controller may send the multiple target first interaction signals to the target circuit in descending order of priority of the multiple target first processors. Alternatively, the controller may send the multiple target first interaction signals to the target circuit in ascending order of priority of the multiple target first processors. This embodiment of the application does not limit the specific implementation of the controller.

[0129] Understandably, after receiving a target first interaction signal from the controller, the target circuit updates its state from an interactive state to a non-interactive state. After executing that target first interaction signal, its state updates back from a non-interactive state to an interactive state. Therefore, the controller can send the next target first interaction signal to the target circuit after determining that the target circuit's state has changed from a non-interactive state to an interactive state.

[0130] In this embodiment of the application, the controller can determine the priority of multiple target first processors based on the priorities of multiple processors.

[0131] For example, if multiple processors include a first processor to a third processor, and the second processor has a higher priority than the first processor, and the first processor has a higher priority than the third processor, and multiple target first processors include the first processor and the second processor, then the controller can determine that the second processor has a higher priority than the first processor. Therefore, it can first send the target first interaction signal corresponding to the second processor to the target circuit, and then send the target first interaction signal corresponding to the first processor to the target circuit.

[0132] In this embodiment, after the controller sequentially sends multiple target first interaction signals to the target circuit based on the priorities of multiple target first processors, it can also update the priorities of the multiple processors. Optionally, the controller can update the priorities of the multiple processors using a polling arbitration method, that is, update the priority of the processor located after the first reference processor among the multiple processors, which is higher than the priority of the processor located before the first reference processor. The first reference processor is the processor with the lowest priority among the multiple target first processors.

[0133] For example, if multiple processors include processor 1 through processor 6, the priorities of processor 1 through processor 6 decrease sequentially. If the target processor 1 includes processor 2, processor 3, and processor 5, after the controller updates the priorities of multiple processors using a round-robin arbitration method, processor 6 has the highest priority, processor 1 has a lower priority than processor 6, and the priorities of processor 1 through processor 5 decrease sequentially.

[0134] Step 307: Store at least one target first interaction signal corresponding to the target circuit.

[0135] In this embodiment of the application, if the controller determines that the state of the target circuit is a non-interactive state, it can store at least one target first interaction signal corresponding to the target circuit and continue to execute step 305. After the state of the target circuit is updated from a non-interactive state to an interactive state, step 306 is executed.

[0136] refer to Figure 1 The multi-core heterogeneous system may also include a DMA 30 and a memory 40, both of which are connected to the controller 10. The memory 40 may be 64 kilobytes (KB) in size.

[0137] After sending at least one target first interaction signal to the target circuit, the controller can also receive first response data sent by the target circuit. If the type of the first response data is a first preset type, the controller can send the first response data to the corresponding first processor. If the type of the first response data is a second preset type, the controller can send the first response data to the DMA so that the DMA stores the first response data in its memory.

[0138] The first response data is generated by the target circuit executing one of at least one target first interaction signals. For example, the first response data could be facial recognition data or encryption results. The corresponding first processor is the processor that sends the target first interaction signal. The controller can pre-store a first preset type and a second preset type. The second preset type is different from the first preset type.

[0139] Optionally, if the application duration of the first response data is less than a preset duration, then the type of the first response data is a first preset type. The application duration refers to the time from when the controller receives the first response data to when the first processor uses the first response data; that is, the first processor will use the first response data within a short period of time. If the application duration of the first response data is greater than or equal to the preset duration, then the type of the first response data is a second preset type; that is, the first processor will not use the first response data within a short period of time.

[0140] For example, if the first response data is an encrypted result, then the type of the first response data is a first preset type. If the first response data is face recognition data, then the type of the first response data is a second preset type.

[0141] In this embodiment of the application, the controller can pre-store the correspondence between response data and preset types. After receiving the first response data, the controller can determine the preset type corresponding to the first response data from the correspondence.

[0142] In this embodiment of the application, the controller may also receive a second interaction signal sent by a second processor among a plurality of processors, and send the second interaction signal to the DMA.

[0143] The second interaction signal is used to instruct the DMA to retrieve the second response data from the memory. After receiving the second interaction signal, the DMA can retrieve the second response data from the memory in response to the second interaction signal and send the retrieved second response data to the controller.

[0144] After receiving the second response data sent by the DMA, the controller can send the second response data to the second processor.

[0145] In this embodiment of the application, if there are multiple second processors, the controller can send multiple second interaction signals to the DMA in sequence according to the priority of the multiple second processors, and the multiple second interaction signals correspond one-to-one with the multiple second processors.

[0146] Optionally, the controller can determine the priorities of multiple second processors based on the priorities of multiple processors. Furthermore, after sending multiple second interaction signals to the DMA, the controller can also update the priorities of the multiple processors using a polling arbitration method, that is, updating the priority of the processor following the second reference processor to be higher than the priority of the processor preceding the second reference processor. The second reference processor is the processor with the lowest priority among the multiple second processors.

[0147] In this embodiment, the controller may receive the second interaction signal sent by the second processor after executing step 306 above; alternatively, the controller may receive the second interaction signal sent by the second processor while simultaneously receiving multiple first interaction signals, and process both the multiple first interaction signals and the second interaction signal at the same time. Alternatively, the controller may execute step 302 after sending the second response data to the second processor; this embodiment does not limit the scope of the application.

[0148] In this embodiment, after the controller sends at least one corresponding target first interaction signal to each target circuit, it can also receive second configuration information sent by the second configuration processor and send the second configuration information to the programmable logic device, so that the programmable logic device updates multiple circuits based on the second configuration information, thereby reconfiguring the programmable logic device and realizing secondary reconfiguration of the programmable logic device.

[0149] Furthermore, after receiving the second configuration information, the controller can also update the priority of multiple processors based on the second configuration processor, that is, update the priority of the second configuration processor and the processors located after the second configuration processor among the multiple processors, which is higher than the priority of the processors located before the second configuration processor.

[0150] In this embodiment, by acting as multiple slave devices within a programmable logic device, the controller executes the method provided in this embodiment, enabling multiple processors and multiple circuits to perform low-latency parallel communication. This improves the flexibility and efficiency of interaction in multi-core heterogeneous systems, optimizes the performance of multi-core heterogeneous systems, reduces power consumption, and increases resource utilization. Furthermore, multiple circuits within the programmable logic device can be updated when end-user needs change.

[0151] In summary, the embodiments of this application provide an interaction method for a multi-core heterogeneous system. In this method, after receiving multiple first interaction signals from multiple first processors, the controller can send at least one corresponding target first interaction signal to each of the multiple target circuits. This enables the multiple target circuits to process the received target first interaction signals in parallel, thereby improving the efficiency of interaction in the multi-core heterogeneous system.

[0152] This application provides a multi-core heterogeneous system, referencing... Figure 1 The controller 10 in this multi-core heterogeneous system is used for:

[0153] The system receives multiple first interaction signals sent by multiple first processors among multiple processors, wherein each of the multiple first interaction signals corresponds one-to-one with the multiple first processors.

[0154] A plurality of target circuits to be accessed by a plurality of first interaction signals are identified, and each of the plurality of target circuits corresponds to at least one target first interaction signal.

[0155] Send at least one target first interaction signal to each target circuit so that the target circuit executes at least one target first interaction signal.

[0156] In summary, the embodiments of this application provide a multi-core heterogeneous system. In this system, after receiving multiple first interaction signals from multiple first processors, the controller can send at least one corresponding target first interaction signal to each of the multiple target circuits. This allows the multiple target circuits to process the received target first interaction signals in parallel, thereby improving the interaction efficiency of the multi-core heterogeneous system.

[0157] refer to Figure 1 The controller 10 may include an AHB matrix 11 and a control circuit 12.

[0158] The AHB matrix 11 is connected to multiple processors and control circuits 12 respectively. The AHB matrix 11 is used to receive multiple first interaction signals sent by multiple first processors among the multiple processors, and to determine multiple target circuits to be accessed by the multiple first interaction signals.

[0159] The control circuit 12 is also connected to the programmable logic device 20, and the control circuit 12 is used to send at least one corresponding target first interaction signal to the target circuit.

[0160] Optionally, each first interaction signal may include the address of the target circuit to be accessed. For each first interaction signal, the AHB matrix 11 may determine the target circuit to be accessed by the first interaction signal based on the address in the first interaction signal.

[0161] refer to Figure 4 The AHB matrix 11 may include: a first input / output module 111 and a control module 112.

[0162] The first input / output module 111 is connected to multiple processors and a control module 112 respectively. The first input / output module 111 is used to receive multiple first interaction signals sent by multiple first processors among the multiple processors, and send the multiple first interaction signals to the control module 112.

[0163] The control module 112 is used to determine multiple target circuits to be accessed by multiple first interaction signals.

[0164] refer to Figure 4 The control module 112 may include an address decoding module 112a and an arbitration module 112b.

[0165] Address decoding module 112 receives multiple first interaction signals, decodes each first interaction signal, and sends the decoded first interaction signal to arbitration module 112b. The first interaction signal can be binary data. Address decoding module 112 converts this binary data into a recognizable signal.

[0166] Arbitration module 112b is used to determine multiple target circuits to be accessed based on the decoded first interaction signals.

[0167] In this embodiment, the control circuit 12 is used to acquire the states of multiple circuits in the programmable logic device 20. Optionally, the control circuit 12 can acquire the states of multiple circuits periodically or in real time. The state of each circuit may include an interactive state and a non-interactive state.

[0168] The AHB matrix 11 is also used to obtain the state of each target circuit from the control circuit 12. If the state of the target circuit is interactive, at least one corresponding target first interaction signal can be sent to the target circuit through the control circuit 12. If the state of the target circuit is non-interactive, at least one target first interaction signal can be stored, and after the state of the target circuit is updated from non-interactive to interactive, at least one corresponding target first interaction signal can be sent to the target circuit through the control circuit 12.

[0169] Optionally, if the target circuit is in an interactive state and the number of at least one target first interaction signal is one, then the AHB matrix 11 can send the target interaction signal to the control circuit 12, and then the control circuit 12 can send the target interaction signal to the target circuit.

[0170] If the target circuit is in an interactive state, and there are multiple target first interaction signals, then the AHB matrix 11 can sequentially send the multiple target first interaction signals to the control circuit 12 according to the priority of the multiple target first processors, thereby causing the control circuit 12 to sequentially send the multiple target first interaction signals to the input port of the target circuit. Each of the multiple target first processors corresponds one-to-one with each of the multiple target first interaction signals.

[0171] refer to Figure 4 If the target circuit is in an interactive state and the number of at least one target first interaction signal is one, then the arbitration module 112b can send the target interaction signal to the control circuit 12.

[0172] If the target circuit is in an interactive state and there are multiple target first interaction signals, the arbitration module 112b can send the multiple target first interaction signals to the control circuit 12 in sequence according to the priority of the multiple target first processors.

[0173] refer to Figure 4 The AHB matrix 11 may also include a second input / output module 113, which can send at least one target first interaction signal to the control circuit 12 through the second input / output module 113.

[0174] The control module 112 may further include a signal register module 112c. During the process of the arbitration module 112b sequentially sending the multiple target first interaction signals to the control circuit 12 according to the priority of the multiple target first processors, the target first interaction signal to be sent can be stored in the signal register module 112c. After determining that the state of the target circuit has changed from a non-interactive state to an interactive state, the next target first interaction signal is obtained from the signal register module 112c.

[0175] In this embodiment of the application, AHB matrix 11 is also used for:

[0176] Before receiving multiple first interaction signals from multiple first processors among multiple processors, the priority of the configuration processor among the multiple processors is determined to be the highest priority, and the priorities of the other processors among the multiple processors besides the configuration processor are determined. The configuration processor may be a processor that sends configuration information to a programmable logic device, which is used to generate multiple circuits based on the configuration information.

[0177] The process of determining the priority of multiple processors can be executed by the arbitration module 112b, and the specific implementation process can be referred to the above method embodiment. The embodiments of this application will not be repeated here.

[0178] The AHB matrix 11 is further used to determine the priority of the multiple target first processors based on the priority of the multiple processors before sequentially sending multiple target first interaction signals to the control circuit based on the priority of the multiple target first processors. The process of determining the priority of the multiple target first processors can be executed by the arbitration module 112b, and the specific implementation process can be referred to the above method embodiments, which will not be repeated here.

[0179] After sending multiple target first interaction signals to the control circuit 12 sequentially based on the priorities of multiple target first processors, the AHB matrix 11 can also update the priorities of the multiple processors. Optionally, the AHB matrix 11 can update the priorities of the multiple processors using a round-robin arbitration method.

[0180] The process of updating the priorities of multiple processors can be executed by the arbitration module 112b, and the specific implementation process can be referred to the above method embodiments. The embodiments of this application will not be repeated here.

[0181] In this embodiment, the AHB matrix 11 is further configured to receive first configuration information sent by a first configuration processor among the multiple processors before receiving multiple first interaction signals sent by multiple first processors among the multiple processors, and to send the first configuration information to the control circuit 12. This process can be executed by the arbitration module 112b, which is configured to send the first configuration information to the control circuit 12 through the second input / output module 113.

[0182] The control circuit 12 is also used to send first configuration information to the configuration port of the programmable logic device 20.

[0183] The programmable logic device 20 is used to generate multiple circuits based on the first configuration information. For example, the programmable logic device 20 can generate circuits based on the first configuration information. Figure 1 The first circuit 21 to the fifth circuit 25 are shown.

[0184] It is understandable that when no circuit is configured on the programmable logic device 20, the programmable logic device 20 is in an idle state. The AHB matrix 11 can obtain the state of the programmable logic device 20 through the control circuit 12, and send the first configuration information to the control circuit 12 when the programmable logic device 20 is in an idle state.

[0185] In this embodiment, the AHB matrix 11 is further configured to receive second configuration information sent by the second configuration processor after sending at least one target first interaction signal to each target circuit, and then send the second configuration information to the control circuit 12. This process can be executed by the arbitration module 112b, which is configured to send the second configuration information to the control circuit 12 via the second input / output module 113.

[0186] The control circuit 12 is also used to send second configuration information to the configuration port of the programmable logic device 20, which is used to update multiple circuits based on the second configuration information, thereby realizing the secondary reconfiguration of the programmable logic device 20.

[0187] refer to Figure 5 The control circuit 12 may include a first control sub-circuit 121, a second control sub-circuit 122, a configuration sub-circuit 123, and a clock sub-circuit 124.

[0188] The first control sub-circuit 121 is connected to the AHB matrix 11, the second control sub-circuit 122, the configuration sub-circuit 123 and the clock sub-circuit 124 respectively. The second control sub-circuit 122 and the configuration sub-circuit 123 are also connected to the clock sub-circuit 124 and the programmable logic device 20.

[0189] The second control sub-circuit 122 is connected to the input and output ports of multiple circuits, and the configuration sub-circuit 123 is connected to the configuration port of the programmable logic device 20.

[0190] The first control subcircuit 121 is configured to, upon receiving a target first interaction signal from the AHB matrix 11, control the configuration subcircuit 123 to be in a disconnected state via the clock subcircuit 124, and control the second control subcircuit 122 to be in an open state via the clock subcircuit 124. If configuration information is received from the AHB matrix 11, the configuration subcircuit 123 can be controlled to be in an open state via the clock subcircuit 124, and the second control subcircuit 122 can be controlled to be in a disconnected state via the clock subcircuit 124.

[0191] The second control sub-circuit 122 is used to receive the target first interaction signal sent by the AHB matrix 11 and send the target first interaction signal to the input port of the corresponding target circuit.

[0192] The configuration sub-circuit 123 is used to receive the configuration information sent by the AHB matrix 11 and send the configuration information to the configuration port of the programmable logic device 20.

[0193] The clock sub-circuit 124 is also connected to the clock terminals of multiple circuits, and the clock sub-circuit 124 is also used to provide clock signals for the second control sub-circuit 122, the configuration sub-circuit 123 and multiple circuits.

[0194] Optionally, the clock subcircuit 124 can stop providing a clock signal to the second control subcircuit 122 (or configuration subcircuit 123) to keep the second control subcircuit 122 (or configuration subcircuit 123) in an off state. Alternatively, the clock subcircuit 124 can provide a clock signal to the second control subcircuit 122 (or configuration subcircuit 123) to keep it in an on state.

[0195] In this embodiment of the application, the first control sub-circuit 121 is connected to the second input / output module 113, and the first control sub-circuit 121 is used to receive the target first interaction signal and configuration information sent by the second input / output module 113.

[0196] The second control sub-circuit 122 is also connected to the second input / output module 113. The second control sub-circuit 122 is used to receive the target first interaction signal sent by the second input / output module 113 and send the target first interaction signal to the input port of the corresponding target circuit.

[0197] The second control sub-circuit 122 is also used to acquire the state of each of the multiple circuits and send the state of each circuit to the arbitration module 112b through the first control sub-circuit 121 and the second input / output module 113.

[0198] The configuration sub-circuit 123 is also connected to the second input / output module 113, and the configuration sub-circuit 123 is used to receive configuration information sent by the second input / output module 113.

[0199] The configuration sub-circuit 123 can use the serial peripheral interface (SPI) protocol to serially read the first configuration information and input the first configuration information to the configuration port of the programmable logic device 20.

[0200] refer to Figure 1 The AHB matrix 11 is connected to the DMA 30 and the memory 40, respectively. The control circuit 12 is also used for:

[0201] The first response data sent by the target circuit is obtained from the output port of the target circuit and sent to the AHB matrix 11. The first response data is generated by the target circuit executing a target first interaction signal.

[0202] If the type of the first response data is a first preset type, the first response data can be sent to the corresponding processor through AHB matrix 11. If the type of the first response data is a second preset type, the first response data can be sent to DMA30 through AHB matrix 11.

[0203] DMA 30 is used to store the first response data to memory 40.

[0204] refer to Figure 4 The second control sub-circuit 122 is used to obtain the first response data sent by the target circuit from the output port of the target circuit. If the type of the first response data is a first preset type, a control signal can be sent to the arbitration module 112b through the second input / output module 113. The arbitration module 112b is used to respond to the control signal and send the first response data to the corresponding processor through the address decoding module 112a. If the type of the first response data is a second preset type, the first response data can be sent to the DMA 30 through the second input / output module 113. The DMA 30 can store the first response data in the memory 40 through the second input / output module 113.

[0205] refer to Figure 5 The control circuit 12 may further include a constraint sub-circuit 125 connected to the second control sub-circuit 122, wherein the input port number of each circuit is pre-stored in the constraint sub-circuit 125. After receiving the target first interaction signal, the second control sub-circuit 122 can obtain the input port number of the target circuit from the constraint sub-circuit 125, and send the target first interaction signal to the input port of the target circuit based on the input port number.

[0206] The constraint sub-circuit 125 pre-stores a second correspondence between the circuit address and the input port number. The second control sub-circuit 122 can determine the address of the target circuit based on the target first interaction signal and send the address of the target circuit to the constraint sub-circuit 125. After receiving the address of the target circuit, the constraint sub-circuit 125 can determine the input port number corresponding to the address of the target circuit from the second correspondence based on the address of the target circuit and send the input port number of the target circuit to the second control sub-circuit 122.

[0207] Optionally, the AHB matrix 11 is also used to receive a second interaction signal sent by a second processor among a plurality of processors, and to send a second interaction signal to the DMA 30, the second interaction signal being used to instruct the DMA 30 to retrieve second response data from the memory 40.

[0208] DMA 30 is used to retrieve second response data from memory 40 in response to the second interaction signal and send the second response data to AHB matrix 11.

[0209] AHB matrix 11 is also used to send the second response data to the second processor.

[0210] refer to Figure 4 and Figure 5 The second input / output module 113 is used to receive the second interaction signal sent by the second processor and send the second interaction signal to the address decoding module 112a.

[0211] Address decoding module 112a decodes the second interaction signal and then sends the second interaction signal to arbitration module 112b. Arbitration module 112b sends the second interaction signal to DMA 30 through second input / output module 113.

[0212] If there are multiple second interaction signals, the process of the arbitration module 112b sending multiple second interaction signals to the DMA 30 can be referred to the above method embodiment.

[0213] In this embodiment of the application, after updating multiple circuits in the programmable logic device, since the memory stores the response data generated by the multiple circuits before the update, the updated multiple circuits can obtain the relevant data from the memory through the control circuit 12 if they need to use the response data in the memory during the execution of the interaction signal.

[0214] After receiving the target first interaction signal, if the control circuit 12 determines that the target first interaction signal is an error signal, it can send a retransmission signal to the first processor through the AHB matrix 11, so that the first processor retransmits the first interaction signal. For example, if the control circuit 12 determines that the address in the target first interaction signal is incorrect, it can determine that the target first interaction signal is an error signal.

[0215] refer to Figure 4 The control module 112 may also include a status control module 112d, which is used to acquire the status of multiple processors. The status may include five states: idle, error, transmission, waiting, and end. The idle state indicates that there is no access request at this time. The error state indicates that the accessed address is incorrect. The transmission state indicates that data transmission is in progress. The waiting state indicates that the accessed circuit is busy and needs to wait. The end state indicates that the access has ended and data interaction has been terminated.

[0216] In summary, the embodiments of this application provide a multi-core heterogeneous system in which, after receiving multiple first interaction signals from multiple first processors, the controller can send at least one corresponding target first interaction signal to each of the multiple target circuits, thereby enabling the multiple target circuits to process the received target first interaction signals in parallel, thus improving the interaction efficiency of the multi-core heterogeneous system.

[0217] This application provides a chip that may include the multi-core heterogeneous system described in the above embodiments. Optionally, the chip may be a system-on-a-chip (SOC).

[0218] This application provides a computer device that may include at least one of the above-described chips.

[0219] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0220] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0221] In the description of this specification, the references to terms such as "optional," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0222] Furthermore, the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of technical features indicated in this embodiment. Therefore, features defined with terms such as "first" and "second" in the embodiments of this application can explicitly or implicitly indicate that the embodiment includes at least one of those features. In the description of this application, the word "multiple" means at least two or more, such as two, three, four, etc., unless otherwise explicitly and specifically defined in the embodiments.

[0223] In this application, unless otherwise explicitly specified or limited in the embodiments, the terms "installation," "connection," "joining," and "fixing" appearing in the embodiments should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral part; it can also be a mechanical connection, an electrical connection, etc. Of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication between two components, or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific implementation.

[0224] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A multi-core heterogeneous system, characterized in that, The multi-core heterogeneous system includes: a controller, multiple processors, a programmable logic device, a DMA, and a memory; the programmable logic device includes multiple circuits; the controller is used for: Receive multiple first interaction signals sent by multiple first processors among the multiple processors, each of the multiple first interaction signals corresponding to one of the multiple first processors; determine multiple target circuits to be accessed by the multiple first interaction signals based on the addresses carried by each of the multiple first interaction signals, each of the multiple target circuits corresponding to at least one target first interaction signal; The controller includes a control circuit and an Advanced High-Performance Bus (AHB) matrix. The control circuit is connected to both the programmable logic device and the AHB matrix, and is used to acquire the states of multiple circuits in the programmable logic device. The AHB matrix is ​​also connected to the multiple processors, and is used for: The control circuit obtains the state of each target circuit; if the state of the target circuit is interactive, the control circuit sends at least one target first interaction signal to the target circuit to make the target circuit execute the at least one target first interaction signal; if the state of the target circuit is non-interactive, the control circuit stores the at least one target first interaction signal, and after the state of the target circuit is updated from the non-interactive state to the interactive state, the control circuit sends at least one target first interaction signal to the target circuit to make the target circuit execute the at least one target first interaction signal. The AHB matrix is ​​connected to the DMA and the memory respectively; the control circuit is also used for: If the application duration of the first response data sent by the target circuit is less than a preset duration, then the type of the first response data is determined to be a first preset type, and the first response data is sent to the corresponding first processor through the AHB matrix; if the application duration of the first response data sent by the target circuit is greater than or equal to the preset duration, then the type of the first response data is determined to be a second preset type, and the first response data is sent to the DMA through the AHB matrix; the DMA is used to store the first response data in the memory; Wherein, the first response data is generated by the target circuit executing the first target interaction signal, and the application duration refers to the time from receiving the first response data from the controller to the corresponding first processor using the first response data; the state of the target circuit is updated from the interactive state to the non-interactive state after the target circuit receives the first target interaction signal, and the state of the target circuit is updated from the non-interactive state to the interactive state again after the target circuit completes the execution of the first target interaction signal; The AHB matrix is ​​also used for: Before receiving multiple first interaction signals sent by multiple first processors among the multiple processors, first configuration information sent by a first configuration processor among the multiple processors is received, and the first configuration information is sent to the programmable logic device, so that the programmable logic device generates multiple circuits based on the first configuration information; The priority of the first configured processor among the plurality of processors is determined to be the highest priority; the priorities of the other processors are determined based on the labels of the other processors besides the first configured processor; The number of the at least one target first interaction signals is multiple; the AHB matrix is ​​also used for: The priorities of the plurality of target first processors are determined based on the priorities of the plurality of processors; a plurality of target first interaction signals are sequentially sent to the target circuit in descending order of priority of the plurality of target first processors; the control circuit is used to send the target first interaction signals to the target circuit; The control circuit includes: a first control sub-circuit, a second control sub-circuit, a configuration sub-circuit, a clock sub-circuit, and a constraint sub-circuit; Wherein, the first control sub-circuit is connected to the AHB matrix, the second control sub-circuit, the configuration sub-circuit and the clock sub-circuit respectively, the second control sub-circuit and the configuration sub-circuit are also respectively connected to the clock sub-circuit, the programmable logic device and the AHB matrix, and the constraint sub-circuit is connected to the second control sub-circuit; The first control subcircuit is configured to, if it receives a target first interaction signal sent by the AHB matrix, control the configuration subcircuit to be in a disconnected state via the clock subcircuit and control the second control subcircuit to be in an on state via the clock subcircuit; if it receives configuration information, control the configuration subcircuit to be in the on state via the clock subcircuit and control the second control subcircuit to be in the disconnected state via the clock subcircuit. The constraint sub-circuit pre-stores the input port number of each circuit. The second control sub-circuit is used to receive the target first interaction signal sent by the AHB matrix, obtain the input port number of the target circuit from the constraint sub-circuit, and send the target first interaction signal to the corresponding target circuit based on the input port number. The configuration sub-circuit is used to receive the configuration information sent by the AHB matrix and send the configuration information to the programmable logic device.

2. The multi-core heterogeneous system according to claim 1, characterized in that, The AHB matrix is ​​also used to receive second configuration information sent by the second configuration processor among the plurality of processors, and to send the second configuration information to the control circuit; The control circuit is also used to send the second configuration information to the programmable logic device; The programmable logic device is also used to update the plurality of circuits based on the second configuration information.

3. The multi-core heterogeneous system according to claim 1, characterized in that, The AHB matrix is ​​also used to receive a second interaction signal sent by a second processor among the plurality of processors, and to send the second interaction signal to the DMA, wherein the second interaction signal is used to instruct the DMA to retrieve second response data from the memory; The DMA is used to retrieve the second response data from the memory in response to the second interaction signal, and to send the second response data to the AHB matrix; The AHB matrix is ​​also used to send the second response data to the second processor.

4. A chip, characterized in that, The chip includes: the multi-core heterogeneous system according to any one of claims 1 to 3.

5. A computer device, characterized in that, The computer device includes at least one chip as described in claim 4.

6. An interaction method for a multi-core heterogeneous system, characterized in that, A controller applied to a multi-core heterogeneous system according to any one of claims 1 to 3, wherein the multi-core heterogeneous system further comprises: multiple processors, a programmable logic device, a direct memory access DMA, and memory, wherein the programmable logic device comprises multiple circuits; the method comprises: Receive multiple first interaction signals sent by multiple first processors among the multiple processors, wherein each of the multiple first interaction signals corresponds one-to-one with the multiple first processors; Based on the address carried by each of the first interaction signals, a plurality of target circuits to be accessed by the plurality of first interaction signals are determined, and each of the plurality of target circuits corresponds to at least one target first interaction signal; Determine the state of each of the target circuits; If the target circuit is in an interactive state, then at least one target first interaction signal is sent to the target circuit to cause the target circuit to execute the at least one target first interaction signal; if the target circuit is in a non-interactive state, then at least one target first interaction signal is stored, and after the target circuit is updated from the non-interactive state to the interactive state, at least one target first interaction signal is sent to the target circuit to cause the target circuit to execute the at least one target first interaction signal. If the application duration of the first response data sent by the target circuit is less than a preset duration, then the type of the first response data is determined to be a first preset type, and the first response data is sent to the corresponding first processor; if the application duration of the first response data sent by the target circuit is greater than or equal to the preset duration, then the type of the first response data is determined to be a second preset type, and the first response data is sent to the DMA, so that the DMA stores the first response data in the memory. Wherein, the first response data is generated by the target circuit executing the first target interaction signal, and the application duration refers to the time from receiving the first response data from the controller to the corresponding first processor using the first response data; the state of the target circuit is updated from the interactive state to the non-interactive state after the target circuit receives the first target interaction signal, and the state of the target circuit is updated from the non-interactive state to the interactive state again after the target circuit completes the execution of the first target interaction signal; Before receiving the plurality of first interaction signals sent by the plurality of first processors among the plurality of processors, the method further includes: The system receives first configuration information from a first configuration processor among a plurality of processors, and sends the first configuration information to the programmable logic device, so that the programmable logic device generates a plurality of circuits based on the first configuration information; The priority of the first configured processor among the plurality of processors is determined to be the highest priority; The priority of the other processors is determined based on their labels, excluding the processor in the first configuration. The number of the at least one target first interaction signal is multiple; the step of sending the at least one target first interaction signal to the target circuit further includes: The priority of the plurality of target first processors is determined based on the priority of the plurality of processors; According to the order of priority of the multiple target first processors from high to low, multiple target first interaction signals are sent to the target circuit in sequence; The plurality of target first interaction signals correspond one-to-one with the plurality of target first processors.

7. The method according to claim 6, characterized in that, After sequentially sending the plurality of target first interaction signals to the target circuit based on the priority of the plurality of target first processors, the method further includes: Update the priorities of the multiple processors.

8. The method according to claim 7, characterized in that, After sending at least one corresponding target first interaction signal to each of the target circuits, the method further includes: Receive second configuration information sent by the second configuration processor among the plurality of processors; The second configuration information is sent to the programmable logic device so that the programmable logic device updates the plurality of circuits based on the second configuration information.

9. The method according to claim 8, characterized in that, The method further includes: The DMA receives a second interaction signal sent by a second processor among the plurality of processors, the second interaction signal being used to instruct the DMA to retrieve second response data from the memory; Send the second interaction signal to the DMA so that the DMA can retrieve the second response data from the memory based on the second interaction signal and send the second response data; Send the second response data to the second processor.

Citation Information

Patent Citations

  • Heterogeneous computing system and method based on target detection and readable storage medium

    CN110751676A