Data synchronization method, dual-core chip and electronic equipment

By triggering the interrupt of the second processor core in the dual-core chip and automatically executing the data read instruction, the delay problem during the data synchronization process is solved, and the timeliness of data synchronization and the reliability of the chip are improved.

CN118656341APending Publication Date: 2024-09-17RENOGY NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850585.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In dual-core chips, during the data synchronization process, due to the inconsistent execution time of the processor core in high-speed interrupts, there is a delay in data result sampling, which affects the working efficiency and reliability of the chip.

Method used

By triggering the interrupt of the second processor core, the data processing operation is performed and the result is assigned to the shared memory area. After the result assignment is completed, the second processor core is used to execute the data read instruction of the first processor core, automatically triggering a new interrupt to complete the data synchronization operation and shorten the interrupt waiting time of the first processor core before starting data reading.

Benefits of technology

It improves the timeliness of data synchronization, reduces the interrupt waiting time before data reading, and enhances the working efficiency and reliability of the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656341A
    Figure CN118656341A
Patent Text Reader

Abstract

The invention provides a data synchronization method, a dual-core chip and electronic equipment, and the data synchronization method comprises the steps: triggering the interruption of a second processor core, the interruption being used for indicating the second processor core to execute a data processing operation and assigning an executed data result to a shared data storage area; under the condition that the data result assignment is completed, utilizing the second processor core to execute a trigger operation corresponding to the data reading instruction of the first processor core; responding to the trigger operation by using the first processor core, and executing a data reading instruction to read a data result from the shared data storage area; after the data result is read, a new interrupt, related to reading completion, of the first processor core is automatically triggered, and the new interrupt is used for indicating the first processor core to execute data synchronization operation corresponding to the data result. According to the technical scheme, the interruption waiting time of the first processor core before starting data reading can be shortened, and therefore the timeliness of data synchronization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip data processing technology, and specifically to a data synchronization method, a dual-core chip, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] In a dual-core chip with a dual-core processor structure, each processor core can be used to independently perform related functions and handle different tasks. However, necessary data exchange is also required between the two processor cores. Especially in dual-core chips used for real-time control, the start and completion stages of data synchronization are extremely strict in terms of time control. Once data synchronization is abnormal, it will seriously weaken the chip's ability to perceive the product, thereby causing unstable factors, resulting in reduced product reliability and other adverse effects.

[0003] At present, most of the key parameter synchronization solutions of dual-core chips are implemented by triggering related tasks in a high-speed interrupt of the dual-core chip to achieve the goal of data synchronization in the task. However, since the tasks executed by the two processor cores in the high-speed interrupt and the task time spent are inconsistent, in order to improve the working efficiency of the dual-core chip, the processor core cannot be kept waiting in the interrupt. Therefore, the processor core is usually configured to detect the flag bit of data transmission completion after entering the high-speed interrupt for the second time, resulting in a delay in data result sampling.

[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention

[0005] In order to solve the problem of delay in data result collection mentioned above, a data synchronization method, a dual-core chip, an electronic device, a computer-readable storage medium, and a computer program product are provided in the embodiments of the present application to shorten the interrupt waiting time of the first processor core before starting data reading processing during the data synchronization process, thereby improving the timeliness of data synchronization.

[0006] To this end, one aspect of the present application provides a data synchronization method, the method comprising:

[0007] triggering an interrupt of the second processor core, the interrupt being used to instruct the second processor core to execute a data processing operation and assign the data result after the execution to a data storage area, the data storage area being a storage area shared by the first processor core and the second processor core;

[0008] When the data result is assigned to the data storage area, the second processor core is used to execute a trigger operation corresponding to the data reading instruction of the first processor core;

[0009] executing the data read instruction in response to the trigger operation using the first processor core, wherein the data read instruction is used to instruct the first processor core to read the data result from the data storage area;

[0010] When the data result is read, a new interrupt related to the reading completion is automatically triggered for the first processor core, and the new interrupt is used to instruct the first processor core to execute a data synchronization operation corresponding to the data result.

[0011] Optionally, in combination with any of the above aspects, in another implementation of this aspect, the method further includes:

[0012] Acquire parameter configuration information corresponding to the data read instruction, the parameter configuration information including at least one of a read start address, a destination address, a data read mode, and an instruction trigger mode;

[0013] The first processor core is initialized and configured using the parameter configuration information.

[0014] Optionally, in combination with any of the above aspects, in another implementation of the present aspect, the data read instruction includes a direct memory access instruction.

[0015] Another aspect of the present application provides a dual-core chip, including:

[0016] a first processor core;

[0017] A second processor core;

[0018] a memory, connected to the first processor core and the second processor core respectively, and used to provide a data storage area shared by the first processor core and the second processor core;

[0019] The second processor core is configured to, when an interrupt is triggered, execute a data processing operation and assign the data result after the execution to the data storage area; and, when the data result is assigned to the data storage area, execute a trigger operation corresponding to the data reading instruction of the first processor core;

[0020] The first processor core is configured to execute the data read instruction in response to the trigger operation to read the data result from the data storage area; and automatically trigger a new interrupt related to the reading completion when the data result is read, and the new interrupt is used to instruct the first processor core to perform a data synchronization operation corresponding to the data result.

[0021] Optionally, in combination with any of the above aspects, in another implementation of the present aspect, the first processor core is further configured to obtain parameter configuration information corresponding to the data reading instruction, the parameter configuration information including at least one of a reading start address, a destination address, a data reading method, and an instruction triggering method; and use the parameter configuration information for initialization configuration.

[0022] Optionally, in combination with any of the above aspects, in another implementation of the present aspect, the data read instruction includes a direct memory access instruction.

[0023] Optionally, in combination with any of the above aspects, in another implementation of the present aspect, the memory includes a static random access memory.

[0024] Another aspect of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the data synchronization method in any of the above aspects when executing the computer program.

[0025] In another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the data synchronization method in any of the above aspects is implemented.

[0026] Another aspect of the present application provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the data synchronization method in any of the above aspects is implemented.

[0027] As described above, the data synchronization method, dual-core chip, and electronic device of the present application, through the above method, enable the second processor core to act as a trigger source, and actively trigger the first processor core to perform a data reading operation after the data result assignment is completed, which can shorten the interrupt waiting time of the first processor core before starting data reading, thereby improving the timeliness of data synchronization.

[0028] The above summary is provided to introduce some concepts in a simplified form, which will be further described in detail in the following detailed description. The above summary is neither intended to identify the key features or essential features of the claimed subject matter nor to be used to help determine the scope of the claimed subject matter. The claimed subject matter of the application is not limited to implementations that solve any or all of the disadvantages pointed out in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can also be obtained based on these drawings without paying creative labor. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application for those skilled in the art by referring to specific embodiments.

[0030] Figure 1 A hardware structure block diagram of a dual-core chip 100 for implementing various embodiments of the present application;

[0031] Figure 2 is a flowchart of a data synchronization method according to a first embodiment;

[0032] Figure 3A is a schematic diagram of a process of triggering an interrupt of a second processor core;

[0033] Figure 3B is a schematic diagram of a process of performing a trigger operation using a second processor core;

[0034] Figure 3C is a schematic diagram of a process of performing a data reading operation using a first processor core;

[0035] Figure 3D The invention is a schematic diagram of a process of performing a data synchronization operation using a first processor core. DETAILED DESCRIPTION

[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0037] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0038] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of..." or "when..." or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate that there are described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" etc. used in this application can be interpreted as inclusive, or mean any one or any combination. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.

[0039] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0040] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] See also Figure 1 , shows a hardware structure block diagram of a dual-core chip 100, including a first processor core 102, a second processor core 104 and a memory 106.

[0043] Among them, the first processor core 102 may include but is not limited to any one of a plurality of processor cores such as a central processing unit core (e.g., a Central Processing Unit Core, referred to as a CPU core), a graphics processor core (e.g., a Graphics Processing Unit Core, referred to as a GPU core), and a microprocessor core (e.g., an Advanced RISC Machines Core, referred to as an ARM core).

[0044] The second processor core 104 may be a processor core of the same type as the first processor core 102 , or may be a processor core of a different type from the first processor core 102 .

[0045] The first processor core 102 and the second processor core 104 can be used to independently process their respective data tasks, and can also perform data transfer synchronization when data synchronization is required, such as when clock parameter synchronization is required, when storage data synchronization is required, and when task data synchronization is required.

[0046] The memory 106 may include, but is not limited to, any one of a variety of memories such as a random access memory, a serial access memory, a cache memory, etc. The memory 106 may be connected to the first processor core 102 and the second processor core 104, respectively. The memory 106 may be used to provide the first processor core 102 and the second processor core 104 with a data storage area shared by the first processor core 102 and the second processor core 104.

[0047] In an exemplary embodiment, Figure 2As shown, a flow chart of a data synchronization method applied in the dual-core chip 100 is provided, including the following steps S202 to S208. Among them:

[0048] Step S202, triggering an interrupt of the second processor core, the interrupt is used to instruct the second processor core to execute a data processing operation and assign the executed data result to a data storage area, the data storage area is a storage area shared by the first processor core and the second processor core.

[0049] Exemplarily, the dual-core chip 100 can trigger the interruption of the second processor core 104 by external triggering or soft triggering. In the interruption of the second processor core 104, the second processor core 104 can be used to perform a preset data processing operation, and assign the data result obtained after the data processing operation is performed to the data storage area shared with the first processor core 104. Among them, the external triggering method can represent a method of realizing the triggering by detecting whether there is an input signal from an external hardware device (such as a keyboard or a mouse, etc.). The soft triggering method can represent a method of realizing the triggering by regularly running a preset software interrupt program.

[0050] Step S204, when the data result is assigned to the data storage area, the second processor core is used to execute a trigger operation corresponding to the data reading instruction of the first processor core.

[0051] Exemplarily, the dual-core chip 100 can use the second processor core 104 to perform a trigger operation corresponding to the data read instruction of the first processor core 102 when the second processor core 104 completes the operation of assigning the data result to the data storage area. Optionally, in some embodiments, the trigger operation can be implemented by sending a data flag bit indicating that the data result assignment is completed to the first processor core 102.

[0052] Step S206 : utilizing the first processor core to execute a data read instruction in response to the trigger operation, where the data read instruction is used to instruct the first processor core to read a data result from the data storage area.

[0053] Exemplarily, the dual-core chip 100 may utilize the first processor core 102 to respond to a trigger operation corresponding to the data read instruction of the first processor core 102 executed by the second processor core 104, and execute the corresponding data read instruction. In the process of the first processor core 102 executing the data read instruction, the first processor core 102 may be used to read the data result assigned by the second processor core 104 in step S202 from the data storage area shared with the second processor core 104.

[0054] Step S208, when the data result is read, a new interrupt related to the reading completion is automatically triggered for the first processor core, and the new interrupt is used to instruct the first processor core to execute a data synchronization operation corresponding to the data result.

[0055] For example, the dual-core chip 100 can automatically trigger a new interrupt related to the completion of the reading of the first processor core 102 after the first processor core 102 completes the data result reading operation. In the new interrupt related to the completion of the reading of the first processor core 102, the first processor core 102 can be used to perform a data synchronization operation corresponding to the data result.

[0056] For example, in some embodiments, when the data result read by the first processor core 102 from the data storage area is the clock parameter of the second processor core 104, the data synchronization operation corresponding to the data result performed by the first processor core 102 may be: using the clock parameter of the second processor core 104 to update the clock module of the first processor core 102 itself, thereby achieving clock parameter synchronization between the first processor core 102 and the second processor core 104.

[0057] In this embodiment, by only triggering the second processor core once, the second processor core enters an interrupt to execute a data processing operation, and assigns the data result obtained after the data processing operation is executed to the data storage area shared with the first processor core. When the data result assignment is completed, the second processor core is used as a trigger source to actively execute a trigger operation corresponding to the data read instruction of the first processor core, so that the first processor core can immediately execute the data read instruction in response to the trigger operation to read the data result assigned by the second processor core from the shared data storage, so that the first processor core can start reading the data result without waiting to enter the interrupt again to detect the flag bit of the data transmission completion, which greatly shortens the interrupt waiting time of the first processor before starting data reading, and improves the timeliness of reading the data result. When the first processor core finishes reading the data result, a new interrupt related to the completion of the reading of the first processor core is automatically triggered, and a data synchronization operation corresponding to the data result is executed in the new interrupt, so that the first processor core can enter the new interrupt in time to complete data synchronization, avoiding affecting the timeliness of the data result in the data synchronization process, thereby improving the timeliness of data synchronization.

[0058] In an exemplary embodiment, the data synchronization method provided in the present application also includes: obtaining parameter configuration information corresponding to the data reading instruction, the parameter configuration information including at least one of a reading start address, a destination address, a data reading method, and an instruction triggering method; and using the parameter configuration information to initialize and configure the first processor core.

[0059] The read start address may be used to indicate a storage address in the data storage area where the first processor core starts to read data.

[0060] The destination address may be used to indicate a storage address for the first processor core to store the read data result.

[0061] The data reading method may include but is not limited to any one or more of the peripheral-memory method (i.e., a data transfer method using the storage address of the peripheral as the reading start address and the storage address of the memory as the destination address), the memory-storage area method (i.e., a data transfer method using the storage address of the memory as the reading start address and the storage address of the memory as the destination address), and the memory-peripheral method (i.e., a data transfer method using the storage address of the memory as the reading start address and the storage address of the peripheral as the destination address).

[0062] Optionally, in some implementations, the dual-core chip 100 may acquire parameter configuration information corresponding to the data read instruction of the first processor core 102 by detecting the input of the external hardware device. Alternatively, in other implementations, the parameter configuration information corresponding to the data read instruction of the first processor core 102 may also be burned into the dual-core chip 100 through a programmable logic device.

[0063] The dual-core chip 100 can use the parameter configuration information to initialize the configuration of the first processor core 102, so that the corresponding data read instruction is compiled based on the parameter configuration information in the first processor core 102. For example, when the parameter configuration information includes a read start address, the first processor core 102 can access the read start address in the parameter configuration information to read the data result of the second processor core 104 during the execution of the above data read instruction. When the parameter configuration information includes a destination address, the first processor core 102 can store the read data result at the destination address.

[0064] In this embodiment, by obtaining parameter configuration information of at least one of the read start address, destination address, data reading method and instruction triggering method corresponding to the data read instruction, the parameter configuration information is used to initialize the configuration of the first processor core, which can clarify the specific implementation method of the data read instruction, and help improve the accuracy and efficiency of the subsequent execution of the data read instruction by the first processor core.

[0065] In an exemplary embodiment, the data read instruction may include a direct memory access instruction.

[0066] Among them, direct memory access instructions, also known as Data Memory Access, abbreviated as DMA instructions, can be used to represent a data transfer instruction that does not require direct control of the central processor for transmission, nor does it have a process of preserving and restoring the scene like an interrupt processing method. It only opens a channel for direct data transmission through hardware input / output (Input / Output) devices and random access memory.

[0067] In this embodiment, by initializing and configuring direct memory access instructions in the first processor core, so that the first processor core subsequently executes direct memory access instructions to read data results from the shared data storage area, the computing load for the first processor core can be reduced and the operating efficiency of the first processor core can be improved.

[0068] Based on the same inventive concept, in other exemplary embodiments of the present application, the first processor core 102 and the second processor core 104 in the dual-core chip 100 may be configured in the following manner:

[0069] See also Figure 3A , shows a schematic diagram of the dual-core chip 100 in the process of triggering an interrupt of the second processor core 104. The second processor core 104 can be configured to enter the interrupt execution data processing operation and assign the executed data result to the data storage area in the memory 106 shared with the first processor core 102 when the interrupt is triggered.

[0070] See also Figure 3B , shows a schematic diagram of the dual-core chip 100 performing a trigger operation using the second processor core 104. The second processor core 104 may also be configured to perform a trigger operation corresponding to the data read instruction of the first processor core 102 when the data result is assigned to the data storage area. Optionally, in some implementations, the trigger operation may be implemented by a hardware triggering method, a software triggering method, or a combination of hardware and software.

[0071] See also Figure 3C , shows a schematic diagram of the above dual-core chip 100 in the process of performing a data read operation using the first processor core 104. The first processor core 102 can be configured to execute a corresponding data read instruction in response to a trigger operation executed by the second processor core 104 corresponding to the data read instruction of the first processor core 102. The data read instruction is used to instruct the first processor core 102 to read the data result assigned by the second processor core 104 from the data storage area shared with the second processor core 104 in the memory 106.

[0072] See also Figure 3D, shows a schematic diagram of the dual-core chip 100 performing a data synchronization operation using the first processor core 104. The first processor core 102 can also be configured to automatically trigger a new interrupt related to the completion of the reading when the data result is read. The new interrupt of the first processor core 102 can be used to instruct the first processor core 102 to perform a data synchronization operation corresponding to the data result.

[0073] Optionally, in some exemplary embodiments, the first processor core 102 may also be configured to obtain parameter configuration information corresponding to a data read instruction, the parameter configuration information including at least one of a read start address, a destination address, a data read mode, and an instruction trigger mode; and use the parameter configuration information for initialization configuration.

[0074] Optionally, in some exemplary embodiments, the data read instruction includes a direct memory access instruction.

[0075] Alternatively, in some exemplary embodiments, the memory 106 may include a static random access memory.

[0076] Optionally, in some exemplary embodiments, the first processor core 102 may also be configured to wake up the second processor core 104 to start operation.

[0077] Optionally, in some exemplary embodiments, the first processor core 102 may also be configured to operate according to a preset regular data processing logic before entering an interrupt.

[0078] Optionally, in some exemplary embodiments, the second processor core 104 may also be configured to run according to a preset regular data processing logic before entering an interrupt.

[0079] Based on the same inventive concept, in an exemplary embodiment, the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the above-mentioned data synchronization method embodiments are implemented.

[0080] In an exemplary embodiment, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned data synchronization method embodiments are implemented.

[0081] In an exemplary embodiment, the present application further provides a computer program product, including a computer program, which implements the steps in the above-mentioned data synchronization method embodiments when executed by a processor.

[0082] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0083] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.

[0084] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0085] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as above, and includes a number of instructions for a terminal device (which can be an electrical device or a network device, etc.) to execute the method of each embodiment of the present application.

[0087] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A data synchronization method, characterized in that: The method comprises: triggering an interrupt of the second processor core, the interrupt being used to instruct the second processor core to execute a data processing operation and assign the data result after the execution to a data storage area, the data storage area being a storage area shared by the first processor core and the second processor core; When the data result is assigned to the data storage area, the second processor core is used to execute a trigger operation corresponding to the data reading instruction of the first processor core; executing the data read instruction in response to the trigger operation using the first processor core, wherein the data read instruction is used to instruct the first processor core to read the data result from the data storage area; When the data result is read, a new interrupt related to the reading completion is automatically triggered for the first processor core, and the new interrupt is used to instruct the first processor core to execute a data synchronization operation corresponding to the data result.

2. The method according to claim 1, characterized in that The method further comprises: Acquire parameter configuration information corresponding to the data read instruction, the parameter configuration information including at least one of a read start address, a destination address, a data read mode, and an instruction trigger mode; The first processor core is initialized and configured using the parameter configuration information.

3. The method according to claim 2, characterized in that The data read instruction includes a direct memory access instruction.

4. A dual-core chip, characterized in that: include: a first processor core; A second processor core; a memory, connected to the first processor core and the second processor core respectively, and used to provide a data storage area shared by the first processor core and the second processor core; The second processor core is configured to, when an interrupt is triggered, execute a data processing operation and assign the data result after the execution to the data storage area; and, when the data result is assigned to the data storage area, execute a trigger operation corresponding to the data reading instruction of the first processor core; The first processor core is configured to execute the data read instruction in response to the trigger operation to read the data result from the data storage area; and automatically trigger a new interrupt related to the reading completion when the data result is read, and the new interrupt is used to instruct the first processor core to perform a data synchronization operation corresponding to the data result.

5. The dual-core chip according to claim 4, characterized in that: The first processor core is further configured to obtain parameter configuration information corresponding to the data read instruction, the parameter configuration information including at least one of a read start address, a destination address, a data read mode, and an instruction trigger mode; and use the parameter configuration information for initialization configuration.

6. The dual-core chip according to claim 5, characterized in that: The data read instruction includes a direct memory access instruction.

7. The dual-core chip according to claim 4, characterized in that: The memory includes static random access memory.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.