Multi-core processor data sharing control method, device, storage module and chip

By dividing sub-storage space and setting access permissions in multi-core processors, the problem of low data sharing efficiency of multi-core heterogeneous processors is solved, an efficient and safe data sharing mechanism is realized, and the real-time performance and data transmission of the processor core are improved. performance.

CN117609114BActive Publication Date: 2024-09-03BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311499211.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-09-03
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

The data sharing efficiency of multi-core heterogeneous processors is low, resulting in a long access delay for the processor core to the cache, which cannot fully utilize the bandwidth. The data sharing mechanism is complex, difficult to develop, and affects real-time performance.

Method used

By dividing multiple sub-storage spaces in the storage space of the first unit, each sub-storage space is matched with a processor unit, and the main processor unit sets access permissions. The processor unit can directly access the matching sub-storage spaces and pass the priority and permission management to achieve data sharing.

Benefits of technology

It improves the access efficiency of the processor unit to the sub-storage space, reduces the data transmission delay, simplifies the data sharing mechanism, and improves the real-time performance and data transmission security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117609114B
    Figure CN117609114B
Patent Text Reader

Abstract

The present invention discloses a multi-core processor data sharing control method, device, storage module and chip, wherein the control method is applied to information interaction between a first unit and a second unit. The storage space of the first unit is divided into a plurality of sub-storage spaces, and the second unit includes a plurality of processor units, each of which is matched with a processor unit. The control method comprises: when the processor unit that issues a request matches the sub-storage space requested for access, the processor unit that issues a request can directly access the sub-storage space requested for access. The main processor unit is used to set the access rights of each processor unit. Each processor unit can change the access rights through the main processor unit, so that each processor unit can access any sub-storage space, thereby improving the access efficiency of the processor unit to the sub-storage space, and thus improving the access efficiency of the second unit to the first unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data access technology, and more specifically, to a multi-core processor data sharing control method, device, storage module and chip. Background Art

[0002] In the relevant technical field, data sharing of multi-core heterogeneous processors is usually achieved through caching in a cache, and multiple processor cores interact with the cache by transmitting signals through a bus. When multiple processor cores of the processor request to read the cache at the same time, the requests of the multiple processor cores generate an arbitration signal through the bus, agreeing to the request of one of them and blocking the other processor cores.

[0003] When the processor core does not have access to the cache, the arbitration signal generated by the bus does not allow the processor core to read the cache. After the processor core obtains access rights, the processor core can make access requests to the bus again. Since the bus can only approve one processor core's request at a time, it takes a long time for the processor core to make access requests to the bus again, resulting in low access efficiency. Summary of the invention

[0004] The embodiments of the present invention provide a multi-core processor data sharing control method, device, storage module and chip.

[0005] The multi-core processor data sharing control method provided by the embodiment of the present invention is applied to the information interaction between the first unit and the second unit, the first unit has a storage space for storing data, the storage space of the first unit is divided into a plurality of sub-storage spaces, the second unit includes a plurality of processor units, each of the sub-storage spaces matches one of the processor units, the plurality of processor units includes a main processor unit, the main processor unit is used to set the access rights of each processor unit to each of the sub-storage spaces. The multi-core processor data sharing control method comprises: receiving an access request from the second unit to the first unit, determining the processor unit issuing the request and the sub-storage space requested to be accessed according to the access request; if the processor unit issuing the request does not match the sub-storage space requested to be accessed, determining whether the processor unit issuing the request has the access rights to the sub-storage space requested to be accessed; if the processor unit issuing the request does not have the access rights, the processor unit issuing the request sends an access rights setting request to the main processor unit; if the main processor unit allows the execution of the access rights setting request, the main processor unit sends a first update signal to the corresponding sub-storage space to change the access rights of the processor unit issuing the request to the sub-storage space.

[0006] In certain embodiments, the multi-core processor data sharing control method further includes: determining that the access request is a secure access request when the processor unit issuing the request matches the sub-storage space requested for access; and when the access request is the secure access request, the processor unit issuing the request can directly access the sub-storage space requested for access.

[0007] In certain embodiments, the multi-core processor data sharing control method further includes: if the processor unit that issues the request does not match the sub-storage space requested for access, determining that the access request is a non-secure access request; in the case where multiple processor units simultaneously make the secure access request and the non-secure access request to the same sub-storage space, the non-secure access request is not allowed to be executed.

[0008] In certain embodiments, the multi-core processor data sharing control method further includes: if the processor unit that issues the request does not match the sub-storage space requested for access, determining that the access request is a non-secure access request; in the event that multiple processor units simultaneously make non-secure access requests to the same sub-storage space, at most one non-secure access request is allowed to be executed.

[0009] In some embodiments, the multi-core processor data sharing control method further includes: when the main processor unit does not allow the access permission setting request to be executed, the main processing unit sends a signal that the access permission setting request fails and does not allow the access request to be executed.

[0010] In certain embodiments, the multi-core processor data sharing control method further includes: when the main processing unit has not changed the access permission of the requesting processor unit to the sub-storage space, if the requesting processor unit has accessed the requested sub-storage space, the requesting processor unit can directly access the requested sub-storage space.

[0011] In certain embodiments, the multi-core processor data sharing control method further includes: if the processor unit issuing the request does not match the sub-storage space requested for access, determining that the access request is a non-secure access request; when multiple processor units simultaneously make non-secure access requests to the same sub-storage space, and each of the processor units issuing the request has the access permission, determining the priority of each non-secure access request; and allowing execution of each non-secure access request based on the priority of the non-secure access request.

[0012] In certain embodiments, each of the processor units has a corresponding label data, and determining the priority of each of the non-secure access requests includes: obtaining the label data of each of the processor units that issues the non-secure access request; and determining the priority of each of the non-secure access requests based on the size of the label data of each of the processor units that issues the non-secure access request.

[0013] In some embodiments, the second unit further includes a core cluster, the core cluster includes one processor unit or multiple processor units, and each core cluster has a corresponding label data. Determining the priority of each non-secure access request according to the size of the label data of each processor unit that issues the non-secure access request includes: determining the core cluster that issues the non-secure access request according to the label data of each processor unit that issues the non-secure access request; determining the priority of each non-secure access request according to the size of the label data of each core cluster that issues the non-secure access request.

[0014] In some embodiments, the plurality of processor units include a main processor unit, and the main processor unit is used to set the access priority of each processor unit to each sub-storage space. The multi-core processor data sharing control method further includes: when the main processor unit receives a priority setting request, if the main processor unit allows the execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space; the sub-storage space changes the access priority of each processor unit to the sub-storage space according to the received second update signal.

[0015] In some embodiments, the access request includes a read request or a write request, and the multi-core processor data sharing control method also includes: determining whether the processor unit that issues the request has read permission or write permission for the sub-storage space to which access is requested; if the processor unit that issues the request does not have read permission for the sub-storage space to which access is requested, the read request is not allowed to be executed, or, if the processor unit that issues the request does not have write permission for the sub-storage space to which access is requested, the write request is not allowed to be executed.

[0016] In certain embodiments, the multi-core processor data sharing control method further includes: determining whether the sub-storage space requested to be accessed is being written to, when the processor unit that issues the request has read permission for the sub-storage space requested to be accessed; and not allowing execution of the read request if the sub-storage space is being written to.

[0017] In some embodiments, after determining whether the sub-storage space requested to be accessed is being written, the multi-core processor data sharing control method further includes: allowing the read request to be executed if the sub-storage space is not being written.

[0018] In certain embodiments, the multi-core processor data sharing control method further includes: issuing a request signal to the processor unit that matches the sub-storage space requested for access, when the processor unit that issues the request has write permission for the sub-storage space requested for access; and allowing execution of the write request, when a permission signal is received from the processor unit that matches the sub-storage space requested for access.

[0019] In some embodiments, the multi-core processor data sharing control method further includes: if a permission signal from the processor unit matching the sub-storage space requested to be accessed is not received, not allowing the write request to be executed.

[0020] In some embodiments, the multiple processor units include a main processor unit, which is used to divide the storage space of the first unit into multiple sub-storage spaces, each of the sub-storage spaces is matched with one processor unit, and the main processor unit is used to set the size of each sub-storage space.

[0021] In some embodiments, the main processor unit is also used to set the access rights of each processor unit to each sub-storage space. The multi-core processor data sharing control method also includes: when the processor unit that issues the request does not match the sub-storage space requested for access, if the main processor unit receives the access rights setting request and allows the execution of the access rights setting request, the main processor unit sends an access rights update signal to the corresponding processor unit that issues the request; the processor unit that issues the request obtains the access request permission for the sub-storage space requested for access according to the access rights update signal, and accesses the sub-storage space requested for access.

[0022] In certain embodiments, the processor unit that issues the request obtains an access request to the sub-storage space that is requested to be accessed based on the access permission update signal, including: the processor unit that issues the request obtains an offset address based on the access permission update signal; the processor unit that issues the request determines a second access address based on the first access address and the offset address, wherein the first access address is the address of the sub-storage space corresponding to the processor unit that issues the request; the processor unit that issues the request obtains access request permission to the sub-storage space that is requested to be accessed based on the second access address.

[0023] In some embodiments, the processor unit that issues the request determines the second access address based on the first access address and the offset address, including: the processor unit that issues the request determines the second access address based on the sum of the first access address and the offset address or the difference between the first access address and the offset address.

[0024] In some implementations, the multi-core processor data sharing control method further includes: when any one of the processor units accesses the sub-storage space, the main processor unit cancels the access rights of other processor units to the sub-storage space.

[0025] In some embodiments, the multi-core processor data sharing control method further includes: when it is determined that the processor unit is a non-secure processor unit, canceling the access rights of the non-secure processor unit to any of the sub-storage spaces.

[0026] In some implementations, the multi-core processor data sharing control method further includes: outputting a feedback signal when the access request is not allowed to be executed, wherein the feedback signal is used to indicate that the access request has failed.

[0027] In certain embodiments, the multi-core processor data sharing control method further includes: when the data stored in the sub-storage space is updated, the sub-storage space issues a storage data update signal; when the sub-storage space does not issue the storage data update signal, if the processor unit that issues the request has accessed the sub-storage space, the processor unit that issues the request does not issue an access request to the sub-storage space.

[0028] The present invention proposes a multi-core processor data sharing control device. The multi-core processor data sharing control device is applied to information interaction between a first unit and a second unit. The first unit has a storage space for storing data, and the storage space of the first unit is divided into a plurality of sub-storage spaces. The second unit includes a plurality of processor units, each sub-storage space matches a processor unit, and the plurality of processor units include a main processor unit, and the main processor unit is used to set the access rights of each processor unit to each sub-storage space. The multi-core processor data sharing control device includes a first determination submodule, a second determination submodule, a third determination submodule, a fourth determination submodule and a control submodule. The first determination submodule is used to determine the processor unit that issues the request and the sub-storage space requested to be accessed according to the access request. In the case that the processor unit that issues the request does not match the sub-storage space requested to be accessed, the second determination submodule is used to determine whether the processor unit that issues the request has the access rights to the sub-storage space requested to be accessed. In the case that the processor unit that issues the request does not have the access rights, the third determination submodule is used to determine whether the processor unit that issues the request sends an access rights setting request to the main processor unit. When the processor unit that issues the request sends an access permission setting request to the main processor unit, the fourth determination submodule is used to determine whether the main processor unit allows the access permission setting request to be executed. When the main processor unit allows the access permission setting request to be executed, the control submodule is used to control the processor unit that issues the request to access data to the sub-storage space.

[0029] In some embodiments, when the processor unit that issues the request matches the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a security access request. When the access request is the security access request, the control submodule is configured to control the processor unit that issues the request to directly access the sub-storage space requested for access.

[0030] In some embodiments, when the processor unit issuing the request does not match the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a non-secure access request. When multiple processor units simultaneously make the secure access request and the non-secure access request to the same sub-storage space, the control submodule does not allow the non-secure access request to be executed.

[0031] In some embodiments, when the processor unit that issues the request does not match the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a non-secure access request. When multiple processor units simultaneously make non-secure access requests to the same sub-storage space, the control submodule is configured to allow at most one non-secure access request to be executed.

[0032] In some embodiments, when the main processor unit does not allow the access permission setting request to be executed, the control submodule does not allow the access request to be executed.

[0033] In certain embodiments, when the main processing unit has not changed the access rights of the requesting processor unit to the sub-storage space, if the requesting processor unit has accessed the requested sub-storage space, the control sub-module is used to control the requesting processor unit to directly access the requested sub-storage space.

[0034] In some embodiments, the second determination submodule is further used to determine that the access request is a non-secure access request when the processor unit that issues the request does not match the sub-storage space that is requested to be accessed. The second determination submodule is further used to determine the priority of each non-secure access request when multiple processor units simultaneously make non-secure access requests to the same sub-storage space and each of the processor units that issue the request has the access right, and the control submodule is further used to allow the execution of each non-secure access request according to the priority of each non-secure access request.

[0035] In some embodiments, the sharing control device further includes an acquisition module. The acquisition module is used to acquire the label data of each processor unit that issues the non-secure access request, and the second determination submodule is further used to determine the priority of each non-secure access request according to the size of the label data of each processor unit that issues the non-secure access request.

[0036] In some embodiments, the second unit further includes a core cluster, and the core cluster includes one processor unit or a plurality of processor units. Each core cluster has a corresponding label data, and the second determination submodule is further used to determine the core cluster that issues the non-safe access request according to the label data of each processor unit that issues the non-safe access request, and determine the priority of each non-safe access request according to the size of the label data of each core cluster that issues the non-safe access request.

[0037] In some embodiments, the main processor unit is used to set the access priority of each processor unit to each sub-storage space. In the case where the main processor unit receives a priority setting request, if the main processor unit allows the execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space, and the sub-storage space changes the access priority of each processor unit to the sub-storage space according to the received second update signal.

[0038] In some embodiments, the access request includes a read request or a write request. The second determination submodule is further used to determine whether the processor unit that issues the request has the read permission or the write permission for the sub-storage space to be accessed, and if the processor unit that issues the request does not have the read permission for the sub-storage space to be accessed, the read request is not allowed to be executed, or if the processor unit that issues the request does not have the write permission for the sub-storage space to be accessed, the control submodule does not allow the write request to be executed.

[0039] In certain embodiments, when the processor unit that issues the request has read permission for the sub-storage space to which access is requested, the second determination submodule is further used to determine whether the sub-storage space to which access is requested is being written, and when the sub-storage space is being written, the control submodule does not allow execution of the read request.

[0040] In some embodiments, when the sub-storage space is not being written, the control submodule is used to allow the read request to be executed.

[0041] In certain embodiments, when the processor unit that issues the request has write permission for the sub-storage space requested for access, a request signal is issued to the processor unit that matches the sub-storage space requested for access, and when a permission signal is received from the processor unit that matches the sub-storage space requested for access, the control submodule is used to allow execution of the write request.

[0042] In some embodiments, the control submodule does not allow the write request to be executed if a permission signal from the processor unit matching the sub-storage space requested to be accessed is not received.

[0043] In some implementations, when the access request is not allowed to be executed, the control submodule is used to output a feedback signal, where the feedback signal is used to indicate that the access request has failed.

[0044] An embodiment of the present invention provides a storage module, which includes a multi-core processor data sharing control device of any one of the above-mentioned embodiments and a first unit, wherein the first unit has a storage space for storing data, and the storage space of the first unit is divided into multiple sub-storage spaces. When the first unit receives an access request, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the execution of the access request.

[0045] An embodiment of the present invention provides a chip, which includes a first unit, a second unit and a multi-core processor data sharing control device of any one of the above embodiments, wherein the first unit has a storage space for storing data, and the storage space of the first unit is divided into multiple sub-storage spaces, and the second unit includes multiple processor units. When the second unit issues an access request to the first unit, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the second unit to execute the access request.

[0046] In some embodiments, each of the sub-storage spaces is matched with a processor unit, and each of the sub-storage spaces is communicatively connected to a matched processor unit.

[0047] In some embodiments, the second unit further includes a core cluster, and the core cluster includes one processor unit or a plurality of processor units.

[0048] In the multi-core processor data sharing control method, device, storage module and chip of the embodiment of the present invention, the multi-core processor data sharing control method is applied to the information interaction between the first unit and the second unit. The multi-core processor data sharing control method includes: receiving an access request from the second unit to the first unit, determining the processor unit that issues the request and the sub-storage space requested to be accessed according to the access request; in the case that the processor unit that issues the request does not match the sub-storage space requested to be accessed, determining whether the processor unit that issues the request has access rights to the sub-storage space requested to be accessed; in the case that the processor unit that issues the request does not have access rights, the processor unit that issues the request sends an access rights setting request to the main processor unit; in the case that the main processor unit allows the execution of the access rights setting request, the main processing unit sends a first update signal to the corresponding sub-storage space to change the access rights of the processor unit that issues the request to the sub-storage space.

[0049] The main processor unit is used to set the access rights of each processor unit. Each processor unit can change the access rights through the main processor unit, so that each processor unit can access any sub-storage space, which improves the access efficiency of the processor unit to the sub-storage space, and also improves the access efficiency of the second unit to the first unit.

[0050] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0052] Figure 1 It is a flowchart of a multi-core processor data sharing control method according to an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of a communication architecture of a first unit and a second unit according to an embodiment of the present invention;

[0054] Figure 3 is a schematic diagram of data interaction between a first unit and a second unit in an embodiment of the present invention;

[0055] Figure 4 is a schematic diagram of data interaction between a first unit and a second unit in an embodiment of the present invention;

[0056] Figure 5 is a schematic diagram of data interaction between a first unit and a second unit in an embodiment of the present invention;

[0057] Figure 6 It is a flowchart of a multi-core processor data sharing control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The embodiments of the present invention are described in detail below, and the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0059] In the relevant technical field, data sharing of multi-core heterogeneous processors is usually implemented through caching in a buffer, and multiple processor cores interact with the cache by transmitting signals through a bus. When multiple processor cores of a processor request to read the cache, the requests of multiple processor cores generate arbitration signals through the bus, agreeing to the request of one of them and blocking the other processor cores. When the processor core does not have access rights to the cache, the arbitration signal generated by the bus does not allow the processor core to read the cache. After the processor core obtains access rights, the processor core can make an access request to the bus again. Since the bus agrees to the request of at most one processor core at a time, it takes a long delay for the processor core to make an access request to the bus again, resulting in low access efficiency.

[0060] In embedded multi-core processors, the most important and basic part is the data sharing memory module. The memory management mode used by embedded multi-core processors usually has various problems such as complex memory allocation algorithm and low operating efficiency. At present, data sharing of multi-core heterogeneous processors is usually achieved by reading cache (high-speed cache memory). Multiple CPU cores transmit signals through the AXI / AHBA bus to control the cache. The requests of multiple CPU cores generate arbitration signals through the bus, agreeing to the request of one of them and blocking other CPUs, resulting in a long delay. This sharing method is not a solution specially designed for CPU cores, and cannot fully utilize the bandwidth, resulting in low data sharing efficiency and slow data transmission speed. Since data sharing of multiple CPU cores is usually based on register transmission of information, and data is transmitted by reading shared memory, the software design is complex, the development is difficult, and the interaction efficiency between multiple CPU cores is not high. The CPU core is limited by the occupation of underlying resources such as bus and storage, which limits the real-time performance of the CPU core.

[0061] See also Figure 1 The embodiment of the present invention provides a multi-core processor data sharing control method, which is applied to information interaction between a first unit and a second unit. The first unit has a storage space for storing data, and the storage space of the first unit is divided into a plurality of sub-storage spaces. The second unit includes a plurality of processor units, and each sub-storage space matches a processor unit. The plurality of processor units include a main processor unit, and the main processor unit is used to set access rights of each processor unit to each sub-storage space.

[0062] The multi-core processor data sharing control method includes: receiving an access request from a second unit to a first unit, and determining the processor unit that issues the request and the sub-storage space requested for access according to the access request; when the processor unit that issues the request does not match the sub-storage space requested for access, determining whether the processor unit that issues the request has access rights to the sub-storage space requested for access; when the processor unit that issues the request does not have access rights, the processor unit that issues the request sends an access rights setting request to the main processor unit; when the main processor unit allows the execution of the access rights setting request, the main processing unit sends a first update signal to the corresponding sub-storage space to change the access rights of the processor unit that issues the request to the sub-storage space.

[0063] Specifically, the multi-core processor data sharing control method can be used to control the multi-core processor to read data from the data sharing module. The first unit can be a data sharing module for the multi-core processor, and the first unit has a storage space for storing data, and the storage space can be a cache, a memory, or an external hard disk storage space. The second unit can be a multi-core processor, and the multi-core processor has multiple CPU cores, and the architectures of the multiple CPU cores are different, and each core is set for different requirements, thereby improving the computing performance or real-time performance of the application. Each CPU core in the multi-core heterogeneous processor can access and read the data of the data sharing module, and the multi-core processor data sharing control method is specifically used to control each CPU core to access and read the data of the data sharing module.

[0064] The communication architecture between the first unit and the second unit can refer to Figure 2 , the storage space of the first unit can be divided into n sub-storage spaces (n is a positive integer), and the n sub-storage spaces can be area0-area(n-1) in MASTER respectively. The second unit can be Figure 2 The n processor units of the second unit SLAVE can be Figure 2 The CPU0-CPU(n-1) in the memory may also be other hardware logic parts with data processing functions. In the first unit, each sub-storage space is matched with a processor unit.

[0065] The communication architecture between the first unit and the second unit can refer to Figure 3 The processor units of the second unit are cluster0-cluster n , the sub-storage spaces of the first unit are memory0-memory n , when the processor unit and the sub-storage space numbers are the same, the sub-storage space and the processor unit match.

[0066] The communication architecture between the first unit and the second unit can refer to Figure 4 , M0-M in Master n It can be n sub-storage spaces of the first unit, cluster0 and M0 match.

[0067] Each processor unit can directly make data access requests and execute operations on the matched sub-storage space, and can also make data access requests and execute operations on other sub-storage spaces. When the processor unit has access rights to the sub-storage space, the processor unit can access the data in the sub-storage space.

[0068] Each sub-storage space has a list of access permissions, which records which specific processor units have access permissions to the sub-storage space. When a processor unit requests access to a sub-storage space, it can obtain the access permission list of the sub-storage space requested for access, and determine whether the processor unit that issued the request has access permissions based on the list. For example, when CPU2 issues an access request to area1, it obtains the list of access permissions in area1. If the list of access permissions in area1 records that CPU2 has access permissions, then CPU2 has access permissions to area1, and CPU2 is allowed to access area1. Otherwise, CPU2 does not have access permissions to area1.

[0069] In the original access permission list of area1, CPU3 has access permission, but CPU2 does not. The access permission list of area1 can be changed by the main processor unit CPU0, so that in the updated access permission list of area1, CPU2 has access permission, but CPU3 does not have access permission. In this way, the access permission of CPU2 and CPU3 to area1 is changed.

[0070] When a processor unit needs to access a certain sub-storage space, if the processor unit that issues the request does not have the access rights to the sub-storage space that is requested to be accessed, the processor unit that issues the request can request the main processor unit to change the access rights to the sub-storage space that is requested to be accessed. If the main processor unit agrees to change the access rights to the sub-storage space that is requested to be accessed, the processor unit that issues the request has the access rights to the sub-storage space that is requested to be accessed. In this way, the processor unit that issues the request can access the sub-storage space that is requested to be accessed.

[0071] For example, in the access permission list of area1, CPU2 does not have the access permission of area1. If CPU2 needs to access data of area1, it can apply to the main processor unit CPU0 to change the access permission of area1. If the main processor unit CPU0 agrees to change the access permission list of area1, CPU0 changes the access permission list of area1. After CPU0 changes the access permission list of area1, CPU2 has the access permission of area1 and can access the data of area1.

[0072] The main processor unit is used to set the access rights of each processor unit. Each processor unit can access any sub-storage space by changing the permissions through the main processor unit, which improves the access efficiency of the processor unit to the sub-storage space, and also improves the access efficiency of the second unit to the first unit.

[0073] In certain embodiments, the multi-core processor data sharing control method further includes: determining that the access request is a secure access request when the processor unit issuing the request matches the sub-storage space requested for access; and when the access request is a secure access request, the processor unit issuing the request can directly access the sub-storage space requested for access.

[0074] Specifically, in the first unit, each sub-storage space is matched with a processor unit, that is, each sub-storage space is a private area of ​​a processor unit, and correspondingly, each processor unit is the master authority core of a sub-storage space. Figure 2 In the figure, area0 is the private area of ​​CPU0, area(n-1) is the private area of ​​CPU(n-1), SIV_IF can be the external interface of the second unit SLAVE, and each processor unit can directly communicate with the corresponding private area. Each processor unit has full operation authority over the private area and has the highest priority. Each processor unit can directly make data access requests and perform corresponding operations on the corresponding private area without affecting each other. When CPU0 makes a data access request to area0, area(n-1) can also make a data access request to CPU(n-1), so that multiple processor units of the second unit can make data access requests to multiple sub-storage spaces at the same time.

[0075] In this way, the processor unit in the second unit does not need to go through bus arbitration when requesting access to its private area, which can improve the speed of data transmission between the first unit and the second unit.

[0076] In the first unit, the capacity and storage data of each sub-storage space can be matched by itself, and each sub-storage space can be matched according to the frequency of the processor unit without reducing the frequency to affect the processing speed of the processor unit. Figure 2 In the example, area0 is the private area of ​​CPU0, and area(n-1) is the private area of ​​CPU(n-1). The capacity of area0 can be set according to the frequency of CPU0, and the capacity of area(n-1) can be set according to the frequency of CPU(n-1).

[0077] In the second unit, the corresponding processor unit can set up an additional subsystem according to the capacity of the sub-storage space and the storage data. The system has an independent computing unit, storage resources, and directly controls a part of the hardware interface to assume part of the functions of the processor unit. This reduces the occupation of the processor unit by underlying resources such as storage, and can improve the real-time and processing performance of the processor unit.

[0078] In addition to directly making data access requests and executing operations on the matched sub-storage space, the processor unit can also make data access requests and execute operations on other sub-storage spaces. Among them, the processor unit's access request to the private area is a secure access request, and the processor unit's access request to the non-private area is an unsecure access request. The secure access request operation has the highest priority and cannot be changed by software. When the processor unit makes an unsecure access request, it needs to be approved by the control device that manages the first unit. After the control device agrees, the processor unit can make access requests or execute operations on the non-private area. The control device can be Figure 2 The master_ctrl in the control device is used to manage the non-safe access request operation of each storage space in the first unit.

[0079] Reference Figure 3 The processor units of the second unit are cluster0-cluster n , the sub-storage spaces of the first unit are memory0-memory n , when the processor unit and the sub-storage space have the same number, the sub-storage space and the processor unit match. The processor unit can directly make a secure access request to the matching sub-storage space, and multiple processor units can make secure access requests at the same time without affecting each other. Any processor unit can also access certain areas or access the entire memory area through permission configuration. When making non-secure access requests, the access request control is uniformly managed by master_ctrl in the first unit.

[0080] In certain embodiments, the multi-core processor data sharing control method further includes: if the processor unit issuing the request does not match the sub-storage space requesting the access request, determining that the access request is a non-secure access request; in the case where multiple processor units simultaneously make secure access requests and non-secure access requests to the same sub-storage space, non-secure access requests are not allowed to be executed.

[0081] Specifically, a sub-storage space can be used by multiple processor units to perform data access requests and operations, and the data in the sub-storage space can be used as shared data by multiple processor units. In order to achieve consistency between memory and cache data in a sub-storage space, as well as consistency between data of the processor unit and the sub-storage space, it is necessary to make shared data mutually exclusive, that is, to ensure that only one processor unit can perform access requests and operations on a sub-storage space at the same time.

[0082] When multiple processor units simultaneously make secure access requests and non-secure access requests to a sub-storage space, non-secure access requests are not allowed. After executing a secure access request, if other processor units still need to execute non-secure access requests, other non-secure access requests can be allowed. Figure 2 When CPU1-CPU3 in the example makes an access request to area1, since CPU1 and area1 match, it is the highest-authority secure access request, and CPU1 communicates directly with area1. When it is determined that area1 is being executed with a secure access request, non-secure access requests from CPU2 and CPU3 are not allowed. After CPU1 completes the secure access request, if CPU2 and CPU3 still need to execute non-secure access requests to area1, CPU2 or CPU3 can be allowed to execute non-secure access requests to area1.

[0083] In this way, when the sub-storage space receives a secure access request and a non-secure access request at the same time, the non-secure access request is not allowed to be executed, thereby ensuring the consistency of data between the processor unit and the sub-storage space.

[0084] In certain embodiments, the multi-core processor data sharing control method further includes: if the processor unit issuing the request does not match the sub-storage space requesting the access request, determining that the access request is a non-secure access request; in the case where multiple processor units simultaneously make non-secure access requests to the same sub-storage space, at most one non-secure access request is allowed to be executed.

[0085] Specifically, when multiple processor units make non-access requests to a sub-storage space, at most one non-secure access request is allowed. After executing the previous non-secure access request, if other processor units still need to execute non-secure access requests, other non-secure access requests can be allowed. Figure 2 When CPU1-CPU2 in the example makes an access request to area3, since CPU1-CPU2 do not match area3, the access requests made by CPU1-CPU2 to area3 are all non-secure access requests, and at most one processor unit is allowed to execute a non-secure access request to area3. When CPU1 is allowed to execute a non-secure access request to area3, CPU2 is not allowed to execute a non-secure access request to area3. After CPU2 completes the execution of the non-secure access request to area3, the control device may allow CPU1 to execute a non-secure access request to area3.

[0086] In this way, when the sub-storage space receives multiple non-secure access requests at the same time, at most one non-secure access request is allowed to be executed, thereby ensuring the consistency of data between the processor unit and the sub-storage space.

[0087] In some embodiments, the multi-core processor data sharing control method further includes: when the main processor unit does not allow the execution of the access permission setting request, the main processing unit sends a signal that the access permission setting request fails and does not allow the execution of the access request.

[0088] If the processor unit that issues the request does not match the sub-storage space requested for access, the access request is determined to be a non-secure access request. The main processor unit is not allowed to change the access rights, and the non-secure access request is not allowed to be executed when the processor unit that issues the request does not have the access rights.

[0089] Specifically, the security of data sharing in multi-core heterogeneous processors is very important. The access rights of non-secure access requests of each processor unit can be configured to ensure the data security of multi-core heterogeneous processors. When a processor unit makes a non-secure access request to a sub-storage space for which it does not have access rights, the processor unit cannot execute the access request to the sub-storage space. Figure 4 , M0-M in Master n It can be n sub-storage spaces of the first unit. Cluster0 matches M0. The access request of cluster0 to M0 is a security access request. The main processor unit has the access right to M0 by configuring cluster2 and cluster3. n When an access request is issued to M0, due to cluster1 and cluster n The access request to M0 is a non-secure access request, and cluster1 and cluster n It does not have access rights to M0, so cluster1 and clustern Execute an access request to M0.

[0090] In this way, processor units without permission are not allowed to perform operations on the sub-storage space, which can improve the security of system data transmission.

[0091] In certain embodiments, the multi-core processor data sharing control method further includes: when the main processing unit has not changed the access rights of the processor unit that issues the request to the sub-storage space, if the processor unit that issues the request has accessed the sub-storage space requested for access, the processor unit that issues the request can directly access the sub-storage space requested for access.

[0092] Specifically, each time the main processing unit changes the access rights to the storage space, the main processing unit will send a first update signal to the corresponding sub-storage space. If the main processing unit does not send the first update signal to the corresponding sub-storage space, it can be considered that the access rights list of the corresponding sub-storage space has not been changed.

[0093] In the case where the access permission list of the sub-storage space has not been changed, if a connection has been established between a processor unit and the sub-storage space before, it does not need to be re-established and can be directly accessed or read and written, which helps to improve access efficiency.

[0094] For example, at time T1, CPU2 accesses data to area1. After time T1, the main processing unit CPU0 does not output the first update signal to area1 to change the access permission list of area1. If CPU2 needs to access data to area1 again at a second time after time T1, CPU2 can directly access the data of area1.

[0095] In some embodiments, the multi-core processor data sharing control method also includes: when the processor unit issuing the request does not have access rights, the processor unit issuing the request makes an access rights setting request to the main processor unit; when the main processor unit allows the execution of the access rights setting request, the processor unit issuing the request has access rights to the sub-storage space requested for access.

[0096] Specifically, when a processor unit needs to access a sub-storage space, if the processor unit that issues the request does not have access rights to the sub-storage space requested, the processor unit that issues the request may request the main processor unit to change the access rights to the sub-storage space requested.

[0097] When the main processor unit agrees to change the access rights of the requested sub-storage space, the processor unit that issues the request has the access rights of the requested sub-storage space, so that the processor unit that issues the request can access the requested sub-storage space.

[0098] For example, in the access permission list of area1, CPU2 does not have the access permission of area1. If CPU2 needs to access data of area1, it can apply to the main processor unit CPU0 to change the access permission of area1. If CPU0 agrees to change the access permission list of area1, CPU0 changes the access permission list of area1.

[0099] After CPU0 changes the access permission list of area1, CPU2 has the access permission of area1 and can access the data of area1.

[0100] In certain embodiments, the multi-core processor data sharing control method also includes: determining the priority of each non-secure access request when multiple processor units simultaneously make non-secure access requests to the same sub-storage space and each processor unit that issues the request has access rights; and allowing execution of the non-secure access request based on the priority of each non-secure access request.

[0101] Specifically, when multiple processor units make non-access requests to a sub-storage space, at most one access request is allowed, and the next non-secure access request is executed when the previous non-secure access request is executed.

[0102] In the case where each processor unit that issues an access request has the authority, if there is a secure access request, the secure access request will be executed first. After the secure access request is executed, it is determined whether the non-secure access request has the corresponding authority, and the non-secure access request without authority is eliminated. Then the priority of each non-secure access request with authority is determined, and the non-secure access requests are executed in sequence according to the priority.

[0103] You can refer to Figure 5 For Memory0, cluster0's access request to Memory0 is a secure access request with the highest priority. cluster1-cluster n Access requests to Memory0 are non-secure access requests, and all have access rights to cluster0. Configure cluster1-cluster through the config file nThe priority of Memory0 is cluster0-cluster0 from high to low. n When cluster0 and cluster2 simultaneously make access requests to cluster0, cluster0's secure access request is executed first, and cluster1 and cluster2's non-secure access requests are rejected. After cluster0's secure access request is executed, cluster1's non-secure access request is executed, and cluster2's non-secure access request is rejected. After cluster1's secure access request is executed, cluster2's non-secure access request is executed.

[0104] In this way, the execution of non-secure access requests can be controlled by configuring the priority of each processor unit's operations on the sub-storage space.

[0105] In some embodiments, each processor unit has a corresponding label data. Determining the priority of each non-secure access request includes: obtaining the label data of each processor unit that issues the non-secure access request; and determining the priority of each non-secure access request according to the size of the label data of each processor unit that issues the non-secure access request.

[0106] Specifically, each sub-storage space has an access priority list, which records the priority of each processor unit to access the sub-storage space. In the case where multiple processor units access the same sub-storage space at the same time, the access priority list of the sub-storage space can be obtained, and the access priority of each processor unit that issues a request can be determined based on the list.

[0107] The priority recorded in the access priority list corresponds to the label data of the processor unit. After obtaining the label data of each processor unit that issues a non-safe access request, the priority of each non-safe access request can be obtained.

[0108] For example, in Figure 2In the first unit, there are 256 processor units in total, and the label data of these processor units can be represented by 00000000-11111111. The access priority list of area1 records that the processor unit with a larger label data has a higher access priority. When the processor units with label data of 00100000 and 01000000 access area1 at the same time, the processor unit with label data of 01000000 has a higher priority than the processor unit with label data of 00100000. The access priority list of area2 records that the processor unit with a smaller label data has a higher access priority. When the processor units with label data of 01100000 and 01010000 access area2 at the same time, the processor unit with label data of 01010000 has a higher priority than the processor unit with label data of 01100000.

[0109] In some embodiments, the second unit also includes a core cluster, the core cluster includes one processor unit or multiple processor units, each core cluster has a corresponding label data, and the priority of each non-secure access request is determined according to the size of the label data of each processor unit that issues a non-secure access request, including: determining the core cluster that issues the non-secure access request according to the label data of each processor unit that issues the non-secure access request; determining the priority of each non-secure access request according to the size of the label data of each core cluster that issues the non-secure access request.

[0110] Specifically, a core cluster may include multiple processor units. Each core cluster has a corresponding label data. For example, 256 processor units may be divided into 4 core clusters, each core cluster including 64 processor units. The label data of the 4 core clusters are 2'b00, 2'b01, 2'b10 and 2'b11 respectively.

[0111] The priority recorded in the access priority list corresponds to the label data of the core cluster. If the processor unit that issues the non-secure access request is located in a different core cluster, the priority of the non-secure access request can be determined by obtaining the size of the label data of the core cluster that issues the non-secure access request.

[0112] For example, the label data of the 64 processor units in the core cluster with label data 2'b00 are 00000000-00111111, and the label data of the 64 processor units in the core cluster with label data 2'b11 are 11000000-11111111. If the access priority list of area1 records that the processor unit with a larger label data has a higher access priority, CPUa is the processor unit in the core cluster with label data 2'b00, and CPUb is the processor unit in the core cluster with label data 2'b11, it can be known that the label data of CPUb must be greater than the label data of CPUa, and it can be obtained that CPUb has a higher access priority to area1 than CPUa.

[0113] When determining the access priority of a processor unit in a sub-storage space, the priority of the core cluster where the processor unit is located will be determined first, which can reduce the response time.

[0114] In some embodiments, the plurality of processor units include a main processor unit, and the main processor unit is used to set the access priority of each processor unit to each sub-storage space. The multi-core processor data sharing control method further includes: when the main processor unit receives a priority setting request, if the main processor unit allows the execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space; the sub-storage space changes the priority of each processor unit to the sub-storage space according to the received second update signal.

[0115] CPU0 may also modify the access priority list of each sub-storage space, and further set the access priority of each processor unit to each sub-storage space.

[0116] For example, in the original area1 access priority list, CPU3 has a higher access priority than CPU2. CPU0 can be used to modify area1's access priority list, so that in the updated area1 access priority list, CPU2 has a higher access priority than CPU3. This completes the modification of CPU2 and CPU3's access priority to area1.

[0117] In some embodiments, the access request includes a read request or a write request, and the multi-core processor data sharing control method also includes: determining whether the processor unit issuing the request has read permission or write permission for the sub-storage space requested for access; if the processor unit issuing the request does not have read permission for the sub-storage space requested for access, the read request is not allowed to be executed, or, if the processor unit issuing the request does not have write permission for the sub-storage space requested for access, the write request is not allowed to be executed.

[0118] Specifically, the access rights of each processor unit include read permission and write permission. The main processor unit can configure the read permission and write permission of each processor unit to each sub-storage space through a config file. A processor unit without read permission is not allowed to read the sub-storage space, and a processor unit without write permission is not allowed to write to the sub-storage space.

[0119] In this way, by controlling the processor unit to perform a read or write operation on the sub-storage space, the security of the system data can be improved.

[0120] In some embodiments, when the processor unit issuing the request has read permission for the sub-storage space requested for access, it is determined whether the sub-storage space requested for access is being written; if the sub-storage space is being written, the read request is not allowed to be executed.

[0121] In some embodiments, after determining whether the sub-storage space requested to be accessed is being written, the multi-core processor data sharing control method further includes: if the sub-storage space is not being written, allowing the read request to be executed.

[0122] Specifically, when the processor unit initiates a read request to a non-private sub-storage space, it determines whether the area is being written and whether it has read permission (determined by the config file). If the sub-storage space is not being written and the processor unit has read permission, it can read the data by itself. If the read request issued by the processor unit cannot be allowed when the sub-storage space is being written, the sub-storage space returns a failure message to the processor unit that issued the read request, and the processor unit can continue to make the next read request.

[0123] In this way, it can be ensured that the data read by the processor unit is stable when performing a read operation, and there will be no data confusion or ambiguity due to the data being written.

[0124] In certain embodiments, the multi-core processor data sharing control method further includes: in a case where the processor unit issuing the request has write permission for the sub-storage space requested for access, issuing a request signal to the processor unit that matches the sub-storage space requested for access; and in a case where a permission signal is received from the processor unit that matches the sub-storage space requested for access, allowing execution of the write request.

[0125] In some embodiments, the multi-core processor data sharing control method further includes: if a permission signal is not received from a processor unit that matches the sub-storage space requested to be accessed, not allowing the write request to be executed.

[0126] Specifically, when the processor unit initiates a write request to a non-private sub-storage space, it first needs to determine whether it has write permission (determined by the config file). If the processor unit has write permission, it needs to send a request signal to the processor unit that matches the sub-storage space. The write request can be executed only with permission from the processor unit that matches the sub-storage space. Otherwise, the write request is not allowed, and a failure message is returned to the processor unit that issued the write request. The processor unit can continue to make the next read request.

[0127] For example, in Figure 2 In the example, CPU2 issues a write request to area1. CPU1 and area1 match. If CPU2 has the write permission to area1, it needs to send a request signal to CPU1. If CPU1 replies with permission, CPU2 can perform the write operation on area1. If CPU1 does not reply with permission, CPU2 is not allowed to perform the write operation on area1, and CPU1 sends a failure message to CPU2. When CPU2 receives the failure signal, CPU2 can continue to send a request signal to request the write operation to area1.

[0128] In this way, it can be ensured that each processor unit controls the data in the private area, and the data in the sub-storage space matched by the processor unit is stable without data confusion or ambiguity.

[0129] In some embodiments, the plurality of processor units include a main processor unit, which is used to divide the storage space of the first unit into a plurality of sub-storage spaces. Each sub-storage space is matched with a processor unit, and the main processor unit is used to set the size of each sub-storage space.

[0130] The main processor unit has the highest authority, and the main processor unit can divide the storage space of the first unit into multiple sub-storage spaces according to the number of processor units. Each sub-storage space matches a processor unit, and the main processor unit can determine the size of each sub-storage space according to the required space of each processor unit.

[0131] Furthermore, the main processor unit can set the address space of each sub-storage space to set the size of each sub-storage space. The address space of each sub-storage space includes a space set of all addresses between a start address and an end address.

[0132] For processor unit CPU0, the starting address of sub-storage space area0 corresponding to processor unit CPU0 is 0x0000_0000, and the ending address is 0x0FFF_FFFF. Sub-storage space area0 includes addresses between 0x0000_0000-0x0FFF_FFFF, with a total of 256-bit addresses, that is, sub-storage space area0 can store 256 bytes.

[0133] The start address and end address of each sub-storage space can refer to the following table:

[0134]

[0135]

[0136] In some embodiments, the main processor unit is further used to set the access rights of each processor unit to each sub-storage space. The multi-core processor data sharing control method also includes: when the processor unit that issues the request does not match the sub-storage space requested for access, if the main processor unit receives the access rights setting request and allows the execution of the access rights setting request, the main processor unit sends an access rights update signal to the corresponding processor unit that issues the request; the processor unit that issues the request obtains the access request permission for the sub-storage space requested for access according to the access rights update signal, and accesses the sub-storage space requested for access.

[0137] Specifically, the processor unit that issues the access request can access the data of the sub-storage space corresponding to other processor units by applying for permission from the main processor unit.

[0138] For example, CPU3 does not have the authority to access the address of CPU2, that is, CPU3 cannot access the data stored in area2 (the absolute address is 0x2000_0000~0x2FFF_FFFF). However, CPU3 can apply to the main processor unit CPU0 with the highest authority. After the main processor unit CPU0 authorizes, the main processor unit CPU0 can send an access authority update signal to update the access authority of CPU3, and CPU3 can access area2.

[0139] In this way, the processor unit can also access any sub-storage space through the authorization of the main processor unit, thereby improving the efficiency of data sharing among the processor units.

[0140] In certain embodiments, the processor unit that issues the request obtains an access request to the sub-storage space requested for access based on an access permission update signal, including: the processor unit that issues the request obtains an offset address based on the access permission update signal; the processor unit that issues the request determines a second access address based on the first access address and the offset address, wherein the first access address is the address of the sub-storage space corresponding to the processor unit that issues the request; the processor unit that issues the request obtains access request permission to the sub-storage space requested for access based on the second access address.

[0141] Specifically, the main processor unit may change the address accessible to each processor unit by adding an offset address, thereby changing the access rights of each processor unit to each sub-storage space.

[0142] For example, if CPU3 does not have the authority to access the address of CPU2, CPU3 can apply to the main processor unit CPU0 with the highest authority. The first access address is the address of the data stored in area3 corresponding to CPU3 (the absolute address is 0x3000_0000~0x3FFF_FFFF), and the main processor unit CPU0 can give the offset address 0x1000_0000 to CPU3. CPU3 can obtain the new starting address 0x2000_0000 by subtracting 0x3000_0000 from the offset address 0x1000_0000 from the starting address in the first access address, and then obtain the second access address (the absolute address is 0x2000_0000~0x3FFF_FFFF).

[0143] In this way, CPU3 can access the data in the second access address, including the address of area2 (the absolute address is 0x2000_0000 to 0x2FFF_FFFF).

[0144] Further, in some embodiments, the processor unit issuing the request determines the second access address based on the first access address and the offset address, including: the processor unit issuing the request determines the second access address based on the sum of the first access address and the offset address or the difference between the first access address and the offset address.

[0145] Specifically, the main processor unit CPU0 can give the offset address 0x1000_0000 to CPU3, and CPU3 can obtain the new starting address 0x2000_0000 by subtracting the offset address 0x3000_0000 from the starting address in the first access address. CPU3 can also obtain the new starting address 0x4FFFF_FFFF by adding the offset address 0x1000_0000 to the ending address 0x3FFFF_FFFF in the first access address, and can obtain the new second access address (the absolute address is 0x2000_0000~0x4FFF_FFFF).

[0146] The offset address can be a positive number or a negative number. The main processor unit CPU0 can increase the offset address so that each processor unit can access all storage spaces of the first unit.

[0147] In some implementations, the multi-core processor data sharing control method further includes: when any processor unit accesses the sub-storage space, the main processor unit cancels the access rights of other processor units to the sub-storage space.

[0148] Specifically, when CPU3 accesses area2, the main processor unit cancels the access rights of all processor units except CPU3 to area2, including the access rights of CPU2 to area2, so as to ensure the consistency of the processor units' access to area2 data.

[0149] After CPU3 completes data access to area2, CPU0 can lift the restriction on prohibiting access to area2, and CPU2 can access data to area2.

[0150] In some embodiments, the multi-core processor data sharing control method further includes: when it is determined that the processor unit is a non-secure processor unit, canceling the access rights of the non-secure processor unit to any sub-storage space.

[0151] Specifically, when a processor unit has a security risk, the processor unit can be determined as a non-secure processor unit, and CPU0 cancels the access rights of the non-secure processor unit so that the non-secure processor unit does not have access rights to any sub-storage space.

[0152] In some implementations, the multi-core processor data sharing control method further includes: outputting a feedback signal when the access request is not allowed to be executed, the feedback signal being used to indicate that the access request has failed.

[0153] When an access request is not allowed to be executed, a corresponding feedback signal is sent to the processor unit that made the access request. The feedback signal indicates that the access request has failed. The processor unit that made the request can know the request failure in time when receiving the feedback signal, and can make the access request again. The processor unit that made the request can also execute the next step of operation according to the request failure. This is conducive to improving the data transmission efficiency of each processor unit.

[0154] In this way, the processor unit that makes the access request can know the request failure in time, so as to perform the next operation according to the request failure.

[0155] In certain embodiments, the multi-core processor data sharing control method further includes: when the data stored in the sub-storage space is updated, the sub-storage space sends a storage data update signal; when the sub-storage space does not send a storage data update signal, if the processor unit that issues the request has accessed the sub-storage space, the processor unit that issues the request does not issue an access request to the sub-storage space.

[0156] Specifically, the data in each sub-storage space has a flag indicating whether the data is updated, and the storage data update signal is used to indicate that the data in the sub-storage space has been updated. If the sub-storage space does not send a storage data update signal, it can be considered that the data in the sub-storage space has not been changed.

[0157] If the data in the sub-storage space is not updated, the processor unit that has accessed it before will not access the sub-storage space again. Because each time a processor unit accesses a processor unit, the data of the processor unit will be stored in the processor unit's own cache, and the processor unit can use the data by reading its own cache. This can save the number and time of data access by the processor unit, which is conducive to improving efficiency.

[0158] For example, in Figure 2 In the example, CPU2 accesses data in area1 at time T1. If area1 has not been updated since time T1, CPU2 will not access data in area1. If area1 is updated at time T2 after time T1, CPU2 can access data in area1 to obtain the updated data.

[0159] When the processor unit issues an access request to the outside, it can refer to Figure 6 Determines whether to execute an access request issued by a processor unit. Figure 6Data access to this area refers to the processor unit accessing data from other processor units in the second unit. The processor units in the second unit can directly exchange data with each other. The processor unit can also directly exchange data with the matching sub-storage space, that is, execute a secure access request. When the processor unit in the second unit issues a non-secure access request to the sub-storage space in the first unit, it needs to be arbitrated by the control device. The non-secure access request can be executed after successful arbitration by the control device, otherwise the non-secure access request is not allowed to be executed.

[0160] An embodiment of the present invention provides a multi-core processor data sharing control device, which is used to execute the multi-core processor data sharing control method of any one of the above embodiments during operation.

[0161] In some embodiments, a multi-core processor data sharing control device is applied to information interaction between a first unit and a second unit. The first unit has a storage space for storing data, and the storage space of the first unit is divided into a plurality of sub-storage spaces. The second unit includes a plurality of processor units, each sub-storage space matches a processor unit, and the plurality of processor units include a main processor unit, and the main processor unit is used to set the access rights of each processor unit to each sub-storage space. The multi-core processor data sharing control device includes a first determination submodule, a second determination submodule, a third determination submodule, a fourth determination submodule, and a control submodule. The first determination submodule is used to determine the processor unit that issues the request and the sub-storage space requested to be accessed according to the access request. In the case that the processor unit that issues the request does not match the sub-storage space requested to be accessed, the second determination submodule is used to determine whether the processor unit that issues the request has the access rights to the sub-storage space requested to be accessed. In the case that the processor unit that issues the request does not have the access rights, the third determination submodule is used to determine whether the processor unit that issues the request sends an access rights setting request to the main processor unit. In the case that the processor unit that issues the request sends an access rights setting request to the main processor unit, the fourth determination submodule is used to determine whether the main processor unit allows the execution of the access rights setting request. In the case that the main processor unit allows the execution of the access permission setting request, the control submodule is used to control the processor unit that issues the request to access data to the sub-storage space.

[0162] The multi-core processor data sharing control device builds a secure access mechanism between the multi-core heterogeneous processor and the shared data module. When each CPU core accesses the memory area belonging to other CPU cores, it defaults to a non-secure access request. When the CPU core makes a non-secure access request to each sub-storage space, the control device arbitrates whether to allow the non-secure access request. If the control device allows it, the CPU core can execute the non-secure access request. The read permission and write permission of the non-secure access of each CPU core can be statically or dynamically configured through software (determined by the config file). The control device can also set a hardware control configuration table for security access rights, which can convert the configuration permission table of the software into a hardware security control switch to control all CPU cores and the hardware logic part of the memory to read and write according to the read and write operation permissions to safely read, write, and share the storage space of the entire second unit. The multi-core processor data sharing control device also ensures that only one CPU core can make access requests and operations to a sub-storage space at the same time, so that shared data mutual exclusion operations can be achieved, ensuring the consistency of sub-storage space and CPU core data.

[0163] In this way, the multi-core processor data sharing control device constructs a secure access mechanism between the multi-core heterogeneous processor and the shared data module, improves the security of system data transmission, and also ensures the consistency of data between the multi-core heterogeneous processor and the shared data module.

[0164] Further, in some embodiments, when the processor unit that issues the request matches the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a security access request. When the access request is a security access request, the control submodule is configured to control the processor unit that issues the request to directly access the sub-storage space requested for access.

[0165] In some embodiments, when the processor unit that issues the request does not match the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a non-secure access request. When multiple processor units simultaneously make secure access requests and non-secure access requests to the same sub-storage space, the control submodule does not allow the non-secure access request to be executed.

[0166] In some embodiments, when the processor unit that issues the request does not match the sub-storage space requested for access, the first determination submodule is further configured to determine that the access request is a non-secure access request. When multiple processor units simultaneously make non-secure access requests to the same sub-storage space, the control submodule is configured to allow at most one non-secure access request to be executed.

[0167] In some embodiments, if the main processor unit does not allow the access permission setting request to be executed, the control submodule does not allow the access request to be executed.

[0168] In certain embodiments, when the main processing unit has not changed the access rights of the processor unit that issues the request to the sub-storage space, if the processor unit that issues the request has accessed the sub-storage space requested for access, the control submodule is used to control the processor unit that issues the request to be able to directly access the sub-storage space requested for access.

[0169] In some embodiments, the second determination submodule is further used to determine that the access request is a non-secure access request when the processor unit that issues the request does not match the sub-storage space requested for access. The second determination submodule is further used to determine the priority of each non-secure access request when multiple processor units simultaneously make non-secure access requests to the same sub-storage space and each processor unit that issues the request has access rights, and the control submodule is further used to allow the execution of the non-secure access request according to the priority of each non-secure access request.

[0170] In some embodiments, the sharing control device further includes an acquisition module, which is used to acquire label data of each processor unit that issues a non-secure access request, and the second determination submodule is further used to determine the priority of each non-secure access request according to the size of the label data of each processor unit that issues a non-secure access request.

[0171] In some embodiments, the second unit further includes a core cluster, and the core cluster includes one processor unit or multiple processor units. Each core cluster has a corresponding label data, and the second determination submodule is further used to determine the core cluster that issues the non-safe access request according to the label data of each processor unit that issues the non-safe access request, and determine the priority of each non-safe access request according to the size of the label data of each core cluster that issues the non-safe access request.

[0172] In some embodiments, the main processor unit is used to set the access priority of each processor unit to each sub-storage space. In the case where the main processor unit receives a priority setting request, if the main processor unit allows the execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space, and the sub-storage space changes the access priority of each processor unit to the sub-storage space according to the received second update signal.

[0173] In some embodiments, the access request includes a read request or a write request. The second determination submodule is further used to determine whether the processor unit that issues the request has a read permission or a write permission for the sub-storage space to be accessed, and if the processor unit that issues the request does not have a read permission for the sub-storage space to be accessed, the read request is not allowed to be executed, or, if the processor unit that issues the request does not have a write permission for the sub-storage space to be accessed, the control submodule does not allow the write request to be executed.

[0174] In certain embodiments, when the processor unit that issues the request has read permission for the sub-storage space to which access is requested, the second determination submodule is further used to determine whether the sub-storage space to which access is requested is being written. If the sub-storage space is being written, the control submodule does not allow the read request to be executed.

[0175] In some embodiments, the control submodule is used to allow the read request to be executed when the sub-storage space is not being written.

[0176] In certain embodiments, when the processor unit issuing the request has write permission for the sub-storage space requested for access, a request signal is issued to the processor unit that matches the sub-storage space requested for access, and when a permission signal is received from the processor unit that matches the sub-storage space requested for access, the control submodule is used to allow execution of the write request.

[0177] In some embodiments, the control submodule does not allow the write request to be executed if a permission signal is not received from a processor unit that matches the sub-storage space requested to be accessed.

[0178] In some implementations, when the access request is not allowed to be executed, the control submodule is used to output a feedback signal, where the feedback signal is used to indicate that the access request has failed.

[0179] An embodiment of the present invention provides a storage module, which includes a multi-core processor data sharing control device of any one of the above-mentioned embodiments and a first unit, wherein the first unit has a storage space for storing data, and the storage space of the first unit is divided into multiple sub-storage spaces. When the first unit receives an access request, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the execution of the access request.

[0180] Specifically, the storage module can be a data sharing module for a multi-core heterogeneous processor, which includes multiple CPU cores. The storage space of the storage module can be divided into multiple sub-storage spaces, and each sub-storage space can be used as a private area of ​​a CPU core. The storage module has a corresponding communication interface, which allows each CPU core to connect to the private area of ​​each CPU core in the storage module, so that each CPU core can communicate and exchange data with the private area corresponding to the storage module. The CPU core does not need to go through bus arbitration when requesting access to its private area, which can increase the speed of data transmission between the multi-core heterogeneous processor and the data sharing module. In the storage module, the capacity and storage data of each sub-storage space can be matched by itself, and each sub-storage space can be matched according to the frequency of the corresponding CPU core, without reducing the frequency and affecting the processing speed of the CPU core.

[0181] In this way, the storage module can be used as a data sharing module for multi-core heterogeneous processors, which has the advantages of fast data sharing speed, high efficiency and stronger security.

[0182] An embodiment of the present invention provides a chip, which includes a first unit, a second unit and a multi-core processor data sharing control device of any one of the above embodiments, wherein the first unit has a storage space for storing data, and the storage space of the first unit is divided into multiple sub-storage spaces, and the second unit includes multiple processor units. When the second unit issues an access request to the first unit, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the second unit to execute the access request.

[0183] Specifically, the first unit, the second unit and the multi-core processor data sharing control device construct a system of high-speed data sharing security access architecture of multi-core heterogeneous processors. The second unit can be a multi-core heterogeneous processor, and the first unit can be a data sharing module for multi-core heterogeneous processors. The multi-core heterogeneous processor includes multiple CPU cores or multiple hardware logic parts. Hardware logic refers to the electronic circuit part used to process and control information in a computer system.

[0184] The storage space of the data sharing module can be divided into multiple sub-storage spaces, and each sub-storage space can be used as a private area of ​​a CPU core or hardware logic part. Each sub-storage space can be matched according to the frequency of the corresponding CPU core or hardware logic part, without reducing the frequency to affect the processing speed of the CPU core or hardware logic part. The multi-core processor data sharing control device builds a security access control management system. When each CPU core or hardware logic part accesses the memory area belonging to other CPU cores, it defaults to non-secure access. When the CPU core or hardware logic part makes a non-secure access request to each sub-storage space, the multi-core processor data sharing control device arbitrates whether to allow the non-secure access request. The system of high-speed data sharing core security access architecture of multi-core heterogeneous processors realizes high-speed, efficient and flexible data sharing.

[0185] The high-speed data sharing core security access architecture of multi-core heterogeneous processors can be applied to multi-core SoC chips, enabling multi-core chips to achieve high-speed, efficient and flexible data sharing. SoC (System on Chip) chip is an integrated circuit technology that refers to the integration of all functional components of a computer system, including a central processing unit, memory, I / O interface, display control device, etc., on a single chip. Since many functional components are integrated on the SoC chip, the efficiency of multi-data processing on the SoC chip has higher requirements. In the high-speed data sharing core security access architecture of multi-core heterogeneous processors, the multi-core heterogeneous processor has multiple CPU cores, and the architectures of the multiple CPU cores are different. Each core is set for different needs, which can improve the computing performance of the SOC chip during application and meet the use requirements of the SOC chip.

[0186] In this way, the multi-core SoC chip adopts a system of high-speed data sharing core security access architecture of multi-core heterogeneous processors, which can realize high-speed, efficient and flexible data sharing, and improve the efficiency and security performance of multi-core SoC chip in processing data.

[0187] In some implementations, each sub-storage space is matched with a processor unit, and each ensures a communication connection between the sub-storage space and the matched processor unit.

[0188] Specifically, each CPU core or hardware logic part can directly communicate and exchange data with the corresponding private area, and each sub-storage space in the data sharing module can match the frequency of the CPU core without reducing the frequency to affect the core processing speed. Multiple CPU cores can access different sub-storage spaces at the same time, avoiding arbitration problems caused by the same bus priority characteristics when multiple modules access the memory through the same bus. There is no need for each CPU core or hardware logic part to be connected to the data sharing module through the AXI / AHBA bus, which simplifies the connection relationship between the CPU core or hardware logic part and the data sharing module, and improves the access speed from the hardware aspect.

[0189] In this way, each sub-storage space in the data sharing module can be connected to the CPU core for communication without the need for transmission through a bus, thereby achieving high-speed, efficient and flexible data sharing.

[0190] In some embodiments, the second unit further includes a core cluster, and the core cluster includes one processor unit or multiple processor units.

[0191] Specifically, the size of the sub-storage space can be set arbitrarily, and the number of processor units can be increased or reduced to adapt to specific project requirements. When the number of processor units is too large or cannot adapt to this architecture for other reasons, the architecture can be connected in core clusters. Each core cluster can include one or more processor units, and the size of the corresponding sub-storage space corresponding to the newly formed processor unit is also adjusted accordingly to ensure that each CPU core or hardware logic part in the architecture has a path for exchanging data with the sub-storage space and a corresponding private area. For example, in Figure 2 The n processor units CPU0-CPU(n-1) form the m core clusters cluster0-clusterm, where the original CPU1 and CPU2 form cluster1, the sub-storage space corresponding to CPU1 is area1, the sub-storage space corresponding to CPU2 is area2, and the sub-storage spaces corresponding to cluster1 are area1 and area2. When the core cluster is used as a unit for the present architecture, the above-mentioned operation of the processor unit is applicable to the core cluster formed by multiple processor units.

[0192] The processor units in the core cluster can directly make secure access requests to the matching sub-storage space, and multiple processor units can make secure access requests at the same time without affecting each other. The processor units in the core cluster can also access certain areas or access the entire memory area through permission configuration. When making non-secure access requests, access request control is uniformly managed by master_ctrl in the data sharing module.

[0193] In the multi-core processor data sharing control method, device, storage module and chip of the embodiment of the present invention, the multi-core processor data sharing control method is applied to the information interaction between the first unit and the second unit. The multi-core processor data sharing control method includes: receiving an access request from the second unit to the first unit, determining the processor unit that issues the request and the sub-storage space requested to be accessed according to the access request; in the case that the processor unit that issues the request does not match the sub-storage space requested to be accessed, determining whether the processor unit that issues the request has access rights to the sub-storage space requested to be accessed; in the case that the processor unit that issues the request does not have access rights, the processor unit that issues the request sends an access rights setting request to the main processor unit; in the case that the main processor unit allows the execution of the access rights setting request, the main processing unit sends a first update signal to the corresponding sub-storage space to change the access rights of the processor unit that issues the request to the sub-storage space.

[0194] The main processor unit is used to set the access rights of each processor unit. Each processor unit can change the access rights through the main processor unit, so that each processor unit can access any sub-storage space, which improves the access efficiency of the processor unit to the sub-storage space, and also improves the access efficiency of the second unit to the first unit.

[0195] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0196] In addition, the term "connection" should be understood in a broad sense, for example, it can include fixed connection, detachable connection, or integral connection; it can include direct connection, indirect connection through an intermediate medium, and internal communication between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0197] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0198] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0199] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A multi-core processor data sharing control method, characterized in that: The multi-core processor data sharing control method is applied to information interaction between a first unit and a second unit, the first unit has a storage space for storing data, the storage space of the first unit is divided into a plurality of sub-storage spaces, the second unit includes a plurality of processor units, each of the sub-storage spaces matches one of the processor units, the plurality of processor units include a main processor unit, the main processor unit is used to set access rights of each of the processor units to each of the sub-storage spaces, the multi-core processor data sharing control method includes: receiving an access request from the second unit to the first unit, and determining, according to the access request, a processor unit that issues the request and a sub-storage space requested to be accessed; In the case that the processor unit issuing the request does not match the sub-storage space requested for access, determining whether the processor unit issuing the request has access rights to the sub-storage space requested for access; In the case that the processor unit that issues the request does not have the access right, the processor unit that issues the request sends an access right setting request to the main processor unit; In the case that the main processor unit allows the execution of the access permission setting request, the main processor unit sends a first update signal to the corresponding sub-storage space to change the access permission of the processor unit that issues the request to the sub-storage space.

2. The multi-core processor data sharing control method according to claim 1, characterized in that: The multi-core processor data sharing control method further includes: In a case where the processor unit issuing the request matches the sub-storage space requested to be accessed, determining that the access request is a security access request; In the case where the access request is the security access request, the processor unit that issues the request can directly access the sub-storage space requested to be accessed.

3. The multi-core processor data sharing control method according to claim 2, characterized in that: The multi-core processor data sharing control method further includes: If the processor unit issuing the request does not match the sub-storage space requested to be accessed, determining that the access request is a non-secure access request; In the case where a plurality of the processor units simultaneously make the secure access request and the non-secure access request to the same sub-storage space, the non-secure access request is not allowed to be executed.

4. The multi-core processor data sharing control method according to claim 1, characterized in that: The multi-core processor data sharing control method further includes: If the processor unit issuing the request does not match the sub-storage space requested to be accessed, determining that the access request is a non-secure access request; In the case where a plurality of the processor units simultaneously make the non-secure access request to the same sub-storage space, at most one non-secure access request is allowed to be executed.

5. The multi-core processor data sharing control method according to claim 1, characterized in that: The multi-core processor data sharing control method further includes: In the case that the main processor unit does not allow the access permission setting request to be executed, the main processor unit sends a signal that the access permission setting request fails and does not allow the access request to be executed.

6. The multi-core processor data sharing control method according to claim 1, characterized in that: The multi-core processor data sharing control method further includes: Under the condition that the main processor unit has not changed the access permission of the requesting processor unit to the sub-storage space, if the requesting processor unit has accessed the requested sub-storage space, the requesting processor unit can directly access the requested sub-storage space.

7. The multi-core processor data sharing control method according to claim 1, characterized in that: The multi-core processor data sharing control method further includes: If the processor unit issuing the request does not match the sub-storage space requested to be accessed, determining that the access request is a non-secure access request; In the case where a plurality of the processor units simultaneously make the non-secure access request to the same sub-storage space, and each of the processor units that make the request has the access right, determining the priority of each of the non-secure access requests; The non-secure access requests are allowed to be executed according to the priority of each of the non-secure access requests.

8. The multi-core processor data sharing control method according to claim 7, characterized in that: Each of the processor units has a corresponding label data, and determining the priority of each of the non-secure access requests includes: Obtaining label data of each processor unit that issues the non-secure access request; The priority of each of the non-secure access requests is determined according to the size of the label data of each of the processor units that issues the non-secure access request.

9. The multi-core processor data sharing control method according to claim 8, characterized in that: The second unit further includes a core cluster, the core cluster includes one processor unit or a plurality of processor units, each core cluster has a corresponding label data, and the priority of each non-secure access request is determined according to the size of the label data of each processor unit that issues the non-secure access request, including: Determining the core cluster that issues the non-secure access request according to the label data of each processor unit that issues the non-secure access request; The priority of each of the non-safe access requests is determined according to the size of the label data of each of the core clusters that issues the non-safe access request.

10. The multi-core processor data sharing control method according to claim 7, characterized in that: The main processor unit is used to set the access priority of each processor unit to each sub-storage space, and the multi-core processor data sharing control method also includes: In the case where the main processor unit receives a priority setting request, if the main processor unit allows the execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space; The sub-memory space modifies the access priority of each of the processor units to the sub-memory space according to the received second update signal.

11. The multi-core processor data sharing control method according to claim 1, characterized in that: The access request includes a read request or a write request, and the multi-core processor data sharing control method further includes: Determining whether the processor unit issuing the request has read permission or write permission for the sub-storage space requested to be accessed; If the processor unit issuing the request does not have read permission for the sub-storage space requested for access, the read request is not allowed to be executed; or, if the processor unit issuing the request does not have write permission for the sub-storage space requested for access, the write request is not allowed to be executed.

12. The multi-core processor data sharing control method according to claim 11, characterized in that: The multi-core processor data sharing control method further includes: In the case where the processor unit that issues the request has read permission for the sub-storage space requested to be accessed, determining whether the sub-storage space requested to be accessed is being written to; In the case where the sub-storage space is being written, the read request is not allowed to be executed.

13. The multi-core processor data sharing control method according to claim 12, characterized in that: After determining whether the sub-storage space requested to be accessed is being written, the multi-core processor data sharing control method further includes: In the case where the sub-storage space is not being written, the read request is allowed to be executed.

14. The multi-core processor data sharing control method according to claim 11, characterized in that: The multi-core processor data sharing control method further includes: In the case where the processor unit issuing the request has the write permission for the sub-storage space requested for access, issuing a request signal to the processor unit matching the sub-storage space requested for access; In the case of receiving a permission signal from the processor unit matching the sub-storage space requested to be accessed, execution of the write request is permitted.

15. The multi-core processor data sharing control method according to claim 11, characterized in that: The multi-core processor data sharing control method further includes: In the case where a permission signal from the processor unit matching the sub-storage space requested to be accessed is not received, the write request is not permitted to be executed.

16. The multi-core processor data sharing control method according to any one of claims 1 to 15, further comprising: In the case where the access request is not allowed to be executed, a feedback signal is output, where the feedback signal is used to indicate that the access request has failed.

17. A multi-core processor data sharing control device, characterized in that: The multi-core processor data sharing control device is applied to information interaction between a first unit and a second unit, the first unit has a storage space for storing data, the storage space of the first unit is divided into a plurality of sub-storage spaces, the second unit includes a plurality of processor units, each of the sub-storage spaces matches one of the processor units, the plurality of processor units include a main processor unit, the main processor unit is used to set access rights of each of the processor units to each of the sub-storage spaces, the multi-core processor data sharing control device includes: A first determination submodule, the first determination submodule is used to determine the processor unit that issues the request and the sub-storage space requested to be accessed according to the access request; a second determination submodule, for determining, when the processor unit issuing the request does not match the sub-storage space requested for access, whether the processor unit issuing the request has access rights to the sub-storage space requested for access; a third determining submodule, for determining whether the processor unit issuing the request sends an access permission setting request to the main processor unit when the processor unit issuing the request does not have the access permission; a fourth determination submodule, for determining whether the main processor unit allows the execution of the access permission setting request when the processor unit that issues the request sends the access permission setting request to the main processor unit; A control submodule, when the main processor unit allows the execution of the access permission setting request, the control submodule is used to control the processor unit that issues the request to access data to the sub-storage space.

18. The multi-core processor data sharing control device according to claim 17, characterized in that: In the case where the processor unit issuing the request matches the sub-storage space requested for access, the first determination sub-module is also used to determine that the access request is a security access request. In the case where the access request is the security access request, the control sub-module is used to control the processor unit issuing the request to be able to directly access the sub-storage space requested for access.

19. The multi-core processor data sharing control device according to claim 18, characterized in that: In the case where the processor unit issuing the request does not match the sub-storage space requested for access, the first determination sub-module is also used to determine that the access request is a non-secure access request. In the case where multiple processor units simultaneously make the secure access request and the non-secure access request to the same sub-storage space, the control sub-module does not allow the execution of the non-secure access request.

20. The multi-core processor data sharing control device according to claim 17, characterized in that: In the case where the processor unit issuing the request does not match the sub-storage space requested for access, the first determination sub-module is also used to determine that the access request is a non-secure access request. In the case where multiple processor units simultaneously make non-secure access requests to the same sub-storage space, the control sub-module is used to allow at most one non-secure access request to be executed.

21. The multi-core processor data sharing control device according to claim 17, characterized in that: In the case that the main processor unit does not allow the access permission setting request to be executed, the control submodule does not allow the access request to be executed.

22. The multi-core processor data sharing control device according to claim 17, characterized in that: In the case where the main processor unit has not changed the access permission of the processor unit issuing the request to the sub-storage space, if the processor unit issuing the request has accessed the sub-storage space requested for access, the control submodule is used to control the processor unit issuing the request to be able to directly access the sub-storage space requested for access.

23. The multi-core processor data sharing control device according to claim 17, characterized in that: The second determination submodule is also used to determine that the access request is a non-secure access request when the processor unit issuing the request does not match the sub-storage space requested for access. The second determination submodule is also used to determine the priority of each non-secure access request when multiple processor units simultaneously make non-secure access requests to the same sub-storage space and each of the processor units issuing the request has the access right. The control submodule is also used to allow execution of each non-secure access request based on the priority of the non-secure access request.

24. The multi-core processor data sharing control device according to claim 23, characterized in that: The shared control device also includes an acquisition module, which is used to obtain the label data of each processor unit that issues the non-secure access request. The second determination submodule is also used to determine the priority of each non-secure access request based on the size of the label data of each processor unit that issues the non-secure access request.

25. The multi-core processor data sharing control device according to claim 24, characterized in that: The second unit also includes a core cluster, which includes one processor unit or multiple processor units, and each core cluster has a corresponding label data. The second determination submodule is also used to determine the core cluster that issues the non-secure access request based on the label data of each processor unit that issues the non-secure access request, and determine the priority of each non-secure access request based on the size of the label data of each core cluster that issues the non-secure access request.

26. The multi-core processor data sharing control device according to claim 23, characterized in that: The main processor unit is used to set the access priority of each processor unit to each sub-storage space. When the main processor unit receives a priority setting request, if the main processor unit allows execution of the priority setting request, the main processor unit sends a second update signal to the corresponding sub-storage space, and the sub-storage space changes the access priority of each processor unit to the sub-storage space according to the received second update signal.

27. The multi-core processor data sharing control device according to claim 17, characterized in that: The access request includes a read request or a write request, and the second determination submodule is also used to determine whether the processor unit that issues the request has read permission or write permission for the sub-storage space requested to be accessed. If the processor unit that issues the request does not have read permission for the sub-storage space requested to be accessed, the read request is not allowed to be executed; or, if the processor unit that issues the request does not have write permission for the sub-storage space requested to be accessed, the control submodule does not allow the write request to be executed.

28. The multi-core processor data sharing control device according to claim 27, characterized in that: In the case where the processor unit that issues the request has read permission for the sub-storage space requested for access, the second determination sub-module is also used to determine whether the sub-storage space requested for access is being written to. In the case where the sub-storage space is being written to, the control sub-module does not allow the read request to be executed.

29. The multi-core processor data sharing control device according to claim 28, characterized in that: In a case where the sub-storage space is not being written, the control sub-module is used to allow the read request to be executed.

30. The multi-core processor data sharing control device according to claim 27, characterized in that: In a case where the processor unit that issues the request has write permission for the sub-storage space requested for access, a request signal is sent to the processor unit that matches the sub-storage space requested for access, and in a case where a permission signal is received from the processor unit that matches the sub-storage space requested for access, the control submodule is used to allow execution of the write request.

31. The multi-core processor data sharing control device according to claim 27, characterized in that: In the case of not receiving a permission signal from the processor unit matching the sub-storage space requested to be accessed, the control sub-module does not allow the write request to be executed.

32. The multi-core processor data sharing control device according to claim 17, characterized in that: In the case where the access request is not allowed to be executed, the control submodule is used to output a feedback signal, where the feedback signal is used to indicate that the access request has failed.

33. A storage module, characterized in that: The storage module includes a multi-core processor data sharing control device as described in any one of claims 17-32 and a first unit, wherein the first unit has a storage space for storing data, and the storage space of the first unit is divided into multiple sub-storage spaces. When the first unit receives an access request, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the execution of the access request.

34. A chip, characterized in that: The chip includes a first unit, a second unit and a multi-core processor data sharing control device as described in any one of claims 17-32, wherein the first unit has a storage space for storing data, the storage space of the first unit is divided into multiple sub-storage spaces, the second unit includes multiple processor units, and when the second unit issues an access request to the first unit, the multi-core processor data sharing control device is used to control the first unit to allow or not allow the second unit to execute the access request.

35. The chip according to claim 34, characterized in that Each of the sub-storage spaces is matched with a processor unit, and each of the sub-storage spaces is communicatively connected with a matched processor unit.

36. The chip according to claim 34, characterized in that The second unit further includes a core cluster, and the core cluster includes one processor unit or a plurality of processor units.

Citation Information

Patent Citations

  • Management method and device for sharing internal memory in multi-core system

    CN101246466A

  • Shared parallel data reading-writing apparatus of multi memories among multi controllers, and reading-writing method of the same

    CN106569727A

  • Mixed address programming method for packaging-level multiprocessors

    CN113297097A

  • Access monitoring method and device for shared memory

    US20080047005A1

  • Bus communication apparatus that uses shared memory

    US20090013115A1