A multi-processor system and a communication method between processors

By connecting each channel to one processor in a multi-processor system, the problem of increased overhead in the process of judging events during inter-processor communication is solved, and more stable and efficient inter-processor communication is achieved.

CN111742306BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201880089632.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-14
Publication Date
2024-10-18
Estimated Expiration
2038-12-14

AI Technical Summary

Technical Problem

When communicating between processors in existing multi-processor systems, each processor needs to determine whether the event is sent to itself, resulting in increased system overhead and processing delays that are detrimental to system stability.

Method used

A multi-processor system is adopted, in which each channel of the inter-processor communication entity is connected to one processor through an interrupt signal line to ensure that the processor receiving the signal is unique and avoid judging whether the event is sent to its own process.

Benefits of technology

Reduces the overhead of multi-processor systems, making the system more stable and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111742306B_ABST
    Figure CN111742306B_ABST
Patent Text Reader

Abstract

A multi-processor system and an inter-processor communication method, which relate to the field of communication technology, solve the problem in the prior art that each processor needs to judge whether an event is sent to itself during inter-processor communication, which increases the overhead and processing delay of the multi-processor system. The specific scheme is as follows: the multi-processor system includes: at least one inter-processor communication entity, multiple interrupt signal lines, and multiple processors; wherein the inter-processor communication entity includes multiple channels, each channel corresponds to an interrupt signal line, wherein one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and more particularly to a multi-processor system and an inter-processor communication method. Background Art

[0002] With the development of wireless communication technology and the emergence of numerous applications, single-processor systems can no longer meet the needs of wireless communication and application processing. In order to achieve better collaboration between processors, multiple processors need to communicate and transmit messages.

[0003] Figure 1 For an existing multi-processor system, such as Figure 1 As shown, the multi-processor system includes three processors, namely processor 1, processor 2 and processor 3. The three processors can use inter-processor communication entity 1 and inter-processor communication entity 2 for inter-processor communication. Each inter-processor communication entity includes two channels, and each channel of each inter-processor communication entity is connected to all processors. The sending processor 1 can select inter-processor communication entity 1 and channel 1 of inter-processor communication entity 1 to send messages or signals. Processors 2 and 3 will receive the message or signal sent by channel 1 of the inter-processor communication entity 1. After receiving the message or signal, processors 2 and 3 first convert the corresponding event according to the message or signal, and then determine whether the event is an event sent to themselves. If it is determined that it is an event sent to themselves, the event is processed; if it is determined that it is not an event sent to themselves, no processing is performed.

[0004] However, in this communication method, each channel of the inter-processor communication entity will output signals to all processors in the multi-processor system. Therefore, after each processor receives the signal, it needs to first determine whether these events are sent to itself, which increases the overhead and processing delay of the multi-processor system and is not conducive to system stability. Summary of the invention

[0005] The embodiments of the present application provide a multi-processor system and an inter-processor communication method, which can reduce the overhead of the multi-processor system and make the multi-processor system more stable and more efficient.

[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0007] The first aspect of the embodiment of the present application provides a multi-processor system, which includes at least one inter-processor communication entity, multiple interrupt signal lines, and multiple processors; wherein the inter-processor communication entity includes multiple channels, each channel corresponds to an interrupt signal line, wherein one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor. Based on this solution, since each channel of the inter-processor communication entity is connected to a processor through an interrupt signal line, a channel only outputs a signal to one processor, so the processor that receives the output signal of each channel is unique, so after the processor receives the signal, it is no longer necessary to determine whether the event is sent to itself, thereby reducing the multi-processor system overhead, making the multi-processor system more stable and more efficient.

[0008] In conjunction with the first aspect, in a possible implementation, an input end of a channel of the inter-processor communication entity is connected to a data bus for receiving a signal sent by a processor. Based on this solution, since the input end of the channel of the inter-processor communication entity is connected to a data bus of a multi-processor system, each channel of the inter-processor communication entity can receive a signal sent by any processor in the multi-processor system.

[0009] In combination with the first aspect and the above possible implementation, in another possible implementation, the processor is connected to one end of one or more interrupt signal lines, and the other end of each of the one or more interrupt signal lines is respectively connected to an output end of a channel of the inter-processor communication entity. Based on this solution, a processor can receive output signals of multiple channels through multiple interrupt signal lines, and one channel only outputs signals to one processor.

[0010] In combination with the first aspect and the above possible implementation manner, in another possible implementation manner, the multi-processor system includes N inter-processor communication entities and N processors, N is an integer greater than or equal to 2, and different processors in the N processors correspond to different inter-processor communication entities when sending signals. Based on this solution, there is a one-to-one mapping relationship between the processor and the inter-processor communication entity, and the sender processor can be determined according to the inter-processor communication entity.

[0011] In combination with the first aspect and the above-mentioned possible implementation methods, in another possible implementation method, the inter-processor communication entity is an inter-processor communication IPC device. Based on this solution, the inter-processor communication entity in the multi-processor system is an IPC device for inter-processor communication.

[0012] In combination with the first aspect and the above possible implementations, in another possible implementation, the above multi-processor system is integrated into a baseband processing subsystem chip of a wireless communication device. Based on this solution, the above multi-processor system can be integrated into a baseband processing subsystem chip (baseband chip or modem) of a wireless communication device.

[0013] In combination with the first aspect and the above possible implementations, in another possible implementation, the above multi-processor system is integrated into a system-on-chip (SoC) chip of a wireless communication device. Based on this solution, the above multi-processor system can be integrated into a SoC chip.

[0014] The second aspect of the embodiment of the present application provides an inter-processor communication method, which is applied to a multi-processor system, and the multi-processor system includes at least one inter-processor communication entity, multiple interrupt signal lines, and multiple processors, wherein the inter-processor communication entity includes multiple channels, each channel corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor; the above method includes: the sender processor generates a first signal; the sender processor determines the first channel according to the receiver processor of the first signal, the first channel is the channel number corresponding to the signal received by the receiver processor, and the output end of the first channel is used to output the signal only to the receiver processor; the sender processor configures the first channel; the first channel outputs a communication signal to the receiver processor; the receiver processor receives the communication signal and obtains the event sent by the sender processor. Based on this scheme, since one channel corresponds to an interrupt signal line, and the output end of one channel only outputs a signal to one receiver processor, the receiver processor that receives the output signal is unique, so the receiver processor does not need to judge whether the event is sent to itself, thereby reducing the overhead of the multi-processor system, making the multi-processor system more stable and more efficient.

[0015] In combination with the second aspect, in a possible implementation, the sending processor determines the first channel according to the receiving processor of the first signal, including: the sending processor queries a preconfigured mapping table according to the receiving processor of the first signal to determine the first channel; the preconfigured mapping table includes processor information of each processor and a channel number corresponding to the signal received by each processor. Based on this solution, the channel number corresponding to the signal received by the receiving processor can be determined by querying the mapping table.

[0016] In combination with the second aspect and the above-mentioned possible implementation, in another possible implementation, if the above-mentioned multi-processor system includes multiple inter-processor communication entities, before the above-mentioned sending processor determines the first channel according to the receiving processor of the above-mentioned first signal, the above-mentioned method also includes: the above-mentioned sending processor determines the first inter-processor communication entity; the first inter-processor communication entity is the inter-processor communication entity number corresponding to the signal sent by the above-mentioned sending processor; accordingly, the above-mentioned sending processor configures the above-mentioned first channel including: the above-mentioned sending processor configures the first channel of the above-mentioned first inter-processor communication entity; the above-mentioned first channel outputs a communication signal to the receiving processor including: the first channel of the above-mentioned first inter-processor communication entity outputs a communication signal to the above-mentioned receiving processor. Based on this scheme, when the multi-processor system includes multiple inter-processor communication entities, the inter-processor communication entity corresponding to the message sent by the sending processor can be determined first, and then the first channel of the first communication entity can be configured.

[0017] In combination with the second aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned sending processor determines the first inter-processor communication entity, including: the above-mentioned sending processor determines the above-mentioned first inter-processor communication entity according to a preconfigured mapping table; the preconfigured mapping table specifically includes the processor information of each processor, the inter-processor communication entity number corresponding to the signal sent by each processor, and the corresponding relationship between the channel number corresponding to the signal received by each processor when each inter-processor communication entity sends a signal, wherein the inter-processor communication entity numbers corresponding to the signals sent by different processors are different. Based on this scheme, the inter-processor communication entity number corresponding to the message sent by the sending processor can be determined according to the mapping correspondence.

[0018] In combination with the second aspect and the above-mentioned possible implementation, in another possible implementation, after the above-mentioned receiving processor receives the above-mentioned communication signal and obtains the event sent by the above-mentioned sending processor, the above-mentioned method further includes: the receiving processor searches the above-mentioned preconfigured mapping table according to the above-mentioned first inter-processor communication entity to determine the above-mentioned sending processor; the receiving processor processes the event sent by the sending processor according to the sending processor. Based on this scheme, the receiving processor can search the preconfigured mapping table according to the first inter-processor communication entity, and then determine the sending processor, and process the event sent by the sending processor. Since different inter-processor communication entities corresponding to the signals sent by different sending processors are different, the processing efficiency can be further improved during inter-processor communication.

[0019] In combination with the second aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned preconfigured mapping table also includes the storage unit number corresponding to each processor sending a message or the storage unit number corresponding to each processor receiving a message, and the storage unit numbers corresponding to different processors sending messages or the storage unit numbers corresponding to different processors receiving messages are different. Before the above-mentioned sender processor configures the above-mentioned first channel, the above-mentioned method also includes: the above-mentioned sender processor determines the storage unit number corresponding to the message sent by the above-mentioned sender processor or the storage unit number corresponding to the message received by the above-mentioned receiver processor according to the mapping table; the above-mentioned sender processor writes the first message into the storage unit indicated by the storage unit number corresponding to the message sent by the above-mentioned sender processor, or writes into the storage unit indicated by the storage unit number corresponding to the message received by the above-mentioned receiver processor; the first message includes the event information sent by the above-mentioned sender processor. Based on this scheme, the sender processor can obtain the storage unit number corresponding to the message sent or received by querying the mapping table, and store the first message in the storage unit, so that the processor can process more events and improve the processing power of the processor.

[0020] In combination with the second aspect and the above-mentioned possible implementation, in another possible implementation, before the above-mentioned receiving processor processes the event sent by the sending processor according to the above-mentioned sending processor, the above-mentioned method also includes: the above-mentioned receiving processor determines the storage unit number corresponding to the message sent by the sending processor or the storage unit number corresponding to the message received by the above-mentioned receiving processor according to the above-mentioned preconfigured mapping table; the above-mentioned receiving processor reads the first message in the storage unit indicated by the storage unit number corresponding to the message sent by the above-mentioned sending processor, or reads the first message in the storage unit indicated by the storage unit number corresponding to the message received by the above-mentioned receiving processor; the above-mentioned receiving processor obtains all events sent by the above-mentioned sending processor according to the event sent by the above-mentioned sending processor and the above-mentioned first message; accordingly, the above-mentioned receiving processor processes the event sent by the above-mentioned sending processor according to the above-mentioned sending processor, including: the above-mentioned receiving processor processes all events sent by the above-mentioned sending processor according to the above-mentioned sending processor. Based on this scheme, the receiving processor can query the mapping table to determine the storage unit corresponding to the sending message or the receiving message, and read the first message stored in the storage unit, so as to obtain all event information and process it.

[0021] According to a third aspect of an embodiment of the present application, a computer storage medium is provided, in which a computer program code is stored. When the computer program code runs on a processor, the processor executes the inter-processor communication method described in any possible implementation of the second aspect.

[0022] According to a fourth aspect of the embodiments of the present application, a computer program product is provided, which stores computer software instructions executed by the processor, and the computer software instructions include a program for executing the solutions described in the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of the structure of a multi-processor system provided by the prior art;

[0024] Figure 2 A schematic diagram of the structure of a multi-processor system provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of another multi-processor system provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of another multi-processor system provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of another multi-processor system provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of the hardware structure of an inter-processor communication entity provided in an embodiment of the present application;

[0029] Figure 7 A flowchart of an inter-processor communication method provided in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of the structure of another multi-processor system provided in an embodiment of the present application;

[0031] Fig. 9 A flowchart of another inter-processor communication method provided in an embodiment of the present application;

[0032] Fig.10 A flowchart of another inter-processor communication method provided in an embodiment of the present application;

[0033] Fig.11 A schematic diagram of the structure of another multi-processor system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to solve the problem in the background technology that when multiple processors communicate with each other, each processor needs to determine whether an event is sent to itself, which increases the overhead and processing delay of the multi-processor system, an embodiment of the present application provides a multi-processor system that can reduce the overhead of the multi-processor system when communicating between processors, making the multi-processor system more stable and more efficient.

[0035] The embodiment of the present application provides a multi-processor system, which includes at least one inter-processor communication entity, multiple interrupt signal lines, and multiple processors; wherein the inter-processor communication entity includes multiple channels, each channel corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor. It can be understood that each channel of the inter-processor communication entity corresponds to an interrupt signal line, and the output end of a channel is only connected to one processor through one interrupt signal line, so one channel only outputs a signal to one processor.

[0036] For example, Figure 2 A multi-processor system is shown, which includes an inter-processor communication entity, two interrupt signal lines and two processors, the inter-processor communication entity includes two channels, namely channel 1 and channel 2, there are two interrupt signal lines, namely interrupt signal line 1 and interrupt signal line 2, wherein channel 1 corresponds to interrupt signal line 1, channel 2 corresponds to interrupt signal line 2, one end of the interrupt signal line 1 is connected to the output end of channel 1, and the other end of the interrupt signal line 1 is connected to processor 1, one end of the interrupt signal line 2 is connected to channel 2, and the other end of the interrupt signal line 2 is connected to processor 2, since the output end of channel 1 is only connected to processor 1, and the output end of channel 2 is only connected to processor 2, channel 1 only outputs communication signals to processor 1, channel 2 only outputs communication signals to processor 2, and therefore one channel outputs signals to only one processor.

[0037] Exemplarily, the input end of the channel of the inter-processor communication entity in the multi-processor system can be connected to the data bus of the multi-processor system to receive the signal sent by the processor. It can be understood that the inter-processor communication entity is a hardware device, for example, the inter-processor communication entity can be an inter-processor communication IPC device.

[0038] Exemplarily, the processors in the multi-processor system may be connected to one end of one or more interrupt signal lines, and the other end of each interrupt signal line in an interrupt signal line is respectively connected to an output end of a channel of the inter-processor communication entity. Figure 3As shown, processor 2 is connected to one end of two interrupt signal lines (interrupt signal line 2 and interrupt signal line 3, respectively), the other end of interrupt signal line 2 is connected to channel 2, and the other end of interrupt signal line 3 is connected to channel 3. The inter-processor communication entity includes three channels, processor 1 is connected to the output end of channel 1 through interrupt signal line 1, processor 2 is connected to the output end of channel 2 through interrupt signal line 2, and is connected to the output end of channel 3 through interrupt signal line 3. The processor 1 in the multi-processor system can receive the output signal of channel 1 through interrupt signal line 1, and the processor 2 can receive the output signal of channel 2 through interrupt signal line 2, and can also receive the output signal of channel 3 through interrupt signal line 3, that is, one processor can receive the output signals of multiple channels through multiple interrupt signal lines, and each channel outputs signals to only one processor. Exemplarily, the processor in the embodiment of the present application can be a baseband processor.

[0039] It should be noted that the difference between the multi-processor system in the embodiment of the present application and the prior art is that in the prior art, each channel of the inter-processor communication entity is connected to all processors and outputs signals to all processors, while each channel of the inter-processor communication entity in the embodiment of the present application corresponds to an interrupt signal line, and the output end of a channel is only connected to one processor, so a channel only outputs a signal to one processor. Therefore, the processor that receives the output signal of each channel is unique. After the processor receives the signal, there is no need to determine whether the event is sent to itself, thereby reducing system overhead.

[0040] Exemplarily, the multi-processor system in the embodiment of the present application may include N inter-processor communication entities and N processors, where N is an integer greater than or equal to 2, and different processors in the N processors correspond to different inter-processor communication entities when sending signals, that is, each processor is mapped one-to-one to the inter-processor communication entity. Figure 4 A multi-processor system is shown, the multi-processor system includes processor 1, processor 2, inter-processor communication entity 1, inter-processor communication entity 2, and interrupt signal lines 1 to 4. If the inter-processor communication entity corresponding to processor 1 when sending a signal is inter-processor communication entity 1, then the processor communication entity corresponding to processor 2 when sending a signal is inter-processor communication entity 2; if the inter-processor communication entity corresponding to processor 1 when sending a signal is inter-processor communication entity 2, then the processor communication entity corresponding to processor 2 when sending a signal is inter-processor communication entity 1. Obviously, there is a one-to-one mapping between processors and inter-processor communication entities in a multi-processor system, so that the receiving processor can determine the sending processor according to the inter-processor communication entity number.

[0041] It can be understood that in the above-mentioned multi-processor system, an inter-processor communication entity may include multiple channels, the number of channels included in different inter-processor communication entities may be the same or different, and the number of channels of each inter-processor communication entity may be greater than or equal to the number of all processors, so that each processor can be connected to at least one channel of each inter-processor communication entity.

[0042] Understandably, Figures 2 to 4 The description is merely an exemplary description for illustrating the characteristics of the multi-processor system in the embodiment of the present application. The embodiment of the present application does not limit the specific structure of the multi-processor system. As long as the multi-processor system meets the above characteristics (each channel of the inter-processor communication entity corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor), it is within the protection scope of the embodiment of the present application.

[0043] It should be noted that if Figure 5 As shown, each channel of the inter-processor communication entity usually includes a signal generation register and a signal clearing register, and these two registers can be 32 bits.

[0044] For example, if the signal generation register is 32 bits, 1 bit can represent an event, and configuring 1 bit to 1 can represent sending this event. 32 bits can represent 32 different events, that is, each time an inter-processor communication signal is sent, 32 events can be included. The number of bits in the signal clear register is the same as the number of bits in the signal generation register. When the receiving processor has processed all events, the signal clear register can be configured to the value of the signal generation register. At this time, the signal clear register configuration and the value of the signal generation register will become 0. For example, when processor 1 needs to communicate with processor 2, processor 1 wants to send event 1 and event 2 to processor 2. The sending processor 1 can configure the signal generation register of channel 2 of the inter-processor communication entity 1 to 0x00000003. At this time, the inter-processor communication entity 1 will generate a communication signal on channel 2 and send it to the receiving processor 2 through interrupt signal line 2. After receiving the communication signal, the receiving processor 2 first reads the signal generation register of channel 2, and the read value is 0x00000003. In this way, processor 2 knows that event 1 and event 2 have occurred, thereby achieving the purpose of inter-processor communication.

[0045] It should be noted that, in the embodiment of the present application, the events represented by the same bits in the signal generating registers of different channels may be the same or different, and the events represented by the bits of the signal generating register of each channel may be pre-agreed.

[0046] Exemplarily, if a processor receives a signal corresponding to multiple channels, the events represented by the bits of the signal generation registers of different channels in the multiple channels may be different. For example, if the receiving processor can use two channels to receive signals, the signal generation register contained in each channel can represent 32 different events, and the signal generation registers contained in these two channels can represent 64 different events. The specific event represented by each bit can be pre-agreed, and the embodiments of the present application do not limit this.

[0047] Exemplarily, the inter-processor communication entity in the embodiment of the present application may be an inter-processor communication (IPC) device. Figure 6 FIG. 1 is a schematic diagram of a hardware structure of the IPC device, which is used for inter-processor communication. Figure 6 As shown, the IPC device may include an input port, a signal generating register, a signal clearing register, a logic circuit module, and an output port. The input port is used to receive a signal sent by the processor, and the output port is used to output a communication signal to the processor; when the processors communicate with each other, the input port of the IPC device receives the signal sent by the sending processor, configures the value of the signal generating register, and outputs the communication signal through the logic circuit module. The communication signal is output to the processor through an interrupt signal line connected to the output port. It should be noted that Figure 6 In the description, only the IPC device including two channels is used as an example for explanation, and the embodiment of the present application does not limit the specific number of channels included in the IPC device.

[0048] Exemplarily, the multi-processor system in the embodiments of the present application can be integrated into a baseband processing subsystem chip (also called a baseband chip or modem) of a wireless communication device, or can be integrated into a system on chip (SoC) chip of the wireless communication device, which can be a terminal device.

[0049] An embodiment of the present application provides an inter-processor communication method, which is applied to the above-mentioned multi-processor system, and the method includes: the input end of the first channel of the inter-processor communication entity receives a signal sent by a sending processor, and the output end of the first channel outputs a signal only to one receiving processor through a first interrupt signal line, wherein the first channel corresponds to the first interrupt signal line, one end of the first interrupt signal line is connected to the output end of the first channel, and the other end of the first interrupt signal line is connected to the receiving processor.

[0050] Exemplary, combined Figure 2As shown, taking the example of processor 1 sending an inter-processor communication event to processor 2, processor 1 is the sending processor, and processor 2 is the receiving processor. Processor 1 can send a signal to channel 2 of the inter-processor communication entity. After channel 2 receives the signal sent by processor 1, it outputs the communication signal to processor 2 through interrupt signal line 2. Since the output end of channel 2 is only connected to processor 2, channel 2 only outputs communication signals to processor 2. Therefore, the signal received by processor 2 must be sent to itself, and there is no need to judge whether the event is sent to itself as in the prior art, which reduces system overhead and improves processing efficiency.

[0051] The inter-processor communication method provided in the embodiment of the present application receives a signal sent by a sending processor through the input end of the first channel of the inter-processor communication entity, and the output end of the first channel outputs a signal to only one receiving processor through a first interrupt signal line, so that the processor corresponding to the signal output by a channel of the inter-processor communication entity is unique. Therefore, after receiving the signal, the processor no longer needs to determine whether the event is sent to itself, thereby reducing system overhead.

[0052] The present application embodiment also provides another inter-processor communication method, such as Figure 7 As shown, the method is applied to the above-mentioned multi-processor system, the multi-processor system includes at least one inter-processor communication entity, multiple interrupt signal lines, and multiple processors, wherein the inter-processor communication entity includes multiple channels, each channel corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of a channel, and the other end of the interrupt signal line is connected to a processor; this embodiment is described by taking the multi-processor system including one inter-processor communication entity as an example. When the multi-processor system includes one inter-processor communication entity, the method includes steps S701-S707.

[0053] S701. A processor at a sending party generates a first signal.

[0054] Exemplarily, when a sending processor sends a processor event to a receiving processor, the sending processor may generate a first signal.

[0055] S702: The processor at the sending side determines a first channel according to the processor at the receiving side of the first signal.

[0056] The first channel is a channel number corresponding to the signal received by the receiving processor.

[0057] Exemplarily, if there is one receiving processor, the output end of the first channel corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of the first channel, and the other end of the interrupt signal line is connected to the receiving processor, and the first channel is only used to output signals to the receiving processor; if there are two receiving processors, there are also two first channels, each first channel corresponds to an interrupt signal line, and the output end of each channel is only used to output signals to one receiving processor, and so on.

[0058] Exemplarily, the above-mentioned sending processor determines the first channel according to the receiving processor of the first signal, which may include: the sending processor queries a preconfigured mapping table to determine the first channel according to the receiving processor of the first signal; the preconfigured mapping table includes processor information of each processor, and the channel number corresponding to the signal received by each processor.

[0059] In one implementation, the processor of the sending party may query a preconfigured mapping table according to the processor information of the receiving party processor to obtain the first channel corresponding to the signal received by the receiving party processor. Exemplarily, the processor of the sending party may query a preconfigured mapping table according to the processor number of the receiving party to obtain the channel number corresponding to the signal received by the receiving party processor.

[0060] For example, Figure 2 As shown, the multi-processor system includes an inter-processor communication entity, processor 1, processor 2 and two interrupt signal lines. The inter-processor communication entity includes two channels, namely channel 1 and channel 2. Channel 1 corresponds to interrupt signal line 1, and its output end is connected to processor 1 through interrupt signal line 1. Channel 2 corresponds to interrupt signal line 2, and its output end is connected to processor 2 through interrupt signal line 2.

[0061] For example, Figure 2 The mapping table corresponding to the multi-processor system shown can be configured as shown in Table 1 below.

[0062] Table 1

[0063] Processor information The channel number corresponding to the received signal Processor 1 1 Processor 2 2

[0064] Exemplarily, as shown in Table 1, when the sending processor needs to send an inter-processor communication event to the receiving processor, the mapping table can be first queried according to the processor information of the receiving processor. Here, the sending processor is processor 1 and the receiving processor is processor 2. The sending processor 1 queries Table 1 according to the processor information of the receiving processor to determine that the corresponding channel when the receiving processor 2 receives the signal is channel 2.

[0065] In another implementation, if the receiving processor receives signals corresponding to multiple channels, the sending processor may also query a preconfigured mapping table according to the processor information of the receiving processor to obtain all channel numbers corresponding to the signals received by the receiving processor.

[0066] For example, Figure 3 A schematic diagram of a multi-processor system is shown, and the mapping table corresponding to the multi-processor system can be configured as shown in Table 2 below.

[0067] Table 2

[0068] Processor information The channel number corresponding to the received signal Processor 1 1 Processor 2 2,3

[0069] Exemplarily, in combination with Table 2, the sender processor is processor 1 and the receiver processor is processor 2. The sender processor 1 queries Table 2 according to the information that the receiver is the processor, and determines that the corresponding channels when the receiver processor 2 receives the signal are channel 2 and channel 3, that is, the receiver processor 2 can receive the signal through channel 2 or through channel 3.

[0070] In another implementation, if there are multiple receiving processors, the sending processor may query a preconfigured mapping table based on the processor information of all receiving processors to obtain the channel number corresponding to the signal received by each receiving processor.

[0071] For example, Figure 8 A schematic diagram of a multi-processor system is shown, and the mapping table corresponding to the multi-processor system can be configured as shown in Table 3 below.

[0072] Table 3

[0073] Processor information The channel number corresponding to the received signal Processor 1 1 Processor 2 2,3 Processor 3 4

[0074] Exemplarily, in combination with Table 3, the sender processor is processor 1, and the receiver processors are processors 2 and 3. Processor 1 queries Table 3 according to the receiver processors being processors 2 and 3, and determines that the corresponding channels when the receiver processor 2 receives the signal are channel 2 and channel 3, and the corresponding channel when the receiver processor 3 receives the signal is channel 4.

[0075] It should be noted that the embodiments of the present application do not limit the number of processors included in the multi-processor system, the number of inter-processor communication entities, and the number of channels included in each inter-processor communication entity. The above-mentioned scenarios are only for illustrative purposes of the technical solution of the present application and do not limit the application scenarios of the present application.

[0076] It can be understood that the above-mentioned pre-configured mapping table is related to the hardware connection relationship in the multi-processor system. In actual application, the corresponding mapping table can be configured according to the hardware structure of the multi-processor system.

[0077] S703: The sending processor configures the first channel.

[0078] Exemplarily, the transmitting processor configuring the first channel may include: configuring a signal generating register of the first channel. For example, the signal generating register of the first channel may be configured to 0x00000001, indicating that event 1 is sent.

[0079] In one implementation, if the receiving processor receives a signal through one channel, the sending processor may configure the receiving processor to receive the first channel corresponding to the signal.

[0080] Exemplary, combined Figure 2 As shown in Table 1, the sending processor 1 can configure the channel 2 of the inter-processor communication entity. If the event sent is event 1, the sending processor 1 can configure the channel 2 of the inter-processor communication entity to 0x00000001.

[0081] In another implementation, if there are multiple channels corresponding to the signal received by the receiving processor, the above step S703 may include: the sending processor further determines the first channel to be configured in step S703 based on the channel number corresponding to the signal received by the receiving processor and the event sent by the sending processor, the event corresponding to the first channel includes the event sent by the sending processor, and the first channel can be one or more of the channel numbers corresponding to the signal received by the receiving processor obtained by querying the mapping table.

[0082] Exemplary, combined Figure 3 As shown in Table 2, the receiving processor 2 has two channel numbers corresponding to the received signal, namely channel 2 and channel 3, that is, the receiving processor can receive the signal through channel 2 or channel 3. Since the signal generation register contained in a channel is 32 bits, and 32 bits can represent 32 different events, then the channels 2 and 3 corresponding to the received signal of the receiving processor can represent 64 different events, and the 64 events can be pre-agreed by the sending processor 1 and the receiving processor 2. The sending processor can further determine the first channel to be configured based on the sent event and the 64 events represented by the pre-agreed channels 2 and 3. The first channel can be one of channels 2 and 3, or both channels 2 and 3. If the event sent by the sending processor is event 3, and event 3 is an event in channel 3, the sending processor 1 can configure channel 3 of the inter-processor communication entity and configure channel 3 to 0x00000003.

[0083] In another implementation, if there are multiple receiving processors, the sending processor configures a first channel, and the first channel includes a channel number corresponding to a signal received by each receiving processor.

[0084] Combination Figure 8 As shown in Table 3, if the event sent by the sending processor to the receiving processor 2 is event 3, and event 3 is an event in channel 3, then the channel corresponding to the signal received by the receiving processor 2 is channel 3; the channel corresponding to the signal received by the receiving processor 3 is channel 4. The sending processor 1 can configure channel 3 and channel 4. For example, the sending processor 1 can configure channel 3 to 0x00000003 and channel 4 to 0x00000001.

[0085] It should be noted that when configuring the first channel in step S703, the sender processor can be identified in the value of the signal generating register, so that after the receiving processor receives the communication signal and obtains the event information, the sender processor can be determined according to the identification.

[0086] S704: The first channel outputs a communication signal to a receiving processor.

[0087] Exemplarily, after the sending processor configures the first channel, the first channel may generate a communication signal, and the communication signal is output to the receiving processor through an interrupt signal line connected to the first channel.

[0088] S705: The receiving processor receives the communication signal and obtains the event sent by the sending processor.

[0089] The communication signal is transmitted to the receiving processor via an interrupt signal line connected to the first channel. Figure 2 As shown in Table 1, after the sending processor 1 configures the channel 2, a communication signal is generated on the channel 2, and the communication signal is transmitted to the receiving processor 2 through the interrupt signal line 2.

[0090] The above-mentioned receiving processor obtains the event sent by the sending processor, which may include: the receiving processor reads the value of the signal generating register of the first channel of the inter-processor communication entity. Since in this embodiment, one bit of the signal generating register in each channel represents a specific event, different bits of the signal generating register of each channel represent different events. Therefore, the value of the signal generating register in the first channel can be read to obtain the event sent by the sending processor.

[0091] S706: The receiving processor determines the sending processor.

[0092] Exemplarily, in one implementation, if the multi-processor system includes only one inter-processor communication entity, the receiving processor can determine the sending processor by reading the identifier in the value of the signal generating register; in another implementation, if the multi-processor system includes multiple inter-processor communication entities, since different processors send signals corresponding to different inter-processor communication entities, the receiving processor can determine the sending processor by the inter-processor communication entity number. The embodiments of the present application do not limit the specific method for the receiving processor to determine the sending processor, which is only an exemplary description.

[0093] S707: The receiving processor processes the event sent by the sending processor according to the sending processor.

[0094] Exemplarily, in this implementation, the receiving processor can obtain the complete event sent by the sending processor by reading the bits of the signal generating register of the first channel, so the receiving processor can process the sent event according to the sending processor determined in step S706.

[0095] It can be understood that since a channel in the embodiment of the present application only outputs signals to one processor, the signal received by the receiving processor is sent to itself. Therefore, the receiving processor does not need to determine whether the event is sent to itself as in the prior art, thereby reducing the overhead of the multi-processor system, making the multi-processor system more stable and more efficient.

[0096] The inter-processor communication method provided in the embodiment of the present application generates a first signal through a sending processor, and determines a first channel according to the receiving processor of the first signal, wherein the first channel is the channel number corresponding to the signal received by the receiving processor, and the output end of the first channel is used to output the signal only to the receiving processor; the sending processor configures the first channel; and the first channel outputs the communication signal to the receiving processor. The technical solution in the embodiment of the present application, since the output end of a channel only outputs a signal to a receiving processor, the receiving processor does not need to determine whether the event is sent to itself after receiving the signal, and the processing is simple, making the system more stable and the processing efficiency higher.

[0097] The present application also provides a method for communication between processors. Fig. 9 As shown, different from the previous embodiment, this embodiment is explained by taking a multi-processor system including multiple inter-processor communication entities as an example. When the multi-processor system includes multiple inter-processor communication entities, in addition to the above steps S701-S707, the communication method may also include step S901 before the above step S703.

[0098] S901: A sending processor determines a first inter-processor communication entity.

[0099] The first inter-processor communication entity is the inter-processor communication entity number corresponding to the signal sent by the sending processor.

[0100] Exemplarily, the sending processor determining the first inter-processor communication entity may include: the sending processor determining the inter-processor communication entity number corresponding to the signal sent by the sending processor according to a preconfigured mapping table. The preconfigured mapping table specifically includes the processor information of each processor, the inter-processor communication entity number corresponding to the signal sent by each processor, and the corresponding channel number corresponding to the signal received by each processor when each inter-processor communication entity sends a signal, wherein the inter-processor communication entity numbers corresponding to the signals sent by different processors are different.

[0101] Exemplarily, the processor of the sending party may query a preconfigured mapping table according to the processor information of the processor of the sending party, and obtain the inter-processor communication entity number corresponding to the signal sent by the processor of the sending party.

[0102] For example, Figure 4 A multi-processor system is shown, which includes a processor 1, a processor 2, an inter-processor communication entity 1, an inter-processor communication entity 2, and four interrupt signal lines. The inter-processor communication entity 1 and the inter-processor communication entity 2 each include two channels.

[0103] For example, Figure 4 The mapping table corresponding to the multi-processor system shown can be configured as shown in Table 4 below.

[0104] Table 4

[0105]

[0106] Exemplarily, in combination with Table 4, the sender processor is processor 1. Processor 1 queries Table 4 to determine that the inter-processor communication entity corresponding to the signal sent by the sender processor is inter-processor communication entity 1.

[0107] Correspondingly, the first channel is the first channel of the first inter-processor communication entity. In the above step S703, the sending processor configures the first channel, which may be: the sending processor configures the first channel of the first inter-processor communication entity; in step S704, the first channel outputs a communication signal to the receiving processor, which may be: the first channel of the first inter-processor communication entity outputs a communication signal to the receiving processor.

[0108] It should be noted that the embodiment of the present application does not limit the order of step S702 and step S901. By querying the mapping table, the first inter-processor communication entity can be determined first and then the first channel can be determined, or the first channel can be determined first and then the first inter-processor communication entity can be determined. Step S702 and step S901 can also be the same step, and the first inter-processor communication entity and the first channel can be determined by a single table query. The embodiment of the present application does not limit this.

[0109] The inter-processor communication method provided in the embodiment of the present application generates a first signal through a sending processor, and determines a first channel and a first inter-processor communication entity according to the receiving processor of the first signal; the sending processor configures the first channel of the first inter-processor communication entity; the first channel of the first inter-processor communication entity outputs a communication signal to the receiving processor. The technical solution in the embodiment of the present application, since the output end of a channel only outputs a signal to a receiving processor, the receiving processor does not need to determine whether the event is sent to itself after receiving the signal, and the processing is simple, making the system more stable and the processing efficiency higher; and since different processors send signals corresponding to different inter-processor communication entities, the receiving processor can determine the sending processor according to the inter-processor communication entity.

[0110] The present application embodiment provides another inter-processor communication method, such as Fig.10 As shown, the method is applied to the above-mentioned multi-processor system, and the multi-processor system also includes multiple storage units, the number of storage units is the same as the number of processors, and different processors send messages or receive messages corresponding to different storage units. In addition to including the above-mentioned method steps, the inter-processor communication method may also include steps S1001-S1005 before the above-mentioned step S703.

[0111] S1001. A processor at a sending party determines a first storage unit according to a preconfigured mapping table.

[0112] The first storage unit is a storage unit number corresponding to a message sent by a processor of a sending party or a storage unit number corresponding to a message received by a processor of a receiving party. The first storage unit is used to store messages related to an event sent by a processor of a sending party.

[0113] Exemplarily, in this embodiment, the mapping table includes not only the processor information of each processor in the multi-processor system, the inter-processor communication entity number corresponding to the signal sent by each processor, and the corresponding channel number corresponding to the signal received by each processor when each inter-processor communication entity sends a signal, but also the storage unit number corresponding to the message sent by each processor or the storage unit number corresponding to the message received by each processor. It should be noted that in this embodiment, the number of storage units is the same as the number of processors, and different processors send messages or receive messages corresponding to different storage units, that is, there is a one-to-one mapping between storage units and processors.

[0114] In one implementation, if the mapping table includes the storage unit number corresponding to the message sent by the sender processor, the above step S1001 may include: querying the mapping table according to the processor information of the sender processor to determine the storage unit corresponding to the message sent by the sender processor.

[0115] For example, Fig.11 As shown, the storage unit corresponding to the message sent by processor 1 is any one of storage unit 1 and storage unit 2, and the storage unit corresponding to the message sent by processor 2 is another storage unit other than the storage unit corresponding to the message sent by processor 1.

[0116] For example, Fig.11 The mapping table corresponding to the multi-processor system shown can be configured as shown in Table 5 below.

[0117] Table 5

[0118]

[0119] Exemplarily, in combination with the mapping table shown in Table 5, if the sender processor is processor 1 and the receiver processor is processor 2, the sender processor 1 can query the above Table 5 according to its processor information (processor number) to determine that the storage unit corresponding to the message sent by the sender processor 1 is still storage unit 1.

[0120] In another implementation, if the mapping table includes the storage unit number corresponding to the message received by the receiving processor, the above step S1001 may include: querying the mapping table according to the processor information of the receiving processor to determine the storage unit corresponding to the message sent by the receiving processor.

[0121] For example, Fig.11 As shown, the storage unit corresponding to the message received by the processor may be any one of storage unit 1 and storage unit 2, and the storage unit corresponding to the message received by processor 2 may be another storage unit other than the storage unit corresponding to the message received by processor 1.

[0122] For example, Fig.11The mapping table corresponding to the multi-processor system shown can be configured as shown in Table 6 below.

[0123] Table 6

[0124]

[0125] Exemplarily, in combination with the mapping table shown in Table 6, if the sending processor is processor 1 and the receiving processor is processor 2, the receiving processor 2 can query the above Table 6 according to its processor information (processor number) to determine that the storage unit corresponding to the message received by the receiving processor 2 is also storage unit 2.

[0126] It can be understood that in actual applications, any one of the above two implementation methods can be selected to determine the first storage unit, and the embodiments of the present application do not limit this.

[0127] It should be noted that, unlike the above embodiment, the bit of the signal generating register in each channel in this embodiment represents an event, but reading the bit does not necessarily accurately know all the event information sent by the sending processor, so it is necessary to combine the messages stored in the storage unit to know all the events sent by the sending processor. The advantage of this solution is that, compared with the above embodiment of directly reading the value of the signal generating register of the first channel to obtain the event information sent by the sending processor, since one channel can only represent 32 different events, the events processed are limited, and the embodiment of the present application can process more events by reading the messages stored in the storage unit, and the processing capability is stronger.

[0128] S1002. The sending processor writes the first message into the first storage unit.

[0129] The first message includes event information sent by the sending processor. For example, if the event corresponding to the value of the signal generating register of the first channel is a subtraction operation, the first message can be used to indicate the values ​​of the subtrahend and the minuend in the subtraction operation, and the sending processor stores the first message in a storage unit so that the receiving processor reads the message stored in the storage unit and obtains the detailed event information sent by the sending processor. The embodiments of the present application do not limit the specific content contained in the first message, which is only an exemplary description.

[0130] Exemplary, combined Fig.11 As shown in Table 5, the sender processor 1 can write the specific event information it sends into the storage unit 1 corresponding to the message sent by the sender processor 1, or, in combination with Fig.11 As shown in Table 6, the sending processor 1 can write the specific event information it sends into the storage unit 2 corresponding to the message received by the receiving processor 2.

[0131] S1003. The receiving-side processor determines the first storage unit according to the mapping table.

[0132] In one implementation, if the first storage unit is a storage unit number corresponding to the message sent by the sending processor, the above step S1003 may include: the receiving processor determines, according to the mapping table, the storage unit number corresponding to the message sent by the sending processor.

[0133] It can be understood that the receiving processor may first determine the sending processor, and then determine the storage unit number corresponding to the message sent by the sending processor.

[0134] Exemplarily, the receiving processor can query the mapping table based on the processor information of the sending processor to determine the storage unit number corresponding to the message sent by the sending processor. For example, as shown in Table 5, the receiving processor 2 can query the mapping table based on the processor information of the sending processor (processor 1) to determine that the storage unit number corresponding to the message sent by the sending processor 1 is 1.

[0135] In another implementation, if the first storage unit is a storage unit number corresponding to the message received by the receiving processor, the above step S1003 may include: the receiving processor determines, according to a mapping table, the storage unit number corresponding to the message received by the receiving processor.

[0136] Exemplarily, the receiving processor can query the mapping table based on the processor information of the receiving processor to determine the storage unit number corresponding to the message received by the receiving processor. For example, as shown in Table 6, the receiving processor 2 can query the mapping table based on the processor information of the receiving processor (processor 2) to determine that the storage unit number corresponding to the message received by the receiving processor 2 is 2.

[0137] S1004: The receiving processor reads the first message in the first storage unit.

[0138] In one implementation, if the first storage unit is a storage unit number corresponding to the message sent by the sending processor, the above step S1004 may include: the receiving processor reads the first message in the storage unit indicated by the storage unit number corresponding to the message sent by the sending processor.

[0139] Exemplary, combined Fig.11 As shown in Table 5, the receiving processor 2 can read the first message in the storage unit 1 indicated by the storage unit number 1 corresponding to the message sent by the sending processor 1, and obtain the specific event information sent by the sending processor.

[0140] In another implementation, if the first storage unit is a storage unit number corresponding to the message received by the receiving processor, the above step S1004 may include: the receiving processor reads the first message in the storage unit indicated by the storage unit number corresponding to the message received by the receiving processor.

[0141] Exemplary, combined Fig.11 As shown in Table 6, the receiving processor 2 can read the first message in the storage unit 2 indicated by the storage unit number 2 corresponding to the message received by the receiving processor 2 to obtain the event information sent by the sending processor.

[0142] S1005: The receiving processor obtains all events sent by the sending processor according to the events sent by the sending processor and the first message.

[0143] Exemplarily, since the bit of the signal generating register in each channel in this embodiment represents an event, but reading the bit cannot exactly know all the event information sent by the sending processor, it is necessary to combine the first message stored in the storage unit to know all the events sent by the sending processor.

[0144] Correspondingly, in the above step S707, the receiving processor processes the event sent by the sending processor according to the sending processor, which may include: the receiving processor processes all events sent by the sending processor according to the sending processor.

[0145] It can be understood that the above-mentioned sender processor and receiver processor can be any processor in the multi-processor system provided in the embodiment of the present application. In one application scenario, the sender processor and the receiver processor can be the same processor; in other application scenarios, the sender processor and the receiver processor can be different processors, wherein the sender processor can be any processor in the multi-processor system, and the receiver processor can be one or more processors in the multi-processor system except the sender processor.

[0146] The inter-processor communication method provided in the embodiment of the present application generates a first signal through a sending processor, and determines a first channel and a first inter-processor communication entity according to the receiving processor of the first signal; and determines a first storage unit according to a preconfigured mapping table; writes a first message into the first storage unit; the sending processor configures the first channel of the first inter-processor communication entity; the first channel of the first inter-processor communication entity outputs a communication signal to the receiving processor; the receiving processor receives the communication signal and obtains the event sent by the sending processor; the receiving processor determines the sending processor; and determines the first storage unit according to the mapping table, and reads the first message in the first storage unit; and processes all events sent by the sending processor according to the sending processor. The technical solution in the embodiment of the present application, since the output end of a channel only outputs a signal to a receiving processor, the receiving processor does not need to judge whether the event is sent to itself after receiving the signal, and the processing is simple, making the system more stable and the processing efficiency higher; and by reading the message stored in the storage unit, the processor can process more events, improving the processing capacity of the processor.

[0147] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of method steps. It is understandable that in order to realize the above functions, the computer includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of a combination of hardware and computer software. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0148] The steps of the method or algorithm described in conjunction with the disclosure of the present application may be implemented in hardware or by executing software instructions by a processor. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in an ASIC. In addition, the ASIC may be located in a core network interface device. Of course, the processor and the storage medium may also exist in a core network interface device as discrete components.

[0149] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium may be any available medium that a general or special-purpose computer can access.

[0150] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.

Claims

1. A multiprocessor system, characterized in that: include: N inter-processor communication entities, a plurality of interrupt signal lines, and N processors, where N is an integer greater than or equal to 2; Each of the N inter-processor communication entities includes a plurality of channels, each channel corresponds to an interrupt signal line, wherein one end of the interrupt signal line is connected to an output end of the corresponding channel, and the other end of the interrupt signal line is connected to a processor; Each channel of the plurality of channels is used to output a signal to a processor connected to the interrupt signal line through an interrupt signal line corresponding to the channel; Among them, different processors among the N processors correspond to different inter-processor communication entities when sending signals; when communicating between processors, the sending processor is used to query a preconfigured mapping table according to the receiving processor to determine a first channel, where the first channel is a channel number corresponding to the signal received by the receiving processor, and the output end of the first channel is used to output signals only to the receiving processor; the preconfigured mapping table includes processor information of each processor and a channel number corresponding to the signal received by each processor.

2. The multiprocessor system according to claim 1, wherein: The input end of the channel of the inter-processor communication entity is connected to the data bus and is used to receive the signal sent by the processor.

3. The multiprocessor system according to claim 1, wherein: The processor is connected to one end of one or more interrupt signal lines, and the other end of each of the one or more interrupt signal lines is respectively connected to an output end of a channel of the inter-processor communication entity.

4. The multiprocessor system according to claim 1, wherein: The inter-processor communication entity is an inter-processor communication IPC device.

5. The multiprocessor system according to any one of claims 1 to 4, characterized in that: The multi-processor system is integrated into a baseband processing subsystem chip of a wireless communication device.

6. The multiprocessor system according to any one of claims 1 to 4, characterized in that: The multi-processor system is integrated into a system-on-chip (SoC) chip of a wireless communication device.

7. A method for communication between processors, characterized in that: The inter-processor communication method is applied to a multi-processor system, the multi-processor system includes N inter-processor communication entities, multiple interrupt signal lines, and N processors, N is an integer greater than or equal to 2, wherein each of the N inter-processor communication entities includes multiple channels, each channel corresponds to an interrupt signal line, one end of the interrupt signal line is connected to the output end of the corresponding channel, the other end of the interrupt signal line is connected to a processor, each of the multiple channels is used to output a signal to the processor connected to the interrupt signal line through the interrupt signal line corresponding to the channel, and different processors among the N processors correspond to different inter-processor communication entities when sending signals; the method includes: The sender processor generates a first signal; The sending party processor determines a first channel according to the receiving party processor of the first signal, where the first channel is a channel number corresponding to the signal received by the receiving party processor, and an output end of the first channel is used to output the signal only to the receiving party processor; The sender processor configures the first channel; The first channel outputs a communication signal to the receiving processor; The receiving processor receives the communication signal and obtains the event sent by the sending processor; Among them, the sending processor determines the first channel according to the receiving processor of the first signal, including: the sending processor queries a preconfigured mapping table according to the receiving processor of the first signal to determine the first channel; the preconfigured mapping table includes processor information of each processor, and the channel number corresponding to the signal received by each processor.

8. The inter-processor communication method according to claim 7, characterized in that: If the multi-processor system includes a plurality of inter-processor communication entities, before the sending processor determines the first channel according to the receiving processor of the first signal, the method further includes: The sending processor determines a first inter-processor communication entity; the first inter-processor communication entity is an inter-processor communication entity number corresponding to the signal sent by the sending processor; Correspondingly, the sending processor configuring the first channel includes: the sending processor configuring the first channel of the first inter-processor communication entity; the first channel outputting a communication signal to the receiving processor includes: the first channel of the first inter-processor communication entity outputting the communication signal to the receiving processor.

9. The inter-processor communication method according to claim 8, characterized in that: The sending processor determines a first inter-processor communication entity, including: The sending processor determines the first inter-processor communication entity according to a preconfigured mapping table; the preconfigured mapping table specifically includes the processor information of each processor, the inter-processor communication entity number corresponding to the signal sent by each processor, and the corresponding channel number of each processor receiving the signal when each inter-processor communication entity sends a signal, wherein the inter-processor communication entity numbers corresponding to the signals sent by different processors are different.

10. The inter-processor communication method according to claim 8 or 9, characterized in that: After the receiving processor receives the communication signal and obtains the event sent by the sending processor, the method further includes: The receiving processor searches the preconfigured mapping table according to the first inter-processor communication entity to determine the sending processor; The receiving processor processes the event sent by the sending processor according to the sending processor.

11. The inter-processor communication method according to claim 7, characterized in that: The preconfigured mapping table also includes a storage unit number corresponding to each processor sending a message or a storage unit number corresponding to each processor receiving a message, and the storage unit numbers corresponding to different processors sending messages or the storage unit numbers corresponding to different processors receiving messages are different. Before the sending processor configures the first channel, the method further includes: The sending processor determines, according to the mapping table, a storage unit number corresponding to the message sent by the sending processor or a storage unit number corresponding to the message received by the receiving processor; The sending processor writes the first message into the storage unit indicated by the storage unit number corresponding to the message sent by the sending processor, or writes it into the storage unit indicated by the storage unit number corresponding to the message received by the receiving processor; the first message includes event information sent by the sending processor.

12. The inter-processor communication method according to claim 11, characterized in that: Before the receiving processor processes the event sent by the sending processor according to the sending processor, the method further includes: The receiving processor determines, according to the preconfigured mapping table, a storage unit number corresponding to the message sent by the sending processor or a storage unit number corresponding to the message received by the receiving processor; The receiving processor reads a first message in a storage unit indicated by a storage unit number corresponding to a message sent by the sending processor, or reads a first message in a storage unit indicated by a storage unit number corresponding to a message received by the receiving processor; The receiving processor obtains all events sent by the sending processor according to the events sent by the sending processor and the first message; Correspondingly, the receiving processor processes the event sent by the sending processor according to the sending processor, including: the receiving processor processes all events sent by the sending processor according to the sending processor.

Citation Information

Patent Citations

  • Method and system for information interaction and resource distribution of multi-processor core

    CN102063337A

  • Inter-processor communication method and system on chip

    CN103324599A