Message processing device, method, processor, chip and electronic device

The message processing device addresses delays in message transmission by using a storage module, timing unit, and transmission module to send messages based on pre-configured information, ensuring rapid and efficient communication in complex systems.

CN115842719BActive Publication Date: 2024-12-03伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111076559.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-12-03
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

Existing message processing devices face challenges in quickly sending messages to another device due to unpredictable time delays and processor overheads, particularly in complex communication systems and vehicle control systems.

Method used

A message processing device with a storage module to store configuration information, a timing unit to generate trigger signals, and a transmission module to send messages based on this information, allowing for precise and rapid message transmission by utilizing a linked list of configuration descriptors and a control unit to manage message processing activities.

Benefits of technology

Enables low-latency and efficient message processing by reducing software delays and processor overheads, supporting multiple messages to be processed at precise times with minimal delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842719B_ABST
    Figure CN115842719B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a message processing device, method, processor, chip and electronic device, wherein the message processing device includes: a storage module, configured to store one or more configuration information; a timing unit, configured to obtain first configuration information and generate a trigger signal based on the first configuration information; wherein the first configuration information is one of the one or more configuration information, and the first configuration information includes first sub-configuration information; a transmission module, configured to send a message based on the first sub-configuration information and in response to the trigger signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to but are not limited to electronic technology, and in particular, to a message processing device, method, processor, chip and electronic device. Background Art

[0002] With the development of communication technology, communication equipment supports more and more services, and data interaction within communication equipment becomes more and more frequent.

[0003] However, how to design a message processing device so that the message processing device can quickly send a message to another message processing device is a problem that needs to be solved urgently in the art. Summary of the invention

[0004] Embodiments of the present application provide a message processing device, method, processor, chip, and electronic device.

[0005] In a first aspect, an embodiment of the present application provides a message processing device, including:

[0006] A storage module configured to store one or more configuration information;

[0007] A timing unit, configured to obtain first configuration information and generate a trigger signal based on the first configuration information; wherein the first configuration information is one of the one or more configuration information, and the first configuration information includes first sub-configuration information;

[0008] A transmission module is configured to send a message based on the first sub-configuration information and in response to the trigger signal.

[0009] In a second aspect, an embodiment of the present application provides a message processing method, the method comprising:

[0010] Acquire first configuration information;

[0011] Generate a trigger signal based on the first configuration information; wherein the first configuration information is one of one or more configuration information, and the first configuration information includes first sub-configuration information;

[0012] A message is sent based on the first sub-configuration information and in response to the trigger signal.

[0013] In a third aspect, an embodiment of the present application provides a processor, including:

[0014] The message processing device mentioned above; or,

[0015] The transmission part is configured to execute the above-mentioned message processing method.

[0016] In a fourth aspect, an embodiment of the present application provides a chip, including:

[0017] The message processing device mentioned above; or,

[0018] A processor as described above; or

[0019] The transmission part is configured to execute the above-mentioned message processing method.

[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, including:

[0021] The message processing device mentioned above; or,

[0022] A processor as described above; or

[0023] The above chip; or

[0024] The transmission part is configured to execute the above-mentioned message processing method.

[0025] In an embodiment of the present application, since the storage module in the message processing device can store one or more configuration information, the transmission module sends the message based on the first sub-configuration information and in response to the trigger signal generated by the timing unit, and the first configuration information is included in the one or more configuration information, therefore, the transmission module can send the message based on the first configuration information configured in advance, so that the transmission module can quickly send the message to another message processing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0027] Figure 1 A schematic diagram of the structure of a timing module provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the structure of a message module provided in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of the structure of a message sender and a message receiver provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of the structure of a message processing device provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the structure of another message processing device provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure of another message processing device provided in an embodiment of the present application;

[0033] Figure 7 A flowchart of a message processing method provided in an embodiment of the present application;

[0034] Figure 8 A flowchart of another message processing method provided in an embodiment of the present application;

[0035] Fig. 9 A schematic diagram of the execution flow of a message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The technical solution of the present application will be described in detail below through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0037] It should be noted that in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the technical solutions recorded in the embodiments of the present application can be arbitrarily combined without conflict. The "multiple" in the embodiments of the present application can refer to at least two.

[0038] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0039] In complex communication systems, industrial control systems, and vehicle control systems, it is very important for a message processing device to send a message to another message processing device within a very short time.

[0040] A message processing device may include a processing module, a timing module and a message module. The processing module may initiate a series of configurations to the timing module and / or the message module, so that the timing module and the message module connected to the processing module can perform corresponding message processing (e.g., send messages) based on the configurations.

[0041] Figure 1 A schematic diagram of the structure of a timing module provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the timing module 10 may include: a trigger controller 11 , a prescaler 12 , a counter 13 , an increment register 14 and a comparator 15 .

[0042] The trigger controller 11 can be configured to obtain the clock signal of the system clock when it is turned on, and output the clock signal to the prescaler 12. The prescaler 12 can be configured to reduce the frequency of the clock signal by a multiple to obtain a clock signal with a reduced frequency. The counter 13 is configured to count the number of clock signals with reduced frequency to obtain the value of the counter 13. The self-increment register 14 is configured to place the value of the comparator 15. The comparator 15 obtains the comparator 15 value and the counter 13 value in the self-increment register 14, and outputs an interrupt signal when the comparator 15 value and the counter 13 value are the same. After outputting the interrupt signal, the counter 13 will count again until the comparator 15 value and the counter 13 value are the same again, and the interrupt signal is input.

[0043] Outputting the interrupt signal may be outputting the interrupt signal to the processing module. In some implementations, the processing module may configure the next round of timing parameters when receiving the interrupt signal.

[0044] Table 1 shows a register in a timing module provided in an embodiment of the present application, as shown in Figure 1:

[0045] Table 1

[0046] Offset Address type Reset value describe 0x00 R 0x00000000 Auto-increment register 0x04 R 0x00000000 Counter Register 0x08 R 0x00000000 Control Register 0x0C R 0x00000000 Interrupt Status Register 0x10 R 0x00000000 Comparator Registers

[0047] RW in the embodiment of the present application may represent Read and Write.

[0048] The offset address in the embodiment of the present application is configured to determine the location of each register or each information.

[0049] In some embodiments, after receiving the interrupt signal, the processing module may enable or configure parameters of at least one of the self-increment register 14, the counter 13 register, the control register, the interrupt status register, and the comparator 15 register. For example, the processing module may configure the comparator 15 value placed in the self-increment register 14. The processing module may configure the numerical value stored in the counter 13 register so that the counter 13 starts counting with the numerical value stored in the counter 13 register. The processing module may configure the relevant control parameters in the control register so that the trigger controller 11 can perform corresponding reset, enable, or count based on the control parameters. The processing module may configure the interrupt status parameters in the interrupt status register. The processing module may configure the comparison parameters of the comparator 15 register.

[0050] In some embodiments, the timing module 10 may further include a pre-scaling register, and the processing module may enable or configure parameters of the pre-scaling register. For example, the processing module may configure the multiple in the pre-scaling register so that the pre-scaling device 12 can reduce the frequency of the clock signal by the multiple in the pre-scaling register.

[0051] It should be noted that the embodiment of the present application only gives an example of a timing module 10. In other embodiments, there may be other structures of the timing module 10, and the processing module may configure the relevant registers in the structure of other timing modules 10. The embodiment of the present application does not limit the structure of the timing module 10, as long as the timing module 10 can output an interrupt signal. In the implementation process, within a certain period of time, the interrupt signal output by the timing module 10 may be periodic or non-periodic.

[0052] Figure 2 A structural diagram of a message module provided in an embodiment of the present application, such as Figure 2 As shown, the message module 20 may include: a shared memory 21, a read / write register 22, an interrupt controller 23, and a direct memory access (DMA) controller 24. The read / write register 22 may include a read register and / or a write register.

[0053] In some embodiments, the message sender and the message receiver may each have a message module 20 .

[0054] For the message sender, the message may be stored in the shared memory 21 of the message sender. When the processing module of the message sender receives the interrupt signal sent by the timing module, the storage address of the message and the length of the message may be configured to the read-write register 22 of the message sender, and then the read-write register 22 may be configured to the DMA controller 24. Then, the processor starts the DMA controller 24, and the DMA controller 24 may obtain the storage address of the message and the length of the message from the read-write register 22, obtain the message from the shared memory 21 based on the storage address of the message and the length of the message, and send the message or the payload of the message to the shared memory 21 of the message receiver. In addition, the DMA controller 24 may place the message length and the write address of the message in the read-write register 22 of the message receiver. Afterwards, the read-write register 22 of the message receiver triggers the interrupt controller 23 to send an interrupt signal to the processing module of the receiver, so that the processing module of the message receiver can read the message from the shared memory 21 of the message receiver based on the message length and the write address of the message.

[0055] The above describes an implementation method of using the DMA controller 24 to send a message from a message sender to a message receiver. In some embodiments, the processing module of the message sender can determine the length of the message to be sent to the message receiver. When the message length is greater than a threshold, the processing module of the message sender can configure the DMA controller 24 to enable the DMA controller 24 to send the message; when the message length is less than or equal to the threshold, the processing module of the message sender can directly send the message to the processing module of the message receiver.

[0056] Figure 3 A structural diagram of a message sender and a message receiver provided in an embodiment of the present application, such as Figure 3 As shown, when the message module of the message sender sends a message to the message module of the message receiver, the message can be sent through the bus between the system modules. In some embodiments, the message sender can be processor A, and the message receiver can be processor B.

[0057] The DMA controller may read the message from the shared memory of the message sender, the DMA controller may put the message into the shared memory of the message receiver, and the processing module of the message receiver may read the message from the shared memory of the message receiver.

[0058] In some embodiments, the DMA controller or processing module of the message sender can read the value in the read and / or write pointer register of the message receiver before placing the message in the shared memory of the message receiver to determine the length of the message that can be stored in the shared memory of the message receiver. Afterwards, the DMA controller or processing module of the message sender can place the message in the shared memory of the message receiver. After the message is stored, the write pointer register of the message receiver will write a new address, and the interrupt notification will be triggered. The processing module of the message receiver can respond to the interrupt notification and read the message from the shared memory of the message receiver based on the address in the read and / or write pointer register. The processing module of the message receiver can also determine the length of the message that can be read from the shared memory of the message receiver based on the address in the read and / or write pointer register.

[0059] In some embodiments, the shared memory may include a circular buffer unit, a read pointer register, and a write pointer register. When the DMA controller writes a message to the shared memory of the message receiver, it can operate the write pointer. When the processing module of the message receiver reads the message, it can operate the read pointer. When the address corresponding to the write pointer is the same as the address corresponding to the read pointer, it indicates that the message in the shared memory of the receiver has been read by the processing module of the receiver.

[0060] In the above-mentioned message transmission method, the processing module generally executes multiple sequences of configuration steps. Through these configuration steps, the timing module first generates an interrupt signal configured to activate the processing, and then the activated message module can respond to the interrupt signal, read the configuration information from the read-write register of the message sender (the configuration information here includes the storage address of the message and the length of the message), and read the message from the shared memory of the message sender.

[0061] The interrupt signal sent by the timing module can be generated at a precise time. The time when the interrupt is serviced and the software routine for the interrupt running on the processor may be delayed due to at least one of the following: context switching, higher priority interrupt service, interrupt suspension, and same priority interrupt loop. The message configuration step after responding to the interrupt signal may be run on a thread in the real-time operating system (RTOS). The time when the DMA controller or processing module performs the message operation may be delayed due to at least one of the following: thread context switching, higher priority thread service, thread suspension, and same priority thread loop.

[0062] In some embodiments, the DMA controller can carry the message information to the shared memory of the message receiver according to the message configuration. However, the time to complete the message transmission is unpredictable due to the influence of various message lengths and RTOS thread scheduling. In some embodiments, when multiple RTOS threads operate the message device at the same time, mutual exclusion protection is introduced to solve the software access conflict. The concurrent message processing timing can be delayed by thread context switching. In some embodiments, if the processing module is configured with DMA to carry the message information, then the DMA transmission completion interrupt configured to trigger the post-processing of the message buffer can also be regarded as another reason for delaying the message transmission. For example, the interrupt signal issued after the DMA transmission is completed may be delayed in response.

[0063] Therefore, in the above-mentioned message sending scheme, the timed message processing implemented by software needs to bear unpredictable time delays and unexpected processor overhead.

[0064] To facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The above related technologies can be combined arbitrarily with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application. The embodiments of the present application include at least part of the following contents.

[0065] Figure 4 A schematic diagram of a message processing device provided in an embodiment of the present application is shown in FIG. Figure 4As shown, the message processing device 40 may include: a storage module 41, a timing unit 42 and a transmission module 43;

[0066] A storage module 41, configured to store one or more configuration information;

[0067] A timing unit 42, configured to obtain first configuration information and generate a trigger signal based on the first configuration information; wherein the first configuration information is one of the one or more configuration information, and the first configuration information includes first sub-configuration information;

[0068] The transmission module 43 is configured to send a message based on the first sub-configuration information and in response to the trigger signal.

[0069] In some embodiments, the configuration information may be referred to as a descriptor, a configurator, or a Configuration Descriptor.

[0070] In some embodiments, the storage module 41 may be a separate hardware in the message processing device 40. The storage module 41 may be configured only to store one or more configuration information, or may be configured not only to store one or more configuration information but also to store other information. In other embodiments, the storage module 41 may be a part of a shared memory in the message processing device 40. For example, a part of the shared memory is configured to store messages, and a part is configured to store the storage module 41.

[0071] In the case where one configuration information is stored in the storage module 41, the transmission module 43 will send the message stored in the shared memory based on the one configuration information. For example, in the case where the message length of the message to be transmitted is less than or equal to the message length that can be transmitted at one time, the transmission module 43 can send the message to be transmitted once based on the one configuration information. For another example, in the case where the message length of the message to be transmitted is greater than the message length that can be transmitted at one time, the transmission module 43 can reuse the one configuration information to transmit multiple messages.

[0072] In the case where multiple configuration information is stored in the storage module 41, the transmission module 43 will send the message stored in the shared memory based on the multiple configuration information. For example, the transmission module 43 can use part or all of the multiple configuration information in sequence to send multiple messages. For another example, after the transmission module 43 uses multiple configuration information and has not yet completed sending the message to be transmitted, the transmission module 43 will use the multiple configuration information again in sequence to send the remaining messages.

[0073] In the embodiment of the present application, one configuration information will correspond to the transmission module 43 to send a message, that is, each configuration information is configured to configure a message to be sent. For example, the transmission module 43 sends message 1 based on configuration information 1, sends message 2 based on configuration message 2, sends message 3 based on configuration message 3, and so on.

[0074] In the case where the storage module 41 includes multiple configuration information, the multiple configuration information can be stored in a linked list, which can be a unidirectional linked list, a bidirectional linked list or a circular linked list, so that the transmission module 43 can sequentially obtain the multiple configuration information.

[0075] The storage module 41 or shared memory in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus DRAM (DR RAM). It should be noted that the storage module 41 or shared memory described herein is intended to include, but is not limited to, these and any other suitable types of memory. In other embodiments, the storage module may include a register bank.

[0076] The above-mentioned storage module 41 or shared memory can be exemplary but not restrictive. For example, the storage module 41 or shared memory in the embodiment of the present application can also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM), etc. That is to say, the storage module 41 or shared memory in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.

[0077] In some embodiments, each of the one or more configuration information (including the first configuration information) may include configuration information for the timing unit 42 and / or configuration information for the transmission module 43. The configuration information for the timing unit 42 and the configuration information for the transmission module 43 may partially overlap or not overlap at all.

[0078] In some embodiments, the timing unit 42 may obtain all of the first configuration information (for example, the first configuration information only includes configuration information for the timing unit 42), and generate a trigger signal based on all of the first configuration information. In other embodiments, the timing unit 42 may obtain part of the first configuration information (for example, the first configuration information includes configuration information for the timing unit 42 and configuration information for the transmission module 43), and the part of the first configuration information is the configuration information for the timing unit 42, so as to generate a trigger signal based on the part of the first configuration information.

[0079] The first sub-configuration information may be part of the information or all of the information in the first configuration information. For example, when the first sub-configuration information is part of the information in the first configuration information, the first configuration information includes configuration information for the timing unit 42 and configuration information for the transmission module 43, and the first sub-configuration information is configuration information for the transmission module 43. When the first sub-configuration information is all of the information in the first configuration information, the first configuration information only includes configuration information for the timing unit 42.

[0080] The timing unit 42 may have the same structure and function as the above-mentioned timing module 10. The trigger signal sent by the timing unit 42 to the transmission module 43 may be an interrupt signal.

[0081] In some implementations, each configuration information stored in the storage module 41 may be used to configure the timing unit 42 and the transmission module 43 .

[0082] For example, the configuration information for the timing unit 42 is placed in the register unit 442, and each configuration information may include at least one of the following: configuration information for configuring an auto-increment register, configuration information for configuring a counter register, configuration information for configuring a control register, configuration information for configuring an interrupt status register, configuration information for configuring a comparator register, and the like.

[0083] In some implementations, the timing unit 42 may operate based on configuration information about the timing unit 42 so that an interrupt signal is sent to the transmission module 43 when the counter value obtained by the comparator is the same as the comparator value.

[0084] When the transmission module 43 receives the interrupt signal sent by the timing unit 42 , a message may be sent based on the configuration information of the transmission module 43 placed by the register unit 442 .

[0085] For example, the configuration information of the transmission module 43 is placed in the register unit 442, and each configuration information may include at least one of the following: payload length information (ie, message length information of the message), source address information, target address information, message activity identification information, etc.

[0086] In this way, the timing unit 42 can send a trigger signal to the transmission module 43 based on the configuration information of the timing unit 42 in the first configuration information, and the transmission module 43 can send a message based on the configuration information of the transmission module 43 in the first configuration information, so that the processing module can configure the first configuration information in advance, and then the timing unit 42 and the transmission module 43 can work based on the first configuration information without causing processing delays.

[0087] In an embodiment of the present application, since the storage module in the message processing device can store one or more configuration information, the transmission module sends the message based on the first sub-configuration information and in response to the trigger signal generated by the timing unit, and the first configuration information is included in the one or more configuration information, therefore, the transmission module can send the message based on the first configuration information configured in advance, so that the transmission module can quickly send the message to another message processing device.

[0088] Figure 5 A structural diagram of another message processing device provided in an embodiment of the present application, such as Figure 5 As shown, the message processing device 40 may include: a storage module 41 , a timing unit 42 and a transmission module 43 .

[0089] The message processing device 40 may further include: a control module 44. The control module 44 includes a control unit 441 and a register unit 442;

[0090] The control module 44 is configured to read the first configuration information from the storage module 41 and store the first configuration information into the register unit 442;

[0091] The transmission module 43 is configured to read the first configuration information from the register unit 442 .

[0092] The control module 44 reads the first configuration information, which may be all or part of the first configuration information. The transmission module 43 reads the first configuration information, which may be all or part of the first configuration information.

[0093] In some embodiments, after the transmission module 43 completes sending the i-th message, i is an integer greater than or equal to 1, the control module 44 can read the configuration information corresponding to the i+1-th message from the storage module 41. For example, the first configuration information can be the configuration information corresponding to the i-th message or the i+1-th message. In other embodiments, the control module 44 can read the first message from the storage module 41 when it is started.

[0094] In some embodiments, after the transmission module 43 completes sending the i-th message, it may send a trigger signal to the control module 44, so that the control module 44 can respond to the trigger signal and read the i+1-th message from the storage module 41. In other embodiments, after the transmission module 43 completes sending the i-th message, it may send a signal (such as an interrupt signal) to the buffer management module, so that the buffer management module can release the i-th message in the buffer based on the signal, and after the release is completed, it may send a trigger signal to the control module 44, so that the control module 44 can respond to the trigger signal and read the i+1-th message from the storage module 41.

[0095] The trigger signal in the embodiment of the present application may be an interrupt signal.

[0096] In some implementations, the register unit 442 may include a register group. Each configuration information may include multiple configurations, and different registers in the register group may be configured to store different configurations. In some implementations, the register unit 442 may store one configuration information at a time.

[0097] Figure 5The embodiment shown is that the control unit 441 reads one configuration information at a time and places the read configuration information in the register unit 442 so that the transmission module 43 and the timing unit 42 can read it. In other embodiments, the transmission module 43 can directly read a certain configuration information from the storage module 41 without relying on the control unit 441 and the register unit 442.

[0098] The embodiment of the present application provides a low-latency message processing device 40 that supports processing multiple messages at precise times. In an embodiment of the present application, a configuration descriptor stored in a storage module 41 is provided, and the storage module 41 can be configured to simulate a register. The configuration descriptor can be content that can be placed in a register. Multiple configuration descriptors are linked together by a processing module, which is equivalent to a configuration descriptor being a value in a group of registers (corresponding to the above-mentioned register group). In an embodiment of the present application, the register is simulated by storing the value of the register on the storage module 41 to serve as an interface between the processing module and the control unit 441.

[0099] When the transmission module 43 reads a configuration descriptor, the transmission module 43 may send the message of the sending end to the receiving end based on the configuration in the configuration descriptor, for example, the configuration descriptor may include a source address and a destination address.

[0100] After the transmission module 43 completes sending the message of the sender, it sends a signal to the control unit 441 so that the control unit 441 reads the next configuration descriptor.

[0101] The register group in the embodiment of the present application can be used to store relevant setting information. In some embodiments, one configuration information can be stored in the register group at a time. The register group is organized by operating multiple configuration information linked, and the register is simulated by the configuration information stored in the storage module, so as to reduce the software delay caused by the timed interrupt service, message post-processing and message buffer management. In addition, the processing module can operate the linked list to support multiple timed message processing activities by reconfiguring, deleting or inserting at least one of the operations.

[0102] In an embodiment of the present application, the control unit 441 can transmit data between the register group and the storage module 41, wherein the storage module 41 can be configured to store at least one configuration data corresponding to multiple message processing activities. In an embodiment of the present application, the control unit 441 can provide the starting position of the configured configuration information, and the register group is organized by a linked list. The control unit 441 can transmit configuration information, for example, read one configuration information at a time, and store the configuration information in the register group.

[0103] When the last configuration information in the linked list is transmitted, the control unit 441 can standby and wait for another round of processing module startup. In addition, a circular linked list can be used to organize periodic message processing, through which the control unit 441 can repeatedly transmit configuration data to the processing circuit.

[0104] In some embodiments, the register unit 442 is further configured to store a start address;

[0105] The control unit 441 is further configured to read the first configuration information from the one or more configuration information stored in the storage module 41 based on the start address or based on the address of the last read configuration information link.

[0106] For example, when the control unit 441 is just starting up, the control module 44 does not know from which address in the storage module 41 to start reading the configuration information. Therefore, by storing the starting address in the register unit 442, the control unit 441 can start reading the configuration information from the starting address. The starting address can be the address of the first configuration information in the storage module 41, or the starting address can be the address of a certain configuration information after the first configuration information in the storage module 41. In some embodiments, the starting address can be an address defined when the message processing module is designed. In other embodiments, the starting address can be the address configured by the processing module before each control module 44 is started. In this way, the first configuration information read by the control module 44 after startup is the first configuration information.

[0107] For another example, after the control unit 441 is started, and the control module 44 has read the i-th configuration information, the control module 44 can read the i+1-th configuration information based on the next configuration information address information included in the i-th configuration information. In this way, after the control module 44 is started, the configuration information after the first configuration information read is the first configuration information.

[0108] In some embodiments, the storage module 41 includes a linked list, the linked list includes one or more linked list nodes, and the one or more linked list nodes are respectively configured to store the one or more configuration information; the one or more linked list nodes correspond one-to-one to the one or more configuration information.

[0109] Multiple linked list nodes can be connected using pointers. In the implementation of the present application, a linked list node can be configured to store one configuration information. In other implementations, a linked list node can be configured to store multiple configuration information, or multiple linked list nodes can be configured to store one configuration information.

[0110] In some embodiments, the linked list includes a unidirectional linked list, a bidirectional linked list, or a circular linked list;

[0111] The control unit 441 is further configured to respond to one or more interrupt signals in sequence and read the one or more configuration information from the linked list in sequence; wherein the control unit 441 responds to one interrupt signal each time and reads one configuration information from the linked list.

[0112] In some implementations, the interrupt signal may be sent by the transmission module 43 to the control unit 441. For example, when the message is sent, the transmission module 43 may send an interrupt signal to the control unit 441. After the transmission module 43 completes sending the message based on the i-1th configuration information, it sends an interrupt signal to the control unit 441, so that the control unit 441 reads the i-th configuration information from the linked list.

[0113] In other embodiments, the interrupt signal may be sent by the buffer management module to the control unit 441. For example, when releasing a message that has been sent, the buffer management module sends an interrupt signal to the control unit 441. When releasing a message corresponding to the i-1th configuration information, the buffer management module sends an interrupt signal to the control unit 441, so that the control unit 441 reads the i-th configuration information from the linked list.

[0114] The number of interrupt signals may be the same as the number of configuration information in the linked list, or the number of interrupt signals may be greater than or less than the number of configuration information in the linked list.

[0115] In some embodiments, the device further includes a processing module (not shown in the figure); the processing module is configured to send a start signal to the control unit 441 when the linked list is the unidirectional linked list or the bidirectional linked list and after the last configuration information among the one or more configuration information is read by the control unit 441;

[0116] The control unit 441 is further configured to start in response to the start signal, and to respond to one or more interrupt signals in sequence, and to read the one or more configuration information from the linked list in sequence.

[0117] The control unit 441 reads the configuration information in the linked list in sequence. After the control unit 441 reads the last configuration information, if an interrupt signal is received, the control unit 441 will read the information linked to the last configuration information. Since the information linked to the last configuration information is empty (NULL), the control unit 441 can stop working when NULL is read to wait for the next round of startup sent by the processing module.

[0118] In some embodiments, when the control unit 441 reads NULL, it can send an indication signal to the processing module so that the processing module can configure one or more configuration information of the next round based on the indication signal, and when the configuration of the configuration information is completed, it can send a start signal to the control module 44, and the control module 44 starts based on the start signal.

[0119] In some embodiments, the control unit 441 is also configured to respond to one or more interrupt signals in sequence and read the one or more configuration information from the linked list in sequence when the linked list is a circular linked list and after the last configuration information among the one or more configuration information is read by the control unit 441.

[0120] In some embodiments, the device further comprises a processing module; the processing module is further configured to do at least one of the following:

[0121] Deleting configuration information in a first linked list node among the one or more linked list nodes;

[0122] Reconfiguring the configuration information stored in a second linked list node among the one or more linked list nodes;

[0123] Insert a fourth linked list node before the third linked list node; wherein the fourth linked list node is configured to store new configuration information.

[0124] The implementation method of deleting the first linked list node may include: linking the next configuration information address information in the linked list node before the first linked list node to the linked list node after the first linked list node, and deleting the first linked list node.

[0125] Inserting the fourth linked list node before the third linked list node may include: inserting the fourth linked list node between the fifth linked list node and the third linked list node, wherein the fifth linked list node and the third linked list node are two adjacent nodes. An implementation method of inserting the fourth linked list node between the fifth linked list node and the third linked list node may include: linking the next configuration information address information in the fifth linked list node to the fourth linked list node, and linking the next configuration information address information in the fourth linked list node to the third linked list node.

[0126] In some embodiments, the device further comprises a processing module; the processing module is further configured to do at least one of the following:

[0127] Inserting a first virtual node before a first linked list node among the one or more linked list nodes, and deleting configuration information in the first linked list node;

[0128] Inserting a second virtual node before a second linked list node among the one or more linked list nodes, and reconfiguring configuration information stored in the second linked list node;

[0129] After inserting the third virtual node before the third linked list node, inserting a fourth linked list node between the third virtual node and the third linked list node; wherein the fourth linked list node is configured to store new configuration information;

[0130] The first virtual node, the second virtual node and the third virtual node are configured to store first information; the transmission module 43 does not send a message when reading the first information.

[0131] In some embodiments, the first virtual node may be adjacent to the first linked list node, or the first virtual node may be spaced apart from the first linked list node by one or more linked list nodes. In some embodiments, the second virtual node may be adjacent to the second linked list node, or the second virtual node may be spaced apart from the second linked list node by one or more linked list nodes.

[0132] The first information may be referred to as placeholder information or a placeholder. By setting the first information, the processing module may have enough time to delete or reconfigure the configuration information in a certain linked list node, or to add configuration information in a linked list node.

[0133] In some embodiments, the processing module may delete, reconfigure or add configuration information based on the time length required for deleting, reconfiguring or adding configuration information. When the time length is less than a time threshold, the processing module may directly delete, reconfigure or add configuration information without inserting a virtual node. When the time length is greater than or equal to the time threshold, the processing module may delete, reconfigure or add configuration information by inserting a virtual node.

[0134] In other embodiments, the processing module may delete, reconfigure or add configuration information based on the number of configuration information to be added, deleted or reconfigured and the configuration information being used by the message processing device 40. If the number is less than a quantity threshold, the processing module may delete, reconfigure or add configuration information by inserting a virtual node; if the number is greater than or equal to the quantity threshold, the processing module may directly delete, reconfigure or add configuration information without the need to insert a virtual node.

[0135] In some other embodiments, the processing module may determine whether it is necessary to insert a virtual node based on the configuration information to be added, deleted or reconfigured, the amount of configuration information between the configuration information being used by the message processing device 40, and the length of time required to delete the configuration information, reconfigure or add the configuration information.

[0136] The control unit 441 may read the first information in the first virtual node, the second virtual node or the third virtual node in the storage module 41 , and store the first information in the register unit 442 .

[0137] In some implementations, the first information cannot configure the timing unit 42 and / or the transmission module 43 to work, so that the timing unit 42 will not send a trigger signal, thereby stopping the transmission of the message. After the processing module completes adding, deleting or reconfiguring the configuration information, the processing module can send a signal to the control unit 441, so that the control unit 441 can read the configuration information of the first information link based on the signal, and then continue to send the message based on the configuration information of the first information link.

[0138] In some embodiments, the timing unit 42 can generate a trigger signal based on the last configuration information of the timing unit 42, so that the transmission module 43 reads part or all of the first information based on the trigger signal. The message length in the first information can be configured to be zero, and the transmission module 43 will not send the message. The transmission module 43 can send a signal to the control unit 441 to enable the control unit 441 to read the next configuration information.

[0139] In some implementations, the first information can configure the timing unit 42 to work, and at the same time configure the transmission module 43 to have a payload length of zero. In this way, the timing unit 42 sends a trigger signal to the transmission module 43 based on the configuration information of the timing unit 42 in the first configuration information, and the transmission module 43 can directly send a signal to the control unit 441 based on the first information, so that the control unit 441 reads the next configuration descriptor and continues to send the message.

[0140] In an embodiment of the present application, virtual nodes can be used to manage the timing arrival of configuration information. By adding virtual nodes, at least one timing message configuration operation such as insertion, reconfiguration, and deletion can be supported.

[0141] Figure 6 A structural diagram of another message processing device provided in an embodiment of the present application is shown as follows: Figure 6 As shown, the message processing device 40 may include: a storage module 41 , a timing unit 42 and a transmission module 43 .

[0142] The message processing device 40 may further include: a control module 44 and a processing module. The control module 44 includes a control unit 441 and a register unit 442 .

[0143] In some embodiments, the message processing device 40 further includes a buffer management module 45, and the buffer management module 45 includes a management unit 46 and a buffer unit 47;

[0144] The transmission module 43 is further configured to read the message from the buffer unit 47 and send the message;

[0145] The management unit 46 is configured to send an interrupt signal to the control unit 441 after the message is read by the transmission module 43; wherein the interrupt signal instructs the control unit 441 to read the second configuration information linked after the first configuration information.

[0146] Among them, Figure 6 In the embodiment shown, configuration descriptor 1, configuration descriptor 2, and configuration descriptor 3 are linked in the form of a linked list, so that the control unit can read configuration descriptor 1, configuration descriptor 2, and configuration descriptor 3 from the storage module in sequence, and only read one configuration descriptor at a time. Among them, one of configuration descriptors 1, configuration descriptor 2, and configuration descriptor 3 can be one of the above-mentioned configuration information.

[0147] In some embodiments, the buffer unit 47 may be a separate hardware in the message processing device 40, and the buffer unit 47 is configured to store one or more messages to be sent, and one or more storage addresses (source addresses) corresponding to the message or messages. The buffer unit 47 may also be configured to store other information. In other embodiments, the buffer unit 47 may be a part of a shared memory in the message processing device 40.

[0148] In some embodiments, the management unit 46 may send an interrupt signal to the control unit 441 after the message is read by the transmission module 43. The management unit may also release the message that has been read by the transmission module 43. In other embodiments, the management unit 46 may not exist, and the interrupt signal to the control unit 441 is sent by the transmission module 43.

[0149] In some embodiments, the device also includes a processing module; the processing module is configured to divide the data to be transmitted into one or more messages, read one or more storage addresses from the buffer queue in the buffer unit 46, and store the one or more messages in the one or more storage addresses; the one or more messages correspond one-to-one to the one or more storage addresses; the one or more storage addresses can be used for the processing module to configure one or more configuration information in advance.

[0150] The transmission module 43 reads the message from the buffer unit 47 based on the source address in the configuration information (the first storage address in the buffer queue).

[0151] In some embodiments, the transmission module 43 is further configured to obtain the first storage address; after the message is sent, place the first storage address at the end of the buffer queue.

[0152] The first storage address may be a storage address at the head of the buffer queue.

[0153] The processing module may divide the data to be transmitted into one or more messages based on the length or size of the data to be transmitted. In some embodiments, the processing module may divide the data to be transmitted into one or more messages based on the length or size of the data to be transmitted and the size of the message that the transmission module 43 can send at one time.

[0154] In some embodiments, the buffer unit 47 may include a storage area configured to store one or more messages, and a buffer queue configured to store one or more storage addresses. Through the one or more storage addresses stored in the buffer queue, the processing module can easily read in advance the address used to store the message to be sent each time.

[0155] The message in the embodiment of the present application may be a message corresponding to the first storage address in the buffer queue.

[0156] There may be K storage addresses in the queue, where K is an integer greater than or equal to 1. When the processing module reads a storage address in the buffer queue each time, it may read the storage address in the head of the buffer queue each time, thereby configuring it in the configuration information, and the transmission module 43 sends a message corresponding to the storage address based on the storage address (source address) in the configuration information. When the processing module reads the storage address in the head of the queue for the kth time, k is greater than or equal to 1 and less than or equal to K, and the management unit 46 may release the storage address in the head of the queue and release the message corresponding to the storage address in the head of the queue. After the transmission module 43 completes sending the message corresponding to the storage address in the head of the queue, it may place the storage address in the head of the queue at the end of the buffer queue. In this way, when the processing module reads the storage address in the head of the buffer queue each time, the transmission module 43 sends the message corresponding to the storage address in the head of the queue in sequence, and when the processing module reads the storage address in the head of the queue for the k+Kth time, the transmission module 43 may read a specific message corresponding to the storage address read for the k+Kth time, wherein the storage address in the head of the queue read for the k+Kth time is the same as the storage address in the head of the queue read for the kth time. In this way, the storage addresses in the pair list can be used cyclically.

[0157] After the transmission module 43 sends the message to the shared memory of the receiving end, the transmission module 43 can place the source address corresponding to the message at the end of the buffer queue, and the management unit 46 for managing the buffer queue can automatically send a signal to the control unit 441, so that the control unit 441 reads the next configuration information from the storage module 41 based on the signal. In addition, since each time the transmission module 43 sends a message based on a source address, the transmission module 43 can place the source address at the end of the buffer queue, so that the source address is used for sending a new message, which is equivalent to recycling the source address.

[0158] In the embodiment of the present application, the buffer management module 45 can dynamically create and maintain the allocation and recovery of message buffers for the message processing device 40. Among them, the message buffer unit 47 is initially created with a predefined buffer size, and multiple message buffer addresses in the shared memory are pushed to the released message buffer queue. After the message processing is completed, the transmission module 43 reclaims the message buffer address through the queue. In addition, the processing module can access the released message buffer queue to retrieve the message buffer to prepare the message payload and transmit the buffer address to the transmission module 43 through the configuration information.

[0159] In some embodiments, the transmission module 43 is further configured to:

[0160] Acquire mapping information, where the mapping information indicates a mapping relationship between a message length and a transmission delay;

[0161] Determining a transmission delay corresponding to the message based on the mapping information and the length of the message;

[0162] The message is sent based on the transmission delay.

[0163] In some embodiments, the mapping information may be placed in the register unit 442 so that the transmission module 43 may obtain the mapping relationship from the register unit 442. In other embodiments, the mapping information may be stored in the transmission module 43. In some embodiments, the mapping relationship may be a relationship configured by the processing module after the transmission module 43 completes sending a message each time. In other embodiments, the mapping relationship may be a pre-configured relationship, and this pre-configured relationship is used each time a message is sent.

[0164] In response to the trigger signal sent by the timing unit 42, the transmission module 43 can obtain relevant configuration information from the register unit 442, and the relevant configuration information may include the length of the message. In this way, the transmission module 43 can determine the transmission delay corresponding to the message based on the length of the message and the mapping information.

[0165] By sending messages with a transmission delay, the messages can be sent to the shared memory corresponding to another message processing device 40 before the specified time, thereby preventing the processing module of another message processing device 40 from being unable to read the message in the shared memory when the clock timing arrives.

[0166] In the mapping information, the message length can have a one-to-one or many-to-one mapping relationship with the transmission delay. Generally, as the message length increases, the transmission delay also increases accordingly. For example, when the message length is less than 10KB, the transmission delay is the first delay, and when the message length is greater than or equal to 10KB and less than 20KB, the transmission delay is the second delay, and the first delay is less than the second delay. Alternatively, when the message length is 10KB, the transmission delay is the third delay, and when the message length is 20KB, the transmission delay is the fourth delay, and the third delay is less than the fourth delay.

[0167] When the length of the message is longer, the transmission module 43 can send the message faster, for example, the transmission module 43 can send the message within a first preset time length after responding to the trigger signal; when the length of the message is shorter, the transmission module 43 can send the message slower, for example, the transmission module 43 can send the message within a second preset time length after responding to the trigger signal; wherein the first preset time length is less than the second preset time length.

[0168] In some embodiments, each of the configuration information includes at least one of the following:

[0169] Logical identifier, configured to identify the message activity;

[0170] Operation information, configured as a control interrupt signal;

[0171] comparator mode information configured to determine a mode of the comparator;

[0172] comparator value information configured to configure a comparator value in the timing unit 42;

[0173] Next configuration information address information, configured to link to the next configuration information;

[0174] Payload length information, configured to determine the payload length of the message sent by the transmission module 43;

[0175] Source address information, configured as address information of the message determined to be read by the transmission module 43;

[0176] The target address information is configured as the address information where the transmission module 43 determines to write the message.

[0177] It should be noted that the embodiments of the present application are not limited to this, and the configuration information may also include other information, which are not listed one by one in the embodiments of the present application.

[0178] The operation information, comparator mode information and comparator value information may be configuration information for the timing unit 42, and the logic identifier, payload length information, source address information and destination address information may be configuration information for the transmission module 43. The next configuration information address information is configured so that the control unit 441 reads the next configuration information based on the next configuration information address information after the message corresponding to the currently read configuration information is sent, thereby implementing the sending of the message corresponding to the next configuration information.

[0179] Table 2 is a schematic diagram of configuration information provided in an embodiment of the present application:

[0180] Table 2

[0181]

[0182]

[0183] Among them, Table 3 is a configuration information format provided in an embodiment of the present application:

[0184] Table 3

[0185]

[0186] In some embodiments, the register unit 442 includes at least one of the following:

[0187] A location register configured as a configuration start address; the start address is the address of the configuration information first read when the control unit 441 is turned on;

[0188] A queue register configured to configure a buffer queue; the buffer queue is configured to store one or more storage addresses; the one or more storage addresses correspond to dividing the data to be transmitted into one or more messages in a one-to-one manner;

[0189] A queue number register configured to configure a buffer queue number; the buffer queue number is configured to determine the number of storage addresses stored in the buffer queue;

[0190] A control register configured to configure control information of the transmission module;

[0191] A logical identification register configured to configure identification information aligned with the configuration information being active;

[0192] a status register configured to configure status information of the message processing device;

[0193] The counter register is configured to configure the initial value of the count;

[0194] Comparator register, configured to configure the comparator value.

[0195] In some embodiments, the register unit 442 may include a read-write register configured to place a message write address and a message length sent by another message processing device 40, so that the processing module can read the message sent by another message processing device 40 based on the message write address and the message length. Another message processing device 40 can write the message into the buffer unit 47 of the message processing device 40, so that the processing module of the message processing device 40 can read the message from the buffer unit 47 based on the message write address and the message length.

[0196] The register unit 442 may include a register group, which may include a plurality of registers, and the register group may be configured to store configuration information.

[0197] In some embodiments, the multiple registers included in the register group can be configured to store multiple configurations, and the multiple configurations can constitute the above-mentioned configuration information. In other embodiments, the number of registers in the register group can be greater than the number of multiple configurations. For example, the registers in the register group can not only be configured to store multiple configurations, but also be configured to store some information of the processing module configuration and / or some information of the fixed configuration.

[0198] Table 4 is a description of a register group provided in an embodiment of the present application:

[0199] Table 4

[0200]

[0201]

[0202] In the embodiment of the present application, the software in Table 2 and Table 4 may refer to a processing module.

[0203] In some embodiments, the transmission module 43 is further configured to:

[0204] Writing the message into a shared memory corresponding to another message processing device 40;

[0205] A notification signal is sent to the processing module of the another message processing device 40, wherein the notification signal is configured to notify that the message sending is completed.

[0206] In this way, when another message processing device 40 obtains the notification signal, the message can be read from the shared memory.

[0207] In some embodiments, the transmission module 43 is further configured to:

[0208] The length and the write address of the message are written into the register unit 442 of the other message processing device 40; wherein the length and the write address of the message are configured so that the processing module of the other message processing device 40 reads the message.

[0209] The register unit 442 of another message processing device 40 may include a read-write register, and the transmission module 43 of the message transmission device may write the length and write address of the message into the read-write register of another message processing device 40, so that the processing module of another message processing device 40 reads the message in the shared memory based on the length and write address of the message in the read-write register.

[0210] Figure 7 A flow chart of a message processing method provided in an embodiment of the present application is as follows: Figure 7 As shown, the method includes:

[0211] S701. Obtain first configuration information.

[0212] S702. Generate a trigger signal based on the first configuration information; wherein the first configuration information is one of one or more configuration information, and the first configuration information includes first sub-configuration information.

[0213] S703: Send a message based on the first sub-configuration information and in response to the trigger signal.

[0214] In some embodiments, Figure 7 The method of the corresponding embodiment can be applied to a message processing device.

[0215] In some embodiments, the obtaining of the first configuration information comprises: the timing unit obtaining the first configuration information stored in the register unit; wherein the first configuration information stored in the register unit is read by the control unit from the one or more configuration information stored in the storage module;

[0216] The generating a trigger signal based on the first configuration information comprises: the timing unit generating the trigger signal based on the first configuration information;

[0217] The sending of a message based on the first sub-configuration information and in response to the trigger signal includes: a transmission module acquiring the first sub-configuration information stored in the register unit, and sending a message based on the first sub-configuration information and in response to the trigger signal.

[0218] In some embodiments, sending a message based on the first sub-configuration information and in response to the trigger signal includes:

[0219] Based on the first configuration information, writing the message into a shared memory corresponding to another message processing device;

[0220] The method further includes: sending a notification signal to a processing module of the other message processing device, wherein the notification signal is configured to notify that the message sending is completed.

[0221] In some embodiments, the method further comprises:

[0222] The length and the write address of the message are written into the register unit of the other message processing device; wherein the length and the write address of the message are configured so that the processing module of the other message processing device reads the message.

[0223] Figure 8 A flowchart of another message processing method provided in an embodiment of the present application is shown as follows: Figure 8 As shown, the method includes:

[0224] S801. A processing module configures one or more configuration information.

[0225] The one or more configuration information may be values ​​of registers in the register group or various parameters.

[0226] S802: The processing module divides the data to be transmitted into one or more messages, places the one or more messages in a buffer unit, and places the one or more messages at the address of the buffer unit in a buffer queue.

[0227] S803: The processing module starts the control unit.

[0228] S804: The control unit reads a configuration information and places the read configuration information in the register unit.

[0229] S805 . The timing unit and the transmission module transmit a message in the buffer unit based on the configuration information in the register unit.

[0230] Each time the transmission module reads a message, it can read a message based on the address in the head of the buffer queue. When the buffer unit reads the message, the management unit can release the message and the address. The transmission module can place the acquired address in the head of the queue at the end of the queue to recycle the address.

[0231] In some embodiments, the management unit may also send an interrupt message to the control unit when releasing the message and address, so that the control unit reads the next configuration information. In other embodiments, the transmission module may send an interrupt message to the control unit after the message transmission is completed, so that the control unit reads the next configuration information.

[0232] S806: The control unit determines whether the next configuration information read is NULL.

[0233] If the next configuration information is not NULL, jump to S804. If the next configuration information is NULL, jump to S803 until the message transmission is completed.

[0234] Fig. 9 A schematic diagram of an execution flow of a message processing device provided in an embodiment of the present application, such as Fig. 9 As shown, the control unit starts the application when receiving the start signal sent by the processing module. Then the control unit can transfer configuration descriptor 1. At time T1, the timing unit sends an interrupt signal to the transmission module, that is, when the count value of the counter in the timing unit reaches the first preset value (the first preset value can be the value in configuration descriptor 1), the DMA controller (corresponding to the above-mentioned transmission module) starts to transmit a message. After the message transmission is completed, the control unit can transfer configuration descriptor 2. At time T2, the timing unit sends an interrupt signal to the transmission module, that is, when the count value of the counter in the timing unit reaches the second preset value (the second preset value can be the value in configuration descriptor 2), the DMA controller starts to transmit the next message. After the message transmission is completed, the control unit can transfer configuration descriptor 3. At time T3, the timing unit sends an interrupt signal to the transmission module, that is, when the count value of the counter in the timing unit reaches the third preset value (the third preset value can be the value in configuration descriptor 3), the DMA controller starts to transmit the next message. After the message transmission is completed, the control unit can transfer the configuration descriptor 4. At time T4, the timing unit sends an interrupt signal to the transmission module, that is, when the count value of the counter in the timing unit reaches the fourth preset value (the fourth preset value can be the value in the configuration descriptor 4), the DMA controller starts to transmit the next message. After the message transmission is completed, the control unit determines that NULL is read, and waits for the next round of start signals sent by the processing module. Among them, T1, T2, T3 and T4 increase sequentially in time. The time interval from the transfer of a configuration descriptor to the counter reaching the preset value can be determined based on the configuration information of the timing unit in the configuration descriptor. Different configuration information of the timing unit can have different time intervals or the same time interval.

[0235] In some embodiments, the transmission module determines that the data to be transmitted is completed when no message is read based on the address in the queue. The transmission module can send a signal to the processing module to enable the processing module to determine that the data to be transmitted is completed, thereby configuring the next transmission of the data to be transmitted.

[0236] In an embodiment of the present application, the control unit extracts the configuration information into a register group, and the timing unit adjusts the timing trigger signal based on the timing setting in the configuration information. When the count value of the counter reaches a preset value (i.e., a value predefined in the configuration information), the timing unit can send an interrupt signal to the DMA controller, so that the DMA controller responds to the interrupt signal and sends the message from the source address to the target address. Among them, the transmission module can compensate for the timing changes caused by the transmission delay of multiple message lengths by setting an offset lookup table (corresponding to the above-mentioned mapping information) through a predefined timing. After the DMA controller completes the message transmission, the address corresponding to the transmitted message can be placed at the end of the message buffer queue to reuse the address.

[0237] The embodiment of the present application provides a message processing device with low latency characteristics to support accurate timing exchange of multiple information. In addition, the embodiment of the present application reduces the processor overhead configured to timed message processing introduced by the software configuration operation coupled with the timing device and the message device. In addition, the embodiment of the present application alleviates the unpredictable timing waiting time generated by the software intervention configured to interrupt signal service, configuration post-processing and message buffer management. In addition, the present invention eliminates the software dependence on the coupling with the timer device and the message device, and provides concurrent processing by the configuration operation based on the linked list, and can decouple the hardware device number configured to support concurrent processing. Therefore, the hardware-based timing message processing device can not only meet the low latency characteristics, but also provide high-performance scalability to support the simultaneous processing of multiple messages, while reducing the total gate count of the SOC to reduce the circuit area and energy efficiency.

[0238] The embodiment of the present application provides a message processing device, which stores an interactive configuration descriptor in a storage module as a control interface between a processing module and a control unit. Through the device, a software-coupled timing device and a message device can be combined into an integrated solution to eliminate software intervention. In addition, the device can adjust and compensate for timing changes according to the message length to further improve the timing accuracy. Finally, the software can manage a linked list to adjust the configuration descriptor to support multiple dynamic activities, and perform operations such as reconfiguration, cancellation, insertion, and merging on a timing message device to reduce the number of timing devices and message devices in the prior art.

[0239] In some embodiments, the shared memory may be connected to the bus.

[0240] In some embodiments, the message processing device has no interrupt signal line connected to the external processor interrupt controller to configure event response. At the same time, the timing unit and the transmission module (DMA controller) have no signal line connected to the control bus of the processor to configure direct configuration access of the processor.

[0241] In some embodiments, the message processing device can be applied in a processor, and a chip may include multiple processors, each processor includes a message processing device, so that each processor in a chip can be deployed with the message processing device provided by the embodiment of the present application.

[0242] An embodiment of the present application may also provide a processor, which includes the message processing device provided by any of the above embodiments; or, the processor includes a transmission part, configured as the message processing method provided by any of the above embodiments.

[0243] The transmission part in the embodiment of the present application may include a timing unit and a transmission module.

[0244] An embodiment of the present application may also provide a chip, which includes the message processing device provided by any of the above embodiments; or, the chip includes the processor provided by any of the above embodiments; or, the chip includes: a transmission part, configured to execute the message processing method provided by any of the above embodiments.

[0245] The processor or chip in the embodiment of the present application may include at least one of the following: a general-purpose processor, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a graphics processing unit (GPU), an embedded neural network processor (neural-network processing units, NPU), a controller, a microcontroller, a microprocessor, a programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined and executed. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0246] In some embodiments, the chip may further include an input interface, wherein the processor may control the input interface to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0247] In some embodiments, the chip may further include an output interface, wherein the processor may control the output interface to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0248] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0249] An embodiment of the present application may also provide an electronic device, which includes the message processing device provided by any of the above embodiments; or, the electronic device includes the processor provided by any of the above embodiments; or, the electronic device includes the chip provided by any of the above embodiments; or, the electronic device includes a transmission part configured to execute the message processing method provided by any of the above embodiments.

[0250] The electronic device in the embodiment of the present application may include a terminal device, which may be referred to as a terminal (Terminal), a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The electronic device here may be one of the following: a server, a mobile phone (MobilePhone), a tablet computer (Pad), a computer with wireless transceiver function, a handheld computer, a desktop computer, a personal digital assistant, a portable media player, an intelligent speaker, a navigation device, a smart watch, a smart glasses, a smart necklace and other wearable devices, a pedometer, a digital TV, a virtual reality (VirtualReality, VR) terminal device, an augmented reality (AugmentedReality, AR) terminal device, a wireless terminal in industrial control (Industrial Control), a wireless terminal in self-driving (Self Driving), a wireless terminal in remote medical surgery (Remote Medical Surgery), a wireless terminal in smart grid (Smart Grid), a wireless terminal in transportation safety (Transportation Safety), a wireless terminal in smart city (Smart City), a wireless terminal in smart home (Smart Home), a car in a vehicle networking system, a vehicle-mounted device, a vehicle-mounted module, etc.

[0251] Some embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the idea of ​​the present application, they should also be regarded as the contents disclosed in the present application. For another example, the various embodiments and / or the technical features in the various embodiments described in the present application can be arbitrarily combined with the prior art without conflict, and the technical solution obtained after the combination should also fall within the protection scope of the present application.

[0252] It should be understood that the "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some implementations" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some implementations" or "some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0253] In the absence of special instructions, when executing any step in the embodiment of the present application, the module or unit involved may execute the step. Unless otherwise specified, the embodiment of the present application does not limit the order of executing the steps. In addition, the method used for processing data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiment of the present application can be executed independently, that is, when executing any step in the above embodiment, it can be independent of the execution of other steps.

[0254] In the description of the present application, in addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0255] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", and "link" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0256] In the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0257] In several embodiments provided in the present application, it should be understood that the disclosed devices, equipment and methods can be implemented in other ways. The above-described device and equipment embodiments are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device, equipment or unit can be electrical, mechanical or other forms.

[0258] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0259] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0260] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0261] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0262] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0263] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.

[0264] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0265] In the embodiments of the present application, the descriptions of the same steps and the same contents in different embodiments can refer to each other. In the embodiments of the present application, the term "and" does not affect the order of the steps. For example, executing A and executing B can mean executing A first and then executing B, or executing B first and then executing A, or executing A and executing B at the same time.

[0266] It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic positions of various components on the terminal device and do not represent the actual positions in the terminal device. The actual positions of various components or areas may be changed or offset accordingly according to actual conditions (for example, the structure of the terminal device), and the proportions of different parts of the terminal device in the drawings do not represent the actual proportions.

[0267] As used in the embodiments of the present application and the appended claims, the singular forms "a," "an," "said," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0268] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0269] It should be noted that in each embodiment involved in the present application, all steps may be executed or part of the steps may be executed as long as a complete technical solution can be formed.

[0270] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A message processing device, characterized in that: include: A storage module configured to store one or more configuration information; A timing unit, configured to obtain first configuration information and generate a trigger signal based on the first configuration information; wherein the first configuration information is one of the one or more configuration information, and the first configuration information includes first sub-configuration information; a transmission module, configured to send a message based on the first sub-configuration information and in response to the trigger signal; The storage module includes a linked list, the linked list includes one or more linked list nodes, the one or more linked list nodes are respectively configured to store the one or more configuration information; the one or more linked list nodes correspond one to one with the one or more configuration information; The device further includes a processing module; the processing module is further configured to do at least one of the following: Deleting configuration information in a first linked list node among the one or more linked list nodes; Reconfiguring the configuration information stored in a second linked list node among the one or more linked list nodes; Inserting a fourth linked list node before the third linked list node; wherein the fourth linked list node is configured to store new configuration information; Each of the configuration information includes at least one of the following: Logical identifier, configured to identify the message activity; Operation information, configured as a control interrupt signal; comparator mode information configured to determine a mode of the comparator; comparator value information, configured to configure a comparator value in a timing unit; Next configuration information address information, configured to link to the next configuration information; Payload length information, configured to determine the payload length of the message sent by the transmission module; Source address information, configured as address information of the message determined to be read by the transmission module; The target address information is configured as the address information where the transmission module determines to write the message.

2. The device according to claim 1, characterized in that The device further comprises a control module, wherein the control module comprises a control unit and a register unit; The control module is configured to read the first configuration information from the storage module and store the first configuration information into the register unit; The transmission module is configured to read the first configuration information from the register unit.

3. The device according to claim 2, characterized in that The register unit is also configured to store a start address; The control unit is further configured to read the first configuration information from the one or more configuration information stored in the storage module based on the start address or based on the address linked to the configuration information read last time.

4. The device according to claim 1, characterized in that The linked list includes a unidirectional linked list, a bidirectional linked list or a circular linked list; The control unit is further configured to respond to one or more interrupt signals in sequence and read the one or more configuration information from the linked list in sequence; wherein the control unit responds to one interrupt signal each time and reads one configuration information from the linked list.

5. The device according to claim 4, characterized in that The device also includes a processing module; The processing module is configured to send a start signal to the control unit when the linked list is the unidirectional linked list or the bidirectional linked list and after the last configuration information among the one or more configuration information is read by the control unit; The control unit is further configured to start in response to the start signal, and to respond to one or more interrupt signals in sequence, and to read the one or more configuration information from the linked list in sequence.

6. The device according to claim 4, characterized in that The control unit is further configured to respond to one or more interrupt signals in sequence and read the one or more configuration information from the linked list in sequence when the linked list is a circular linked list and after the last configuration information among the one or more configuration information is read by the control unit.

7. The device according to claim 1, characterized in that The device further includes a processing module; the processing module is further configured to do at least one of the following: Inserting a first virtual node before a first linked list node among the one or more linked list nodes, and deleting configuration information in the first linked list node; Inserting a second virtual node before a second linked list node among the one or more linked list nodes, and reconfiguring configuration information stored in the second linked list node; After inserting the third virtual node before the third linked list node, inserting a fourth linked list node between the third virtual node and the third linked list node; wherein the fourth linked list node is configured to store new configuration information; The first virtual node, the second virtual node and the third virtual node are configured to store first information; and the transmission module does not send a message when the first information is read.

8. The device according to claim 2 or 3, characterized in that The message processing device further includes a buffer management module, wherein the buffer management module includes a management unit and a buffer unit; The transmission module is further configured to read the message from the buffer unit and send the message; The management unit is configured to send an interrupt signal to the control unit after the message is read by the transmission module; wherein the interrupt signal instructs the control unit to read the second configuration information linked to the first configuration information.

9. The device according to claim 8, characterized in that The device also includes a processing module; The processing module is configured to divide the data to be transmitted into one or more messages, store the one or more messages in the buffer unit, and store one or more storage addresses in the buffer queue in the buffer unit; the one or more messages correspond to the one or more storage addresses one by one; The transmission module is configured to read the message from the buffer unit based on a first storage address in the buffer queue.

10. The device according to claim 9, characterized in that The transmission module is further configured to obtain the first storage address; after the message is sent, place the first storage address at the end of the buffer queue.

11. The device according to any one of claims 1 to 3, characterized in that The transmission module is further configured to: Acquire mapping information, where the mapping information indicates a mapping relationship between a message length and a transmission delay; Determining a transmission delay corresponding to the message based on the mapping information and the length of the message; The message is sent based on the transmission delay.

12. The device according to claim 2 or 3, characterized in that The register unit includes at least one of the following: A location register configured to configure a start address; the start address is the address of the configuration information first read when the control unit is turned on; A queue register configured to configure a buffer queue; the buffer queue is configured to store one or more storage addresses; the one or more storage addresses correspond to dividing the data to be transmitted into one or more messages in a one-to-one manner; A queue number register configured to configure a buffer queue number; the buffer queue number is configured to determine the number of storage addresses stored in the buffer queue; A control register configured to configure control information of the transmission module; A logical identification register configured to configure identification information aligned with the configuration information being active; a status register configured to configure status information of the message processing device; The counter register is configured to configure the initial value of the count; Comparator register, configured to configure the comparator value.

13. The device according to any one of claims 1 to 3, characterized in that The transmission module is also configured to: Writing the message into a shared memory corresponding to another message processing device; A notification signal is sent to a processing module of the other message processing device, wherein the notification signal is configured to notify that the message sending is completed.

14. The device according to claim 13, characterized in that The transmission module is also configured to: The length and the write address of the message are written into the register unit of the other message processing device; wherein the length and the write address of the message are used for the processing module of the other message processing device to read the message.

15. A message processing method, characterized in that: The method is applied to a message processing device, and the method comprises: Obtaining first configuration information; Generate a trigger signal based on the first configuration information; wherein the first configuration information is one of one or more configuration information, and the first configuration information includes first sub-configuration information; each of the configuration information includes at least one of the following: a logic identifier configured to identify a message activity; operation information configured to control an interrupt signal; comparator mode information configured to determine a mode of a comparator; comparator value information configured to configure a comparator value in a timing unit; next configuration information address information configured to link the next configuration information; payload length information configured to determine a payload length of a message sent by a transmission module; source address information configured to be address information of a message determined to be read by the transmission module; target address information configured to be address information of a message determined to be written by the transmission module; sending a message based on the first sub-configuration information and in response to the trigger signal; The obtaining of the first configuration information comprises: the timing unit obtaining the first configuration information stored in the register unit; wherein the first configuration information stored in the register unit is read by the control unit from the one or more configuration information stored in the storage module; The storage module includes a linked list, the linked list includes one or more linked list nodes, the one or more linked list nodes are respectively configured to store the one or more configuration information; the one or more linked list nodes correspond one to one with the one or more configuration information; The processing device further includes a processing module; the processing module is further configured to do at least one of the following: Deleting configuration information in a first linked list node among the one or more linked list nodes; Reconfiguring the configuration information stored in a second linked list node among the one or more linked list nodes; Inserting a fourth linked list node before the third linked list node; wherein the fourth linked list node is configured to store new configuration information; The transmission module and the storage module are respectively a transmission module and a storage module included in the message processing device.

16. The method according to claim 15, characterized in that The generating a trigger signal based on the first configuration information comprises: the timing unit generating the trigger signal based on the first configuration information; The sending of a message based on the first sub-configuration information and in response to the trigger signal includes: a transmission module acquiring the first sub-configuration information stored in the register unit, and sending a message based on the first sub-configuration information and in response to the trigger signal.

17. The method according to claim 15 or 16, characterized in that The sending a message based on the first sub-configuration information and in response to the trigger signal includes: Based on the first configuration information, writing the message into a shared memory corresponding to another message processing device; The method further includes: sending a notification signal to a processing module of the other message processing device, wherein the notification signal is configured to notify that the message sending is completed.

18. The method according to claim 17, characterized in that The method further comprises: The length and the write address of the message are written into the register unit of the other message processing device; wherein the length and the write address of the message are used for the processing module of the other message processing device to read the message.

19. A processor, characterized in that: include: The message processing device according to any one of claims 1 to 14; or, The transmission part is configured to execute the message processing method described in any one of claims 15 to 18.

20. A chip, characterized in that: include: The message processing device according to any one of claims 1 to 14; or, The processor of claim 19; or, The transmission part is configured to execute the message processing method described in any one of claims 15 to 18.

21. An electronic device, characterized in that: include: The message processing device according to any one of claims 1 to 14; or, The processor of claim 19; or, The chip according to claim 20; or The transmission part is configured to execute the message processing method described in any one of claims 15 to 18.