Unlock instant, AI-driven research and patent intelligence for your innovation.

Inter-core communication method based on AMP system, terminal and storage medium

A communication method and communication technology, applied in various digital computer combinations, instruments, electrical digital data processing and other directions, can solve the problem of inappropriate communication methods, avoid memory copying, and meet the effect of inter-core communication

Active Publication Date: 2020-07-17
GENEW TECH
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The above two communication methods both have the problem of several memory copies, and both the master core system and the slave core system need to perform memory copies. In systems with high performance requirements, these two communication methods are not applicable.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Inter-core communication method based on AMP system, terminal and storage medium
  • Inter-core communication method based on AMP system, terminal and storage medium
  • Inter-core communication method based on AMP system, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] In the traditional system kernel communication method, the following two methods are mainly used:

[0050] Method 1, the master core and the slave core share memory, that is, allocate a piece of memory to the master core and the slave core, and both the master core and the slave core can access the memory; figure 2 As shown, one of the cores writes the data to be communicated into the memory, and the other core reads the data from the memory.

[0051] The second method is to communicate between cores with the help of network protocols; image 3 As shown, the master core and the slave core communicate with each other as independent network nodes. Both the master core system and the slave core system can create sockets for communication. If one party needs to send a message to the other party, it needs to send a message to the The socket writes data, and the other party can receive the sent message through its own socket.

[0052] The above two communication methods bo...

Embodiment 2

[0113] Such as Figure 8 As shown, this embodiment provides a terminal, which includes a processor 10, and a memory 20 connected to the processor 10, the memory 20 stores an inter-core communication program based on the AMP system, and the AMP-based system When the inter-core communication program is executed by the processor 10, it is used to realize the operation of the method for inter-core communication based on the AMP system as described in Embodiment 1; the details are as described above.

Embodiment 3

[0115] This embodiment provides a storage medium, wherein the storage medium stores an inter-core communication program based on the AMP system, and when the inter-core communication program based on the AMP system is executed by a processor, it is used to implement the The operation of the inter-core communication method based on the AMP system; the details are as described above.

[0116] In summary, the present invention enables the data sent by the physical network port to be received by itself by setting the physical network port of the CPU as a loopback mode; The receiving buffer of the port reads data, realizes the communication between the system cores, avoids the process of memory copy in the inter-core communication, and thus meets the requirements of the inter-core communication of the high-performance system.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an inter-core communication method based on an AMP system, a terminal and a storage medium, and the inter-core communication method based on the AMP system comprises the steps:setting a physical network port of a CPU to be in a loopback mode, and setting a destination of an interrupt signal of the physical network port according to a communication direction; constructing asending message according to a preset message format, and controlling a main core to send the sending message to the physical network port; when the physical network port receives the sending message, controlling a slave core to respond to the interrupt signal; and detecting the sent message, and controlling the slave core to acquire and process the data of the sent message according to a detection result. According to the invention, the physical network port of the CPU is set to be in the loopback mode, and the interrupt signal is used for interrupting the communication between the cores, sothat the memory copying process in the inter-core communication is avoided, and the inter-core communication requirement of a high-performance system is met.

Description

technical field [0001] The invention relates to the field of embedded system applications, in particular to an AMP system-based inter-core communication method, terminal and storage medium. Background technique [0002] In the field of embedded multi-core systems, there are two technologies, one is AMP (Asymmetric Multi-Processing) asymmetric multi-processing technology, and the other is SMP (Symmetric Multi-Processing) symmetrical multi-processing technology; each CPU on the SMP system shares For all system resources, including the serial port, only one console is enough for the SMP system; while each CPU on the AMP system has independent running code, task scheduling is also independent, and access to the entire system resources is also mutually exclusive. , and even the operating system (OS) running on each CPU is completely different. [0003] Two cores on a hardware CPU each run its own operating system and application software; although the two cores run their own ind...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/24G06F15/17G06F15/177
CPCG06F13/24G06F15/17G06F15/177
Inventor 杨超吴闽华孟庆晓秦金昆
Owner GENEW TECH