Synchronization control method and device based on many-core system and processing core

By adopting a synchronization control method based on many-core systems, combined with clock-driven and event-driven mechanisms, the problem of computational delay within a single time frame in brain simulation is solved, enabling the processing of events within the current synchronization cycle and improving simulation efficiency and accuracy.

CN116414570BActive Publication Date: 2026-11-24LYNXI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111631638.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2026-11-24
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In existing brain simulation processes, it is difficult to accurately simulate brain functions within a single time frame, and clock-driven synchronous control results in operations with delays less than a single time frame not being processed in a timely manner.

Method used

A synchronization control method based on many-core systems is adopted, which combines clock-driven and event-driven mechanisms. By detecting the event buffer and routing unit status of the processing core, the synchronization control of the processing core is realized, ensuring that the events of the event-driven mechanism are processed within the current synchronization cycle, and switching to the next synchronization cycle when necessary.

Benefits of technology

It improves the simulation efficiency of brain simulation, enables the processing of event-driven events within the current synchronization cycle, and supports accurate simulation of brain functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414570B_ABST
    Figure CN116414570B_ABST
Patent Text Reader

Abstract

This disclosure provides a synchronization control method, comprising: within a current synchronization cycle, in response to each processing core completing the processing of a first event stored in its corresponding conventional buffer, detecting whether a second event is stored in the event buffer corresponding to each processing core, the second event being an event received by the processing core within the current synchronization cycle following an event-driven mechanism; if it is detected that at least one processing core has a second event stored in its corresponding event buffer, controlling each processing core in the at least one processing core to process the second event in its respective event buffer; if it is detected that no second event is stored in any event buffer and the routing units corresponding to each processing core are all in an idle state, switching the current synchronization cycle to the next synchronization cycle. This disclosure also provides a synchronization control device, a processing core, a many-core system, an electronic device, and a computer-readable medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a synchronization control method, synchronization control device, processing core, many-core system, electronic device, and computer-readable medium based on a many-core system. Background Technology

[0002] In related technologies, the basic functions of the human brain require the coordinated activity of millions of neurons. Accurately simulating brain function necessitates timely processing of operations with delays less than a single time step during the simulation. However, current brain simulations typically rely on clock-driven synchronization, preventing operations with delays less than a single time step from being processed within the current time step. Summary of the Invention

[0003] This disclosure provides a synchronization control method, synchronization control device, processing core, control device, electronic device, and computer-readable medium based on a many-core system.

[0004] In a first aspect, this disclosure provides a synchronization control method based on a many-core system, which includes:

[0005] Within the current synchronization cycle, in response to each processing core completing the processing of the first event stored in its corresponding conventional buffer, it is detected whether a second event is stored in the event buffer corresponding to each processing core; the first event is an event configured to be processed within the current synchronization cycle that follows a time-driven mechanism; the second event is an event received by the processing core within the current synchronization cycle that follows an event-driven mechanism.

[0006] If it is detected that at least one of the processing cores has a second event stored in its corresponding event buffer, each of the at least one processing core is controlled to process the second event in its respective event buffer.

[0007] If it is detected that no second event to be processed is stored in any of the event buffers, and the routing units corresponding to each processing core are in an idle state, the current synchronization cycle is switched to the next synchronization cycle.

[0008] In some embodiments, each processing core includes a plurality of brain-like axons, each brain-like axon being connected to at least one processing neuron, and at least a portion of the plurality of brain-like axons included in the processing core includes at least one specific brain-like axon; the synchronization control method further includes:

[0009] The special brain-like axons are labeled, and the axonal identifiers of the labeled brain-like axons contain a special identifier; the special brain-like axons are used to transmit events following an event-driven mechanism.

[0010] In some embodiments, each processing core includes a plurality of processing neurons; the step of controlling each of the at least one processing core to process the second event in its respective event buffer includes:

[0011] For each processing core that stores the second event in its corresponding event buffer, control that processing core to execute the following calculation process:

[0012] The processing core determines at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the second event;

[0013] The processing kernel determines the current membrane potential of each processing neuron based on the second event and the corresponding weights of each processing neuron.

[0014] For at least one of the processing neurons, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generates a processing event corresponding to the processing neuron.

[0015] If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core.

[0016] In some embodiments, the event to be processed includes a corresponding axon identifier. When the corresponding axon identifier includes a special identifier, the event to be processed is a second event. If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to the processing core corresponding to the event to be processed, including:

[0017] The processing core sends the pending events to the destination processing core through the corresponding routing unit, so that the destination processing core can store the pending events whose axon identifier contains the special identifier as the second event in its own event buffer and / or store the pending events whose axon identifier does not contain the special identifier as events to be processed in a future synchronization cycle in its own conventional buffer.

[0018] In some embodiments, the event to be processed includes a corresponding axon identifier; where the corresponding axon identifier includes a special identifier, the event to be processed is a second event; after generating the event to be processed corresponding to the processing neuron, the method further includes:

[0019] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as the second event in the event buffer of the processing core;

[0020] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

[0021] In some embodiments, the event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. After generating the event to be processed corresponding to the processing neuron, the method further includes:

[0022] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as the second event in the event buffer of the processing core;

[0023] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

[0024] In some embodiments, each processing core includes a plurality of processing neurons; before detecting whether a second event is stored in the event buffer corresponding to each processing core, the method further includes:

[0025] For each of the processing cores, the process of processing the first event in the corresponding conventional buffer includes:

[0026] The processing core determines at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the first event;

[0027] The processing kernel determines the current membrane potential of each processing neuron based on the first event and the corresponding weights of each processing neuron.

[0028] For at least one of the processing neurons, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generates a processing event corresponding to the processing neuron.

[0029] If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core.

[0030] In some embodiments, the event to be processed includes a corresponding axon identifier; if the axon identifier includes a special identifier, the event to be processed is a second event; if the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the processing core corresponding to the event to be processed, including:

[0031] The processing core sends the pending events to the destination processing core through the corresponding routing unit, so that the destination processing core can store the pending events whose axon identifier contains the special identifier as the second event in its own event buffer and / or store the pending events whose axon identifier does not contain the special identifier as events to be processed in a future synchronization cycle in its own conventional buffer.

[0032] In some embodiments, the event to be processed includes a corresponding axon identifier; where the corresponding axon identifier includes a special identifier, the event to be processed is a second event; after generating the event to be processed corresponding to the processing neuron, the synchronization control method further includes:

[0033] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as the second event in the event buffer of the processing core;

[0034] If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

[0035] In some embodiments, before switching the current synchronization period to the next synchronization period when it is detected that no second event to be processed is stored in any of the event buffers and the routing units corresponding to each processing core are in an idle state, the method further includes:

[0036] If it is detected that no second event to be processed is stored in any of the event buffers, it is then detected whether the routing unit corresponding to each processing core is in an idle state.

[0037] In some embodiments, after detecting whether the routing unit corresponding to each processing core is in an idle state, the method further includes:

[0038] If at least one routing unit corresponding to the processing core is detected to be in a non-idle state, wait for each routing unit in the non-idle state to complete the routing of all the events to be processed corresponding to it.

[0039] If each routing unit in a non-idle state has completed routing all its corresponding pending events, the process jumps to the step of detecting whether the event buffer corresponding to each processing core stores a second event.

[0040] In some embodiments, after controlling each of the at least one of the processing cores to process the second event in its respective event buffer, the method further includes:

[0041] Check whether the at least one of the processing cores has completed processing the second event in the corresponding event buffer;

[0042] If at least one processing core has completed processing the second event in the corresponding event buffer, the step of detecting whether the second event is stored in the event buffer corresponding to each processing core is re-executed.

[0043] In some embodiments, the method further includes:

[0044] If the duration of the current synchronization period exceeds a preset duration threshold, the current synchronization period will be switched to the next synchronization period; and

[0045] If a second event is still stored in the event buffer corresponding to any of the processing cores, control that processing core to clear the remaining second event from the corresponding event buffer.

[0046] In some embodiments, before controlling the processing core to clear the remaining second events in the corresponding event buffer from the corresponding event buffer, the method further includes:

[0047] The control unit writes the remaining second events in the corresponding event buffer into the corresponding conventional buffer.

[0048] Secondly, this disclosure provides a synchronization control device for use in many-core systems, the synchronization control device comprising:

[0049] A processing module is configured to, within the current synchronization cycle, in response to each processing core completing the processing of a first event stored in its corresponding conventional buffer, detect whether a second event is stored in the event buffer corresponding to each processing core; the first event is an event configured to be processed within the current synchronization cycle that follows a time-driven mechanism; the second event is an event received by the processing core within the current synchronization cycle that follows an event-driven mechanism; if it is detected that at least one processing core has a second event stored in its corresponding event buffer, the module controls each of the at least one processing core to process the second event in its respective event buffer;

[0050] The global control module is used to switch the current synchronization cycle to the next synchronization cycle when it is detected that no second event to be processed is stored in any of the event buffers and the routing units corresponding to each processing core are in an idle state.

[0051] Thirdly, this disclosure provides a processing core, including the aforementioned synchronization control device.

[0052] Fourthly, this disclosure provides a many-core system, including multiple processing cores and an on-chip network, wherein the on-chip network includes routing units corresponding to each of the processing cores, and each processing core includes a conventional buffer and a pre-set event buffer;

[0053] At least one of the processing cores includes the processing core provided as in the third aspect of this disclosure.

[0054] Fifthly, this disclosure provides an electronic device, including:

[0055] Multiple processing cores; and

[0056] The on-chip network is configured to interact with data between the multiple processing cores and external data;

[0057] The on-chip network includes routing units corresponding to each processing core;

[0058] One or more processing cores store one or more instructions, which are executed by one or more processing cores to enable the one or more processing cores to perform the above-described synchronization control method.

[0059] In a sixth aspect, this disclosure provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processing core, implements the above-described synchronization control method.

[0060] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0061] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the embodiments of the present disclosure to explain the disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the detailed description of exemplary embodiments with reference to the accompanying drawings, in which:

[0062] Figure 1A flowchart of a synchronization control method based on a many-core system provided in this disclosure embodiment;

[0063] Figure 2 A flowchart of another synchronization control method based on a many-core system provided in this disclosure embodiment;

[0064] Figure 3 A flowchart of yet another synchronization control method based on a many-core system provided in this disclosure embodiment;

[0065] Figure 4 A flowchart illustrating another synchronization control method based on a many-core system provided in this disclosure embodiment;

[0066] Figure 5 A block diagram of a synchronization control device provided in an embodiment of this disclosure;

[0067] Figure 6 A block diagram of a many-core system provided in this disclosure embodiment;

[0068] Figure 7 This is a block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0069] To enable those skilled in the art to better understand the technical solutions of this disclosure, exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments of this disclosure to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0070] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0071] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.

[0072] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Words such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.

[0073] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined herein.

[0074] Figure 1 This is a flowchart illustrating a synchronization control method based on a many-core system, as provided in an embodiment of this disclosure. The many-core system includes multiple processing cores and an on-chip network. The on-chip network includes routing units corresponding to each processing core, and each processing core includes a conventional buffer and an event buffer.

[0075] Reference Figure 1 This disclosure provides a synchronization control method based on a many-core system, applied to a synchronization control device. The synchronization control method based on a many-core system includes the following steps:

[0076] Step S101: In the current synchronization cycle, in response to each processing core completing the processing of the first event stored in the corresponding traditional buffer, check whether the event buffer corresponding to each processing core stores a second event.

[0077] The synchronization period, also known as the synchronization beat, clock beat, or time beat, refers to the time interval between two consecutive global synchronizations in a many-core system.

[0078] Traditional buffers are buffers within each processing core used to store events that follow a time-driven mechanism. These time-driven events can include the first event or events that need to be processed in future synchronization cycles after the current synchronization cycle.

[0079] The first event is a time-driven event configured for processing within the current synchronization period. Specifically, it's an event received by the processing core within a historical synchronization period, sent by the same processing core or another processing core within that historical synchronization period, and requiring processing within the current synchronization period. The "other processing cores" refer to any processing core in the many-core system other than the current processing core, and the historical synchronization period is any synchronization period preceding the current synchronization period. A time-driven event is an event generated within a synchronization period and requiring processing in another synchronization period following that one.

[0080] The "other synchronization period" can be determined by the event delay of an event following a time-driven mechanism. For example, if the event delay is greater than or equal to one synchronization period and less than two synchronization periods, then the "other synchronization period" is the next synchronization period after the current synchronization period. In this embodiment, the first event needs to be processed within the current synchronization period. For example, the first event can be an event following a time-driven mechanism received by the processing core in the previous synchronization period of the current synchronization period, and the event delay of this event is one current synchronization period.

[0081] In other embodiments, the other synchronization cycle may also be identified by the synchronization cycle number included in the event following the time-driven mechanism. This synchronization cycle number can be used to indicate which synchronization cycle in the synchronization control method the "other synchronization cycle" is. For example, if the synchronization cycle number included in the event following the time-driven mechanism is 12, then the "other synchronization cycle" processing that event is the 12th synchronization cycle in this synchronization control method. The synchronization cycle number can also be used to indicate which synchronization cycle after the current synchronization cycle the other synchronization cycle is. For example, if the synchronization cycle number included in the event following the time-driven mechanism is 1, then the "other synchronization cycle" processing that event is the first synchronization cycle after the current synchronization cycle, i.e., the next synchronization cycle after the current synchronization cycle.

[0082] The event buffer is a pre-configured buffer in each processing core used to store the second event.

[0083] The second event is an event that this processing core receives within the current synchronization period, which is sent by this processing core or another processing core within the current synchronization period and follows an event-driven mechanism. An event following an event-driven mechanism is one that, upon receipt within the current synchronization period, needs to be processed within the current synchronization period, and its event latency is less than the current synchronization period in which it occurs.

[0084] In one implementation, both the first event and the second event can be represented in the form of a pulse.

[0085] Step S102: If it is detected that at least one processing core has a second event stored in its corresponding event buffer, control each processing core in the at least one processing core to process the second event in its corresponding event buffer.

[0086] In this step, since the second event is an event received by the processing core within the current synchronization cycle that follows an event-driven mechanism, it is an event that needs to be processed within the current synchronization cycle. If it is detected that at least one processing core has a second event stored in its corresponding event buffer, the synchronization control device controls each of the at least one processing cores to process the second event in its respective event buffer, thus ensuring that the second event is processed within the current synchronization cycle. Step S103: If it is detected that no second event is stored in any of the event buffers and the routing units corresponding to each processing core are all in an idle state, the current synchronization cycle is switched to the next synchronization cycle.

[0087] The routing unit corresponding to the processing core is used to receive data routed to it from other processing cores or to route data output by the processing core to other processing cores.

[0088] In step S103, since no pending second events are stored in any event buffers, it indicates that none of the processing cores in the many-core system have events that need to be processed within the current synchronization cycle. Furthermore, the routing units corresponding to each processing core are all idle, meaning that none of the processing cores in the many-core system will receive a second event within the current synchronization cycle. Therefore, with no pending second events stored in any event buffers and all routing units corresponding to each processing core in an idle state, it means that each processing core has no events to process. The synchronization control device can then switch the current synchronization cycle to the next synchronization cycle, thus achieving clock-driven synchronization control.

[0089] The synchronization control method for a many-core system provided in this disclosure, within the current synchronization cycle, responds to each processing core completing the processing of a first event stored in its corresponding traditional buffer, and detects whether a second event is stored in the event buffer corresponding to each processing core. The first event is a time-driven event configured for processing within the current synchronization cycle, and the second event is an event received by the processing core within the current synchronization cycle that follows an event-driven mechanism. If at least one processing core's event buffer stores a second event, the method controls each processing core to process the second event in its respective event buffer, enabling event-driven control of each processing core in the many-core system. If no second event is stored in any event buffer and the routing units corresponding to each processing core are idle, the current synchronization cycle is switched to the next synchronization cycle, enabling clock-driven control of each processing core in the many-core system. Therefore, the synchronization control method for a many-core system provided in this disclosure achieves a combination of clock-driven and event-driven synchronization control, allowing events following an event-driven mechanism to be processed within the current synchronization cycle.

[0090] In one implementation scenario, the synchronization control method based on a many-core system provided in this disclosure can be applied to a brain simulation process. Through steps S101-S103, a synchronization control combining clock-driven and event-driven mechanisms is achieved, ensuring that events following the event-driven mechanism are processed within the current synchronization cycle during brain simulation. Therefore, the synchronization control method based on a many-core system provided in this disclosure can improve the simulation efficiency of brain simulation and provide technical support for accurately simulating brain functions during the brain simulation process.

[0091] In one embodiment, in step S102 above, when each of the at least one processing cores has a corresponding event buffer containing multiple second events, the step of controlling each of the at least one processing cores to process the second events in its corresponding event buffer includes: controlling each of the at least one processing cores to process the second events in its corresponding event buffer sequentially according to the order in which the second events were received.

[0092] In one embodiment, each processing nucleus includes multiple brain-like axons, with different axons identified by different axonal identifiers. Each brain-like axon is connected to at least one processing neuron. The brain-like axon is used to transmit events (pulses) emitted by processing neurons in its own nucleus or other processing nuclei to the corresponding connected at least one processing neuron. At least some processing nuclei include at least one special brain-like axon among the multiple brain-like axons, which is used to transmit events following an event-driven mechanism.

[0093] In this embodiment, the synchronization control method further includes: marking the specific brain-like axons. The axonal identifier of the marked brain-like axons includes a special identifier.

[0094] In this embodiment, after the brain-like axons are labeled, the axon identifiers corresponding to the events to be processed transmitted by these axons all contain a special identifier. When the target processing core receiving the event recognizes that the axon identifier corresponding to the event contains the special identifier, it will store the event as a second event in its own event buffer. Therefore, labeling special brain-like axons in this embodiment can assist each processing core in identifying the second event among the events to be processed, thereby improving the efficiency of the processing core in processing the events to be processed.

[0095] It should be noted that the labeling of the special brain-like axons can be performed separately for each synchronization cycle, and the special brain-like axons in different synchronization cycles may not be completely identical. Alternatively, the labeling of the special brain-like axons can be performed for special brain-like axons applicable to all synchronization cycles; this disclosure does not limit the method of labeling the special brain-like axons.

[0096] In step S102 above, the step of controlling each processing core in the at least one processing core to process the second event in its corresponding event buffer includes:

[0097] For each processing core that stores the second event in the corresponding event buffer, control the processing core to execute the following calculation process (1)-(4):

[0098] (1) The processing kernel determines at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the second event.

[0099] The axon identifier corresponding to the second event refers to the axon identifier corresponding to the brain-like axon that receives the second event.

[0100] In some embodiments, each processing core pre-stores a correspondence table of axon identifiers, identifiers of processing neurons, and weights corresponding to the processing neurons. Based on the axon identifier corresponding to the second event, the processing core determines the identifier of at least one processing neuron corresponding to that axon identifier from the pre-stored correspondence table, and then determines the weight corresponding to that at least one processing neuron.

[0101] (2) The processing kernel determines the current membrane potential of each processing neuron based on the second event and the weights corresponding to each processing neuron.

[0102] The step of the processing kernel determining the current membrane potential of each processing neuron based on the second event and the corresponding weights of each processing neuron includes: the processing kernel first performs an integral operation based on the second event and the corresponding weights of each processing neuron to determine the external excitation potential of each processing neuron, and then sums the external excitation potential of each processing neuron with its respective historical membrane potential to determine the current membrane potential of each processing neuron.

[0103] (3) For the at least one processing neuron, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing nucleus generates the event to be processed corresponding to the processing neuron.

[0104] The preset membrane potential threshold can be limited according to the specific implementation scenario. A pending event is an event that needs to be sent to other processing cores for processing. This pending event can be represented in the form of a pulse, also known as a pulse to be emitted. There can be one or more pending events.

[0105] (4) If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core.

[0106] Here, the target processing kernel corresponding to the event to be processed refers to the processing kernel containing the pre-compiled and determined processing neuron that needs to process the event to be processed. There can be one or more target processing kernels corresponding to the event to be processed, and the target processing kernel can include the processing kernel that generated the event to be processed and / or other processing kernels.

[0107] In one embodiment, in the above calculation process (4), the event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. If the processing core is not the destination processing core corresponding to the event to be processed, the step of the processing core sending the event to be processed to the destination processing core includes: the processing core sending the event to be processed to the destination processing core through the corresponding routing unit.

[0108] In one embodiment, the routing unit corresponding to the processing core routes the event to be processed to the destination processing core corresponding to the event in the form of a routing packet. The routing packet includes at least the event to be processed and an axon identifier corresponding to the event. The axon identifier corresponding to the event is the axon identifier of the brain-like axon receiving the event. The routing packet may also include an identifier of the destination processing core, an identifier of the target processing neuron in the destination processing core, etc., where the target processing neuron is the neuron in the destination processing core used to process the event.

[0109] In one implementation, after receiving the event to be processed through the routing unit, the destination processing core identifies the axon identifier corresponding to the event to be processed. If the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as a second event in its own event buffer. If the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in its own conventional buffer.

[0110] In some embodiments, the event to be processed includes a corresponding axon identifier, and if the corresponding axon identifier includes a special identifier, the event to be processed is a second event. Following the above process (3), the following steps one or two are further included:

[0111] Step 1: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, then store the event to be processed as a second event in the event buffer of the processing core.

[0112] Step 2: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

[0113] In this context, the future synchronization period is any synchronization period following the current synchronization period. Since the event to be processed follows a time-driven mechanism, it is not processed in the current synchronization period, but rather in another synchronization period following the current one. This other synchronization period is determined by the event delay corresponding to the event to be processed. In this embodiment, the synchronization period following the current one is defined as the future synchronization period.

[0114] In this embodiment, when the processing core is the target processing core corresponding to the event to be processed, the event to be processed is stored in the corresponding buffer according to whether the event to be processed follows an event-driven mechanism or a time-driven mechanism. This can not only avoid the second event generated in the current cycle and requiring its own processing being missed, but also speed up the processing efficiency.

[0115] Figure 2 A flowchart illustrating another synchronization control method based on a many-core system provided in an embodiment of the present invention. In one implementation, as shown... Figure 2 As shown, after detecting that at least one processing core has a second event stored in its corresponding event buffer, and controlling each processing core in the at least one processing core to process the second event in its respective event buffer (step S102), the method further includes:

[0116] Step S104: Check whether the at least one processing core has completed processing the second event in the corresponding event buffer.

[0117] The method for checking whether the at least one processing core has completed processing the second event in the corresponding event buffer can include various approaches. For example, checking whether an event processing completion notification has been received from each of the at least one processing cores, or monitoring in real time whether the at least one processing core has completed processing the second event in the corresponding event buffer through relevant instructions. The method for checking whether the at least one processing core has completed processing the second event in the corresponding event buffer can be set according to the actual application scenario, and is not specifically limited in this embodiment.

[0118] In this embodiment, if at least one processing core has finished processing the second event in the corresponding event buffer, the process can be restarted from step S101 above, which involves checking whether the second event is stored in the event buffer corresponding to each processing core.

[0119] It should be noted that, since at least one processing core may generate and issue new second events while processing the second event in its corresponding event buffer during the current synchronization cycle, the step of detecting whether the event buffer corresponding to each processing core stores a second event in the above-mentioned re-jump execution step S101 can detect whether each processing core has received a new second event during the current synchronization cycle. If it is detected that at least one processing core has a second event stored in its corresponding event buffer, it indicates that a processing core has received a new second event. At this time, executing the step of controlling each processing core in the at least one processing core to process the second event in its corresponding event buffer (the above-mentioned step S102) can prevent the new second event generated and issued during the current synchronization cycle from being missed. If it is detected that no second event to be processed is stored in any event buffer, and the routing units corresponding to each processing core are all in an idle state, it indicates that each processing core has not received a new second event that needs to be processed, and there is no new second event being routed in the routing unit. In other words, each processing core has completed processing the events that need to be processed in the current cycle, and each processing core will no longer receive events that need to be processed in the current synchronization cycle. At this time, the step of switching the current synchronization cycle to the next synchronization cycle can be executed (step S103 above).

[0120] In this embodiment, if the at least one processing core has not finished processing the second event in the corresponding event buffer, the system waits for the at least one processing core to finish processing the second event in the corresponding event buffer, or it re-executes the step of checking whether the at least one processing core has finished processing the second event in the corresponding event buffer.

[0121] The synchronization control method provided in this embodiment can avoid the second event generated and issued in the current synchronization cycle from being missed. It can also switch the synchronization cycle while ensuring that each processing core has completed processing the received second event in the current synchronization cycle and that no processing core will receive the second event again. This further optimizes the synchronization control that combines clock-driven and event-driven approaches.

[0122] In one implementation, within the current synchronization cycle, prior to step S101, each processing core processes the first event stored in its corresponding conventional buffer. If the conventional buffer contains multiple first events, each processing core processes the first events stored in its corresponding conventional buffer sequentially according to the order in which they were received. The steps by which each processing core processes the first event are similar to the steps by which each processing core processes the second event.

[0123] In this embodiment, before detecting whether a second event is stored in the event buffer corresponding to each processing core (step S101), the method further includes:

[0124] For each processing core, the process of processing the first event in the corresponding conventional buffer includes: the processing core determining at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the first event; the processing core determining the current membrane potential of each processing neuron based on the first event and the weights corresponding to each processing neuron; for the at least one processing neuron, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generating a pending event corresponding to the processing neuron; if the processing core is not the target processing core corresponding to the pending event, the processing core sending the pending event to the target processing core. Here, there can be one or more pending events, and there can be one or more target processing cores corresponding to the pending events. The target processing cores can include the processing core that generated the pending event and / or other processing cores.

[0125] In one implementation, the event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. During the processing of the first event in the corresponding conventional buffer by the aforementioned processing core, if the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core, including:

[0126] The processing core sends pending events to the destination processing core through the corresponding routing unit, so that the destination processing core can store pending events with axon identifiers containing special identifiers as second events in its own event buffer and / or store pending events with axon identifiers not containing special identifiers as events to be processed in future synchronization cycles in its own conventional buffer.

[0127] In one implementation, the event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. During the process of the processing kernel processing the first event in the corresponding conventional buffer, after generating the event to be processed corresponding to the processing neuron, the following step one or step two is further included:

[0128] Step 1: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, then store the event to be processed as a second event in the event buffer of the processing core.

[0129] Step 2: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is regarded as the first event to be processed in the future synchronization cycle and stored in the traditional buffer of the processing core.

[0130] In this embodiment, when the processing core is the target processing core corresponding to the event to be processed, the event to be processed is stored in the corresponding buffer according to whether the event to be processed follows an event-driven mechanism or a time-driven mechanism. This can not only avoid the second event generated in the current cycle and requiring its own processing being missed, but also speed up the processing efficiency.

[0131] Figure 3 A flowchart of another synchronization control method based on a many-core system provided in this disclosure embodiment. In one embodiment, before switching the current synchronization period to the next synchronization period (i.e., step S103) after detecting that no second event to be processed is stored in any event buffer and that the routing units corresponding to each processing core are all in an idle state, refer to... Figure 3 The synchronization control method based on many-core systems also includes the following steps:

[0132] Step S201: If it is detected that no second event to be processed is stored in any event buffer, check whether the routing unit corresponding to each processing core is in an idle state.

[0133] In this context, "idle" means that there are no pending events in the routing unit that need to be routed; "non-idle" means that there are pending events in the routing unit that need to be routed.

[0134] In this embodiment, the purpose of detecting whether the routing unit corresponding to each processing core is idle in step S201 is to detect whether there are any pending events that have not been issued in the many-core system, thereby avoiding the many-core system from omitting the processing of the pending event as a second event in the current synchronization cycle.

[0135] Specifically, if step S201 detects that the routing units corresponding to each processing core are all in an idle state, it means that there are no pending events that have not been issued in the many-core system. In other words, each processing core of the many-core system will not receive pending events as the second event in the current synchronization cycle. The synchronization control device can switch the current synchronization cycle to the next synchronization cycle by executing the above step S103.

[0136] If step S201 detects that at least one routing unit corresponding to a processing core is in a non-idle state, it indicates that there are pending events in the many-core system that have not been issued. Step S202 is then executed to wait for the pending events to be issued.

[0137] Step S202: If at least one routing unit corresponding to a processing core is detected to be in a non-idle state, wait for each routing unit in the non-idle state to complete the routing of all its corresponding pending events.

[0138] In this process, each routing unit in a non-idle state completes the routing of all its corresponding pending events, indicating that all pending events in the many-core system have been issued, meaning that the pending event has been received and stored by the destination processing core. When the pending event is designated as a second event, the event buffer corresponding to the destination processing core will store this second event. In this case, to prevent the second event from being missed during the current synchronization cycle, step S203 is executed.

[0139] Step S203: If each routing unit in a non-idle state has completed routing all of its corresponding pending events, then proceed to the step of checking whether the event buffer corresponding to each processing core stores a second event (in step S101).

[0140] It should be noted that in step S202, if none of the pending events routed by the routing units in the non-idle state are designated as the second event, then in step S203, after jumping to the step of checking whether the event buffer corresponding to each processing core stores the second event, it will be detected that no pending second event is stored in any event buffer. At this time, the step of switching the current synchronization period to the next synchronization period (step S103 above) is executed when it is detected that no pending second event is stored in any event buffer and the routing units corresponding to each processing core are in an idle state.

[0141] In step S202, if among the pending events routed by each routing unit in a non-idle state, there exists a pending event that is a second event, then in step S203, after jumping to the step of detecting whether the event buffer corresponding to each processing core stores the second event, it will be detected that at least one processing core's event buffer stores the second event. At this time, if the above-mentioned detection shows that at least one processing core's event buffer stores the second event, each processing core in that at least one processing core is controlled to process the second event in its respective event buffer (step S102 above).

[0142] Figure 4 A flowchart illustrating another synchronization control method based on a many-core system provided in this disclosure. In one embodiment, to avoid the impact of an excessively long current synchronization cycle duration on the performance of the many-core system, such as... Figure 4 As shown, the synchronization control method based on many-core systems also includes the following steps:

[0143] Step S301: If the duration of the current synchronization cycle exceeds the preset duration threshold, switch the current synchronization cycle to the next synchronization cycle.

[0144] Step S302: If the second event is still stored in the event buffer corresponding to any processing core, control the processing core to clear the remaining second event from the corresponding event buffer.

[0145] The preset duration threshold can be set according to the specific implementation scenario, such as 0.1ms.

[0146] It should be noted that the order in which the steps are described in this embodiment does not constitute a limitation on the order in which the steps are executed. For example, steps S301 and S302 can be executed simultaneously, and step S302 can also be executed before step S301.

[0147] In one implementation, before controlling the processing core to clear the remaining second event from the corresponding event buffer, the method further includes controlling the processing core to write the remaining second event from the corresponding event buffer into a traditional buffer corresponding to the processing core. In this implementation, the remaining second event written into the corresponding traditional buffer can be processed within the synchronization cycle after the switchover, thereby avoiding response loss caused by event missing in the many-core system.

[0148] In one implementation scenario, during the process of controlling each processing core in the at least one processing core to process the second event in its corresponding event buffer (in step S102), a "self-looping" situation exists: that is, two processing cores cyclically generate pending events as the second events corresponding to each other's processing cores. For example, after the first processing core generates a first pending event, it sends the first pending event to the second processing core corresponding to the first pending event. The second processing core processes the first pending event, generates a second pending event, and sends the second pending event to the first processing core corresponding to the second pending event. The first processing core processes the second pending event, generates a third pending event, and sends the third pending event to the second processing core corresponding to the third pending event... In this implementation scenario, a preset duration threshold can be set in advance, and step S301 can be executed to avoid the current synchronization cycle lasting too long.

[0149] Figure 5 This is a block diagram of a synchronization control device provided in an embodiment of the present disclosure.

[0150] Reference Figure 5 This disclosure provides a synchronization control device 40 applied to a many-core system, wherein the many-core system includes at least one processing core and an on-chip network, the on-chip network includes routing units corresponding to each processing core, and each processing core includes a conventional buffer and a pre-set event buffer. The synchronization control device 40 includes a processing module 41 and a global control module 42.

[0151] The processing module 41 is configured to, within the current synchronization period, in response to each processing core completing the processing of the first event stored in its corresponding conventional buffer, detect whether a second event is stored in the event buffer corresponding to each processing core, wherein the first event is an event configured to be processed within the current synchronization period that follows a time-driven mechanism; the second event is an event received by the processing core within the current synchronization period that follows an event-driven mechanism; and is further configured to, if it is detected that at least one processing core has a second event stored in its corresponding event buffer, control each processing core in the at least one processing core to process the second event in its respective event buffer.

[0152] The first event is a time-driven event configured for processing within the current synchronization period. Specifically, it is an event received by the processing core during a historical synchronization period from either the processing core or another processing core, and which requires processing within the current synchronization period. Both the first and second events can be represented as pulses.

[0153] Traditional buffers are buffers within each processing core used to store events that follow a time-driven mechanism. These time-driven events can include the first event or events that need to be processed in future synchronization cycles after the current synchronization cycle.

[0154] The event buffer is a pre-configured buffer in each processing core used to store the second event.

[0155] The synchronization cycle, also known as the synchronization beat, clock beat, or time beat, refers to the time interval between two consecutive global synchronizations in a many-core system.

[0156] The global control module 42 is used to switch the current synchronization cycle to the next synchronization cycle when it is detected that no second event to be processed is stored in all event buffers and the routing units corresponding to each processing core are in an idle state.

[0157] In one embodiment, the synchronization control device further includes a route detection module. This route detection module is used to detect whether the routing unit corresponding to each processing core is in an idle state when no pending second events are stored in any event buffers.

[0158] In one embodiment, the processing module 41 is further configured to, when the detection module detects that at least one routing unit corresponding to a processing core is in a non-idle state, wait for each routing unit in the non-idle state to complete routing all its corresponding pending events. When each routing unit in the non-idle state has completed routing all its corresponding pending events, the processing module 41 is further configured to proceed to the step of detecting whether a second event is stored in the event buffer corresponding to each processing core.

[0159] In one embodiment, the global control module 42 is further configured to switch the current synchronization cycle to the next synchronization cycle when the duration of the current synchronization cycle exceeds a preset duration threshold; and, if a second event is still stored in the event buffer corresponding to any processing core, control the processing core to clear the remaining second event from the corresponding event buffer.

[0160] In one embodiment, the global control module 42 is further configured to control the processing core to write the remaining second event in the corresponding event buffer into the corresponding conventional buffer before controlling the processing core to clear the remaining second event in the corresponding event buffer from the corresponding event buffer.

[0161] The synchronization control device provided in this embodiment corresponds to each step in the synchronization control method based on a many-core system. Therefore, the detailed working method of each module in the synchronization control device can be found in the synchronization control method based on a many-core system provided in this embodiment.

[0162] The synchronization control device based on a many-core system provided in this disclosure, in a scenario where the many-core system includes at least one processing core and an on-chip network, and each processing core includes a traditional buffer and a pre-set event buffer, is configured to, within the current synchronization period, in response to each processing core completing the processing of a first event stored in its corresponding traditional buffer, detect whether a second event is stored in the event buffer corresponding to each processing core. The first event is an event configured to be processed within the current synchronization period following a time-driven mechanism; the second event is an event received by the processing core within the current synchronization period following an event-driven mechanism. Furthermore, if it is detected that a second event is stored in the event buffer corresponding to at least one processing core, it controls each processing core in that at least one processing core to process the second event in its respective event buffer, enabling control of each processing core in the many-core system based on event-driven mechanisms. A global control module is configured to, if it is detected that no second event is stored in any event buffer and the routing units corresponding to each processing core are all in an idle state, switch the current synchronization period to the next synchronization period, enabling control of each processing core in the many-core system based on clock-driven mechanisms. Therefore, the synchronization control device based on a many-core system provided in this disclosure can realize synchronization control that combines clock-driven and event-driven approaches, so that events following the event-driven mechanism are processed within the current synchronization cycle.

[0163] This disclosure also provides a processing core that includes the aforementioned synchronization control device.

[0164] Figure 6 This is a block diagram of a many-core system provided in an embodiment of the present disclosure.

[0165] Reference Figure 6 This disclosure provides a many-core system 50, which includes multiple processing cores 51 and an on-chip network 52. The on-chip network includes routing units 521 corresponding to each processing core. Each processing core includes a conventional buffer 511, a pre-configured event buffer 512, and multiple processing neurons 513.

[0166] At least one processing core includes the processing core provided in this embodiment of the present disclosure that includes the above-described synchronization control device.

[0167] Figure 7 This is a block diagram of an electronic device provided in an embodiment of the present disclosure.

[0168] Reference Figure 7 This disclosure provides an electronic device including multiple processing cores 61 and an on-chip network 62. Each processing core 61 is connected to the on-chip network 62, which is configured to exchange data between the processing cores 61 and external data. The on-chip network also includes routing units corresponding to each processing core.

[0169] One or more processing cores 61 store one or more instructions, which are executed by one or more processing cores 61 to enable one or more processing cores 61 to execute the above-described synchronization control method based on a many-core system.

[0170] Furthermore, this disclosure also provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processing core, implements the above-described synchronization control method based on a many-core system.

[0171] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0172] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in connection with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in connection with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A synchronization control method based on a many-core system, comprising: Within the current synchronization cycle, in response to each processing core completing the processing of the first event stored in its corresponding traditional buffer, it is detected whether a second event is stored in the event buffer corresponding to each processing core; the first event is an event configured to be processed within the current synchronization cycle that follows a time-driven mechanism. The second event is an event that follows an event-driven mechanism and is received by the processing core within the current synchronization cycle; If it is detected that at least one of the processing cores has a second event stored in its corresponding event buffer, each of the at least one processing core is controlled to process the second event in its respective event buffer. If the duration of the current synchronization period exceeds a preset duration threshold, the current synchronization period will be switched to the next synchronization period. or, If it is detected that no second event to be processed is stored in any of the event buffers, and the routing units corresponding to each processing core are all in an idle state, the current synchronization cycle is switched to the next synchronization cycle. If a second event is still stored in the event buffer corresponding to any of the processing cores, control that processing core to clear the remaining second event from the corresponding event buffer; Each of the processing cores includes multiple processing neurons; Before detecting whether a second event is stored in the event buffer corresponding to each of the processing cores, the method further includes: For each processing core, the process of processing the first event in the corresponding conventional buffer includes: the processing core determining at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the first event; the processing core determining the current membrane potential of each processing neuron based on the first event and the weights corresponding to each processing neuron; for the at least one processing neuron, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generating a pending event corresponding to the processing neuron; if the processing core is not the target processing core corresponding to the pending event, the processing core sending the pending event to the target processing core.

2. The synchronization control method according to claim 1, wherein Each processing core includes multiple brain-like axons, each of which is connected to at least one processing neuron. At least a portion of the multiple brain-like axons in the processing cores include at least one special brain-like axon. The synchronization control method further includes: marking the special brain-like axon, wherein the axon identifier of the marked brain-like axon contains a special identifier; the special brain-like axon is used to transmit events following an event-driven mechanism.

3. The synchronization control method according to claim 1, wherein Each of the processing cores includes multiple processing neurons; the step of controlling each of the at least one of the processing cores to process the second event in its corresponding event buffer includes: For each processing core that stores the second event in its corresponding event buffer, control that processing core to execute the following calculation process: The processing core determines at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the second event; The processing kernel determines the current membrane potential of each processing neuron based on the second event and the corresponding weights of each processing neuron. For at least one of the processing neurons, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generates a processing event corresponding to the processing neuron. If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core.

4. The synchronization control method according to claim 3, wherein The event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. Specifically, if the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to the destination processing core, including: The processing core sends the pending events to the destination processing core through the corresponding routing unit, so that the destination processing core can store the pending events whose axon identifier contains a special identifier as the second event in its own event buffer and / or store the pending events whose axon identifier does not contain a special identifier as events that need to be processed in a future synchronization cycle in its own conventional buffer.

5. The synchronization control method according to claim 3, wherein The event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. After generating the event to be processed corresponding to the processing neuron, the process further includes: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as the second event in the event buffer of the processing core; If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

6. The synchronization control method according to claim 1, wherein The event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. Wherein, if the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to the destination processing core, including: The processing core sends the pending events to the destination processing core through the corresponding routing unit, so that the destination processing core can store the pending events whose axon identifier contains a special identifier as the second event in its own event buffer and / or store the pending events whose axon identifier does not contain a special identifier as events that need to be processed in a future synchronization cycle in its own conventional buffer.

7. The synchronization control method according to claim 1, wherein The event to be processed includes a corresponding axon identifier. If the corresponding axon identifier includes a special identifier, the event to be processed is a second event. After generating the event to be processed corresponding to the processing neuron, the synchronization control method further includes: If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed contains a special identifier, the event to be processed is stored as the second event in the event buffer of the processing core; If the processing core is the target processing core corresponding to the event to be processed, and the axon identifier corresponding to the event to be processed does not contain a special identifier, the event to be processed is treated as an event to be processed in a future synchronization cycle and stored in the traditional buffer of the processing core.

8. The synchronization control method according to claim 1, wherein, Before switching the current synchronization cycle to the next synchronization cycle when it is detected that no second event to be processed is stored in any of the event buffers and the routing units corresponding to each processing core are in an idle state, the method further includes: If it is detected that no second event to be processed is stored in any of the event buffers, it is then detected whether the routing unit corresponding to each processing core is in an idle state.

9. The synchronization control method according to claim 8, wherein, After detecting whether the routing unit corresponding to each of the processing cores is in an idle state, the method further includes: If at least one routing unit corresponding to the processing core is detected to be in a non-idle state, wait for each routing unit in the non-idle state to complete the routing of all the events to be processed corresponding to it. If each routing unit in a non-idle state has completed routing all its corresponding pending events, the process jumps to the step of detecting whether the event buffer corresponding to each processing core stores a second event.

10. The synchronization control method according to claim 1, wherein, After controlling each of the at least one of the processing cores to process the second event in its respective event buffer, the method further includes: Check whether the at least one of the processing cores has completed processing the second event in the corresponding event buffer; If at least one processing core has completed processing the second event in the corresponding event buffer, the step of detecting whether the second event is stored in the event buffer corresponding to each processing core is re-executed.

11. The synchronization control method according to claim 1, wherein, Before the process core clears the remaining second events from the corresponding event buffer, the method further includes: The control unit writes the remaining second events in the corresponding event buffer into the corresponding conventional buffer.

12. A synchronization control device, applied to a many-core system, the device comprising: The processing module is used to detect whether a second event is stored in the event buffer corresponding to each processing core within the current synchronization cycle, in response to each processing core completing the processing of the first event stored in its corresponding traditional buffer; the first event is an event configured to be processed within the current synchronization cycle that follows a time-driven mechanism. The second event is an event that follows an event-driven mechanism and is received by the processing core within the current synchronization cycle; If it is detected that at least one of the processing cores has a second event stored in its corresponding event buffer, each of the at least one processing core is controlled to process the second event in its respective event buffer. The global control module is configured to switch the current synchronization cycle to the next synchronization cycle when the duration of the current synchronization cycle exceeds a preset duration threshold; or switch the current synchronization cycle to the next synchronization cycle when it is detected that no second event is stored in any of the event buffers and the routing units corresponding to each processing core are in an idle state; and control the processing core to clear the remaining second event from the corresponding event buffer when the event buffer corresponding to any processing core still stores a second event. Each processing core includes multiple processing neurons; the processing core determines at least one processing neuron corresponding to the axon identifier and the weight corresponding to the at least one processing neuron based on the axon identifier corresponding to the first event; The processing core determines the current membrane potential of each processing neuron based on the first event and the corresponding weights of each processing neuron; for the at least one processing neuron, if the current membrane potential of the processing neuron exceeds a preset membrane potential threshold, the processing core generates a processing event corresponding to the processing neuron. If the processing core is not the destination processing core corresponding to the event to be processed, the processing core sends the event to be processed to the destination processing core.

13. A processing core comprising the synchronization control device of claim 12.

14. A many-core system, comprising multiple processing cores and an on-chip network, wherein the on-chip network includes routing units corresponding to each of the processing cores, and each of the processing cores includes a conventional buffer and a pre-configured event buffer; in, At least one of the processing cores includes the processing core as described in claim 13.

15. An electronic device comprising: Multiple processing cores; as well as The on-chip network is configured to interact with data between the multiple processing cores and external data; The on-chip network includes routing units corresponding to each processing core; One or more processing cores store one or more instructions, and the one or more instructions are executed by one or more processing cores to enable one or more processing cores to perform the synchronization control method based on a many-core system as described in any one of claims 1-11.

16. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by the processing core, it implements the synchronization control method based on a many-core system as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Operation system performance analysis method and device

    CN102004678A

  • Computer system based on brain-like coprocessor

    CN104809501A