Data transmission method, microprocessor architecture and computer equipment
By introducing input and output processors and direct memory access modules into the microprocessor architecture, the problem of excessive resource utilization of slave cores when transmitting data with peripheral devices is solved, and performance and efficiency are improved.
Patent Information
- Application Number
- CN202411074534.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-22
AI Technical Summary
In heterogeneous multi-core microprocessor architecture, due to the weak data transmission performance of low-speed peripherals, the data transmission time is long when the slave core and peripherals are transmitted, which in turn leads to the long-term occupation of slave core resources, affecting the slave core performance .
By setting the input and output processor in the microprocessor architecture as the intermediate medium between the application processor and the peripheral controller, and introducing a direct memory access module into the input and output processor, the resource usage of the slave core during data transmission is reduced. The direct memory access module performs data transmission tasks to avoid data interaction with the peripheral controller from the core.
It effectively reduces the resource usage of slave cores by communicating with peripheral data, improves the performance of slave cores, improves data transmission efficiency and bandwidth, and reduces the resource consumption of application processors.
Smart Images

Figure CN119003413A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data transmission method, a microprocessor architecture and a computer device. Background Art
[0002] In the existing data transmission scheme of heterogeneous multi-core microprocessor architecture, in order to release the resources of the master core, the slave core is used to control the data transmission between the master core and the peripherals. For example, the master core sends the data information to be transmitted with the peripherals to the shared storage space, and then the slave core controls the data transmission between the shared storage space and the peripherals.
[0003] Since the data transmission performance of low-speed peripherals is relatively weak, it takes a long time for the slave core to transmit data with the low-speed peripherals, which causes the slave core resources to be occupied for a long time, thereby causing the slave core performance to degrade. Summary of the invention
[0004] Based on the above technical problems, the present application proposes a data transmission method, a microprocessor architecture and a computer device, which can avoid occupying the resources of the slave core for a long time when interacting with peripherals, thereby improving the performance of the slave core.
[0005] In a first aspect, the present application proposes a data transmission method, which is applied to a microprocessor architecture, wherein the microprocessor architecture includes an application processor, an input / output processor and at least one peripheral controller; the input / output processor serves as an intermediate medium when the application processor interacts with the at least one peripheral controller, the application processor includes a first processor core, the input / output processor includes a second processor core, at least one memory and a direct memory access module, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller; the method comprises: when the second processor core receives a data transmission request sent by the first processor core, configuring a data transmission task corresponding to the data transmission request in the direct memory access module; wherein the data transmission request is used to request the transmission of target data between a target peripheral controller and a shared storage space corresponding to the target peripheral controller, and the target peripheral controller is any peripheral controller among the at least one peripheral controller; and executing the data transmission task through the direct memory access module to transmit the target data between the target peripheral controller and the shared storage space corresponding to the target peripheral controller.
[0006] In a second aspect of the present application, a microprocessor architecture is proposed, which includes an application processor, an input-output processor and at least one peripheral controller; the input-output processor serves as an intermediate medium when the application processor interacts with the at least one peripheral controller, the application processor includes a first processor core, the input-output processor includes a second processor core, at least one memory and a direct memory access module, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller; the microprocessor architecture is configured to execute the above-mentioned data transmission method.
[0007] A third aspect of the present application provides a computer device, comprising the above-mentioned microprocessor architecture.
[0008] Based on any aspect of the first to third aspects above, the present application sets an input-output processor in the microprocessor architecture to serve as an intermediate medium when the application processor interacts with the peripheral controller, so that the input-output processor performs the data communication task between the application processor and the peripheral controller, thereby reducing the resource consumption when the application processor interacts with the peripheral controller. In addition, since the application processor no longer performs specific interaction operations with the peripheral controller, it is not necessary to install the driver of the peripheral controller in the application processor, thereby further reducing the burden on the application processor and reducing resource consumption.
[0009] In addition, the present application also sets a direct memory access module in the input and output processor of the microprocessor architecture. On this basis, the data transmission method proposed in the embodiment of the present application can use the direct memory access module to execute the data interaction process with the peripheral controller, without the need for the second processor core in the input and output processor to personally perform the data interaction operation with the peripheral controller. This can reduce the resource occupation of the slave core by data communication with the peripheral in the heterogeneous multi-core microprocessor architecture, thereby improving the performance of the slave core.
[0010] In some implementations, the direct memory access module includes a global configuration register module, and the global configuration register module includes registers for storing configuration information of the direct memory access module; the second processor core configures the data transmission task corresponding to the data transmission request in the direct memory access module, including: the second processor core determines the data transmission task that the direct memory access module needs to perform based on the data transmission request; the second processor core configures the data transmission task information in the register of the global configuration register module based on the data transmission task. Based on this implementation, the first processor core performs data transmission task configuration through the global configuration register module in the direct memory access module, which can improve the efficiency of task configuration.
[0011] In some implementations, the direct memory access module includes multiple data transmission channels, each of which is connected to the global configuration register module; the second processor core configures the data transmission task information in the register of the global configuration register module based on the data transmission task, including: the second processor core configures the data transmission task information corresponding to at least one data transmission channel in the register of the global configuration register module based on the data transmission task; wherein the data transmission task information includes the storage address of the data to be transmitted in the shared storage space, the communication address of the target peripheral controller, the amount of data transmitted, and the timeout threshold; the direct memory access module executes the data transmission task, including: each of the at least one data transmission channel executes the data transmission task according to the data transmission task information corresponding to itself stored in the register of the global configuration register module. Based on this implementation, the direct memory access module can execute the data transmission task through multiple data transmission channels, thereby improving the data transmission efficiency and data transmission bandwidth.
[0012] In some implementations, the data transmission channel includes a peripheral request arbitration register and / or a channel enable register; wherein the peripheral request arbitration register is used to determine the data transmission task currently to be processed from the data transmission tasks corresponding to the multiple peripheral controllers when the data transmission channel receives the data transmission tasks corresponding to the multiple peripheral controllers; the channel enable register is used to control the switch of the data transmission channel. Based on this implementation, the data transmission channel in the direct memory access module can flexibly adjust the switch state, and can flexibly select the data transmission task to be executed.
[0013] In some implementations, the global configuration register module includes an interrupt register, which is connected to each data transmission channel, respectively, and is used to send an interrupt signal to the second processor core in response to an interrupt request of any data transmission channel. Based on this implementation, each data transmission channel can independently control the interrupt register to send an interrupt signal, and the entire direct memory access module only retains one interrupt line to the outside, thereby improving the structural neatness of the direct memory access module.
[0014] In some implementations, the direct memory access module includes a channel polling module for cyclically detecting the switch status of each data transmission channel; the second processor core configures the data transmission task information corresponding to at least one data transmission channel in the register of the global configuration register module based on the data transmission task, including: the second processor core configures the data transmission task information corresponding to at least one data transmission channel in the open state in the register of the global configuration register module based on the data transmission task and the switch status of each data transmission channel of the direct memory access module. Based on this implementation, when the data transmission channels in the direct memory access module are in different switch states, the data transmission channel in the open state can be selected to execute the data transmission task, thereby ensuring the smooth execution of the data transmission task when multiple data transmission channels are flexibly switched.
[0015] In some implementations, the direct memory access module further includes an uplink direct memory access control module and a downlink direct memory access control module, and the multiple data transmission channels are respectively connected to the uplink direct memory access control module and the downlink direct memory access control module; the at least one data transmission channel each performs a data transmission task according to the data transmission task information corresponding to itself stored in the register of the global configuration register module, including: the at least one data transmission channel each performs data interaction with the shared storage space through the uplink direct memory access control module according to the data transmission task information corresponding to itself stored in the register of the global configuration register module, and performs data interaction with the peripheral controller through the downlink direct memory access control module. Based on this implementation, the data transmission channel in the direct memory access module can perform data transmission tasks more efficiently.
[0016] In some implementations, the direct memory access module further includes a request and response processing module, and the request and response processing module is connected to the downlink direct memory access control module; the method further includes: when the request and response processing module obtains a data transmission request sent by the at least one peripheral controller, the downlink direct memory access control module is called to execute a data transmission task corresponding to the data transmission request. Based on this implementation, the direct memory access module can directly respond to the data transmission request initiated by the peripheral controller, thereby improving the data communication efficiency between the input and output processor and the peripheral controller.
[0017] In some implementations, the method further includes: configuring a data transmission task corresponding to the data transmission request in the direct memory access module by the second processor core upon receiving a data transmission request sent by the target peripheral controller; wherein the data transmission request is used to request to send the data to be transmitted to the application processor; executing the data transmission task by the direct memory access module to obtain the data to be transmitted from the target peripheral controller, and storing the obtained data to be transmitted in the shared storage space corresponding to the target peripheral controller; sending a notification message to the application processor by the second processor core; the notification message is used to notify the application processor to read the data to be transmitted from the shared storage space corresponding to the target peripheral controller in the input-output processor. Based on this implementation, in the scenario where the peripheral controller sends data to the application processor, the data interaction process with the peripheral controller is performed with the help of the direct memory access module in the input-output processor, without the need for the second processor core in the input-output processor to personally perform the data interaction operation with the peripheral controller, which can reduce the resource occupation of the slave core by data communication with the peripheral in the heterogeneous multi-core microprocessor architecture, thereby improving the performance of the slave core. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0019] Figure 1 A schematic diagram of the structure of a microprocessor architecture provided in an embodiment of the present application.
[0020] Figure 2 A schematic diagram of the structure of another microprocessor architecture provided in an embodiment of the present application.
[0021] Figure 3 A flowchart of a data transmission method provided in an embodiment of the present application.
[0022] Figure 4 A schematic diagram of the structure of a direct memory access module in a microprocessor architecture provided in an embodiment of the present application.
[0023] Figure 5 Another structural schematic diagram of a direct memory access module in a microprocessor architecture provided in an embodiment of the present application.
[0024] Figure 6Another structural diagram of a direct memory access module in a microprocessor architecture provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiment of the present application proposes an innovative microprocessor architecture, and based on the microprocessor architecture, proposes an innovative data transmission solution between an application processor and a peripheral controller, which can achieve more efficient data transmission and greatly reduce the occupancy of slave core resources.
[0026] Figure 1 A conventional heterogeneous multi-core microprocessor architecture is shown.
[0027] See also Figure 1 As shown, in a conventional heterogeneous multi-core microprocessor architecture, an application processor, at least one memory, at least one peripheral controller, and a second processor core are included, and the above components are interconnected through an on-chip network.
[0028] The application processor includes a first processor core, which is the operation and control center of the entire microprocessor architecture and is used to execute instructions and operations. At the same time, the first processor core, as the main processor core of the entire microprocessor architecture, is also used to start and control other processor cores in the microprocessor architecture, such as the second processor core.
[0029] The above-mentioned memory may be a memory such as DDR, SRAM, etc., or a combination of these memories.
[0030] The second processor core is the slave core of the heterogeneous multi-core microprocessor architecture, specifically a RISC-V (Reduced Instruction Set Computer-Five, the fifth generation reduced instruction set computer) core, that is, a processor core of the RISC-V instruction architecture, which mainly completes instruction access for modules with low real-time requirements such as low-speed peripherals.
[0031] The at least one peripheral controller mentioned above may include any external device connected to the microprocessor architecture or a controller corresponding to an external device interface, such as a UART (Universal Asynchronous Receiver / Transmitter) controller, an I2C (Inter-Integrated Circuit) controller, an SPI (Serial Peripheral Interface) controller, an SD (Secure Digital) controller, a GMAC controller (Gigabit Media Access Controller), and the like.
[0032] Based on the above-mentioned heterogeneous multi-core microprocessor architecture, when the first processor core in the application processor needs to communicate data with any target peripheral controller, the first processor core (master core) sends the data information that needs to be transmitted with the target peripheral controller to the shared storage space in the memory, and then the second processor core (slave core) controls the data transmission between the above-mentioned shared storage space and the peripherals. In this way, the resources of the first processor core can be released in time, so that the first processor core can process other tasks in time, thereby improving the work efficiency and performance of the first processor core.
[0033] However, as the functions of microprocessor architecture become more and more abundant, the number of connected peripheral controllers increases, and the work pressure on the second processor core also increases dramatically. Since the data transmission performance of low-speed peripherals is weak, it takes a long time for the second processor core to transmit data with low-speed peripherals, which will cause the slave core resources to be occupied for a long time, and then cause the slave core performance to decline.
[0034] In response to the above technical problems, in order to reduce the resource occupation of the slave core by data communication with peripherals in a heterogeneous multi-core microprocessor architecture, thereby improving the performance of the slave core, the embodiment of the present application proposes a new heterogeneous multi-core microprocessor architecture, and based on the microprocessor architecture, proposes a new solution for realizing data transmission between the main core and the peripherals. It has been verified that the solution can significantly reduce the resource occupation of the slave core in the process of data transmission between the main core and the peripherals, thereby improving the performance of the slave core, and then the performance of the entire microprocessor architecture.
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0036] The embodiment of the present application first proposes a microprocessor architecture, which is specifically a heterogeneous multi-core microprocessor architecture.
[0037] See also Figure 2 As shown, the microprocessor architecture includes:
[0038] An application processor 100 , an input / output processor 110 and at least one peripheral controller 120 , wherein the application processor 100 is communicatively connected to the input / output processor 110 via an on-chip network 130 , and the input / output processor 110 is connected to the at least one peripheral controller 120 , respectively.
[0039] The on-chip network 130 is a communication network between various components within the entire microprocessor architecture, and is used to provide communication links between various components within the microprocessor architecture. Various types of buses, bus interfaces, etc. can be integrated in the on-chip network 130 to meet the communication requirements between the input and output processor 110 and the application processor 100 based on any type of bus.
[0040] The application processor 100 includes one or more first processor cores 101, which are the operation and control center of the entire microprocessor architecture and are used to execute instructions and operations. At the same time, as the main processor core of the entire microprocessor architecture, the first processor core is also used to start and control other processor cores in the microprocessor architecture, such as the second processor core. For example, before the second processor core 111 in the input-output processor 110 is started, the first processor core 101 of the application processor 100 copies the firmware program stored in the memory to the memory 113 of the input-output processor 110, so that the second processor core 111 in the input-output processor 110 can load the firmware program from the memory 113 to start running.
[0041] The at least one peripheral controller 120 mentioned above may include any external device connected to the microprocessor architecture or a controller corresponding to an external device interface, such as a UART (Universal Asynchronous Receiver / Transmitter) controller, an I2C (Inter-Integrated Circuit) controller, an SPI (Serial Peripheral Interface) controller, an SD (Secure Digital) controller, a GMAC controller (Gigabit Media Access Controller), and the like.
[0042] In the embodiment of the present application, the above-mentioned peripheral controller 120 may include a controller of a low-speed peripheral. In this embodiment, the low-speed peripheral controller 120 is connected to the application processor 100 through the input-output processor 110, and the input-output processor 110 performs communication interaction with the low-speed peripheral, thereby avoiding the application processor 100 directly communicating with the low-speed peripheral and affecting the performance of the application processor 100.
[0043] In other embodiments, the high-speed peripheral controller in the microprocessor architecture can be directly connected to the application processor 100 through a separate path, so that the application processor 100 can directly communicate and interact with the high-speed peripheral controller, thereby ensuring the smooth execution of the high-speed peripheral interaction service.
[0044] In addition, in some embodiments, the application processor 100 may directly interact with some low-speed peripheral controllers when the input / output processor 110 is operating at full capacity.
[0045] In some embodiments, it is possible to flexibly select which peripheral controllers are connected to the application processor 100 through the input / output processor 110, or flexibly select which peripheral controllers are directly connected to the application processor 100. Alternatively, for a certain peripheral controller, the peripheral controller may interact directly with the application processor 100 in some cases, or the interaction between the peripheral controller and the application processor 100 may be realized through the input / output processor 110 in some cases.
[0046] The input / output processor 110 is a hardware structure specially provided in the microprocessor architecture in the embodiment of the present application for executing data communication operations between the application processor 100 and each peripheral controller 120 .
[0047] The input-output processor 110 includes a second processor core 111, at least one memory 113 and a direct memory access module 114. The at least one memory 111 is provided with a shared storage space corresponding to each peripheral controller. Inside the input-output processor 110, various components such as the second processor core 111, at least one memory 113 and the direct memory access module 114 are connected via a network interconnection module 112, and various components inside the input-output processor 110 are respectively connected to at least one peripheral controller 120 via the network interconnection module 112.
[0048] The above-mentioned second processor core 111 is a slave core of the heterogeneous multi-core microprocessor architecture, specifically a RISC-V (Reduced Instruction Set Computer-Five, the fifth generation reduced instruction set computer) core, that is, a processor core of the RISC-V instruction architecture, which mainly completes instruction access to modules with low real-time requirements such as low-speed peripherals.
[0049] The memory 113 in the input / output processor 110 may be a memory such as DDR, SRAM, or a combination of these memories. In the memory 113, a corresponding shared storage space is allocated to each peripheral controller 120.
[0050] The input / output processor 110 of the microprocessor architecture proposed in the embodiment of the present application also includes a direct memory access (DMA) module 114, which is connected to the network interconnection module 112, and can communicate with the second processor core 111, the memory 113 and the peripheral controller 120 through the network interconnection module 112.
[0051] The network interconnection module 112 is connected to the on-chip network 130, so that the network interconnection module 112 is connected to the application processor 100. At the same time, the network interconnection module 112 is also connected to at least one peripheral controller 120 and other parts inside the input and output processor 100, such as Figure 2 As shown in FIG. 1 , the network interconnection module 112 is connected to the memory 113 , the second processor core 111 and the DMA module 114 respectively.
[0052] The network interconnection module 112 serves as a communication route inside the input / output processor 110 , and is used to provide a communication link for the application processor 100 , the at least one peripheral controller 120 , and various parts inside the input / output processor 110 .
[0053] Specifically, the network interconnection module 112 may send an access request for any target peripheral controller sent by the application processor 100 to the memory 113 .
[0054] Various types of buses, bus interfaces, etc. can be integrated in the network interconnection module 112 to meet the communication requirements based on any type of bus between various parts within the input / output processor 110, and at the same time meet the communication requirements based on any type of bus between the input / output processor 110 and components such as the application processor 100 and the peripheral controller 120.
[0055] Different from the conventional heterogeneous multi-core microprocessor architecture, the microprocessor architecture proposed in the embodiment of the present application integrates the second processor core 111 and the memory 113 together through the network interconnection module 112 to form an input-output processor, and the input-output processor 110 is connected to the peripheral controller 120. Based on the above structural optimization, the input-output processor 110 is constructed in the microprocessor architecture as an intermediate medium between the application processor 100 and each peripheral controller 120. The application processor 100 only needs to be connected to the input-output processor 110, and the input-output processor 110 is connected to each peripheral controller respectively, so that the application processor 100 does not need to establish a communication link with each peripheral controller separately.
[0056] At the same time, based on the above-mentioned setting of the input and output processor 110, in the interaction scenario between the first processor 100 and the peripheral controller, the input and output processor 110 can replace the first processor 100 to perform at least part of the interaction operations with the peripheral controller, thereby saving the processing resources of the first processor 100.
[0057] For example, when the application processor 100 needs to access any target peripheral controller among the peripheral controllers, it only needs to send an access request for the target peripheral controller to the input / output processor 110. The second processor core 111 in the input / output processor 110 executes access to the target peripheral controller according to the access request sent by the application processor 100, such as sending the access request to the target peripheral controller, and when receiving the access result returned by the target peripheral controller for the access request, the access result returned by the target peripheral controller is fed back to the application processor 100. In the above process, the application processor 100 only needs to send the access request for the target peripheral controller to the input / output processor 110. At this time, the application processor 100 can perform other operations without performing subsequent interactive operations with the target peripheral controller. Instead, the input / output processor 110 sends the access request to perform actual access to the peripheral controller and feeds back the access result to the application processor 100. It can be seen that the above processing greatly reduces the resource consumption when the application processor 100 interacts with the peripheral controller.
[0058] When any target peripheral controller among the peripheral controllers needs to send data to the application processor 100, it first sends a data transmission request to the input / output processor 110, and the data transmission request may be a set request or signal, such as an interrupt request or an interrupt signal; after receiving the data transmission request, the processor core 111 in the input / output processor 110 accesses the target peripheral controller to obtain the data to be transmitted, and stores the data to be transmitted in the input / output processor 110; then, the processor core 111 in the input / output processor 110 sends a notification message to the application processor 100, notifying the application processor to read the above-mentioned data to be transmitted from the input / output processor 110; when the application processor 100 receives the notification message, it may read the data to be transmitted from the input / output processor 110 at an appropriate time. In the above-mentioned data uplink interaction scenario, the input / output processor 110 executes the operations of receiving the data transmission request sent by the target peripheral controller and obtaining the data to be transmitted from the target peripheral controller. For the application processor 100, it only needs to read the data from the input / output processor 110 when receiving the notification message sent by the processor core 111 in the input / output processor 110. Compared with the direct interaction between the peripheral controller and the application processor 100, this process reduces the interruption to the work of the application processor 100, which helps to reduce the working pressure of the application processor 100.
[0059] like Figure 2 As shown, at least one peripheral controller 120 in the microprocessor architecture proposed in the embodiment of the present application is arranged outside the input-output processor 110, and at this time, each peripheral controller 120 is connected to the input-output processor 110 through the peripheral controller interface of the input-output processor 110. The above peripheral controller setting method can more conveniently delete or add peripheral controllers connected to the input-output processor 110, so that the peripheral controller can be flexibly adjusted to communicate and interact directly with the application processor 100, or to communicate and interact with the application processor 100 through the input-output processor 110.
[0060] In other embodiments, one or more of the at least one peripheral controller 120 in the above-mentioned microprocessor architecture may be arranged inside the input-output processor 110, and the peripheral controller arranged inside the input-output processor 110 may be connected to other parts of the input-output processor 110 through the communication link inside the input-output processor 110. The above-mentioned peripheral controller arrangement method can, on the one hand, improve the security of the peripheral controller, that is, the application processor 100 must interact with the peripheral controller through the input-output processor 110, and the application processor 100 cannot interact with the peripheral controller directly, so that the security of the peripheral controller can be ensured by the input-output processor 110, for example, the input-output processor 110 performs security verification and security control on the interaction process between the application processor 100 and the peripheral controller; on the other hand, arranging the peripheral controller inside the input-output processor 110 can facilitate the modification, adjustment, optimization and other operations of the peripheral controller inside the input-output processor, so that the manufacturer of the input-output processor completely privatizes the peripheral controller without describing any information of the peripheral controller to the outside.
[0061] In the above embodiment, since the application processor 100 no longer performs actual interaction operations with at least some of the peripheral controllers (low-speed peripheral controllers), there is no need to install drivers for these peripheral controllers in the application processor 100, and there is no operation to upgrade or update the drivers of these peripheral controllers, thereby further reducing the burden on the application processor 100 and reducing resource consumption.
[0062] As for the second processor core 111, as the control core of the input / output processor 110, the interaction between the input / output processor 110 and the peripheral controller is completely controlled and implemented by the second processor 111, which brings great work pressure to the second processor core 111. When the processing performance of the peripheral controller is weak, or there are many tasks to interact with the peripherals, the resources of the second processor core 111 will be occupied for a long time, thereby affecting the performance of the second processor core 111.
[0063] In view of the above problems, the embodiment of the present application sets a DMA module 114 in the input-output processor 110. Based on the setting of the DMA module 114, the embodiment of the present application proposes a data transmission method based on the input-output processor 110, especially based on the DMA module 114 in the input-output processor 110. The method can be specifically executed by the input-output processor 110 in the above-mentioned microprocessor architecture proposed in the embodiment of the present application.
[0064] See also Figure 3 As shown, the method includes:
[0065] S101 . When receiving a data transmission request sent by the first processor core 101 , the second processor core 111 configures a data transmission task corresponding to the data transmission request in the direct memory access module 114 .
[0066] The data transmission request is used to request the transmission of target data between a target peripheral controller and a shared storage space corresponding to the target peripheral controller, and the target peripheral controller is any peripheral controller among the at least one peripheral controller 120 .
[0067] Specifically, based on the above-mentioned setting of the DMA module 114, in this embodiment, when the second processor core 111 in the input / output processor 110 obtains the data transmission request sent by the first processor core 101 in the application processor 100, for example, the first processor core 101 stores the target data to be sent to any target peripheral controller in the shared storage space corresponding to the target peripheral controller in the memory 113 of the input / output processor 110, and writes the request information in the shared storage space, and then the first processor core 101 notifies the second processor core 111 to read the data transmission request (target data and request information) from the shared storage space of the target peripheral controller. At this time, the second processor core 111 can obtain the data transmission request for the target peripheral controller sent by the first processor core 101 by accessing the shared storage space of the target peripheral controller. The data transmission request is used to request the transmission of the above-mentioned target data between the shared storage space of the memory 113 (the shared storage space corresponding to the target peripheral controller) and the target peripheral controller.
[0068] After obtaining the above data transmission request, the second processor core 111 accesses the DMA module 114 through the network interconnection module 112, and configures a data transmission task corresponding to the above data transmission request in the DMA module 114. The data transmission task includes information of the data to be transmitted, that is, information of the above target data, such as the storage address of the target data in the memory 113, the target data size, the data type, etc. The data transmission task is used to transmit the data to be transmitted between the target peripheral controller and the shared storage space corresponding to the target peripheral controller according to the requirements of the above data transmission request.
[0069] S102 . Execute the data transmission task through the direct memory access module 114 to transmit the target data between the target peripheral controller and a shared storage space corresponding to the target peripheral controller.
[0070] Specifically, after acquiring the data transmission task configured by the second processor core 111, the DMA module 114 executes the data transmission task, that is, transmits the above-mentioned target data between the target peripheral controller and the shared storage space corresponding to the target peripheral controller. For example, the target data sent by the first processor core 101 is read from the shared storage space corresponding to the target peripheral controller, and then the target data is sent to the target peripheral controller.
[0071] Alternatively, in some other embodiments, the data transmission request sent by the first processor core 101 to the second processor core 111 may only include information about the target data to be transmitted and corresponding request information, but not the data content of the target data itself. For example, when the first processor 101 needs to read the target data from the target peripheral controller, it may write a data transmission request containing relevant information of the target data to the shared storage space of the target peripheral controller, such as a data transmission request containing information such as the name, size, and type of the target data, and then notify the second processor core 111 to obtain the data transmission request from the shared storage space of the target peripheral controller. After the second processor core 111 obtains the data transmission request, it configures a data transmission task corresponding to the data transmission request in the DMA module 114, in which the relevant information of the target data to be transmitted and the corresponding data transmission task information are included. When executing the data transmission task, the DMA module 114 obtains the target data from the target peripheral controller according to the relevant information of the target data to be transmitted, and then sends the target data to the shared storage space corresponding to the target peripheral controller, so that the first processor core 101 can obtain the target data from the shared storage space.
[0072] From the above introduction, it can be seen that the embodiment of the present application sets an input-output processor in the microprocessor architecture to serve as an intermediate medium when the application processor interacts with the peripheral controller, so that the input-output processor performs the data communication task between the application processor and the peripheral controller, thereby reducing the resource consumption when the application processor interacts with the peripheral controller. In addition, since the application processor no longer performs specific interaction operations with the peripheral controller, it is not necessary to install the driver of the peripheral controller in the application processor, thereby further reducing the burden on the application processor and reducing resource consumption.
[0073] In addition, the embodiment of the present application also sets a direct memory access module in the input and output processor of the microprocessor architecture. On this basis, the data transmission method proposed in the embodiment of the present application can use the direct memory access module to execute the data interaction process with the peripheral controller, without the need for the second processor core in the input and output processor to personally perform the data interaction operation with the peripheral controller. This can reduce the resource occupation of the slave core by data communication with the peripheral in the heterogeneous multi-core microprocessor architecture, thereby improving the performance of the slave core.
[0074] In another embodiment, it is also disclosed that the above-mentioned direct memory access module 114 includes a global configuration register module, and the global configuration register module is used to configure the direct memory access module 114. The global configuration register module includes one or more registers for storing configuration information of the direct memory access module. The global configuration register module is connected to the second processor core 111 through the network interconnection module 112, so that the second processor core 111 can access the global configuration register module and configure the direct memory access module 114 through the global configuration register module.
[0075] Based on the setting of the above-mentioned global configuration register module, when the second processor core 111 configures the data transmission task corresponding to the data transmission request in the direct memory access module 114, the data transmission task that the direct memory access module needs to perform is first determined based on the data transmission request, that is, the second processor core determines the data transmission task required to be performed to implement the data transmission request according to the data transmission request. In the data transmission task, the data transmission direction, storage location, data size, data type, transmission destination address, etc. of the target data to be transmitted can be included, and all of this task information can be obtained from the data transmission request.
[0076] Then, the second processor core 111 configures the data transmission task information in the register of the global configuration register module based on the data transmission task.
[0077] For example, the transmission direction of the target data to be transmitted is configured in the data transmission direction register, the storage address of the target data to be transmitted is configured in the storage location register, the size of the target data to be transmitted is configured in the data size register, the data type of the target data to be transmitted is configured in the data type register, the address of the destination to which the target data to be transmitted is configured in the transmission destination address register, and so on.
[0078] Based on the above-mentioned setting of the global configuration register module, the second processor core 111 can efficiently configure the data transmission task in the direct memory access module 114 .
[0079] Another structural form of a direct memory access module is also proposed in some embodiments. Figure 4 FIG. 1 shows a schematic diagram of the structure of the direct memory access module 114 .
[0080] See also Figure 4 As shown, the direct memory access module 114 includes a global configuration register module 1140 and a plurality of data transmission channels 1141. Each data transmission channel 1141 is connected to the global configuration register module 1140 respectively.
[0081] The number of the above-mentioned data transmission channels 1141 can be flexibly set. Figure 4 The direct memory access module structure consisting of 8 data transmission channels, namely data transmission channel 0 to data transmission channel 7, is shown, but the actual number of data transmission channels 1141 is not limited to 8 and can be more or less.
[0082] Based on the design of multiple data transmission channels, the DMA module 114 can support a multi-channel working mode. Each channel can serve the data transmission tasks for multiple peripheral controllers. Each channel can transmit data of any number of bytes, support moving the data of the peripheral controller to the shared storage space corresponding to the peripheral controller, and also support moving the data of the shared storage space corresponding to the peripheral controller to the peripheral controller. Figure 4 The DMA module with 8 data transmission channels shown can transmit a maximum of 16B*8 bytes at the same time.
[0083] Furthermore, different data transmission channels send different AXI message IDs, and the same data transmission channel sends the same AXI message ID, so that the data transmission channel through which the data is transmitted can be distinguished through the AXI message ID.
[0084] It can be understood that the above-mentioned multi-channel DMA module has a larger data transmission bandwidth, a higher data transmission efficiency, can execute more data transmission tasks of the peripheral controller, and has a higher task configuration flexibility.
[0085] Based on the structure of the above-mentioned DMA module 114, when the second processor core 111 configures the data transmission task information in the register of the global configuration register module 1140 based on the data transmission task, specifically based on the data transmission task, the data transmission task information corresponding to at least one data transmission channel is configured in the register of the global configuration register module 1140.
[0086] The at least one data transmission channel is a data transmission channel selected by the second processor core 111 from multiple data transmission channels of the DMA module 114 according to a data transmission task and used to execute the data transmission task.
[0087] The second processor core 111 can select a data transmission channel to perform the data transmission task from multiple data transmission channels according to the amount of data to be transmitted by the data transmission task, the shared storage space corresponding to the data to be transmitted, and the peripheral controller. For example, if the amount of data to be transmitted is small, only one data transmission channel can be selected to perform the data transmission task; if the amount of data to be transmitted is large, multiple data transmission channels can be selected to perform the data transmission task, thereby improving data transmission efficiency; or, based on the correspondence between each data transmission channel and the peripheral controller it serves, the second processor core 111 can select the data transmission channel corresponding to the peripheral controller involved in the data transmission task to perform the data transmission task. In the actual execution process, the second processor core 111 can combine multiple data transmission channel selection strategies to determine at least one data transmission channel for performing the data transmission task from multiple data transmission channels.
[0088] When the second processor core 111 determines that a data transmission task is performed by one data transmission channel, the data transmission task information corresponding to the data transmission channel can be configured in the register of the global configuration register module 1140; when the second processor core 111 determines that a data transmission task is performed by multiple data transmission channels, the data transmission task can be split into sub-tasks corresponding to each selected data transmission channel, and then the data transmission task information corresponding to each selected data transmission channel can be configured in the register of the global configuration register module 1140.
[0089] The above-mentioned data transmission task information includes the storage address of the data to be transmitted in the shared storage space, the communication address of the target peripheral controller, the amount of data to be transmitted, and the timeout threshold. Among them, the storage address of the data to be transmitted in the shared storage space and the communication address of the target peripheral controller are the source address and the destination address of the data to be transmitted. Based on these two addresses, data can be transmitted between the source address and the destination address; when transmitting data from the target peripheral controller to the shared storage space, the address of the target peripheral controller is the source address, and the address of the shared storage space is the destination address. The amount of data transmitted reflects the size of the data that needs to be transmitted by the data transmission task; the timeout threshold is the execution time limit of the data transmission task. When the data transmission task is not completed after exceeding the timeout threshold, the data transmission channel will trigger a timeout interrupt.
[0090] The second processor core 111 performs the above-mentioned data transmission task configuration processing, and the data transmission task information corresponding to at least one data transmission channel for performing the above-mentioned data transmission task is configured in the global configuration register module 1140 .
[0091] Accordingly, at least one data transmission channel for executing the above data transmission task executes the data transmission task according to the data transmission task information corresponding to itself stored in the register of the global configuration register module 1140. That is, at least one data transmission channel for executing the above data transmission task obtains the data transmission task information corresponding to itself from the global configuration register module 1140, and executes the corresponding data transmission task, thereby realizing the execution of the data transmission task by the DMA module 114.
[0092] In this embodiment, the second processor core 111 can configure multiple data transmission channels in the DMA module 114 to jointly perform data transmission tasks, which has higher data transmission efficiency and can synchronously perform data transmission tasks for multiple peripheral controllers.
[0093] In another embodiment, the data transmission channel in the DMA module 114 includes a peripheral request arbitration register and / or a channel enable register.
[0094] Among them, the peripheral request arbitration register is used to determine the data transmission task that currently needs to be processed from the data transmission tasks corresponding to the multiple peripheral controllers when the data transmission channel receives data transmission tasks corresponding to the multiple peripheral controllers, that is, the peripheral request arbitration register is used to arbitrate which peripheral controller's data transmission task currently needs to be responded to.
[0095] As described in the above embodiments, a data transmission channel can serve data transmission tasks for multiple peripheral controllers. For example, a data transmission channel can execute data transmission tasks for 32 peripheral controllers, that is, the data transmission tasks of these 32 peripheral controllers are all executed by the same data transmission channel, but it does not mean that this data transmission channel can execute data transmission tasks for these 32 peripheral controllers at the same time. At a specific moment, the data transmission channel can only execute a data transmission task for one peripheral controller. Therefore, when multiple peripheral controllers among the multiple peripheral controllers served by a data transmission channel initiate data transmission tasks at the same time, the data transmission channel needs to arbitrate which peripheral controller's data transmission task to respond to at the current moment.
[0096] The peripheral request arbitration register in the data transmission channel is used to perform the above arbitration operation. Specifically, when the data transmission channel receives data transmission tasks corresponding to multiple peripheral controllers at the same time, it can determine the data transmission task to be processed from the data transmission tasks corresponding to multiple peripheral controllers according to the priority, urgency, amount of data to be transmitted, estimated transmission time, etc. of each data transmission task. When the current pending data transmission task is processed, the data transmission channel continues with the remaining unexecuted data transmission tasks. When there are multiple remaining unexecuted data transmission tasks, the peripheral request arbitration register can further arbitrate multiple unexecuted data transmission tasks.
[0097] The above-mentioned channel enable register is used to control the switch of the data transmission channel. When the channel enable register configures the data transmission channel to be enabled, the data transmission channel is in the on state and can execute data transmission tasks; when the channel enable register configures the data transmission channel to be disabled, the data transmission channel is in the off state and no data transmission tasks are executed at this time.
[0098] Based on this embodiment, the data transmission channel in the DMA module 114 can flexibly adjust the switch state, and can flexibly select the data transmission task to be executed.
[0099] In another embodiment, the DMA module 114 also includes a channel polling module for cyclically detecting the switch status of each data transmission channel, so that after each polling, it can be determined which data transmission channels are in the on state and which data transmission channels are in the off state, so that when a data transmission task is received, it can be determined through which data transmission channels the data transmission task can be executed.
[0100] For example, based on the setting of the channel enable register in the above-mentioned data transmission channel, the channel polling module can determine the switching status of each data transmission channel by reading the channel enable register in each data transmission channel; or, the channel polling module can also determine the switching status of each data transmission channel by detecting the heartbeat signal of each data transmission channel.
[0101] The detection results of the switch status of each data transmission channel by the channel polling module will be fed back to the second processor core 111 in real time, or updated and stored in the DMA module 114 in real time, so that the second processor core 111 can obtain the latest switch status of the data transmission channel in time when configuring the data transmission task for the DMA module 114, and then configure the data transmission task to the data transmission channel in the turned-on state.
[0102] Specifically, when the second processor core 111 configures the data transmission task information corresponding to at least one data transmission channel in the register of the global configuration register module 1140 based on the data transmission task, based on the data transmission task and the switching status of each data transmission channel of the DMA module 114, the data transmission task information corresponding to at least one data transmission channel in the turned-on state is configured in the register of the global configuration register module 1140.
[0103] That is, the second processor core 111 selects at least one data transmission channel in the turned-on state to perform the data transmission task based on the switching status of each data transmission channel of the DMA module 114, and then, based on the data transmission task, the second processor core 111 configures the data transmission task information corresponding to each of the at least one data transmission channels selected to perform the data transmission task in the register of the global configuration register module 1140.
[0104] This embodiment can select a data transmission channel in an on state to execute a data transmission task when the data transmission channels in the DMA module 114 are in different switching states, thereby ensuring smooth execution of the data transmission task when multiple data transmission channels are flexibly switched.
[0105] In another embodiment, the global configuration register module 1140 also includes an interrupt register, which is connected to each data transmission channel respectively. The interrupt register is used to respond to an interrupt request of any data transmission channel and issue an interrupt signal, which can be sent to the second processor core 111.
[0106] For example, when a data transmission task executed by any data transmission channel times out, or when the data transmission channel completes the data transmission task, the data transmission channel will notify the second processor core 111 in an interrupt manner. At this time, the data transmission channel can send an interrupt request to the interrupt register in the global configuration register module 1140. The interrupt register responds to the interrupt request and sends an interrupt signal. The interrupt signal is ultimately fed back to the second processor core 111, thereby enabling the second processor core 111 to obtain the working status of the data transmission channel.
[0107] Based on the above DMA module architecture, each data transmission channel can independently control the interrupt register to send an interrupt signal, and the entire DMA module only retains one interrupt line to the outside, thereby improving the neatness of the structure of the DMA module 114.
[0108] In other embodiments, see Figure 5As shown, the DMA module 114 also includes an upstream direct memory access control module 1142 and a downstream direct memory access control module 1143, and each of the multiple data transmission channels 1141 is respectively connected to the upstream direct memory access control module 1142 and the downstream direct memory access control module 1143. The upstream direct memory access control module 1142 is connected to the network interconnection module 112 through the upstream bus interface 2, and the downstream direct memory access control module 1143 is connected to the network interconnection module 112 through the downstream bus interface 3. The upstream bus interface 2 and the downstream bus interface 3 are two groups of AXI buses, and for the downstream bus interface 3, the AXI bus is converted into an APB bus in the network interconnection module 112, and then the peripheral controller is accessed through the APB bus.
[0109] Based on the above-mentioned uplink direct memory access control module 1142 and downlink direct memory access control module 1143, when at least one data transmission channel executes a data transmission task, each according to the data transmission task information corresponding to itself stored in the register of the global configuration register module, specifically, each according to the data transmission task information corresponding to itself stored in the register of the global configuration register module, realizes data interaction with the shared storage space through the uplink direct memory access control module 1142, and realizes data interaction with the peripheral controller through the downlink direct memory access control module 1143.
[0110] Among them, see Figure 5 As shown, an upstream read processing module and an upstream write processing module are provided in the upstream direct memory access control module 1142. The upstream read processing module is used to read data from the shared memory space through the upstream bus interface 2, and the upstream write processing module is used to write data to the shared memory space through the upstream bus interface 2. The data transmission channel can implement data read and write operations on the shared memory space by calling the upstream read processing module and the upstream write processing module in the upstream direct memory access control module 1142.
[0111] A downstream read processing module and a downstream write processing module are provided in the downstream direct memory access control module 1143. The downstream read processing module is used to read data from the peripheral controller through the downstream bus interface 3, and the downstream write processing module is used to write data to the peripheral controller through the downstream bus interface 3. The data transmission channel can realize data read and write operations on the peripheral controller by calling the downstream read processing module and the downstream write processing module in the downstream direct memory access control module 1142.
[0112] In addition, see Figure 5As shown, the DMA module 114 also includes a bus interface configuration module 1144, which is connected to the network interconnection module 112 and the global configuration register module 1140 via the bus interface 1. The above-mentioned bus interface 1 is an APB bus interface.
[0113] The bus interface configuration module 1144 is used to implement the APB bus configuration. When the second processor core 111 needs to configure a data transmission task in the global configuration register module 1140, the data transmission task information sent by the second processor core 111 first enters the bus interface configuration module 1144 through the APB bus, and then enters the global configuration register module 1140 to configure the internal registers for the data transmission task.
[0114] In another embodiment, see Figure 6 As shown, the DMA module 114 also includes a request and response processing module 1145 , which is connected to the downlink direct memory access control module 1143 and is externally connected to the network interconnection module 112 .
[0115] The request and response processing module 1145 is used to receive a data transmission request sent by the peripheral controller. The data transmission request can be a request from the peripheral controller to move data to the shared storage space corresponding to the peripheral controller, or a request from the shared storage space corresponding to the peripheral controller to move data to the peripheral controller.
[0116] When the request and response processing module 1145 obtains the data transmission request sent by the at least one peripheral controller, it calls the downlink direct memory access control module 1143 to execute the data transmission task corresponding to the data transmission request. And after the data transmission task is completed, the request and response processing module 1145 sends a response signal to the peripheral controller.
[0117] The request and response processing module 1145 has the functions of configuring tasks and controlling task execution, that is, it has a data transmission control function similar to that of the second processor core 111. Therefore, when the request and response processing module 1145 receives a data transmission request from the peripheral controller, it can determine the data transmission task of the response according to the request, and send the data transmission task to the downlink direct memory access control module 1143, and control the downlink direct memory access control module 1143 to execute the data transmission task.
[0118] After receiving the call request from the request and response processing module 1145 , the downlink direct memory access control module 1143 further calls at least one data transmission channel 1141 and / or the uplink direct memory access control module 1142 to perform a data transmission task.
[0119] In other embodiments, when any target peripheral controller needs to send data to the application processor 100, a data sending request is first sent to the second processor core 111 in the input / output processor 110. When the second processor core 111 in the input / output processor 110 obtains the data sending request sent by the target peripheral controller, it accesses the DMA module 114 through the network interconnection module 112, and configures a data transmission task corresponding to the above data sending request in the DMA module 114. In addition, the second processor core 111 sends a notification message to the application processor 100, notifying the application processor to read the data to be transmitted from the shared storage space corresponding to the target peripheral controller in the input / output processor.
[0120] The data transmission request is used to request to send the data to be transmitted to the application processor. The data transmission task corresponding to the data transmission request includes specific task information of the data transmission task. In this embodiment, the data to be transmitted is obtained from the target peripheral controller and stored in the shared storage space corresponding to the target peripheral controller.
[0121] After acquiring the data transmission task configured by the second processor core 111, the DMA module 114 executes the data transmission task, that is, reads the data to be transmitted from the target peripheral controller, and then sends the data to be transmitted to the shared storage space corresponding to the target peripheral controller. After completing the above data reading and storage operations, the DMA module 114 sends a message to the second processor core 111 in the input and output processor 110, informing the second processor core 111 that the reading and storage of the data to be transmitted have been completed. Then, the second processor core 111 can send a notification message to the application processor 100, informing the application processor 100 to read the data to be transmitted from the shared storage space corresponding to the above target peripheral controller in the input and output processor 110.
[0122] After receiving the notification message, the application processor 100 can choose to access the shared storage space corresponding to the target peripheral controller in the input / output processor 110 and read the data to be transmitted.
[0123] Based on this implementation method, in the scenario where the peripheral controller sends data to the application processor, the data interaction process with the peripheral controller is executed with the help of the direct memory access module in the input-output processor, without the need for the second processor core in the input-output processor to personally perform the data interaction operation with the peripheral controller. This can reduce the resource occupation of the slave core by data communication with the peripherals in the heterogeneous multi-core microprocessor architecture, thereby improving the performance of the slave core.
[0124] Another embodiment of the present application further provides a microprocessor architecture. The structure of the microprocessor architecture is as follows: Figure 2 As shown, the microprocessor architecture includes an application processor, an input-output processor and at least one peripheral controller; the input-output processor serves as an intermediate medium when the application processor interacts with the at least one peripheral controller, the application processor includes a first processor core, the input-output processor includes a second processor core, at least one memory and a direct memory access module, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller; the microprocessor architecture is configured to execute the data transmission method described in any of the above embodiments.
[0125] The specific structural form of the microprocessor architecture, its specific functions and processing procedures, and the beneficial effects achieved by the microprocessor architecture can all be found in the introduction to the above-mentioned embodiment of the data transmission method, which will not be repeated here.
[0126] Based on the above-mentioned microprocessor architecture, another embodiment of the present application further proposes a computer device, which includes the microprocessor architecture introduced in any of the above-mentioned embodiments.
[0127] Exemplarily, the above-mentioned computer device can be any single device such as a personal computer, a server, an industrial computer, a workstation, a handheld terminal, a wearable device, a smart terminal, etc.
[0128] Since the computer device has the above-mentioned microprocessor architecture, the computer device has the functions or structural characteristics of the above-mentioned microprocessor architecture, and has the beneficial effects of the above-mentioned microprocessor architecture. The specific structure and function of the microprocessor architecture in the above-mentioned computer device can also be referred to the introduction of the above-mentioned data transmission method embodiment, which will not be repeated here.
[0129] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0130] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0131] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0132] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.
[0133] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0134] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0136] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0137] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0138] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0139] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data transmission method, It is characterized in that The method is applied to a microprocessor architecture, the microprocessor architecture includes an application processor, an input-output processor and at least one peripheral controller; the input-output processor serves as an intermediate medium when the application processor interacts with the at least one peripheral controller, the application processor includes a first processor core, the input-output processor includes a second processor core, at least one memory and a direct memory access module, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller; the method includes: When receiving a data transmission request sent by the first processor core, the second processor core configures a data transmission task corresponding to the data transmission request in the direct memory access module; wherein the data transmission request is used to request to transmit target data between a target peripheral controller and a shared memory space corresponding to the target peripheral controller, and the target peripheral controller is any peripheral controller among the at least one peripheral controller; The data transmission task is performed by the direct memory access module to transmit the target data between the target peripheral controller and a shared storage space corresponding to the target peripheral controller.
2. The method according to claim 1, It is characterized in that The direct memory access module includes a global configuration register module, and the global configuration register module includes a register for storing configuration information of the direct memory access module; The second processor core configures a data transmission task corresponding to the data transmission request in the direct memory access module, including: The second processor core determines, based on the data transmission request, a data transmission task that the direct memory access module needs to perform; The second processor core configures data transmission task information in a register of the global configuration register module based on the data transmission task.
3. The method according to claim 2, It is characterized in that The direct memory access module includes a plurality of data transmission channels, each of which is connected to the global configuration register module respectively; The second processor core configures data transmission task information in a register of the global configuration register module based on the data transmission task, including: The second processor core configures data transmission task information corresponding to at least one data transmission channel in a register of the global configuration register module based on the data transmission task; The data transmission task information includes the storage address of the data to be transmitted in the shared storage space, the communication address of the target peripheral controller, the amount of data to be transmitted, and the timeout threshold; The direct memory access module performs the data transmission task, including: Each of the at least one data transmission channels executes a data transmission task according to the data transmission task information corresponding to itself stored in the register of the global configuration register module.
4. The method according to claim 3, It is characterized in that The data transmission channel includes a peripheral request arbitration register and / or a channel enable register; The peripheral request arbitration register is used to determine the data transmission task currently to be processed from the data transmission tasks corresponding to the plurality of peripheral controllers when the data transmission channel receives the data transmission tasks corresponding to the plurality of peripheral controllers; The channel enable register is used to control the switch of the data transmission channel.
5. The method according to claim 3, It is characterized in that The global configuration register module includes an interrupt register, which is connected to each data transmission channel respectively and is used to send an interrupt signal to the second processor core in response to an interrupt request of any data transmission channel.
6. The method according to claim 3, It is characterized in that The direct memory access module includes a channel polling module, which is used to cyclically detect the switch status of each data transmission channel; The second processor core configures data transmission task information corresponding to at least one data transmission channel in a register of the global configuration register module based on the data transmission task, including: The second processor core configures data transmission task information corresponding to at least one data transmission channel in an on state in a register of the global configuration register module based on the data transmission task and the switch status of each data transmission channel of the direct memory access module.
7. The method according to claim 3, It is characterized in that The direct memory access module further comprises an uplink direct memory access control module and a downlink direct memory access control module, and the plurality of data transmission channels are respectively connected to the uplink direct memory access control module and the downlink direct memory access control module; Each of the at least one data transmission channels performs a data transmission task according to the data transmission task information corresponding to itself and stored in the register of the global configuration register module, including: Each of the at least one data transmission channels realizes data interaction with the shared storage space through the uplink direct memory access control module in accordance with the data transmission task information corresponding to itself stored in the register of the global configuration register module, and realizes data interaction with the peripheral controller through the downlink direct memory access control module.
8. The method according to claim 7, It is characterized in that The direct memory access module further comprises a request and response processing module, and the request and response processing module is connected to the downlink direct memory access control module; The method further comprises: When the request and response processing module obtains the data transmission request sent by the at least one peripheral controller, it calls the downlink direct memory access control module to execute the data transmission task corresponding to the data transmission request.
9. The method according to claim 1, It is characterized in that The method further comprises: When receiving a data transmission request sent by the target peripheral controller, the second processor core configures a data transmission task corresponding to the data transmission request in the direct memory access module; wherein the data transmission request is used to request to send the data to be transmitted to the application processor; Executing the data transmission task through the direct memory access module to obtain the data to be transmitted from the target peripheral controller, and storing the obtained data to be transmitted in the shared storage space corresponding to the target peripheral controller; A notification message is sent to the application processor through the second processor core; the notification message is used to notify the application processor to read the data to be transmitted from the shared storage space corresponding to the target peripheral controller in the input and output processor.
10. A microprocessor architecture, It is characterized in that The microprocessor architecture includes an application processor, an input-output processor and at least one peripheral controller; the input-output processor serves as an intermediate medium when the application processor interacts with the at least one peripheral controller, the application processor includes a first processor core, the input-output processor includes a second processor core, at least one memory and a direct memory access module, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller; the microprocessor architecture is configured to execute the data transmission method as described in any one of claims 1 to 9.
11. A computer device, It is characterized in that Comprising the microprocessor architecture as claimed in claim 10.
Citation Information
Cited By
Asynchronous data communication cache control system between satellite-borne processor and communication controller
CN121547426A
