Multi-core system and reading method
By using the memory management unit and DMA unit in the multi-core system to set the transfer descriptor based on the page number, data transmission between processor cores is realized, which solves the problems of data sharing complexity and increased CPU load in the existing multi-core system, and improves the efficiency Data transmission efficiency.
Patent Information
- Application Number
- CN202410197158.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-16
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-20
AI Technical Summary
Existing multi-core systems have complex data sharing procedures between processor cores, which results in increased communication load between CPUs and makes it difficult to simplify data transmission and reception.
By introducing a memory management unit (MMU) and a direct memory access (DMA) unit in a multi-core system, the transfer descriptor is set based on the page number to realize data transfer between processor cores, reduce the load of the CPU, and use DMA transfer technology Improve data transmission efficiency.
It effectively reduces the load between CPU processor cores, simplifies data sharing procedures, improves data transmission efficiency in multi-core systems, and reduces CPU processing load.
Smart Images

Figure CN118672952A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The disclosure of Japanese Patent Application No. 2023-041633 filed on March 16, 2023 including the specification, drawings and abstract is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to a multi-core system and a reading method. Background Art
[0004] The techniques listed below are disclosed.
[0005] [Patent Document 1] Japanese Patent Application Publication No. 2005-301714
[0006] Patent document 1 discloses a technology related to a multi-central processing unit (CPU) system for sending and receiving data between CPUs. The multi-CPU system includes two CPUs. Each of the two CPUs allocates the register or RAM of the other CPU to its own memory space. Then, data is transmitted by writing data to the area of the register or RAM of the other CPU allocated to its own memory space or by reading data from the area of the register or RAM of the other CPU allocated to its own memory space. Therefore, in the communication between the CPUs, by accessing the RAM or register present in the memory space of the other CPU allocated to its own memory space, the program necessary for data transmission and reception between the two CPUs can be simplified. Summary of the invention
[0007] In recent years, the multi-core system disclosed in Patent Document 1 tends to be more complicated. Under such circumstances, it is also desired to simplify the procedure for data sharing between processor cores included in the multi-core system.
[0008] Other problems and novel features will become apparent from the description of this specification and the accompanying drawings.
[0009] According to an embodiment, a multi-core system includes a first processor core, a first memory coupled to the first processor core, a first direct memory access (DMA) unit coupled to the first memory, a second processor core, a second memory coupled to the second processor core, and a memory management unit (MMU), wherein when page data of a page designated as a read destination by the first processor core is stored in the second memory, the MMU causes the first DMA unit to set a first transfer descriptor based on a page number.
[0010] According to an embodiment, when page data of a page designated as a read destination by a first processor core coupled to a first memory is stored in a second memory coupled to a second processor core, a first DMA unit coupled to the first memory sets a first transfer descriptor based on a page number.
[0011] This embodiment makes it possible to prevent an increase in the processing of the first processor core and the second processor core when communication data is transmitted and received between the first processor core and the second processor core. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a diagram for describing the configuration of a multi-core system according to a studied example.
[0013] Figure 2 is a diagram for describing the configuration of a multi-core system according to the first embodiment.
[0014] Figure 3 is a diagram for describing the operation of the multi-core system according to the first embodiment.
[0015] Figure 4 is a diagram for describing the operation of the multi-core system according to the first embodiment.
[0016] Figure 5 is a diagram for describing the configuration of a transmission descriptor database according to the first embodiment.
[0017] Figure 6 is a diagram for describing the configuration of a transmission descriptor database according to the first embodiment.
[0018] Figure 7 is a diagram for describing the configuration of a multi-core system according to the second embodiment.
[0019] Figure 8 is a diagram for describing the operation of the multi-core system according to the second embodiment.
[0020] Fig. 9 is a diagram for describing the configuration of a transmission descriptor database according to the second embodiment. DETAILED DESCRIPTION
[0021] For the sake of clarity, the following description and drawings are appropriately omitted and simplified. In addition, each element of the functional blocks illustrated in the drawings as performing various processes may include a CPU, a memory, and other circuits in hardware, and may be implemented in software by a program loaded in the memory, etc. Therefore, it should be understood by those skilled in the art that these functional blocks may be implemented in various forms only by hardware, only by software, or a combination thereof, and that the functional blocks are not limited to any of them. Note that in the drawings, the same elements are represented by the same reference numerals, and redundant descriptions are omitted as needed.
[0022] In addition, the above-mentioned program includes a command group (or software code) for making the computer perform one or more functions described in the embodiment when the program is read by the computer. The program can be stored in a non-transient computer-readable medium or a tangible storage medium. By way of example and not limitation, a computer-readable medium or a tangible storage medium includes a random access memory (RAM), a read-only memory (ROM), a flash memory, a solid-state drive (SSD) or another memory technology, a CD-ROM, a digital versatile disk (DVD), a Blu-ray (registered trademark) disk or another optical disk storage device, a cassette, a magnetic tape, a magnetic disk storage device or another magnetic storage device. The program can be sent on a transient computer-readable medium or a communication medium. By way of example and not limitation, a transient computer-readable medium or a communication medium includes a propagation signal in electrical, optical, acoustic or other forms.
[0023] (Circumstances leading to the embodiment)
[0024] First, refer to Figure 1 Describe the problem newly discovered by the inventor. Conventional multi-core systems assume that data is transferred between CPUs. In the case of a multi-core system including processor cores for specific applications, it is conceivable to implement a memory management unit (MMU). The inventor has studied a multi-core system according to the following research example.
[0025] Figure 1 1 is a diagram for describing the configuration of a multi-core system according to a research example. The multi-core system according to the research example includes a semiconductor device 100A and a semiconductor device 100B. The semiconductor devices 100A and 100B are configured to be able to communicate with each other via a network (not shown). The node where the semiconductor device 100A exists is called node A, and the node where the semiconductor device 100B exists is called node B.
[0026] Semiconductor device 100A includes CPU 111A, hardware (HW)-intellectual property (IP) 112A, MMU 120A, memory 130A, and communication interface (IF) 140A. Similarly, semiconductor device 100B includes CPU 111B, HW-IP 112B, MMU 120B, memory 130B, and communication IF 140B.
[0027] The CPUs 111A and 111B are general-purpose processor cores. The HW-IPs 112A and 112B are processor cores for specific applications. The HW-IPs 112A and 112B are, for example, dedicated circuits that perform predetermined image processing.
[0028] The MMU 120A converts the logical address of the read destination or the write destination specified from the HW-IP 112A into a physical address in the memory 130A. The logical address includes a page number. In the case where the specified logical address does not correspond to the physical address in the memory 130A, the MMU 120A notifies the CPU 111A. Similarly, the MMU 120B converts the logical address of the read destination or the write destination specified from the HW-IP 112B into a physical address in the memory 130B. In the case where the specified logical address does not correspond to the physical address in the memory 130B, the MMU 120B notifies the CPU 111B.
[0029] The memories 130A and 130B are storage areas of a dynamic random access memory (DRAM) etc. The communication IF 140A and the communication IF 140B are configured to be able to communicate with each other.
[0030] Next, the operation flow when the HW-IP 112A reads data from the memory 130B will be described. First, the HW-IP 112A sends the logical address of the read destination to the MMU 120A. The MMU 120A notifies the CPU 111A that the specified logical address does not correspond to the physical address in the memory 130A. Next, the CPU 111A sends communication data for data request to the node B via the communication IF 140A. Then, the CPU 111B sends the communication data including the page data to the node A via the communication IF 140B.
[0031] The CPU 111A performs a process of receiving a notification from the MMU 120A and a process of transmitting communication data for a data request to the node B. Therefore, there is a problem that the load on the CPU 111A is large.
[0032] The inventors of the present application have conceived embodiments based on the above examinations. Hereinafter, the embodiments will be described.
[0033] (First embodiment)
[0034] Figure 2 1 is a diagram for describing a configuration of a multi-core system according to a first embodiment. The multi-core system according to the first embodiment includes semiconductor devices 100A and 100B. The configuration is illustrated in the case where the semiconductor device 100A reads data stored in a memory of the semiconductor device 100B.
[0035] Each of the semiconductor devices 100A and 100B may include a single semiconductor chip or may include a plurality of semiconductor chips. The semiconductor devices 100A and 100B are configured to be able to communicate with each other. A node where the semiconductor device 100A exists is referred to as a node A, and a node where the semiconductor device 100B exists is referred to as a node B.
[0036] The semiconductor device 100A includes a processor core 110A, an MMU 120A, a memory 130A, and a communication IF 140A. Similarly, the semiconductor device 100B includes a processor core 110B, an MMU 120B, a memory 130B, and a communication IF 140B.
[0037] The processor core 110A, the MMU 120A, the memory 130A and the communication IF 140A are configured to be able to communicate with each other via a bus. Similarly, the processor core 110B, the MMU 120B, the memory 130B and the communication IF 140B are configured to be able to communicate with each other via a bus.
[0038] The processor core 110A includes a CPU 111A and a HW-IP 112A. Similarly, the processor core 110B includes a CPU 111B and a HW-IP 112B. The CPUs 111A and 111B are general-purpose processor cores. The HW-IPs 112A and 112B are processor cores for specific applications. The HW-IPs 112A and 112B may be hardware for acceleration, including hardware such as a graphics processing unit (GPU), a field programmable gate array (FPGA), or a dedicated large-scale integration (LSI). The HW-IPs 112A and 112B are, for example, dedicated circuits that perform predetermined image processing. Note that, as described later, the processor core 110A may include only one of the CPU 111A and the HW-IP 112B.
[0039] The MMU 120A and the MMU 120B include a unified translation lookaside buffer (uTLB) 121A and a uTLB 121B, respectively. The uTLB 121A is a cache memory that temporarily stores the contents of a page table 135A described later. The uTLB 121B is a cache memory that temporarily stores the contents of a page table 135B.
[0040] In addition, the MMU 120A includes an address conversion unit 122A and a communication data request unit 123A. The address conversion unit 122A converts the logical address specified as the read destination from the HW-IP 112A into a physical address in the memory 130A. The logical address includes a page number. In the case where the specified logical address does not exist on the page table 135A, the address conversion unit 122A notifies the communication data request unit 123A. In the case where the communication data request unit 123A receives the notification from the address conversion unit 122A, the communication data request unit 123A causes the DMA unit 142A described later to set a transfer descriptor based on the page number. Note that the specific configuration of the transfer descriptor will be described later.
[0041] The memory 130A stores page data 131A, a reception buffer 132A, a data request 133A, a transfer descriptor database 134A, a page table 135A, an interpretation program 136A, a page table update program 137A, and a storage program 138A.
[0042] The page data 131B described later is copied to the page data 131A. The data received by the communication IF 140A is stored in the receiving buffer 132A. The data request 133A is the communication data (example: packet) to be sent to the node B. The data request 133A includes the destination data and the page number. The destination data represents, for example, the address of the node B. The destination data can be, for example, the destination MAC address included in the Ethernet (registered trademark, the same below) frame.
[0043] The transfer descriptor database 134A stores a plurality of transfer descriptors. Each transfer descriptor is a so-called direct memory access (DMA) descriptor and includes an address that references data to be transferred. The plurality of transfer descriptors correspond to a plurality of pages stored in the memory 130B, respectively. Note that the specific configuration of the transfer descriptor database 134A will be described later.
[0044] The page table 135A stores the correspondence between the physical address and the logical address in the memory 130A. Each entry of the page table 135A has a valid / invalid bit. In addition, the page table 135A also includes a bit for setting each page to an unreadable state or a non-writable state. The interpretation program 136A is a program for interpreting the transmission data 133B received from the node B. The page table update program 137A is a program for updating the page table 135A. The storage program 138A is a program for storing the page data received from the node B in the page data 131A.
[0045] Note that the function implemented by the CPU 111A reading and executing the interpreter program 136A may also be referred to as the interpreter program 136A. Similar descriptions apply to the page table update program 137A and the storage program 138A.
[0046] The memory 130B includes page data 131B, a reception buffer 132B, transmission data 133B, a transmission descriptor database 134B, a page table 135B, an interpretation program 136B, and a page table update program 137B.
[0047] The page data is stored in the page data 131B. The data received by the communication IF 140B is stored in the reception buffer 132B. The transmission data 133B indicates the communication data for the page data transmission. The transmission data 133B includes the destination data and the page data. The destination data indicates the address of the node A, for example.
[0048] The transfer descriptor database 134B stores a plurality of transfer descriptors. Each transfer descriptor is a so-called DMA descriptor and includes the address of the data to be transferred. The plurality of transfer descriptors each corresponds to a plurality of pages stored in the memory 130B. Note that the specific configuration of the transfer descriptor database 134B will be described later.
[0049] The page table 135B stores the correspondence between the physical address and the logical address in the memory 130B. Each entry of the page table 135B has a valid / invalid bit. In addition, the page table 135B also includes a bit for setting each page to an unreadable state or a non-writable state. The interpretation program 136B is a program for interpreting the data request 133A. The interpretation program 136B causes the DMA unit 142B to set a transfer descriptor based on the page number. The page table update program 137B is a program for updating the page table 135B.
[0050] The functions implemented by the CPU 111A reading and executing the interpreter program 136B may also be referred to as the interpreter program 136B. A similar description applies to the page table updater 137B.
[0051] The communication IF 140A includes a MAC unit 141A and a DMA unit 142A. The communication IF 140B includes a MAC unit 141B and a DMA unit 142B. The communication IFs 140A and 140B are configured to be able to communicate with each other. The communication IFs 140A and 140B can perform communication using Ethernet.
[0052] MAC units 141A and 141B perform MAC layer processing. DMA units 142A and 142B are coupled to memory 130A and memory 130B, respectively.
[0053] DMA unit 142A performs DMA transfer according to the transfer descriptor based on the page number. Therefore, communication IF 140A sends data request 133A to communication IF 140B. Similarly, DMA unit 142B performs DMA transfer according to the transfer descriptor based on the page number. Therefore, communication IF 140B sends data request 133B to communication IF 140A. DMA units 142A and 142B can transfer data stored in the address specified by the transfer descriptor to a transfer buffer (not shown), for example.
[0054] Next, refer to Figure 3 , the operation of the multi-core system according to the first embodiment will be described. First, the HW-IP 112A requests the uTLB 121A to reference a logical address (step S101). Next, the uTLB 121A instructs the address conversion unit 122A to convert the logical address into a physical address (step S102).
[0055] Next, address conversion unit 122A quotes page table 135A (step S103), and detects access to unregistered logical address. Next, address conversion unit 122A sends signal to communication data request unit 123A, and this signal notice detects access to unregistered logical address and the page number (step S104) included in the logical address. Next, communication data request unit 123A makes DMA unit 142A set transmission descriptor based on page number (step S105). Next, communication data request unit 123A indicates DMA unit 142A to start DMA transmission (step S106). Next, DMA unit 142A reads the transmission descriptor (step S107) set and performs DMA transmission. Therefore, data request 133A is prepared (step S108), and data request 133A is sent to node B.
[0056] Next, the DMA unit 142B stores the received data request 133A in the reception buffer 132B (step S109). Next, the DMA unit 142B sends a reception completion interrupt to the interpreter 136B (step S110).
[0057] Next, the interpreter 136B extracts the page number from the receive buffer 132B (step S111). Next, the interpreter 136B passes the page number to the page table updater 137B, and instructs the page table updater 137B to set the page of the page number to be unwritable (step S112). Next, the page table updater 137B sets the page to be unwritable (step S113). Next, the interpreter 136B causes the DMA unit 142B to set the transfer descriptor based on the page number (step S114). Next, the interpreter 136B instructs the DMA unit 142B to start DMA transfer (step S115). Next, the DMA unit 142B reads the set transfer descriptor (step S116) and performs DMA transfer. Therefore, the transmission data 133B is prepared (step S117), and the transmission data 133B is sent to the node A. Next, the DMA unit 142B sends a transfer completion interrupt to the CPU 111B, and the CPU 111B starts the interpreter 136B (step S118). Next, the interpreter 136B passes the page number to the page table updater 137B, and instructs the page table updater 137B to set the page of the page number as writable (step S119). Next, the page table updater 137B sets the page as writable (step S120).
[0058] Next, the DMA unit 142A stores the transmission data 133B in the receiving buffer 132A (step S121). Next, the DMA unit 142A sends a reception completion interrupt to the interpreter 136A (step S122). Next, the interpreter 136A extracts the transmission data 133B from the receiving buffer 132A, and passes the transmission data 133B to the storage program 138A (step S123). Next, the storage program 138A stores the page data included in the transmission data 133B in the page data 131A (step S124). Next, the interpreter 136A passes the page number to the page table updater 137A, and instructs the page table updater 137A to set the page of the page number to readable (step S125). Next, the page table updater 137A sets the page to be writable (step S126). Next, the page table updater 137A notifies the address translation unit 122A that the sharing of the page data is completed (step S127). Next, the address conversion unit 122A notifies the physical address of the page data 131A to the uTLB 121A (step S128). Next, the uTLB 121A notifies the physical address of the page data 131A to the HW-IP 112A (step S129). Next, the HW-IP 112A reads the page data 131A (step S130).
[0059] Next, refer to Figure 4, the operation when HW-IP 112B writes page data into memory 130B will be described. First, HW-IP 112B requests uTLB 121B to reference a logical address (step S201). Next, uTLB 121B instructs address translation unit 122B to convert the logical address into a physical address (step S202). Next, address translation unit 122B references page table 135B (step S203) and specifies the corresponding physical address. Next, address translation unit 122B sends the specified physical address to uTLB 121B (step S204). Next, uTLB 121B sends the physical address to HW-IP 112B (step S205). Next, HW-IP 112B writes page data 131B in the physical address (step S206). When the writing of the page data is completed, HW-IP 112B sends a completion interrupt to the CPU. The CPU 111B passes the page number to the page table update program 137B, and instructs the page table update program 137B to set the page to a valid state (step S207). Next, the page table update program 137B sets the page to a valid state (step S208).
[0060] Figure 5 1 is a diagram for describing the configuration of the transfer descriptor database 134A. Each of the plurality of transfer descriptors is associated with a page number. The address conversion unit 122A sets the transfer descriptor based on the page number. Preferably, the plurality of transfer descriptors are arranged in a physically continuous memory area in such an order that each of the plurality of transfer descriptors corresponds to a page number and the data sizes of the transfer descriptors are equal to each other. In this case, the address of each transfer descriptor is obtained by multiplying the data size by the number of transfer descriptors (example: page number) and adding the multiplication result to the address of the first transfer descriptor.
[0061] In each transfer descriptor, start, address, and end are arranged in this order. The address refers to the destination data and the data includes the page number.
[0062] An example of a method of generating the transmission descriptor database 134A will be described. For example, the CPU 111A executes a program (example: middleware and buffer manager) at system initialization, thereby generating a plurality of transmission descriptors corresponding to each of a plurality of pages. Then, the CPU 111A stores the plurality of transmission descriptors as the transmission descriptor database 134A in the memory 130A.
[0063] Figure 6 1 is a diagram for describing the configuration of the transfer descriptor database 134B. In each transfer descriptor, the start, address, and end are arranged in this order. The address refers to the destination data and indicates the physical address of the storage destination of the page data.
[0064] In the multi-core system according to the first embodiment, the MMU sets the transfer descriptor to the communication IF and performs DMA transfer of the data request 133A. Therefore, the load on the CPU can be reduced. In addition, since the generation of packets using the DMA descriptor is performed, in the multi-core system according to the first embodiment, a plurality of nodes can communicate with each other through various communication methods (example: Ethernet).
[0065] Reference Figure 2 , the processor core 110A may not include the CPU 111A. This is because in the multi-core system according to the first embodiment, page data can be read without using the CPU 111A. Therefore, a configuration that does not include each program executed by the CPU 111A may also be included in the first embodiment. In addition, the processor core 110A may include only the CPU 111A. In this case, the MMU 120A receives the logical address from the CPU 111A.
[0066] (Second embodiment)
[0067] When the number of nodes is three or more, the multi-core system according to the first embodiment cannot specify the request destination of page data. For example, when node A reads page data, node A cannot determine whether to request page data from node B or node C.
[0068] As means for solving this problem, there are solution 1 and solution 2. In solution 1, a requesting node requesting page data inquires all nodes, a node having page data replies to the requesting node, and the node that has replied is designated as the request destination. In solution 2, a node that writes page data (called a producer node) notifies all nodes, and each node that receives the notification (also called a consumer node) stores the notification source node as the request destination.
[0069] The inventors compared Solution 1 and Solution 2 from the perspective of (1) latency when reading, (2) frequency of occurrence of messages, and (3) cost required to add functionality. With respect to (1), Solution 2, which does not add processing when reading, is preferred. With respect to (2), considering that Solution 1 requires two messages of query and reply when reading, and Solution 2 requires a single notification when writing, etc., it is determined that Solution 2 is preferred. At the same time, with respect to (3), Solution 2 requires each node to manage the producer node. Based on the above research, the inventors have come up with a second embodiment for implementing Solution 2.
[0070] Figure 7 FIG. 1 is a diagram for describing the configuration of a multi-core system according to the second embodiment. Figure 2 and Figure 7 For comparison, a semiconductor device 100C is added. The semiconductor device 100C has functions similar to those of the semiconductor devices 100A and 100B. A node where the semiconductor device 100C exists is referred to as a node C.
[0071] Referring to the configuration of the semiconductor device 100B, a notification program 239B is added. The notification program 239B is a program for sending write notification information including a page number to the node A and the node C when page data is written into the memory 130B. The notification information may include the address of the node B.
[0072] Referring to the configuration of the semiconductor device 100A, the transmission descriptor database 134A is replaced by the transmission descriptor database 234A, the interpretation program 136A is replaced by the interpretation program 236A, and a database update program 240A is added. The address of the transmission descriptor included in the transmission descriptor database 234A refers to the destination data corresponding to the producer node. The interpretation program 236A also includes a function of interpreting the content of the write notification information. The database update program 240A has a function of updating the transmission descriptor database 234A based on the write notification information.
[0073] Figure 8 Node C is not illustrated because node C operates similarly to node A.
[0074] First, HW-IP 112B requests uTLB 121B to reference a logical address (step S301). Next, uTLB 121B instructs address translation unit 122B to convert the logical address into a physical address (step S302). Next, address translation unit 122B references page table 135A (step S303) and specifies the physical address corresponding to the logical address. Next, address translation unit 122B sends the specified physical address to uTLB 121B (step S304). Next, uTLB 121B sends the physical address to HW-IP 112B (step S305). Next, HW-IP 112B specifies the physical address and writes page data 131B (step S306). HW-IP 112B completes the writing of page data 131B and sends an interrupt to notification program 239B (step S307).
[0075] Next, the notification program 239B transmits the notification information to the DMA unit 142B (step S308). Next, the notification program 239B instructs the DMA unit 142B to start the transmission of the notification information (step S309). Thus, the notification information is transmitted to the nodes A and C.
[0076] Next, the DMA unit 142A stores the notification information in the receive buffer 132A (step S310). Next, the DMA unit 142A sends a receive completion interrupt to the interpreter 236A (step S311). Next, the interpreter 236A reads the notification information from the receive buffer 132A, and passes the page number and notification source address included in the notification information to the database update program 240A (step S312). Next, the database update program 240A updates the transmission descriptor database 234A (step S313).
[0077] Next, the interpreter 236A passes the page number to the page table update program 137A, and instructs the page table update program 137A to set the page to an invalid state (step S314). Next, the page table update program 137A sets the page to an invalid state (step S315).
[0078] Note that by setting the page to the invalid state, the multi-core system transitions to a state where the page data of the page can be requested. In the case where the page is not set to the invalid state, the old page data continues to be used.
[0079] Next, the DMA unit 142B sends a transfer completion interrupt to the notification program 239B (step S316). Next, the notification program 239B passes the page number to the page table update program 137B, and instructs the page table update program 137B to set the page to an invalid state (step S317). Next, the page table update program 137B sets the page to a valid state (step S318).
[0080] Fig. 9 2 is a diagram for describing the configuration of the transfer descriptor database 234A. The transfer descriptor includes a first portion that references the destination data and a second portion that references the request data (i.e., the page number). For example, in the case where the node that has written the page data of the second page is node A, the address of node A is set in the portion that references the destination data.
[0081] In the case where the multi-core system according to the second embodiment includes three or more nodes, the multi-core system can request an appropriate node to transmit page data.
[0082] The present invention made by the present inventors has been specifically described based on the embodiments. However, the present invention is not limited to the above embodiments, and it goes without saying that various modifications are possible without departing from the gist of the present invention.
Claims
1. A multi-core system, include: a first processor core; A first memory coupled to the first processor core; a first communication interface comprising a first direct memory access DMA unit coupled to the first memory; A second processor core; a second memory coupled to the second processor core; a second communication interface comprising a second DMA unit coupled to the second memory; as well as a memory management unit MMU configured to: when page data of a page designated as a read destination by the first processor core is stored in the second memory, cause the first DMA unit to set a first transfer descriptor based on a page number of the page, The first communication interface sends a data request including the page number and destination data to the second communication interface according to the first transfer descriptor.
2. The multi-core system according to claim 1, The first processor core includes a processor core for a specific application.
3. The multi-core system according to claim 1, The second communication interface is configured to: send the transmission data including the destination data and the page data to the first communication interface according to a second transmission descriptor based on the page number.
4. The multi-core system according to claim 1, wherein the first processor core comprises a general-purpose processor core, and The general processor core is configured to execute a program to generate a plurality of first transmission descriptors corresponding to each of a plurality of pages, and the general processor core is configured to store the plurality of first transmission descriptors as a transmission descriptor database in the first memory.
5. The multi-core system according to claim 4, wherein each first transfer descriptor comprises a first portion referencing said destination data, The second processor core is configured to: send notification information to the first processor core when page data is written into the second memory, and The first processor core is configured to: in response to receiving the notification information, update the first part of the corresponding first transmission descriptor.
6. A method of reading, include: In a case where page data of a page designated as a read destination by a first processor core is stored in a second memory, causing a first DMA unit to set a first transfer descriptor based on a page number of the page, the first processor core being coupled to the first memory, the second memory being coupled to the second processor core, and the first DMA unit being coupled to the first memory; as well as A data request including the page number and destination data is sent by a first communication interface including the first DMA unit to a second communication interface including a second DMA unit coupled to the second memory according to the first transfer descriptor.
