Equipment access control method, microprocessor architecture and computer equipment

By introducing input and output processors into the microprocessor architecture and allocating matching shared storage space to the peripheral controller, the problem of excessive resource occupancy when the main core interacts with the peripheral is solved, and the main core efficiency and storage space are improved Utilization.

CN119003412APending Publication Date: 2024-11-22PHYTIUM TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411084659.X
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

Technical Problem

In traditional microprocessor architecture, the main core takes up the main core resources for a long time when interacting with the peripheral, affecting the working efficiency and performance of the main core.

Method used

Introduce input and output processors as intermediate media to reduce the work of the main core by allocating shared storage space to each peripheral controller that matches its required size and performing access operations of the main core to the peripheral in the input and output processor. burden.

Benefits of technology

It improves the working efficiency and performance of the main core, avoids waste caused by the allocation of fixed-sized storage space, improves the utilization rate of storage space, and achieves the smooth progress of peripheral access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003412A_ABST
    Figure CN119003412A_ABST
Patent Text Reader

Abstract

The invention provides a device access control method, a microprocessor architecture and a computer device, the method is applied to the microprocessor architecture, and the microprocessor architecture comprises an application processor, an input and output processor and at least one peripheral controller; the input and output processor comprises at least one memory, a shared storage space corresponding to each peripheral controller is arranged in the at least one memory, and the size of the shared storage space corresponding to the peripheral controller is matched with the size of the shared storage space required by the peripheral controller; the method comprises the following steps: when receiving an access request for a target peripheral controller sent by an application processor, the input / output processor issues the access request to the target peripheral controller through a shared storage space corresponding to the target peripheral controller. According to the method, the working efficiency and performance of the main core can be improved, and the utilization rate of shared storage resources can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a device access control method, a microprocessor architecture, and a computer device. Background Art

[0002] In a traditional microprocessor architecture, when the main core interacts with an external device, the main core usually interacts directly with the peripheral controller until the entire interaction process is completed. This will occupy the main core resources for a long time and affect the main core's work efficiency and performance. Summary of the invention

[0003] Based on the above technical problems, the present application proposes a device access control method, a microprocessor architecture and a computer device, which can reduce the occupation of the main core resources by the main core accessing peripherals and improve the working efficiency and performance of the main core.

[0004] In a first aspect, the present application proposes a device access control 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, and the input / output processor includes at least one memory, wherein the at least one memory is provided with a shared storage space corresponding to each peripheral controller, and the size of the shared storage space corresponding to the peripheral controller matches the size of the shared storage space required by the peripheral controller; the method includes: when the input / output processor receives an access request for a target peripheral controller sent by the application processor, the input / output processor sends the access request to the target peripheral controller through the 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.

[0005] In a second aspect of the present application, a microprocessor architecture is proposed, comprising an application processor, an input / output processor and at least one peripheral controller; the input / output processor serves as an intermediate medium for the application processor to interact with the at least one peripheral controller, the input / output processor comprises at least one memory, the at least one memory is provided with a shared storage space corresponding to each peripheral controller, the size of the shared storage space corresponding to the peripheral controller matches the size of the shared storage space required by the peripheral controller; the microprocessor architecture is configured to execute the above-mentioned device access control method.

[0006] A third aspect of the present application provides a computer device, comprising the above-mentioned microprocessor architecture.

[0007] Based on any aspect of the first to third aspects mentioned above, the device access control method proposed in this embodiment sets an input-output processor in the microprocessor architecture, and in the input-output processor, allocates a shared storage space that matches the shared storage space size required by the peripheral controller, so that the shared storage space of the peripheral controller can meet the required storage space size, making the shared storage space allocation more flexible, avoiding the problem of storage space waste caused by allocating shared storage space according to a fixed size, and improving the utilization efficiency of the storage space.

[0008] At the same time, based on the above-mentioned shared storage space allocation method, when the input / output processor receives the access request for the target peripheral controller sent by the application processor, it issues the access request through the actual shared storage space of the peripheral controller, that is, the scheme of this embodiment implements the access of the application processor to the peripheral controller based on the actual shared storage space allocated to the peripheral controller, which can smoothly implement the peripheral access without affecting the upper system settings, and improve the utilization rate of the shared storage space. The scheme sets the input / output processor in the microprocessor architecture to execute the access operation of the main core to the peripheral, which can reduce the workload of the main core and help improve the work efficiency and performance of the main core.

[0009] In some implementations, the method further includes: the input-output processor allocates shared storage space to the target peripheral controller from the at least one memory according to the size of the shared storage space required by the target peripheral controller. Based on this implementation, the input-output processor allocates shared storage space to the peripheral controller according to the size of the shared storage space actually required by the peripheral controller, which can avoid storage space waste and improve storage space utilization.

[0010] In some implementations, the access request carries the address information of the initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to the default storage space size; the method further comprises: when the input-output processor receives the access request, it determines that the access request is an access request for the target peripheral controller according to the address information of the initial shared storage space carried in the access request. Based on this implementation, the upper-level computer system can perform peripheral access operations according to the shared storage space at the time of system initialization, reducing the impact on the upper-level computer system, and the input-output processor can accurately identify the destination address of the access request through the received access request, thereby ensuring the validity of the peripheral access.

[0011] In some implementations, the input-output processor sends the access request to the target peripheral controller through the shared storage space corresponding to the target peripheral controller, including: the input-output processor sends the access request to the shared storage space corresponding to the target peripheral controller based on the storage address of the shared storage space corresponding to the target peripheral controller; the input-output processor forwards the access request stored in the shared storage space corresponding to the target peripheral controller to the target peripheral controller. Based on this implementation, the input-output processor accesses the shared storage space of the target peripheral controller through the address of the actual shared storage space allocated to the target peripheral controller, thereby realizing the effective use of the actual shared storage space of the target peripheral controller.

[0012] In some implementations, the input-output processor includes a network interconnection module, a direct memory access module, a first address remapping module, and at least one dedicated processor core, the access request includes request information and data to be transmitted; the input-output processor sends the access request to the shared memory space corresponding to the target peripheral controller based on the storage address of the shared memory space corresponding to the target peripheral controller, and forwards the access request stored in the shared memory space corresponding to the target peripheral controller to the target peripheral controller, including: the first address remapping module modifies the destination address of the access request to the storage address of the shared memory space corresponding to the target peripheral controller, so that the network interconnection module sends the access request to the shared memory space corresponding to the target peripheral controller; the processor core obtains the request information of the access request from the shared memory space corresponding to the target peripheral controller; the direct memory access module obtains the data to be transmitted of the access request from the shared memory space corresponding to the target peripheral controller, and sends the data to be transmitted to the target peripheral controller. Based on this implementation, the access request sent by the application processor to the target peripheral controller is accurately sent to the actual shared memory space of the target peripheral controller.

[0013] In some implementations, the input-output processor further includes a second address remapping module, and the processor core obtains the request information of the access request from the shared storage space corresponding to the target peripheral controller, including: the processor core sends a shared storage space access request to the second address remapping module, wherein the shared storage space access request is used to read the request information from the shared storage space, and the destination address of the shared storage space access request is the address of the initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to the default storage space size; the second address remapping module modifies the destination address of the shared storage space access request to the storage address of the shared storage space corresponding to the target peripheral controller, and sends the modified shared storage space access request to the network interconnection module; the network interconnection module sends the shared storage space access request to the shared storage space corresponding to the target peripheral controller, so that the processor core obtains the request information of the access request from the shared storage space corresponding to the target peripheral controller. Based on this implementation, the effective access of the second processor core to the actual shared storage space corresponding to the target peripheral controller is realized.

[0014] In some implementations, the input-output processor further includes a third address remapping module, the direct memory access module obtains the data to be transmitted of the access request from the shared memory space corresponding to the target peripheral controller, and sends the data to be transmitted to the target peripheral controller, including: the processor core configures a data transmission task in the direct memory access module based on the obtained request information, the data transmission task is used to send the data to be transmitted in the shared memory space corresponding to the target peripheral controller to the target peripheral controller; the direct memory access module sends a data read request to the third address remapping module based on the data transmission task, the data read request is used to obtain the data to be transmitted from the shared memory space, and the destination address of the data read request is The address of the initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to the default storage space size; the third address remapping module modifies the destination address of the data read request to the storage address of the shared storage space corresponding to the target peripheral controller, and sends the modified data read request to the network interconnection module; the network interconnection module sends the data read request to the shared storage space corresponding to the target peripheral controller, so that the direct memory access module obtains the data to be transmitted from the shared storage space corresponding to the target peripheral controller; the direct memory access module sends the obtained data to be transmitted to the target peripheral controller. Based on this implementation, the DMA module realizes the effective data transmission operation on the actual shared storage space of the target peripheral controller.

[0015] In some implementations, the input-output processor further includes at least one dedicated processor core, and the at least one memory further includes a firmware storage space corresponding to each processor core; the method further includes: when the input-output processor receives a firmware program corresponding to a target processor core sent by the application processor, the input-output processor stores the firmware program in the firmware storage space corresponding to the target processor core, and the target processor core is any processor core in the at least one dedicated processor core. Based on this implementation, the firmware program sent by the application processor is effectively stored in the firmware storage space.

[0016] In some implementations, the method further includes: when the input / output processor receives a data transmission request initiated by the target peripheral controller, the input / output processor obtains the data to be transmitted from the target peripheral controller, stores the data to be transmitted in a shared storage space corresponding to the target peripheral controller, and sends a notification message to the application processor, wherein 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, the data transmission from the peripheral controller to the application processor can be executed by the input / output processor, thereby reducing the resource consumption of the application processor in the scenario where the peripheral controller sends data to the application processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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.

[0018] Figure 1 A schematic diagram of the structure of a microprocessor architecture provided in an embodiment of the present application.

[0019] Figure 2 A schematic diagram of the structure of another microprocessor architecture provided in an embodiment of the present application.

[0020] Figure 3 A flowchart of a device access control method provided in an embodiment of the present application.

[0021] Figure 4-Figure 6 Schematic diagram of the structures of several other microprocessor architectures provided in the embodiments of the present application. DETAILED DESCRIPTION

[0022] The embodiment of the present application proposes an innovative microprocessor architecture, and based on the microprocessor architecture, proposes an innovative interaction solution between an application processor and a peripheral controller, which can reduce the resource occupancy of the application processor during the interaction between the application processor and the peripheral controller, and improve the work efficiency and performance of the application processor. In addition, the solution can also improve the space utilization of the memory in the microprocessor architecture.

[0023] The traditional microprocessor architecture includes an application processor and at least one peripheral controller, and a communication link is established between the application processor and each peripheral controller. When the application processor needs to interact with any peripheral controller, the application processor can send an access request to the peripheral controller through the communication link between the application processor and the peripheral controller. During the interaction process, the application processor participates in the interaction process at all times, and is not released until the interaction ends.

[0024] The above-mentioned interaction process between the application processor and the peripherals takes up a long time of resources of the application processor, which will seriously affect the performance of the application processor.

[0025] In order to reduce the resource occupation of the application processor by the interaction process between the application processor and the peripheral controller, the embodiment of the present application proposes a heterogeneous multi-core microprocessor architecture, in which a second processor core, that is, a slave core, is added to the microprocessor architecture to replace the application processor core to execute the interaction process between the application processor and the peripheral controller, thereby releasing the resources of the application processor as soon as possible and improving the performance of the application processor.

[0026] Figure 1 The heterogeneous multi-core microprocessor architecture is shown in FIG. Figure 1 As shown, in the 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.

[0027] In the application processor, one or more first processor cores are included. The first processor core is the operation and control center of the entire microprocessor architecture, which 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.

[0028] The above-mentioned memory may be a memory such as DDR, SRAM, or a combination of these memories. The memory may be used to store data, programs, etc. required during the operation of the microprocessor architecture. In the memory of the microprocessor architecture, a shared storage space corresponding to each peripheral controller is provided for storing requests, data, etc. corresponding to the peripheral controller.

[0029] 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.

[0030] 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.

[0031] Based on the above-mentioned heterogeneous multi-core microprocessor architecture, when the first processor core in the application processor needs to interact with any target peripheral controller, the first processor core (master core) sends an access request to the target peripheral controller to the shared storage space corresponding to the target peripheral controller in the memory, and notifies the second processor core to read the access request from the shared storage space. At this time, the resources of the first processor core can be released, and then the second processor core (slave core) obtains the access request from the shared storage space corresponding to the target peripheral controller, and controls the access request to be sent to the target peripheral controller. 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.

[0032] In the above scheme, the size of the shared storage space corresponding to each peripheral controller is determined based on the initialization definition of the upper-level computer system. For example, when the computer system is initialized, a fixed-size shared storage space is allocated in the memory for each peripheral controller. During the operation of the computer system, the shared storage space is addressed according to the fixed-size shared storage space allocated for each peripheral controller upon initialization.

[0033] For example, when the computer system is initialized, 4K of shared storage space is allocated to each peripheral controller in turn starting from the set starting address. When the first processor core in the application processor needs to interact with any target peripheral controller, an access request for the target peripheral controller is sent to the shared storage space according to the address of the shared storage space allocated to the target peripheral controller.

[0034] However, in actual application, as the functions of the microprocessor architecture become more and more abundant, the number of connected peripheral controllers increases, which puts forward a greater demand for memory space. At the same time, in the above scheme, although the same size of shared memory space is allocated to each peripheral controller, the size of the shared memory space is set to meet the needs of each peripheral controller. In the actual working process, some peripheral controllers may not occupy all the space of the shared memory space allocated to them, that is, there will be a situation of shared memory space redundancy, which will also cause a waste of memory storage space.

[0035] Based on the above situation, the space utilization of the memory should be improved to avoid wasting the storage space, so that the memory can support the shared storage space requirements of more peripheral controllers.

[0036] In response to the above-mentioned technical problems and needs, the embodiments of the present application propose another heterogeneous multi-core microprocessor architecture, and based on the microprocessor architecture, propose an innovative interaction solution between the application processor and the peripheral controller, which can reduce the resource occupancy of the application processor during the interaction between the application processor and the peripheral controller, and improve the work efficiency and performance of the application processor. In addition, the solution can also improve the space utilization of the memory in the microprocessor architecture.

[0037] Figure 2 A schematic diagram of the structure of the microprocessor architecture proposed in an embodiment of the present application is shown.

[0038] See also Figure 2 As shown, in the microprocessor architecture proposed in the embodiment of the present application, it includes:

[0039] 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.

[0040] 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.

[0041] 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.

[0042] 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.

[0043] In the embodiment of the present application, the above-mentioned peripheral controller 120 may include a low-speed peripheral controller. 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 peripherals, thereby avoiding the application processor 100 directly communicating with the low-speed peripherals and affecting the performance of the application processor 100.

[0044] 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.

[0045] 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.

[0046] 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.

[0047] 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 .

[0048] The input-output processor 110 includes at least one second processor core 111 and at least one memory 113. The at least one memory 113 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 and at least one memory 113 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.

[0049] 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.

[0050] 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 memory space is allocated to each peripheral controller 120. In the present embodiment, the size of the shared memory space corresponding to the peripheral controller matches the size of the shared memory space required by the peripheral controller. In other words, the size of the shared memory space required by the peripheral controller in the actual working process is the size of the shared memory space set for the peripheral controller in the memory 113. The process of allocating the shared memory space to the peripheral controller in the memory 113 may be performed by the second processor core 111.

[0051] The network interconnection module 112 is connected to the on-chip network 130, thereby realizing the communication connection between the network interconnection module 112 and 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 , the network interconnection module 112 is connected to the memory 113 and the second processor core 111 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 intermediary 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 / output processor 110, in the interaction scenario between the application processor 100 and the peripheral controller, the input / output processor 110 can replace the application processor 100 to perform at least part of the interaction operations with the peripheral controller, thereby saving the processing resources of the application 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 2As 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 part of the peripheral controllers (low-speed peripheral controllers), there is no need to install the drivers of the peripheral controllers in the application processor 100, and there is no operation to upgrade or update these peripheral controller drivers, thereby further reducing the burden on the application processor 100 and reducing resource consumption.

[0062] Based on the above-mentioned input / output processor 110 and the shared storage space set for each peripheral controller 120 in the input / output processor 110, when the application processor 100 needs to access any target peripheral controller, it sends an access request to the shared storage space corresponding to the target peripheral controller, and then notifies the second processor core 111 to read the access request from the shared storage space and send it down. After the second processor core 111 obtains the notification from the application processor 100, it accesses the shared storage space corresponding to the target peripheral controller, reads the access request therefrom, and then sends the access request down to the target peripheral controller.

[0063] Furthermore, when the target peripheral controller needs to actively 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 shared storage space corresponding to the target peripheral controller 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 100 to read the above-mentioned data to be transmitted from the shared storage space corresponding to the target peripheral controller in the input / output processor 110; when the application processor 100 receives the notification message, it may choose to read the data to be transmitted from the shared storage space corresponding to the target peripheral controller in the input / output processor 110.

[0064] The access request sent by the application processor 100 may be any type of request, such as a request to send data to a target peripheral controller, a request to read data from a target peripheral controller, a request to obtain status data of a target peripheral controller, etc. When the access request is a request to send data, the access request may also carry data or data information to be transmitted, and when the access request is a request to read data, the access request may also carry information of data to be read.

[0065] As described in the above embodiments, usually, the shared storage space set for the peripheral controller is determined based on the initialization definition of the upper-level computer system. For example, when the computer system is initialized, a fixed-size shared storage space is allocated in the memory for each peripheral controller. During the operation of the computer system, the shared storage space is addressed according to the fixed-size shared storage space allocated for each peripheral controller upon initialization.

[0066] That is, when the application processor 100 sends an access request to the shared storage space of the target peripheral controller, the access request is sent according to the address of the initial shared storage space allocated for the target peripheral controller. In other words, the destination address of the access request sent by the application processor 100 is the address of the initial shared storage space allocated for the target peripheral controller. When the access request enters the input / output processor 110, the input / output processor 110 routes the access request according to the address of the initial shared storage space allocated for the target peripheral controller.

[0067] However, in actual operation, the size of the shared storage space required by the peripheral controller may not be the size of the initial shared storage space allocated to it. For example, the actual shared storage space required may be smaller than the initial shared storage space allocated to it, which will cause a waste of shared storage space.

[0068] In order to make more effective use of storage space and avoid wasting storage space, in the microprocessor architecture proposed in this embodiment, the size of the shared storage space allocated to the peripheral controller matches the size of the shared storage space required by the peripheral controller. In other words, the size of the shared storage space allocated to the peripheral controller in the memory 113 of the input / output processor 110 is determined by the size of the shared storage space required by the peripheral controller in the actual working process.

[0069] The above-mentioned shared storage space allocation method will cause the address of the actual shared storage space of the peripheral controller to be different from the address of the shared storage space allocated to the peripheral controller when the system is initialized. The application processor 100 sends an access request to the shared storage space of the peripheral controller according to the address of the shared storage space allocated to the peripheral controller when the system is initialized, which will cause the access request for the peripheral controller sent by the application processor 100 to the input / output processor 110 to fail to reach the peripheral controller.

[0070] In response to the above technical problems, this embodiment proposes a device access control method based on the above-mentioned microprocessor architecture, which can smoothly send the access request for the peripheral controller sent by the application processor to the peripheral controller based on the above-mentioned innovative shared storage space allocation mechanism, thereby achieving successful access to the peripheral device based on efficient use of storage space.

[0071] See also Figure 3 As shown, the device access control method proposed in this embodiment includes:

[0072] S101. When the input / output processor receives an access request for a target peripheral controller sent by the application processor, the input / output processor sends the access request to the target peripheral controller through a shared storage space corresponding to the target peripheral controller. The target peripheral controller is any peripheral controller among the at least one peripheral controller.

[0073] Specifically, when the application processor 100 sends an access request to any target peripheral controller, the access request first reaches the input / output processor 110. When the input / output processor 110 receives the access request for the above-mentioned target peripheral controller sent by the application processor 100, it sends the access request through the shared storage space corresponding to the target peripheral controller, so that the access request finally reaches the target peripheral controller.

[0074] Exemplarily, after receiving the access request for the target peripheral controller sent by the application processor 100, the input / output processor 110 first confirms the address of the shared storage space of the target peripheral controller, and then based on the address of the shared storage space, the input / output processor 110 stores the access request to the shared storage space of the target peripheral controller, for example, the data to be transmitted and the request information in the access request are stored in the shared storage space of the target peripheral controller. This process realizes the reception of the access request sent by the application processor 100 by the input / output processor 110.

[0075] Then, the input / output processor 110 needs to forward the received access request to the target peripheral controller. That is, the input / output processor 110 reads the stored access request from the shared storage space corresponding to the target peripheral controller, and then forwards the access request to the target peripheral controller. For example, according to the address of the target peripheral controller, the access request is forwarded to the target peripheral controller.

[0076] In the above-mentioned access request sending and processing process, the shared storage space of the target peripheral controller is a storage space that matches the shared storage space size required by the target peripheral controller, that is, the shared storage space of the target peripheral controller is the shared storage space actually required by the target peripheral controller.

[0077] That is to say, after receiving the access request for the target peripheral controller sent by the application processor 100, the input / output processor 110 stores the access request in the actual shared storage space of the target peripheral controller according to the address of the actual shared storage space of the target peripheral controller, rather than according to the shared storage space allocated to the target peripheral controller when the system is initialized. As a result, the shared storage space occupied by the above-mentioned request issuance process is the shared storage space actually required by the target peripheral controller, thereby avoiding occupying excess shared storage space, improving the utilization efficiency of the shared storage space, and avoiding wasting storage space.

[0078] From the above introduction, it can be seen that the device access control method proposed in this embodiment sets an input-output processor in the microprocessor architecture, and in the input-output processor, allocates a shared storage space that matches the size of the shared storage space required by the peripheral controller, so that the shared storage space of the peripheral controller can meet the required storage space size, making the allocation of shared storage space more flexible, avoiding the problem of storage space waste caused by allocating shared storage space according to a fixed size, and improving the utilization efficiency of the storage space. At the same time, based on the above-mentioned shared storage space allocation method, when the input-output processor receives an access request for the target peripheral controller sent by the application processor, it issues the access request through the actual shared storage space of the peripheral controller, that is, the scheme of this embodiment realizes the access of the application processor to the peripheral controller based on the actual shared storage space allocated to the peripheral controller, which can realize the smooth implementation of peripheral access without affecting the upper system settings, and improves the utilization rate of the shared storage space.

[0079] In some embodiments, the input / output processor 110 allocates shared storage space to each peripheral controller in at least one memory 113 inside the input / output processor 110. For example, for any target peripheral controller among the peripheral controllers, the input / output processor 110 allocates shared storage space to the target peripheral controller from at least one memory 113 according to the size of the shared storage space required by the target peripheral controller.

[0080] Specifically, the size of the shared storage space required by the target peripheral controller can be determined according to the type, working mode, processed data type, etc. of the target peripheral controller, or can be set manually based on experience.

[0081] After determining the size of the shared memory space required by the target peripheral controller, the input / output processor 110 allocates the shared memory space to the target peripheral controller from at least one memory 113. The size of the allocated shared memory space may be equal to the size of the shared memory space required by the target peripheral controller, or may be greater than the size of the shared memory space required by the target peripheral controller. When the shared memory space allocated to the target peripheral controller from at least one memory 113 exceeds the size of the shared memory space required by the target peripheral controller, the excess amount should be less than a set threshold value, which is usually set to a smaller value. In other words, the shared memory space allocated to the target peripheral controller from at least one memory 113 is slightly greater than the size of the shared memory space required by the target peripheral controller to avoid wasting storage space.

[0082] Furthermore, the shared storage space allocated to the target peripheral controller may be located in one memory or distributed in multiple memories, which is not limited in this embodiment.

[0083] The process of the input / output processor 110 allocating a shared storage space for the peripheral controller may be specifically executed by the second processor core 111 in the input / output processor 110 .

[0084] In some embodiments, the access request for the target peripheral controller issued by the application processor 100 carries the address information of the initial shared storage space corresponding to the target peripheral controller. That is, when the application processor 100 issues the access request for the target peripheral controller, it sends the access request to the initial shared storage space of the target peripheral controller based on the address of the initial shared storage space allocated to the target peripheral controller during system initialization. Therefore, the destination address of the access request is the address of the initial shared storage space of the target peripheral controller.

[0085] As described in the above embodiment, the initial shared memory space of the peripheral controller is a shared memory space allocated for the peripheral controller from at least one memory 113 of the input / output processor 110 according to the default memory space size. For example, a 4K shared memory space is allocated for each peripheral controller, and in this case, the initial shared memory space of the target peripheral controller is the 4K shared memory space.

[0086] Based on the system initialization processing, the size and address of the shared storage space respectively allocated to each peripheral controller during system initialization can also be determined in the input / output processor. Based on the size and address of the shared storage space corresponding to each peripheral controller, when the input / output processor receives an access request sent by the application processor, the received access request can be compared with the destination address of the received access request and the address of the shared storage space corresponding to each peripheral controller to determine which peripheral controller the received access request is for.

[0087] For example, for an access request sent by an application processor to a target peripheral controller, when the input / output processor receives the access request, based on the destination address carried in the access request, that is, based on the address of the initial shared storage space carried in the access request, by querying the size and address of the shared storage space allocated to each peripheral controller when the system is initialized, it can be determined that the access request is for the target peripheral controller.

[0088] Furthermore, the input / output processor may send the access request to the target peripheral controller.

[0089] In this embodiment, the input / output processor effectively identifies the destination peripheral controller of the received access request according to the size and address of the shared storage space respectively allocated to each peripheral controller during system initialization.

[0090] In some embodiments, see Figure 4 As shown, the microprocessor architecture proposed in this embodiment further includes a direct memory access (DMA) module 114 and a first address remapping module 115 .

[0091] The DMA module 114 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. The first address remapping module 115 is connected to the on-chip network 130, so as to achieve connection with the application processor 100 through the on-chip network 130. At the same time, the first address remapping module 115 is also connected to the network interconnection module 112 inside the input-output processor 110, so that the first address remapping module 115 can achieve connection with various components in the input-output processor 110 through the network interconnection module 112.

[0092] 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 application processor 100, for example, the application processor 100 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 application processor 100 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 application processor 100 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.

[0093] 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.

[0094] After acquiring the data transmission task configured by the second processor core 111, the DMA module 114 executes the data transmission task, that is, transferring 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 application processor 100 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.

[0095] Alternatively, in some other embodiments, the data transfer request sent by the application processor 100 to the second processor core 111 may only include information about the target data to be transferred and corresponding request information, but not the data content of the target data itself. For example, when the application processor 100 needs to read the target data from the target peripheral controller, it may write a data transfer request containing relevant information of the target data to the shared storage space of the target peripheral controller, such as a data transfer request containing information such as the transfer direction, size, and type of the target data, and then notify the second processor core 111 to obtain the data transfer request from the shared storage space of the target peripheral controller. After the second processor core 111 obtains the data transfer request, it configures a data transfer task corresponding to the data transfer request in the DMA module 114, in which the relevant information of the target data to be transferred and the corresponding data transfer task information are included. When executing the data transfer 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 transferred, and then sends the target data to the shared storage space corresponding to the target peripheral controller, so that the application processor 100 can obtain the target data from the shared storage space.

[0096] As described in the above embodiment, in the memory 113 in the input / output processor 100, there are shared storage spaces corresponding to the respective peripheral controllers, which are used to store the interaction data between the application processor 100 and the peripheral controllers. Based on the initialization definition of the upper layer of the computer system, in the memory 113, a fixed-size shared storage space is set for each peripheral controller, for example, 4K of shared storage space is allocated to each peripheral controller.

[0097] Based on the above-mentioned fixed shared memory space allocation, when the computer system sends an access request to any target peripheral controller through the application processor 100, the access request is sent with the address of the fixed shared memory space allocated to the target peripheral controller as the access request destination address. In other words, the destination address of the access request to any target peripheral controller sent by the application processor 100 is the address of the fixed shared memory space allocated to the target peripheral controller.

[0098] However, in the memory 113 of the input / output processor 110, since the storage resources are limited, in order to expand the utilization of the storage resources of the memory 113 and avoid wasting limited storage space, this embodiment flexibly allocates shared storage space according to the size of shared storage space actually required by each peripheral controller.

[0099] At the same time, in order to avoid the above-mentioned shared storage space allocation method from affecting the upper-level computer system, this embodiment does not force the upper-level computer system to change the storage address of the storage space of each peripheral controller, and the upper-level computer system can still send access requests to the peripheral controllers according to the addresses of the initial shared storage spaces allocated to each peripheral controller. In other words, the destination address of the access request sent by the application processor 100 to the target peripheral controller is still the destination address of the shared storage space allocated to the target peripheral controller according to the fixed size when the system is initialized.

[0100] In this case, since the shared storage space of the target peripheral controller set by the system is inconsistent with the shared storage space actually allocated for the target peripheral controller, the network interconnection module 112 in the on-chip network 130 and the input / output processor 110 cannot accurately send the access request for the target peripheral controller to the actual shared storage space allocated for the target peripheral controller based on the destination address of the access request sent by the application processor 100.

[0101] In order to accurately send the access request for any target peripheral controller sent by the application processor 100 to the actual shared storage space allocated for the target peripheral controller without modifying the initialization settings of the computer system, this embodiment sets a first address remapping module 115 inside the input and output processor 110, which is used to remap the destination address of the access request for the peripheral controller sent by the application processor 110 according to the address of the actual shared storage space allocated by the second processor core 111 to each peripheral controller, and remap the destination address of the access request to the address of the actual shared storage space of the peripheral controller.

[0102] Based on the structural characteristics of the above-mentioned microprocessor architecture, the input / output processor sends the access request to the shared storage space corresponding to the target peripheral controller based on the storage address of the shared storage space corresponding to the target peripheral controller, and forwards the access request stored in the shared storage space corresponding to the target peripheral controller to the processing of the target peripheral controller, which can be implemented by the first address remapping module 115, the second processor core 111 and the DMA module 114. The specific processing process includes the processing shown in A1-A3:

[0103] A1. The first address remapping module modifies the destination address of the access request to the storage address of the shared storage space corresponding to the target peripheral controller, so that the network interconnection module sends the access request to the shared storage space corresponding to the target peripheral controller.

[0104] Specifically, Figure 4As shown, the first address remapping module 115 is arranged on the path between the on-chip network 130 and the network interconnection module 112 , and is used to perform address remapping on the access request for the peripheral controller sent by the application processor 100 .

[0105] When the first address remapping module 115 receives an access request for a target peripheral controller sent by the application processor 100, it modifies the destination address of the access request to the storage address of the shared storage space corresponding to the target peripheral controller. The storage address of the shared storage space corresponding to the target peripheral controller here refers to the storage address of the shared storage space allocated to the target peripheral controller in the memory 113 by the second processor core 111 in the input / output processor 110 according to the size of the shared storage space required by the target peripheral controller.

[0106] Then, the first address remapping module 115 sends the access request with the modified destination address to the network interconnection module 112, so that the network interconnection module 112 routes and sends the access request according to the destination address of the access request after the modified destination address, that is, sends the access request to the shared storage space actually allocated to the target peripheral controller. The above-mentioned target peripheral controller is any one of the at least one peripheral controller of the above-mentioned microprocessor architecture.

[0107] In some embodiments, it is disclosed that after allocating shared storage space to each peripheral controller, the second processor core 111 in the input / output processor 110 can store the address of the shared storage space allocated to each peripheral controller in the relevant register. When the first address remapping module 115 performs address remapping on the access request sent by the application processor 100 to the target peripheral controller, it first accesses the relevant register to obtain the address information of the shared storage space allocated to the target peripheral controller, and then performs address remapping on the access request according to the address information, that is, the destination address of the access request is modified to the address of the shared storage space actually allocated by the target peripheral controller.

[0108] Through the above scheme, the shared storage space of each peripheral controller is set based on the size of the shared storage space required by each peripheral controller, thereby avoiding waste of storage space and improving the storage space utilization of the memory 113. At the same time, the application processor 100 can send an access request to the peripheral controller according to the system initialization setting, so that the access request sent by the application processor 100 can be accurately remapped to the actual shared storage space of the peripheral controller without the perception of the upper-level system, thereby realizing the smooth and accurate issuance of the access request.

[0109] A2. The second processor core 111 obtains request information of the access request from the shared storage space corresponding to the target peripheral controller.

[0110] Specifically, when the application processor 100 sends 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 is notified. After receiving the notification, the second processor core 111 accesses the shared storage space corresponding to the target peripheral controller, and obtains the request information of the access request sent by the application processor 100, such as obtaining the data information to be transmitted and the specific request content of the request, etc.

[0111] Exemplarily, the second processor core 111 may pre-store the address of the shared storage space allocated to the target peripheral controller, and then access the shared storage space of the target peripheral controller by accessing the address, and obtain the request information therefrom.

[0112] In another embodiment, see Figure 5 As shown, in the input and output processor 110 of the above-mentioned microprocessor architecture, a second address remapping module 116 is also provided. The second address remapping module 116 is provided on the path between the network interconnection module 112 and the second processor core 111, so that the interaction information between the network interconnection module 112 and the second processor core 111 will pass through the second address remapping module 116.

[0113] When the second processor core 111 accesses the shared memory space of the target peripheral controller, a shared memory space access request may be issued, and the shared memory space access request is used to read the request information from the shared memory space. Moreover, in the present embodiment, the destination address of the shared memory space access request is the address of the initial shared memory space corresponding to the target peripheral controller, that is, the address of the shared memory space divided for the target peripheral controller from at least one memory 113 according to the default memory space size. In other words, the second processor core 111 also sends a shared memory space access request to the shared memory space of the target peripheral controller according to the address of the initial shared memory space corresponding to the target peripheral controller.

[0114] Exemplarily, when the application processor 100 sends an access request to the target peripheral controller, the access request is remapped to the actual shared storage space of the target peripheral controller for storage through the first address remapping module 115. Then, the application processor 100 notifies the second processor core 111 to read the access request from the shared storage space of the target peripheral controller by updating the relevant register value.

[0115] Since the application processor 100 does not know the address of the actual shared memory space of the target peripheral controller, when it notifies the second processor core 111 of the read access request, it still notifies the second processor core 111 to read the request from the address of the initial shared memory space allocated for the target peripheral controller.

[0116] Correspondingly, after the second processor core 111 obtains the corresponding request information from the register, it issues a shared storage space access request to the shared storage space of the target peripheral controller. Since the address of the shared storage space of the target peripheral controller stored in the register is the address of the initial shared storage space, the destination address of the second access request issued by the second processor core 111 is also the address of the initial shared storage space of the target peripheral controller stored in the adopted register.

[0117] The second address remapping module 116 receives a shared storage space access request for a shared storage space corresponding to a target peripheral controller sent by the second processor core 111, and modifies the destination address of the shared storage space access request to the storage address of the shared storage space corresponding to the second peripheral controller. The shared storage space access request with the modified destination address is then sent to the network interconnection module 112, and the network interconnection module 112 sends the shared storage space access request to the actual shared storage space corresponding to the target peripheral controller according to the modified destination address of the shared storage space access request, so that the shared storage space access request sent by the second processor core 111 can smoothly reach the actual shared storage space corresponding to the target peripheral controller, and then the second processor core 111 can obtain the access request sent by the application processor 100 from the shared storage space.

[0118] A3. The direct memory access module obtains the data to be transmitted of the access request from the shared storage space corresponding to the target peripheral controller, and sends the data to be transmitted to the target peripheral controller.

[0119] Specifically, after the second processor core 111 obtains an access request by accessing the shared storage space of the target peripheral controller, it configures a data transmission task in the DMA module 114 based on the obtained request information. The data transmission task is used to send the data to be transmitted in the shared storage space corresponding to the target peripheral controller to the target peripheral controller.

[0120] The DMA module 114 performs the data transmission task, that is, reads the data to be transmitted from the shared storage space corresponding to the target peripheral controller, and sends the read data to be transmitted to the target peripheral controller, thereby achieving the peripheral access purpose of the application processor 100 sending data to the target peripheral controller.

[0121] In some embodiments, see Figure 6As shown, in the input and output processor 110 of the microprocessor architecture of this embodiment, a third address remapping module 117 is further provided. The third address remapping module 117 is provided on the path between the network interconnection module 112 and the DMA module 114, so that the interactive information between the network interconnection module 112 and the DMA module 114 will pass through the third address remapping module 117.

[0122] Based on the data transmission task, the DMA module 114 issues a data read request, which is used to read the data to be transmitted from the shared storage space. The destination address of the data read request is the address of the initial shared storage space corresponding to the target peripheral controller, that is, the address of the shared storage space divided for the target peripheral controller from at least one memory 113 according to the default storage space size.

[0123] As described in the above embodiment, when the second processor core 111 accesses the shared storage space of the target peripheral controller, it accesses it according to the address of the initial shared storage space corresponding to the target peripheral controller, and the access is successful. Therefore, when the second processor core 111 configures the data transmission task in the DMA module 114, it also configures the data transmission task of sending the data in the initial shared storage space corresponding to the target peripheral controller to the target peripheral controller. Based on the data transmission task, the DMA module 114 will issue a data read request for the initial shared storage space corresponding to the target peripheral controller. Therefore, the destination address of the data read request issued by the DMA module 114 is the address of the initial shared storage space corresponding to the target peripheral controller.

[0124] The data read request issued by the DMA module 114 first enters the third address remapping module 117, which modifies the destination address of the data read request to the storage address of the shared storage space corresponding to the target peripheral controller, and sends the modified data read request to the network interconnection module 112.

[0125] The network interconnection module 112 sends the data read request to the shared storage space corresponding to the target peripheral controller, so that the DMA module 114 obtains the data to be transmitted from the shared storage space corresponding to the target peripheral controller.

[0126] After acquiring the data to be transmitted, the DMA module 114 sends the acquired data to be transmitted to the target peripheral controller, thereby transmitting the data sent by the application processor 100 to the target peripheral controller to the target peripheral controller.

[0127] It can be understood that in the above-mentioned embodiments, the shared storage space of each peripheral controller of the microprocessor architecture is set based on the size of the shared storage space actually required by each peripheral controller, so that the waste of storage space can be avoided and the utilization rate of storage space can be improved. At the same time, when the application processor 100, the processor core 111 and the DMA module 114 need to access the shared storage space of any target peripheral controller, they can still send an access request to the shared storage space initially allocated for the target peripheral controller according to the system initialization setting, and then remap the address of the access request through the above-mentioned various address remapping modules, remap the destination address of the access request to the address of the actual shared storage space, and realize the access to the actual shared storage space of the target peripheral control, so that the access request for the target peripheral controller can be accurately remapped to the actual shared storage space of the target peripheral controller without the perception of the upper system.

[0128] In some other embodiments, at least one memory 113 in the input / output processor 110 of the microprocessor architecture is further provided with a firmware storage space corresponding to the second processor core 111. When there are multiple second processor cores 111 in the input / output processor 110, a firmware storage space corresponding to each second processor core 111 is provided in at least one memory 113. The firmware storage space is used to store the firmware program of the second processor core.

[0129] When the system starts, the application processor 100 sends the firmware program of the second processor core 111 to the input / output processor 110 . When the input / output processor 110 receives the firmware program corresponding to the second processor core 111 sent by the application processor 100 , it stores the firmware program in the firmware storage space corresponding to the second processor core 111 .

[0130] When the second processor core 111 starts running, it loads the firmware program from its corresponding firmware storage space by default.

[0131] In some embodiments, the firmware storage space corresponding to the second processor core 111 is set in the high storage space of the memory 113, and the shared storage space corresponding to each peripheral controller is set in the low storage space of the memory 113. In addition, the starting address of the firmware storage space is also determined according to the total storage space address occupied by the actual shared storage space corresponding to each peripheral controller. That is, the actual shared storage space corresponding to each peripheral controller is set adjacently, and then, starting from the tail address of the total storage space occupied by the actual shared storage space corresponding to each peripheral controller, the firmware storage space is set as the first address. The size of the set firmware storage space is determined according to the size of the firmware program to be stored.

[0132] It can be understood that in this embodiment, the starting address of the firmware storage space corresponding to the second processor core 111 is also determined based on the size of the shared storage space actually required by each peripheral controller. When the system is initialized, since the shared storage space corresponding to each peripheral controller is set according to the default size, when the system is initialized, the starting address of the firmware storage space corresponding to the second processor core 111 is determined based on the shared storage space allocated by default to each peripheral controller. This also leads to the actual address of the firmware storage space corresponding to the second processor core 111 being inconsistent with the address of the firmware storage space determined when the system is initialized.

[0133] In this case, when the application processor 100 sends the firmware program of the second processor core 111 to the input / output processor 110, it will also send it at the firmware storage space address determined during system initialization. When the first address remapping module 115 receives the firmware program sent by the application processor 100, it modifies the destination address of the firmware program to the actual address of the firmware storage space corresponding to the second processor core 111, and then sends the firmware program to the network interconnection module 112. After receiving the firmware program, the network interconnection module 112 sends it to the firmware storage space corresponding to the second processor core 111.

[0134] The above process realizes the smooth storage of the firmware program.

[0135] 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, and the input-output processor includes at least one memory, in which the at least one memory is provided with a shared storage space corresponding to each peripheral controller, and the size of the shared storage space corresponding to the peripheral controller matches the size of the shared storage space required by the peripheral controller; the microprocessor architecture is configured to execute the device access control method described in any of the above embodiments.

[0136] 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 above-mentioned device access control method embodiment description, which will not be repeated here.

[0137] 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.

[0138] 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.

[0139] 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.

[0140] 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.

[0141] 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.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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.

[0146] 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.

[0147] 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.

[0148] 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.

[0149] 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.

[0150] 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 device access control method, characterized in that: 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 input-output processor includes at least one memory, the at least one memory is provided with a shared storage space corresponding to each peripheral controller, and the size of the shared storage space corresponding to the peripheral controller matches the size of the shared storage space required by the peripheral controller; The method comprises: When the input / output processor receives an access request for a target peripheral controller sent by the application processor, it sends the access request to the target peripheral controller through a shared storage space corresponding to the target peripheral controller, where the target peripheral controller is any peripheral controller among the at least one peripheral controller.

2. The method according to claim 1, characterized in that The method further comprises: The input / output processor allocates shared storage space to the target peripheral controller from the at least one memory according to the size of the shared storage space required by the target peripheral controller.

3. The method according to claim 1, characterized in that The access request carries address information of an initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to a default storage space size; The method further comprises: When receiving the access request, the input / output processor determines, based on the address information of the initial shared storage space carried in the access request, that the access request is an access request for the target peripheral controller.

4. The method according to any one of claims 1 to 3, characterized in that The input / output processor sends the access request to the target peripheral controller through the shared storage space corresponding to the target peripheral controller, including: The input / output processor sends the access request to the shared storage space corresponding to the target peripheral controller based on the storage address of the shared storage space corresponding to the target peripheral controller; The input / output processor forwards the access request stored in the shared storage space corresponding to the target peripheral controller to the target peripheral controller.

5. The method according to claim 4, characterized in that The input-output processor includes a network interconnection module, a direct memory access module, a first address remapping module, and at least one dedicated processor core, and the access request includes request information and data to be transmitted; The input / output processor sends the access request to the shared storage space corresponding to the target peripheral controller based on the storage address of the shared storage space corresponding to the target peripheral controller, and forwards the access request stored in the shared storage space corresponding to the target peripheral controller to the target peripheral controller, including: The first address remapping module modifies the destination address of the access request into the storage address of the shared storage space corresponding to the target peripheral controller, so that the network interconnection module sends the access request to the shared storage space corresponding to the target peripheral controller; The processor core obtains request information of the access request from the shared storage space corresponding to the target peripheral controller; The direct memory access module obtains the data to be transmitted of the access request from the shared storage space corresponding to the target peripheral controller, and sends the data to be transmitted to the target peripheral controller.

6. The method according to claim 5, characterized in that The input-output processor further includes a second address remapping module, and the processor core obtains request information of the access request from the shared storage space corresponding to the target peripheral controller, including: The processor core sends a shared storage space access request to the second address remapping module, wherein the shared storage space access request is used to read request information from the shared storage space, and the destination address of the shared storage space access request is the address of the initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to a default storage space size; The second address remapping module modifies the destination address of the shared storage space access request to the storage address of the shared storage space corresponding to the target peripheral controller, and sends the modified shared storage space access request to the network interconnection module; The network interconnection module sends the shared storage space access request to the shared storage space corresponding to the target peripheral controller, so that the processor core obtains the request information of the access request from the shared storage space corresponding to the target peripheral controller.

7. The method according to claim 5, characterized in that The input-output processor further includes a third address remapping module, the direct memory access module obtains the data to be transmitted of the access request from the shared storage space corresponding to the target peripheral controller, and sends the data to be transmitted to the target peripheral controller, including: The processor core configures a data transmission task in the direct memory access module based on the acquired request information, wherein the data transmission task is used to send the data to be transmitted in the shared storage space corresponding to the target peripheral controller to the target peripheral controller; The direct memory access module sends a data read request to the third address remapping module based on the data transmission task, wherein the data read request is used to obtain the data to be transmitted from the shared storage space, and the destination address of the data read request is the address of the initial shared storage space corresponding to the target peripheral controller, wherein the initial shared storage space is a shared storage space divided for the target peripheral controller from the at least one memory according to a default storage space size; The third address remapping module modifies the destination address of the data read request to the storage address of the shared storage space corresponding to the target peripheral controller, and sends the modified data read request to the network interconnection module; The network interconnection module sends the data read request to the shared storage space corresponding to the target peripheral controller, so that the direct memory access module obtains the data to be transmitted from the shared storage space corresponding to the target peripheral controller; The direct memory access module sends the acquired data to be transmitted to the target peripheral controller.

8. The method according to any one of claims 1 to 3, characterized in that The input-output processor further includes at least one dedicated processor core, and the at least one memory further includes firmware storage space corresponding to each processor core; The method further comprises: When the input / output processor receives the firmware program corresponding to the target processor core sent by the application processor, it stores the firmware program in the firmware storage space corresponding to the target processor core, and the target processor core is any processor core among the at least one dedicated processor core.

9. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When receiving a data transmission request initiated by a target peripheral controller, the input / output processor obtains the data to be transmitted from the target peripheral controller, stores the data to be transmitted in a shared storage space corresponding to the target peripheral controller, and sends a notification message to the application processor, wherein 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.

10. A microprocessor architecture, characterized in that: It 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 input-output processor includes at least one memory, and the at least one memory is provided with a shared storage space corresponding to each peripheral controller, and the size of the shared storage space corresponding to the peripheral controller matches the size of the shared storage space required by the peripheral controller; the microprocessor architecture is configured to execute the device access control method as described in any one of claims 1 to 9.

11. A computer device, characterized in that: Comprising the microprocessor architecture as claimed in claim 10.

Citation Information

Cited By

  • Data processing method, system on chip, computing device, storage medium and computer program product

    CN121301249A