A method and system for synchronizing data between cores of a heterogeneous multi-core detection device

By deploying the data cache area and communication identification area in the heterogeneous multi-core detection device, and adopting real-time and timing synchronization strategies, the performance overhead problem caused by data exchange and synchronization operations in the heterogeneous multi-core detection device is solved, and the computing performance is improved and System performance stability.

CN118519799BActive Publication Date: 2024-10-01YUANQIXIN (SHANDONG) SEMICONDUCTOR TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410993288.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Frequent data exchange and synchronization operations due to the diversity of processor core types in heterogeneous multi-core detection devices increase system performance overhead and reduce overall performance.

Method used

Deploy the data cache area and communication identification area in the heterogeneous multi-core detection device, adopt the real-time and timing synchronization strategy between the data sampling core, the main core, and the edge computing core, and reduce communication overhead through buffer area division and interrupt processing, giving full play to Each core advantage.

Benefits of technology

This improves computing performance, reduces the overall performance overhead of the system, and ensures the stability of system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519799B_ABST
    Figure CN118519799B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for synchronizing data between cores of a heterogeneous multi-core detection device, and relates to the field of data processing technology; the method and system comprise: step 1: deploying a data cache area based on a main core, a data sampling core and an edge computing core of the heterogeneous multi-core detection device; step 2: performing real-time data synchronization between the data sampling core and the main core; step 3: performing timed data synchronization between the data sampling core and the edge computing core; and step 4: performing timed data synchronization between the edge computing core and the main core; the present invention can give full play to the advantages of each core, achieve a substantial improvement in computing performance, and does not require the introduction of additional communication and synchronization overhead, while ensuring the overall performance of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention discloses an inter-core data synchronization method and system for a heterogeneous multi-core detection device, and relates to the technical field of data processing. Background Art

[0002] The heterogeneous multi-core detection device has a system design that integrates multiple different types of processor cores on a single chip. The internal cores of this device are diverse and different. These cores may use different instruction set architectures (ISAs) and have different performance characteristics and power consumption requirements. The heterogeneous multi-core detection device combines different types of processor cores to give full play to the advantages of each core and achieve a significant improvement in computing performance. However, since multi-core heterogeneous embedded chips integrate multiple different types of processor cores, the processor cores in the heterogeneous multi-core detection device need to perform frequent data exchange and synchronization operations, which requires the introduction of additional communication and synchronization overhead, reducing the overall performance of the system. Summary of the invention

[0003] In view of the problems of the prior art, the present invention provides a method and system for synchronizing data between cores of a heterogeneous multi-core detection device. The specific solution proposed by the present invention is:

[0004] The present invention provides a method for synchronizing data between cores of a heterogeneous multi-core detection device, comprising:

[0005] Step 1: Deploy data cache areas based on the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: establish data cache areas between each pair of data sampling cores and the main core, between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, and create communication identification areas between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, where the data sampling core and the edge computing core are slave cores.

[0006] Step 2: Real-time data synchronization between the data sampling core and the main core: The data sampling core checks the device sampling data, updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data.

[0007] Step 3: Data sampling core and edge computing core perform data timing synchronization: the data sampling core checks the device sampling data, updates the data to the corresponding data buffer, and increases the data identifier in the corresponding communication identification area by 1. The edge computing core periodically reads the data identifier in the corresponding communication identification area. When a data identifier change is detected, the data in the corresponding data buffer is read.

[0008] Step 4: Data is synchronized regularly between the edge computing core and the main core: The edge computing core regularly runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the device abnormal status data is updated to the corresponding data buffer, and an interrupt is triggered to notify the main core to obtain the device abnormal status data. If the device status is normal, the device status data is regularly updated to the corresponding data buffer, and the data identifier in the corresponding communication identification area is increased by 1. After the main core detects the change of the data identifier in the corresponding communication identification area, it reads the data in the corresponding data buffer.

[0009] Furthermore, in step 1 of the inter-core data synchronization method of a heterogeneous multi-core detection device, a data cache area of ​​preset bytes is established between each pair of data sampling cores and the main core, and the data cache area is divided into a regular data area and an abnormal event data cache area, the regular data area is used to cache regular data, and the abnormal event data cache area is used to cache abnormal event data.

[0010] Establish a data buffer area of ​​preset bytes between each pair of data sampling cores and edge computing cores,

[0011] A data cache area of ​​preset bytes is established between each pair of edge computing cores and the main core, and the data cache area is divided into a regular data area and an abnormal event data cache area. The regular data area is used to cache normal device status data, and the abnormal event data cache area is used to cache device abnormal status data.

[0012] Furthermore, in step 2 of the inter-core data synchronization method of a heterogeneous multi-core detection device, after the main core obtains the interrupt, it parses the interrupt and determines the interrupt type. If the interrupt type is a regular data collection interrupt, it immediately goes to the regular data area to read the data; if the interrupt type is an abnormal event data interrupt, it immediately goes to the abnormal event data cache area to read the abnormal event data.

[0013] Furthermore, in step 1 of the inter-core data synchronization method of the heterogeneous multi-core detection device, the master core reserves a programming register group, writes instructions to the register address of the slave core, and controls the slave core to perform different operations according to the instructions.

[0014] The present invention also provides an inter-core data synchronization system of a heterogeneous multi-core detection device, including a deployment module, a real-time synchronization module, a sampling core timing synchronization module and an edge computing core timing synchronization module.

[0015] The deployment module deploys data cache areas based on the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: establish data cache areas between each pair of data sampling cores and the main core, between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, and create communication identification areas between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, where the data sampling core and the edge computing core are slave cores.

[0016] The data sampling core and the main core use the real-time synchronization module to synchronize data in real time: the data sampling core checks the device sampling data, and the real-time synchronization module updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data.

[0017] The data sampling core and the edge computing core use the sampling core timing synchronization module to synchronize data timing: the data sampling core checks the device sampling data, updates the data to the corresponding data buffer, and increases the data identifier in the corresponding communication identification area by 1. The edge computing core periodically reads the data identifier in the corresponding communication identification area. When a data identifier change is detected, the data in the corresponding data buffer is read.

[0018] The edge computing core timing synchronization module is used to perform data timing synchronization between the edge computing core and the main core: the edge computing core periodically runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the device abnormal status data is updated to the corresponding data buffer, and an interrupt is triggered to notify the main core to obtain the device abnormal status data. If the device status is normal, the device status data is regularly updated to the corresponding data buffer, and the data identifier in the corresponding communication identification area is increased by 1. After the main core detects the change of the data identifier in the corresponding communication identification area, it reads the data in the corresponding data buffer.

[0019] Furthermore, the deployment module of the inter-core data synchronization system of the heterogeneous multi-core detection device establishes a data cache area of ​​preset bytes between each pair of data sampling cores and the main core, and divides the data cache area into a regular data area and an abnormal event data cache area, the regular data area is used to cache regular data, and the abnormal event data cache area is used to cache abnormal event data.

[0020] The deployment module establishes a data buffer of preset bytes between each pair of data sampling cores and edge computing cores.

[0021] The deployment module establishes a data cache area of ​​preset bytes between each pair of edge computing cores and the main core, and divides the data cache area into a regular data area and an abnormal event data cache area. The regular data area is used to cache normal device status data, and the abnormal event data cache area is used to cache device abnormal status data.

[0022] Furthermore, the inter-core data synchronization system of the heterogeneous multi-core detection device also includes a judgment module. After the main core obtains the interrupt, it parses the interrupt and determines the interrupt type through the judgment module. If the interrupt type is a regular data collection interrupt, the main core immediately goes to the regular data area to read data. If the interrupt type is an abnormal event data interrupt, the main core immediately goes to the abnormal event data cache area to read the abnormal event data.

[0023] Furthermore, the inter-core data synchronization system of the heterogeneous multi-core detection device also includes an instruction module. The master core reserves a programming register group, and writes instructions to the register address of the slave core through the instruction module to control the slave core to perform different operations according to the instructions.

[0024] The benefits of the present invention are:

[0025] The present invention deploys data cache areas in each core and formulates different data synchronization strategies respectively, which can give full play to the advantages of each core and achieve a significant improvement in computing performance without introducing additional communication and synchronization overhead, thereby ensuring the overall performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic flow chart of the method of the present invention.

[0027] Figure 2 It is a schematic diagram of the inter-core data synchronization interaction framework involved in the present invention. DETAILED DESCRIPTION

[0028] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0029] Embodiment 1: The present invention provides a method for synchronizing data between cores of a heterogeneous multi-core detection device, comprising:

[0030] Step 1: Combine Figure 2 , based on the deployment of data cache areas for the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: data cache areas are established between each pair of data sampling cores and the main core, between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core. The main core can also reserve a programming register group, and can also write instructions to the register address of the slave core to control the slave core to perform different operations according to the instructions.

[0031] At the same time, a communication identification area is created between each pair of data sampling cores and edge computing cores, and between each pair of edge computing cores and the main core, where the data sampling cores and edge computing cores are slave cores. The communication identification area can be managed in the form of a linked list to facilitate the timing synchronization of data between the two cores.

[0032] The main core is mainly responsible for general functions such as communication, display, and data storage of the device. The data sampling core is mainly responsible for high-speed sampling and calculation of data, and synchronizes the data to the data cache for use by other cores that need data. The edge computing core uses an artificial intelligence algorithm model to process and analyze the sampled data. The main core can receive status information from two slave cores, the data sampling core and the edge computing core.

[0033] Step 2: Real-time data synchronization between the data sampling core and the main core: The data sampling core samples the data of the device, updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data.

[0034] Step 3: Data sampling core and edge computing core perform data timing synchronization: the data sampling core checks the device sampling data, updates the data to the corresponding data buffer, and increases the data identifier in the corresponding communication identification area by 1. The edge computing core periodically reads the data identifier in the corresponding communication identification area. When a data identifier change is detected, the data in the corresponding data buffer is read.

[0035] Step 4: Data is synchronized regularly between the edge computing core and the main core: The edge computing core regularly runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the device abnormal status data is updated to the corresponding data buffer, and an interrupt is triggered to notify the main core to obtain the device abnormal status data. If the device status is normal, the device status data is regularly updated to the corresponding data buffer, and the data identifier in the corresponding communication identification area is increased by 1. After the main core detects the change of the data identifier in the corresponding communication identification area, it reads the data in the corresponding data buffer.

[0036] Embodiment 2: Based on embodiment 1, the synchronization method of the present invention establishes a preset 4096-byte data buffer area between each pair of data sampling cores and the main core in step 1, and divides the data buffer area into a regular data area of ​​the first 2048 bytes and an abnormal event data buffer area of ​​the last 2048 bytes, wherein the regular data area is used to cache regular data, and the abnormal event data buffer area is used to cache abnormal event data.

[0037] A 2048-byte data buffer is set up between each pair of data sampling cores and edge computing cores.

[0038] A preset 1024-byte data cache is established between each pair of edge computing cores and the main core, and the data cache is divided into a regular data area of ​​the first 512 bytes and an abnormal event data cache area of ​​the last 512 bytes. The regular data area is used to cache normal device status data, and the abnormal event data cache area is used to cache device abnormal status data.

[0039] In step 2, after the main core obtains the interrupt, it parses the interrupt type code in the interrupt to determine the interrupt type. If the interrupt type is a regular data collection interrupt, it immediately goes to the regular data area to read data. If the interrupt type is an abnormal event data interrupt, it immediately goes to the abnormal event data buffer area to read the abnormal event data.

[0040] Embodiment 3: The present invention also provides an inter-core data synchronization system of a heterogeneous multi-core detection device, including a deployment module, a real-time synchronization module, a sampling core timing synchronization module and an edge computing core timing synchronization module.

[0041] The deployment module deploys data cache areas based on the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: data cache areas are established between the data sampling core and the main core, between the data sampling core and the edge computing core, and between the edge computing core and the main core, where the data sampling core and the edge computing core are slave cores.

[0042] The data sampling core and the main core use the real-time synchronization module to synchronize data in real time: the data sampling core checks the device sampling data, and the real-time synchronization module updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data.

[0043] The data sampling core and the edge computing core use the sampling core timing synchronization module to synchronize data timing: the data sampling core checks the device sampling data, the sampling core timing synchronization module updates the data to the corresponding data buffer, and updates the data sampling identifier. The edge computing core reads the data sampling identifier regularly. When the data sampling identifier is detected to have changed, the data in the corresponding data buffer is read.

[0044] The edge computing core timing synchronization module is used to perform data timing synchronization between the edge computing core and the main core: the edge computing core periodically runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the edge computing core timing synchronization module updates the device abnormal status data to the corresponding data buffer, and triggers an interrupt to notify the main core to obtain the device abnormal status data. If the device status is normal, the edge computing core timing synchronization module periodically updates the device status data to the corresponding data buffer and updates the cache area identifier. After the main core detects the change in the cache area identifier, it reads the data in the corresponding data buffer.

[0045] As the information interaction and execution process between the modules in the above-mentioned system are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.

[0046] Similarly, the system of the present invention deploys data cache areas for each core and formulates different data synchronization strategies respectively, which can give full play to the advantages of each core and achieve a significant improvement in computing performance without introducing additional communication and synchronization overhead, thereby ensuring the overall performance of the system.

[0047] It should be noted that not all steps and modules in the above-mentioned processes and system structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.

[0048] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. A method for synchronizing data between cores of a heterogeneous multi-core detection device, characterized in that include: Step 1: Deploy data cache areas based on the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: establish data cache areas between each pair of data sampling cores and the main core, between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, and create communication identification areas between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, where the data sampling core and the edge computing core are slave cores. Step 2: Real-time data synchronization between the data sampling core and the main core: The data sampling core checks the device sampling data, updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data. Step 3: Data sampling core and edge computing core perform data timing synchronization: the data sampling core checks the device sampling data, updates the data to the corresponding data buffer, and increases the data identifier in the corresponding communication identification area by 1. The edge computing core periodically reads the data identifier in the corresponding communication identification area. When a data identifier change is detected, the data in the corresponding data buffer is read. Step 4: Data is synchronized regularly between the edge computing core and the main core: The edge computing core regularly runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the device abnormal status data is updated to the corresponding data buffer, and an interrupt is triggered to notify the main core to obtain the device abnormal status data. If the device status is normal, the device status data is regularly updated to the corresponding data buffer, and the data identifier in the corresponding communication identification area is increased by 1. After the main core detects the change of the data identifier in the corresponding communication identification area, it reads the data in the corresponding data buffer.

2. The method for synchronizing data between cores of a heterogeneous multi-core detection device according to claim 1 is characterized in that in step 1, a data cache area of ​​preset bytes is established between each pair of data sampling cores and the main core, and the data cache area is divided into a regular data area and an abnormal event data cache area, the regular data area is used to cache regular data, and the abnormal event data cache area is used to cache abnormal event data, Establish a data buffer area of ​​preset bytes between each pair of data sampling cores and edge computing cores, A data cache area of ​​preset bytes is established between each pair of edge computing cores and the main core, and the data cache area is divided into a regular data area and an abnormal event data cache area. The regular data area is used to cache normal device status data, and the abnormal event data cache area is used to cache device abnormal status data.

3. The method for synchronizing data between cores of a heterogeneous multi-core detection device according to claim 2, characterized in that In step 2, after the main core obtains the interrupt, it parses the interrupt and determines the interrupt type. If the interrupt type is a regular data collection interrupt, it immediately goes to the regular data area to read data. If the interrupt type is an abnormal event data interrupt, it immediately goes to the abnormal event data buffer area to read the abnormal event data.

4. The method for synchronizing data between cores of a heterogeneous multi-core detection device according to claim 1, characterized in that In step 1, the master core reserves a programming register group, writes instructions to the register address of the slave core, and controls the slave core to perform different operations according to the instructions.

5. An inter-core data synchronization system for a heterogeneous multi-core detection device, characterized in that Including deployment module, real-time synchronization module, sampling core timing synchronization module and edge computing core timing synchronization module, The deployment module deploys data cache areas based on the main core, data sampling core and edge computing core of the heterogeneous multi-core detection device: establish data cache areas between each pair of data sampling cores and the main core, between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, and create communication identification areas between each pair of data sampling cores and the edge computing core, and between each pair of edge computing cores and the main core, where the data sampling core and the edge computing core are slave cores. The data sampling core and the main core use the real-time synchronization module to synchronize data in real time: the data sampling core checks the device sampling data, and the real-time synchronization module updates the data to the corresponding data buffer in real time, and triggers an interrupt to notify the main core to obtain the data. The data sampling core and the edge computing core use the sampling core timing synchronization module to synchronize data timing: the data sampling core checks the device sampling data, updates the data to the corresponding data buffer, and increases the data identifier in the corresponding communication identification area by 1. The edge computing core periodically reads the data identifier in the corresponding communication identification area. When a data identifier change is detected, the data in the corresponding data buffer is read. The edge computing core timing synchronization module is used to perform data timing synchronization between the edge computing core and the main core: the edge computing core periodically runs the artificial intelligence algorithm model to predict the device status. If the device status is abnormal, the device abnormal status data is updated to the corresponding data buffer, and an interrupt is triggered to notify the main core to obtain the device abnormal status data. If the device status is normal, the device status data is regularly updated to the corresponding data buffer, and the data identifier in the corresponding communication identification area is increased by 1. After the main core detects the change of the data identifier in the corresponding communication identification area, it reads the data in the corresponding data buffer.

6. The inter-core data synchronization system of a heterogeneous multi-core detection device according to claim 5, characterized in that The deployment module establishes a data cache area of ​​preset bytes between each pair of data sampling cores and the main core, and divides the data cache area into a regular data area and an abnormal event data cache area. The regular data area is used to cache regular data, and the abnormal event data cache area is used to cache abnormal event data. The deployment module establishes a data buffer of preset bytes between each pair of data sampling cores and edge computing cores. The deployment module establishes a data cache area of ​​preset bytes between each pair of edge computing cores and the main core, and divides the data cache area into a regular data area and an abnormal event data cache area. The regular data area is used to cache normal device status data, and the abnormal event data cache area is used to cache device abnormal status data.

7. The inter-core data synchronization system of a heterogeneous multi-core detection device according to claim 6, characterized in that It also includes a judgment module. After the main core obtains the interrupt, it parses the interrupt and determines the interrupt type through the judgment module. If the interrupt type is a regular data collection interrupt, the main core immediately goes to the regular data area to read the data. If the interrupt type is an abnormal event data interrupt, the main core immediately goes to the abnormal event data cache area to read the abnormal event data.

8. The inter-core data synchronization system of a heterogeneous multi-core detection device according to claim 5, characterized in that It also includes an instruction module. The master core reserves a programming register group. Instructions are written to the register address of the slave core through the instruction module to control the slave core to perform different operations according to the instructions.