Multiprocessor system data processing method and multiprocessor system
The memory mapper converts memory data into data corresponding to the processor bit width, which solves the problem of mismatch between processor and memory bit width in multi-processor systems, improves system flexibility and reduces costs.
Patent Information
- Application Number
- CN202011056600.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-09-29
AI Technical Summary
Multi-processor systems need to use processors with the same bit width as the memory, resulting in high costs and inflexible applications.
A memory mapper is used to convert memory data into preset bit width data corresponding to the processor bit width, so that the processor does not need to have the same bit width as the memory, and the data bit width conversion is implemented through the memory mapper.
It improves the flexibility of multi-processor systems, reduces costs, avoids data movement between processors, and saves system costs.
Smart Images

Figure CN112231269B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer systems, and more specifically, to a multi-processor system data processing method and a multi-processor system. Background Art
[0002] A multiprocessor system is a system that contains two or more processors with similar functions. The processors can exchange data with each other. All processors share memory, I / O devices, controllers and external devices. The entire hardware system is controlled by a unified operating system. The operations, tasks, programs, arrays and their elements are fully parallelized between the processors and programs to increase the data processing speed. At present, multiprocessors have been widely used in products such as artificial intelligence, multimedia, and voice communications.
[0003] However, since multiple processors need to share memory, multiple processors are required to have the same bit width as the memory, which greatly limits the use of multi-processor systems, increases the cost of multi-processor systems, and makes applications inflexible. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide a multi-processor system data processing method and system to address the problem that the multi-processor system needs to use a processor with the same bit width as the memory, which leads to high multi-processor costs and inflexible applications.
[0005] The technical solution for solving the above technical problems in an embodiment of the present invention is to provide a multi-processor system data processing method, wherein the multi-processor system includes a central processing unit, a memory, at least one processor having a different bit width from the memory, and at least one memory mapper, and each of the memory mappers is respectively connected to a corresponding processor, and the method includes:
[0006] Each memory mapper converts the data of the memory into preset bit width data, where the preset bit width data corresponds to the bit width of the processor connected to the memory mapper;
[0007] The processor reads and processes the preset bit width data generated by the corresponding memory mapper.
[0008] Preferably, the memory is PCM, NRAM, MRAM, ReRAM or FeRAM, each of the memory mappers includes a register buffer, and the register buffer has the same bit width as the processor connected to the memory mapper; each of the memory mappers converts the data of the memory into preset bit width data, including:
[0009] Each memory mapper writes the narrow bit width data in the memory to different bits from the register buffer in sequence according to the clock signal;
[0010] The register buffer simultaneously outputs data of all bits to form the preset bit width data.
[0011] Preferably, the memory is a persistent storage-class memory, and the persistent storage-class memory includes a memory interface, a control chip, a DRAM chipset, and a flash memory integrated into the same substrate, and the memory interface, the DRAM chipset, and the flash memory are respectively connected to the control chip, and the memory interface is connected to the central processing unit via a memory bus; the method further includes:
[0012] When receiving the first read / write request from the central processing unit, the control chip obtains the instruction corresponding to the first read / write request from the DRAM chipset and returns the instruction corresponding to the first read / write request to the central processing unit through the memory interface;
[0013] When the instructions in the DRAM chipset meet the preset conditions, the control chip obtains the subsequent instruction set of the instructions in the DRAM chipset from the flash memory, and moves the subsequent instruction set to the DRAM chipset.
[0014] Preferably, the processor comprises a graphics processor, the memory mapper comprises a first memory mapper, the persistent storage class memory comprises GDDRs respectively connected to the first memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, GDDR, and first memory mapper are integrated into the same substrate, and the first memory mapper is connected to the graphics processor via a GDDR bus;
[0015] The processor reads and processes the preset bit width data generated by the corresponding memory mapper, including: when the first memory mapper receives the second read / write request of the graphics processor, obtaining the graphics processing instruction corresponding to the second read / write request from the GDDR and returning the graphics processing instruction corresponding to the second read / write request to the graphics processor;
[0016] Each memory mapper converts the data of the memory into preset bit width data, including: when the graphics processing instruction in the GDDR meets the preset condition, the first memory mapper obtains the subsequent graphics processing instruction set of the graphics processing instruction in the GDDR from the flash memory, converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor, and then moves it to the GDDR.
[0017] Preferably, the processor includes an AI processor, the memory mapper includes a second memory mapper, the persistent storage-level memory includes HBMs respectively connected to the second memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, HBM, and second memory mapper are integrated into the same substrate, and the second memory mapper is connected to the AI processor via an HBM bus;
[0018] The processor reads and processes the preset bit width data generated by the corresponding memory mapper, including: when the second memory mapper receives the third read / write request of the AI processor, obtaining the AI instruction corresponding to the third read / write request from the HBM and returning the AI instruction corresponding to the third read / write request to the AI processor;
[0019] Each memory mapper converts the data of the memory into preset bit width data, including: when the AI instruction in the HBM meets the preset conditions, the second memory mapper obtains the subsequent AI instruction set of the AI instruction in the HBM from the flash memory, and converts the subsequent AI instruction set into preset bit width data corresponding to the bit width of the AI processor and then moves it to the HBM.
[0020] An embodiment of the present invention further provides a multi-processor system, the multi-processor system comprising a central processing unit, a memory, at least one processor having a different bit width from the memory, and at least one memory mapper, and each of the memory mappers is connected to a corresponding processor; wherein:
[0021] The memory mapper converts the data from the memory into preset bit width data, where the preset bit width data corresponds to the bit width of a processor connected to the memory mapper;
[0022] The processor is used to read and process the preset bit width data generated by the corresponding memory mapper.
[0023] Preferably, the memory is PCM, NRAM, MRAM, ReRAM or FeRAM, each of the memory mappers includes a register buffer, and the register buffer has the same bit width as the processor to which the memory mapper is connected;
[0024] The memory mapper writes the narrow bit width data in the memory into different bits of the register buffer in sequence according to the clock signal, and simultaneously outputs all bits of data through the register buffer to form the preset bit width data.
[0025] Preferably, the memory is a persistent storage-class memory, which includes a memory interface, a control chip, a DRAM chipset, and a flash memory integrated into the same substrate, and the memory interface, the DRAM chipset, and the flash memory are respectively connected to the control chip, and the memory interface is connected to the central processing unit via a memory bus;
[0026] When receiving the first read / write request from the central processing unit, the control chip obtains the instruction corresponding to the first read / write request from the DRAM chipset and returns the instruction corresponding to the first read / write request to the central processing unit through the memory interface;
[0027] When the instructions in the DRAM chipset meet the preset conditions, the control chip obtains the subsequent instruction set of the instructions in the DRAM chipset from the flash memory, and moves the subsequent instruction set to the DRAM chipset.
[0028] Preferably, the processor comprises a graphics processor, the memory mapper comprises a first memory mapper, the persistent storage class memory comprises GDDRs respectively connected to the first memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, GDDR, and first memory mapper are integrated into the same substrate, and the first memory mapper is connected to the graphics processor via a GDDR bus;
[0029] When receiving a second read / write request from the graphics processor, the first memory mapper obtains a graphics processing instruction corresponding to the second read / write request from the GDDR and returns the graphics processing instruction corresponding to the second read / write request to the graphics processor;
[0030] When the graphics processing instruction in the GDDR meets a preset condition, the first memory mapper obtains a subsequent graphics processing instruction set of the graphics processing instruction in the GDDR from the flash memory, converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor, and then moves it to the GDDR.
[0031] Preferably, the processor includes an AI processor, the memory mapper includes a second memory mapper, the persistent storage-level memory includes HBMs respectively connected to the second memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, HBM, and second memory mapper are integrated into the same substrate, and the second memory mapper is connected to the AI processor via an HBM bus;
[0032] When receiving the third read / write request from the AI processor, the second memory mapper obtains the AI instruction corresponding to the third read / write request from the HBM and returns the AI instruction corresponding to the third read / write request to the AI processor;
[0033] When the AI instruction in the HBM meets a preset condition, the second memory mapper obtains a subsequent AI instruction set of the AI instruction in the HBM from the flash memory, converts the subsequent AI instruction set into preset bit width data corresponding to the bit width of the AI processor, and then moves it to the HBM.
[0034] The multi-processor system data processing method and multi-processor system of the embodiment of the present invention converts the data in the memory into preset bit width data corresponding to the bit width of the processor through a memory mapper, so that the processor itself does not need to have the same bit width as the memory, greatly improving the flexibility of the multi-processor system, while avoiding data movement between processors and saving the cost of the multi-processor system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a schematic diagram of a multi-processor system provided by a first embodiment of the present invention;
[0036] Figure 2 yes Figure 1 A schematic diagram of data conversion in a register buffer in a multiprocessor system;
[0037] Figure 3 is a schematic diagram of a multi-processor system provided by a second embodiment of the present invention;
[0038] Figure 4 yes Figure 3 Schematic diagram of memory in a multiprocessor system;
[0039] Figure 5 It is a flowchart of a multi-processor system data processing method provided by the first embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0041] like Figure 1As shown, it is a schematic diagram of a multiprocessor system provided by the first embodiment of the present invention, and the multiprocessor system can be a control system in products such as artificial intelligence, multimedia, and voice communication, or a server in a cloud storage system, etc. The multiprocessor system of this embodiment includes a central processing unit (CPU) 11, a memory 12, a memory mapper 16, and a processor 17, and the central processing unit 11 and the memory 12 are respectively connected to the memory bus. In addition, similar to the existing computer system, the multiprocessor system may also include a DMA controller (Direct Memory Access) 13, a PCIe bridge 14, and a hard disk 15 connected to the PCIe bridge 14 via a PCIe bus, and the hard disk 15 may be a mechanical hard disk (Hard Disk Drive, HDD) or a solid state drive (Solid State Drive, SSD), etc. The multiprocessor system may be run based on an embedded operating system, and the DMA controller 13 may write data in the hard disk 15 to the memory 12 or write data in the memory 12 to the hard disk 15 according to the instructions of the central processing unit 11.
[0042] The central processing unit 11 has the same bit width as the memory, so that the central processing unit 11 can directly access the data in the memory 12 through the memory bus. In this embodiment, the processor 17 is connected to the memory bus via the memory mapper 16. The processor 17 can be a graphics processor, an AI processor, etc., which has a different bandwidth from the memory 12 (that is, the processor 17 and the central processing unit 11 have different bit widths), so that the processor 17 cannot directly access the data in the memory 12.
[0043] In this embodiment, the memory mapper 16 can convert the data from the memory 12 into preset bit width data, which corresponds to the bit width of the processor 17 connected to the memory mapper 16, and the processor 17 reads and processes the preset bit width data generated by the memory mapper 16. At the same time, the memory mapper 16 can also convert the data processed by the processor 17 into data corresponding to the bit width of the memory 12, so that the calculation result of the processor 17 can be written back to the memory 12.
[0044] In actual applications, a multi-processor system may include multiple memory mappers 16 and multiple processors 17 with different bit widths from the memory, and each processor 17 is connected to the memory bus via a memory mapper 16, and the memory mapper 16 implements data bit width conversion, so that each processor 17 can process the data in the memory 12 separately.
[0045] The above multi-processor system converts the memory data into preset bit width data corresponding to the processor bit width through a memory mapper, so that the processor itself does not need to have the same bit width as the memory, which greatly improves the flexibility of the multi-processor system and saves the cost of the multi-processor system.
[0046] In this embodiment, the memory 12 may be PCM, NRAM, MRAM, ReRAM or FeRAM. Figure 2 As shown, each memory mapper 16 includes a register buffer 161 , and the register buffer 161 has the same bit width as the processor 17 to which the memory mapper 16 is connected.
[0047] The above-mentioned memory mapper 16 can write the narrow bit width data in the memory 12 into different bits of the register buffer 161 in sequence according to the system clock signal CLK, and simultaneously output all bits of data through the register buffer 161 to form preset bit width data. Through the above method, the processor 17 can process the data in the memory 12.
[0048] Of course, in actual applications, the memory mapper 16 may include a cache whose bit width is the same as that of the processor 17. The register buffer 161 may write the data stored therein into the cache, and the processor 17 may read the data in the cache, thereby improving data processing efficiency.
[0049] like Figure 3-4 As shown, it is a schematic diagram of a multi-processor system provided by the second embodiment of the present invention. Similarly, the multi-processor system can be a control system in products such as artificial intelligence, multimedia, and voice communication, or a server in a cloud storage system.
[0050] Similarly, the multi-processor system of this embodiment includes a central processing unit 31, a memory 32, a DMA controller 33, a PCIe bridge 34, a hard disk 35 connected to the PCIe bridge 34 via a PCIe bus, a memory mapper and a processor 37, and the central processing unit 31, the memory 32, the DMA controller 33, and the PCIe bridge 34 are respectively connected to the memory bus.
[0051] In this embodiment, the memory 32 is a persistent storage-level memory, which includes a memory interface, a control chip 321, a DRAM chipset 322, and a flash memory 328 integrated into the same substrate, and the memory interface, the DRAM chipset 322, and the flash memory 328 are respectively connected to the control chip 321, and the memory interface is connected to the central processing unit 31 via a memory bus. The storage capacity of the flash memory 328 is much larger than the storage capacity of the DRAM chipset 322.
[0052] In this embodiment, the control chip 321 can respond to the read and write requests of the central processing unit 31 connected to the memory interface, obtain the instruction set from the DRAM chipset 322 and transmit the instruction set to the central processing unit 31 through the memory interface, and write the execution result data of the central processing unit 31 to the DRAM chipset 322, thereby realizing data interaction between the central processing unit 31 and the DRAM chipset 322. Specifically, the central processing unit 31 can obtain and execute the instruction set from the DRAM chipset 322 according to the program pointer.
[0053] The control chip 321 can also realize the interaction of data between the DRAM chipset 322 and the flash memory 328. Specifically, when the instruction set (including instruction code and data) waiting to be read by the central processing unit 31 in the DRAM chipset 322 meets the preset condition (for example, the instruction set waiting to be read by the central processing unit 31 in the DRAM chipset 322 is less than the preset number), the control chip 321 obtains the subsequent instruction set (including instruction code and data) of the instruction set in the DRAM chipset 322 from the flash memory 328, and stores the subsequent instruction set in the DRAM chipset 322 for subsequent access by the central processing unit 31.
[0054] Through the above method, the instruction set in the DRAM chipset 322 can be automatically updated according to the operating status of each central processing unit 31, so that the storage capacity of the DRAM chipset 322 is close to the storage capacity of the flash memory 328, and the central processing unit 31 can always be in an efficient operating state. It is suitable for fields with high requirements on computing resources such as cloud computing, and can greatly improve the operating efficiency of the system.
[0055] In another embodiment of the present invention, the processor 37 includes a graphics processor 371, and the memory mapper includes a first memory mapper 323, which can be composed of a control chip. Accordingly, the persistent storage class memory includes GDDR (Graphics Double Data Rate, graphics double data rate memory) 324 respectively connected to the first memory mapper 323, and the memory interface, DRAM chipset 322, control chip 321, flash memory 328, GDDR324, and first memory mapper 323 are integrated into the same substrate (that is, the memory mapper is integrated into the memory 32), and the first memory mapper 323 is connected to the graphics processor 371 via the GDDR bus.
[0056] In this embodiment, when the first memory mapper 323 receives the second read / write request from the graphics processor 371, it obtains the graphics processing instruction corresponding to the second read / write request from the GDDR 324 and returns the graphics processing instruction corresponding to the second read / write request to the graphics processor 371 through the GDDR interface. The above-mentioned second read / write request may specifically be an image or data display instruction, and the graphics processor 371 may output the image or data to a display device such as a display by executing the graphics processing instruction returned by the first memory mapper 323.
[0057] The first memory mapper 323 also obtains a subsequent graphics processing instruction set of the graphics processing instructions in the GDDR 324 from the flash memory 328 when the graphics processing instructions in the GDDR 324 meet a preset condition (for example, the number of graphics processing instructions in the GDDR 324 waiting to be read by the graphics processor 371 is less than a preset number), and converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor 371 and moves it to the GDDR 324 for subsequent access by the graphics processor 371.
[0058] In another embodiment of the present invention, the above-mentioned processor 37 includes an AI processor 372, and the memory mapper includes a second memory mapper 325, which can be composed of a control chip. Accordingly, the persistent storage-level memory includes HBM (High Bandwidth Memory) 326 respectively connected to the second memory mapper 325, and the memory interface, DRAM chipset 322, control chip 321, flash memory 328, HBM 326, and second memory mapper 325 are integrated into the same substrate (that is, the memory mapper is integrated into the memory 32), and the second memory mapper 325 is connected to the AI processor 372 via the HBM bus.
[0059] In this embodiment, when receiving the third read / write request from the AI processor 372 , the second memory mapper 325 obtains the AI instruction corresponding to the third read / write request from the HBM 326 and returns the AI instruction corresponding to the third read / write request to the AI processor 372 .
[0060] When the AI instructions in HBM 326 meet a preset condition (for example, the number of AI instructions in HBM 326 waiting to be read by the AI processor 372 is less than a preset number), the second memory mapper 325 obtains a subsequent AI instruction set of the AI instructions in HBM 326 from the flash memory 328, converts the subsequent AI instruction set into preset bit width data corresponding to the bit width of the AI processor 372, and moves it to HBM 326 for subsequent access by the AI processor 372.
[0061] like Figure 5As shown, the present invention also provides a multi-processor system data processing method, which can be applied to control systems of products such as artificial intelligence, multimedia, and voice communication, and can also be applied to servers in cloud storage systems. Figure 1 As shown, the multi-processor system includes a central processing unit, a memory, at least one processor having a different bit width from the memory, and at least one memory mapper, and each memory mapper is connected to a corresponding processor. The central processing unit and the memory have the same bit width, so that the central processing unit can directly access the data in the memory through the memory bus. The processor can be a graphics processor, an AI processor, etc., which has a different bandwidth from the memory (that is, the processor and the central processing unit have different bit widths), so that the processor cannot directly access the data in the memory.
[0062] The method of this embodiment includes:
[0063] Step S51: Each memory mapper converts the data stored in the memory into preset bit width data, where the preset bit width data corresponds to the bit width of the processor connected to the memory mapper.
[0064] Specifically, when the memory adopts PCM, NRAM, MRAM, ReRAM or FeRAM, each memory mapper includes a register buffer, and the register buffer has the same bit width as the processor connected to the memory mapper. The above-mentioned memory mapper can write the narrow bit width data in the memory to different bits of the register buffer in sequence according to the system clock signal CLK, and output all bits of data at the same time through the register buffer to form preset bit width data.
[0065] Of course, in practical applications, the memory mapper may include a cache whose bit width is the same as that of the processor. The register buffer may write the data stored therein to the cache, and the processor may read the data in the cache, thereby improving data processing efficiency.
[0066] Step S52: The processor reads and processes the preset bit width data generated by the corresponding memory mapper. Since the bit width of the data generated by the memory mapper is the same as the bit width of the processor, the processor can directly process the above data.
[0067] The above method can also be applied to a multi-processor system in which the memory is a persistent-class memory, that is, the above memory is a persistent storage-class memory, which includes a memory interface, a control chip, a DRAM chipset, and a flash memory integrated into the same substrate, and the memory interface, the DRAM chipset, and the flash memory are respectively connected to the control chip, and the memory interface is connected to the central processing unit via a memory bus. The storage capacity of the above flash memory is much larger than the storage capacity of the DRAM chipset.
[0068] At this time, the multi-processor system data processing method, in addition to the above steps S51-S52, further includes:
[0069] When receiving the first read / write request from the central processing unit, the control chip obtains the instruction corresponding to the first read / write request from the DRAM chipset and returns the instruction corresponding to the first read / write request to the central processing unit through the memory interface;
[0070] When the instruction of the control chip in the DRAM chipset meets the preset conditions, the subsequent instruction set of the instruction in the DRAM chipset is obtained from the flash memory, and the subsequent instruction set is converted into preset bit width data corresponding to the bit width of the central processing unit and then moved to the DRAM chipset.
[0071] The above-mentioned multi-processor system can use an embedded operating system, that is, the central processing unit realizes overall operation control based on the embedded operating system, and through the control chip, the instruction set in the DRAM chipset is automatically updated according to the operation status of each central processing unit, so that the storage capacity of the DRAM chipset is close to the storage capacity of the flash memory, and the central processing unit can always be in an efficient operation state. It is suitable for fields with high requirements for computing resources such as cloud computing, and can greatly improve the operation efficiency of the system.
[0072] In another embodiment of the multi-processor system data processing method of the present invention, the processor includes a graphics processor, and accordingly, the memory mapper includes a first memory mapper, the persistent storage level memory includes GDDRs respectively connected to the first memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, GDDR, and the first memory mapper are integrated into the same substrate, and the first memory mapper is connected to the graphics processor via a GDDR bus.
[0073] The memory mapper in the above step S51 converts the data in the memory into preset bit width data, specifically including: when the graphics processing instruction in the GDDR meets the preset condition, the first memory mapper obtains the subsequent graphics processing instruction set of the graphics processing instruction in the GDDR from the flash memory, converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor, and then moves it to the GDDR.
[0074] The processor in the above step S52 reads and processes the preset bit width data generated by the corresponding memory mapper, specifically including: when the first memory mapper receives the second read / write request of the graphics processor, it obtains the graphics processing instruction corresponding to the second read / write request from the GDDR and returns the graphics processing instruction corresponding to the second read / write request to the graphics processor.
[0075] In another embodiment of the multi-processor system data processing method of the present invention, the processor includes an AI processor, the memory mapper includes a second memory mapper, the persistent storage level memory includes HBMs respectively connected to the second memory mappers, and the memory interface, DRAM chipset, control chip, flash memory, HBM, and second memory mapper are integrated into the same substrate, and the second memory mapper is connected to the AI processor via an HBM bus.
[0076] At this time, the memory mapper in the above step S51 converts the data of the memory into preset bit width data, specifically including: when the second memory mapper receives the third read / write request of the AI processor, it obtains the AI instruction corresponding to the third read / write request from the HBM and returns the AI instruction corresponding to the third read / write request to the AI processor;
[0077] The processor in the above step S52 reads and processes the preset bit width data generated by the corresponding memory mapper, specifically including: when the AI instruction in the HBM meets the preset conditions, the second memory mapper obtains the subsequent AI instruction set of the AI instruction in the HBM from the flash memory, and converts the subsequent AI instruction set into the preset bit width data corresponding to the bit width of the AI processor and then moves it to the HBM.
[0078] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A multi-processor system data processing method, characterized in that: The multiprocessor system includes a central processing unit, a memory, at least one processor having a different bit width from the memory, and at least one memory mapper, and each of the memory mappers is connected to a corresponding processor, and the method includes: Each memory mapper converts the data of the memory into preset bit width data, where the preset bit width data corresponds to the bit width of the processor connected to the memory mapper; The processor reads and processes the preset bit width data generated by the corresponding memory mapper; The memory mapper converts the data processed by the processor into data corresponding to the bit width of the memory and writes the data corresponding to the bit width of the memory back to the memory; Each of the memory mappers includes a register buffer, and the register buffer has the same bit width as the processor connected to the memory mapper; each of the memory mappers converts the data of the memory into data of a preset bit width, including: Each memory mapper writes the narrow bit width data in the memory to different bits from the register buffer in sequence according to the clock signal; The register buffer simultaneously outputs data of all bits to form the preset bit width data.
2. The multi-processor system data processing method according to claim 1, characterized in that: The memory is PCM, NRAM, MRAM, ReRAM or FeRAM.
3. The multi-processor system data processing method according to claim 1, characterized in that: The memory is a persistent storage-class memory, and the persistent storage-class memory includes a memory interface, a control chip, a DRAM chipset, and a flash memory integrated into the same substrate, and the memory interface, the DRAM chipset, and the flash memory are respectively connected to the control chip, and the memory interface is connected to the central processing unit via a memory bus; the method further includes: When receiving the first read / write request from the central processing unit, the control chip obtains the instruction corresponding to the first read / write request from the DRAM chipset and returns the instruction corresponding to the first read / write request to the central processing unit through the memory interface; When the instructions in the DRAM chipset meet the preset conditions, the control chip obtains the subsequent instruction set of the instructions in the DRAM chipset from the flash memory, and moves the subsequent instruction set to the DRAM chipset.
4. The multi-processor system data processing method according to claim 3, characterized in that: The processor includes a graphics processor, the memory mapper includes a first memory mapper, the persistent storage class memory includes GDDRs respectively connected to the first memory mappers, and the memory interface, the DRAM chipset, the control chip, the flash memory, the GDDR, and the first memory mapper are integrated into the same substrate, and the first memory mapper is connected to the graphics processor via a GDDR bus; The processor reads and processes the preset bit width data generated by the corresponding memory mapper, including: when the first memory mapper receives the second read / write request of the graphics processor, obtaining the graphics processing instruction corresponding to the second read / write request from the GDDR and returning the graphics processing instruction corresponding to the second read / write request to the graphics processor; Each memory mapper converts the data of the memory into preset bit width data, including: when the graphics processing instruction in the GDDR meets the preset condition, the first memory mapper obtains the subsequent graphics processing instruction set of the graphics processing instruction in the GDDR from the flash memory, converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor, and then moves it to the GDDR.
5. The multi-processor system data processing method according to claim 3, characterized in that: The processor includes an AI processor, the memory mapper includes a second memory mapper, the persistent storage-level memory includes HBMs respectively connected to the second memory mappers, and the memory interface, the DRAM chipset, the control chip, the flash memory, the HBM, and the second memory mapper are integrated into the same substrate, and the second memory mapper is connected to the AI processor via an HBM bus; The processor reads and processes the preset bit width data generated by the corresponding memory mapper, including: when the second memory mapper receives the third read / write request of the AI processor, obtaining the AI instruction corresponding to the third read / write request from the HBM and returning the AI instruction corresponding to the third read / write request to the AI processor; Each memory mapper converts the data of the memory into preset bit width data, including: when the AI instruction in the HBM meets the preset conditions, the second memory mapper obtains the subsequent AI instruction set of the AI instruction in the HBM from the flash memory, and converts the subsequent AI instruction set into preset bit width data corresponding to the bit width of the AI processor and then moves it to the HBM.
6. A multiprocessor system, characterized in that: The multi-processor system includes a central processing unit, a memory, at least one processor having a different bit width from the memory, and at least one memory mapper, and each of the memory mappers is connected to a corresponding processor; wherein: The memory mapper converts data from the memory into data of preset bit width, and converts data processed by the processor into data corresponding to the bit width of the memory and writes the data corresponding to the bit width of the memory back to the memory; the preset bit width data corresponds to the bit width of the processor connected to the memory mapper; The processor is used to read and process the preset bit width data generated by the corresponding memory mapper; Each of the memory mappers includes a register buffer, and the register buffer has the same bit width as the processor to which the memory mapper is connected; The memory mapper writes the narrow bit width data in the memory into different bits of the register buffer in sequence according to the clock signal, and simultaneously outputs all bits of data through the register buffer to form the preset bit width data.
7. The multiprocessor system according to claim 6, characterized in that: The memory is PCM, NRAM, MRAM, ReRAM or FeRAM.
8. The multiprocessor system according to claim 6, characterized in that: The memory is a persistent storage-class memory, which includes a memory interface, a control chip, a DRAM chipset, and a flash memory integrated into the same substrate, and the memory interface, the DRAM chipset, and the flash memory are respectively connected to the control chip, and the memory interface is connected to the central processing unit via a memory bus; When receiving the first read / write request from the central processing unit, the control chip obtains the instruction corresponding to the first read / write request from the DRAM chipset and returns the instruction corresponding to the first read / write request to the central processing unit through the memory interface; When the instructions in the DRAM chipset meet the preset conditions, the control chip obtains the subsequent instruction set of the instructions in the DRAM chipset from the flash memory, and moves the subsequent instruction set to the DRAM chipset.
9. The multiprocessor system according to claim 8, characterized in that: The processor includes a graphics processor, the memory mapper includes a first memory mapper, the persistent storage class memory includes GDDRs respectively connected to the first memory mappers, and the memory interface, the DRAM chipset, the control chip, the flash memory, the GDDR, and the first memory mapper are integrated into the same substrate, and the first memory mapper is connected to the graphics processor via a GDDR bus; When receiving a second read / write request from the graphics processor, the first memory mapper obtains a graphics processing instruction corresponding to the second read / write request from the GDDR and returns the graphics processing instruction corresponding to the second read / write request to the graphics processor; When the graphics processing instruction in the GDDR meets a preset condition, the first memory mapper obtains a subsequent graphics processing instruction set of the graphics processing instruction in the GDDR from the flash memory, converts the subsequent graphics processing instruction set into preset bit width data corresponding to the bit width of the graphics processor, and then moves it to the GDDR.
10. The multiprocessor system according to claim 8, characterized in that: The processor includes an AI processor, the memory mapper includes a second memory mapper, the persistent storage-level memory includes HBMs respectively connected to the second memory mappers, and the memory interface, the DRAM chipset, the control chip, the flash memory, the HBM, and the second memory mapper are integrated into the same substrate, and the second memory mapper is connected to the AI processor via an HBM bus; When receiving the third read / write request from the AI processor, the second memory mapper obtains the AI instruction corresponding to the third read / write request from the HBM and returns the AI instruction corresponding to the third read / write request to the AI processor; When the AI instruction in the HBM meets a preset condition, the second memory mapper obtains a subsequent AI instruction set of the AI instruction in the HBM from the flash memory, converts the subsequent AI instruction set into preset bit width data corresponding to the bit width of the AI processor, and then moves it to the HBM.
