A memory management communication interface for on-chip network and DDR controller

By designing a memory management communication interface for the on-chip network and DDR controller, the problem of data security is solved and the performance improvement and data protection of the multi-core interconnected network system are achieved.

CN118568025BActive Publication Date: 2024-10-0158TH RES INST OF CETC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411055422.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-01
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

In the existing technology, there are data security issues when the on-chip network accesses DDR storage particles, and the risk of illegal access and modification is high. A memory management communication interface is needed to ensure data security.

Method used

A memory management communication interface for on-chip network and DDR controller is designed. Through the request processing module, response processing module and output control module, it receives the host request, verifies the integrity and legality of the data format, divides the memory blocks, and reads Write operations and complete data transmission through the DDR controller to ensure data security.

Benefits of technology

It achieves data security when requested by multiple hosts, improves the performance of multi-core interconnected network systems, ensures the integrity and legality of data, and prevents illegal access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568025B_ABST
    Figure CN118568025B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of integrated circuit technology, and in particular to a memory management communication interface for an on-chip network and a DDR controller. The memory management communication interface is connected to a host through an on-chip network and is connected to DDR storage particles through a DDR controller; the memory management communication interface includes: a request processing module, which is used to receive a request packet from the host through the on-chip network and verify the integrity of the request packet data format; a response processing module, which is used to send an ID unlock request to the request processing module; an output control module, which is used to receive a read confirmation packet from the request processing module and a response packet from the response processing module; and is also used to process the situation where a read confirmation packet and a response packet are received at the same time; the present invention can ensure the security of data when transmitting multiple host requests in the on-chip network, thereby improving the performance of a multi-chip interconnection network system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a memory management communication interface oriented to an on-chip network and a DDR controller. Background Art

[0002] In recent years, the development cost of integrated circuit chips has increased dramatically due to Moore's Law. In certain fields, the emergence of chiplet technology has greatly shortened the chip design and manufacturing cycle. This technology relies on the on-chip network to interconnect and integrate different bare chips. The on-chip network accesses the remote DDR controller through the communication interface to control the DDR storage particles for read and write operations.

[0003] At present, this type of communication interface has data security issues. When different hosts access DDR storage particles through the on-chip network, the written data is easily illegally accessed and changed. Therefore, it is necessary to propose a memory management communication interface for the on-chip network and DDR controller to solve this problem. Summary of the invention

[0004] The purpose of the present invention is to provide a memory management communication interface for an on-chip network and a DDR controller, so as to ensure data security when the on-chip network transmits multiple host requests, thereby improving the performance of a multi-chip interconnection network system.

[0005] In order to solve the above technical problems, the present invention provides a memory management communication interface for an on-chip network and a DDR controller, wherein the memory management communication interface is connected to a host through an on-chip network and is connected to a DDR storage particle through a DDR controller; the memory management communication interface comprises:

[0006] The request processing module is used to receive the request packet from the host through the on-chip network and verify the integrity of the data format of the request packet; it is also used to perform memory management on the DDR storage particles, including dividing the memory blocks of the DDR storage particles, verifying the legitimacy of the host's occupation request, sharing request, release request, read request and write request to the memory blocks of the DDR storage particles, and outputting the memory management information to the response processing module; it is also used to perform protocol conversion or data splicing on the authorized read request packet and write request packet to obtain the AW, W and AR channel type data packets in the form of AXI bus signals, and send them to the DDR controller, and the DDR controller controls the DDR storage particles to complete the read and write operations; it is also used to generate a read confirmation packet after the read request is authorized and output it to the output control module; it is also used to receive the ID unlock request of the response processing module;

[0007] The response processing module is used to send an ID unlock request to the request processing module; it is also used to receive the memory management information from the request processing module, and pack the memory management response information into a response packet, and output it to the output control module; it is also used to pack the data of the B and R channels in the form of AXI bus signals read from the DDR controller into a read response packet, and output it to the output control module;

[0008] The output control module is used to receive the read confirmation packet from the request processing module and the response packet from the response processing module; it is also used to handle the situation where the read confirmation packet and the response packet are received at the same time; when receiving them at the same time, the response packets are prioritized according to the pre-priority, and the response packets with higher priority are fed back to the on-chip network first, and the response packets with lower priority wait for the next priority arbitration.

[0009] Preferably, the memory management communication interface receives request packets from the host through the on-chip network, verifies the integrity and legality of the request packet data, converts legal request packets into request data packets of AW, W and AR channel types in the form of AXI bus signals, and controls the DDR storage particles to perform read and write operations through the DDR controller; after the read and write operations are completed, the DDR controller returns response data packets of B and R channel types in the form of AXI bus signals to the memory management communication interface, and the memory management communication interface packages the response data packets into response packets, and outputs them to the host through the on-chip network.

[0010] Preferably, the specific connection circuit of the memory management communication interface is:

[0011] The data input port of the request processing module is connected to the data output port of the on-chip network, and the data output port of the request processing module is connected to the data input ports of the DDR controller, the response processing module and the output control module; the data input port of the response processing module is connected to the data output ports of the DDR controller and the request processing module, and the data output port of the response processing module is connected to the data output port of the output control module; the data input port of the output control module is connected to the data output ports of the request processing module and the response processing module, and the data output port of the output control module is connected to the data input port of the on-chip network.

[0012] Preferably, the request processing module includes:

[0013] The verification unit performs data format integrity verification on the request packet from the on-chip network. After the verification is completed, the verification result is returned to the request processing protocol conversion and memory management control state machine; when the verification is successful, the request packet with a complete format is output to the memory management unit; when the verification fails, the request packet is discarded;

[0014] The memory management unit performs a validity check on the request packet. When the check is valid, the DDR storage particles are divided into memory blocks of different sizes, and the divided memory blocks are occupied, released, shared, read, and written. When the check is invalid, the illegal request packet is rejected and the corresponding memory management response information is output to the response processing module.

[0015] Request processing protocol conversion and memory management control state machine;

[0016] The read / write request protocol conversion unit, for read / write operations, requests the processing protocol conversion and the memory management control state machine to output the read / write control information to the read / write request protocol conversion unit, and the protocol conversion obtains the AW and AR channel type data packets in the form of AXI bus signals, and outputs them to the DDR controller;

[0017] Write data splicing unit, for write operation, the request processing protocol conversion and memory management control state machine outputs the write data to the write data splicing unit, and splices the data into a W channel type data packet in the form of an AXI bus signal, and outputs it to the DDR controller; for read operation, the request processing protocol conversion and memory management control state machine generates a read confirmation packet according to the legal read request information and outputs it to the output control module;

[0018] When the ID lock unit processes a request packet, the request processing protocol conversion and memory management control state machine queries the locked ID number and sends an ID locking request to the ID lock unit according to the event ID of the request packet.

[0019] Preferably, the response processing module includes:

[0020] Memory management response unit;

[0021] Packing logic unit;

[0022] Read data splicing unit;

[0023] The response processing protocol conversion control state machine is used to receive the memory management response information from the request processing module, control the memory management response unit to generate a corresponding response packet and output it to the output control module; it is also used to receive the data of the B and R channels in the form of AXI bus signals from the DDR controller. The data of the B channel is write response information, and a response packet is generated through a packing logic unit and output to the output control module; the data of the R channel is read data, which is spliced ​​into a data packet through a read data splicing unit, and then a response packet is generated through a packing logic unit and output to the output control module; it is also used to send an ID unlock request to the request processing module.

[0024] Preferably, in the verification unit, the request packet includes multiple micro-chips in a fixed format arranged in sequence, and the micro-chips carry the transmitted operation event type, event ID, address and data information; in the memory management unit, the event type, data length and write and read address in the request packet are checked for legitimacy.

[0025] Preferably, the ID lock unit is responsible for limiting the transmission of data packets with the same TID, ensuring that the read-related transactions or write-related transactions to be processed and being processed in the interface have different TIDs; the request processing module first checks the ID lock status of the corresponding TID after receiving the request packet, and performs subsequent processing if the check result is unlocked; when the request packet processing module completes the AXI request, the corresponding ID is locked, and when the response processing module completes the corresponding AXI response, the ID is unlocked.

[0026] Preferably, the ID lock unit also includes the following functions:

[0027] (1) The write ID lock status signal in the output signal will report the write ID status consistent with the current check write ID input signal, 0 means unlocked, 1 means locked;

[0028] (2) The read ID lock status signal in the output signal will report the read ID status consistent with the current check read ID input signal, 0 means unlocked, 1 means locked;

[0029] (3) When the write ID lock request is 1, the ID lock will lock the write ID that is consistent with the lock write ID signal, that is, write 1 to the corresponding write ID register in the ID lock unit;

[0030] (4) When the read ID lock request is 1, the ID lock will lock the read ID that is consistent with the locked read ID signal, that is, write 1 to the corresponding read ID register in the ID lock unit;

[0031] (5) When the write ID unlock request is 1, the ID lock will unlock the write ID that is consistent with the unlock write ID signal, that is, write 0 to the corresponding write ID register in the ID lock unit;

[0032] (6) When the read ID unlock request is 1, the ID lock will unlock the read ID that is consistent with the unlock read ID signal, that is, write 0 to the corresponding read ID register in the ID lock unit;

[0033] (7) When an ID unlock request and an ID lock request are initiated simultaneously for the same TID, the corresponding ID will be locked.

[0034] Preferably, the request processing protocol conversion and memory management control state machine performs an ID lock query on the ID lock unit according to the legitimate request of the memory management unit. If the same event ID operation is being executed, the request is put on hold and executed again after the ID is unlocked; if no same event ID operation is being executed, the request is executed and the ID of the request is locked at the same time.

[0035] Preferably, the memory management response unit receives memory management response information from the response processing protocol conversion control state machine, and the memory management response information includes illegal operation information and legal operation information;

[0036] Illegal operation information includes: applying, releasing, sharing, reading and writing without initialization; releasing, sharing, reading and writing without applying for a memory block; insufficient space in the applied memory block, read and write operations out of bounds; insufficient remaining space in the DDR storage particle, and failure to apply for a memory block;

[0037] Legal operation information includes: successful application information; successful sharing information; successful release information.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention proposes a memory management communication interface for on-chip network and DDR controller, which is used to connect the on-chip network and the DDR controller, and can receive request data packets from the on-chip network type, convert them into data packets of AW, W and AR channel types, and the DDR controller controls the DDR storage particles to complete the read and write operations, and returns data packets of corresponding response types to the chip. The memory management communication interface consists of a request processing module, a response processing module and an output control module. While ensuring the transmission of the multi-chip interconnection network, the DDR storage particles are divided into memory spaces of different sizes, and the memory access requests of multiple hosts are received and managed, thereby improving the performance of the multi-chip interconnection network system. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of an application scenario of the memory management communication interface provided by the present invention.

[0041] Figure 2 It is a structural schematic diagram of the memory management communication interface provided by the present invention.

[0042] Figure 3 It is a structural diagram of the request processing module provided by the present invention.

[0043] Figure 4 It is a structural diagram of the response processing module provided by the present invention. DETAILED DESCRIPTION

[0044] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the accompanying drawings are in very simplified form and in non-precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0045] like Figure 1 As shown, an embodiment of the present invention provides a memory management communication interface for an on-chip network and a DDR controller, realizing the transfer transmission between the on-chip network and the DDR controller. The memory management communication interface is connected to the host through the on-chip network and connected to the DDR storage particles through the DDR controller.

[0046] The memory management communication interface receives request packets from the host through the on-chip network, verifies the integrity and legality of the request packet data, converts the legal request packets into request packets of AW, W, AR channel types in the form of AXI bus signals, and controls the DDR storage particles to perform read and write operations through the DDR controller. After the read and write operations are completed, the DDR controller returns the response packets of B and R channel types in the form of AXI bus signals to the memory management communication interface, and the memory management communication interface packages the response packets into response packets and outputs them to the host through the on-chip network.

[0047] like Figure 2 As shown, the memory management communication interface is mainly composed of a request processing module, a response processing module and an output control module:

[0048] The request processing module is used to receive request data packets from the host through the on-chip network and verify the integrity of the request packet data format; it is also used to perform memory management on the DDR storage particles, including dividing the memory blocks of the DDR storage particles, verifying the legitimacy of the host's occupation request, sharing request, release request, read request, and write request to the DDR memory blocks, and outputting memory management information to the response processing module; it is also used to perform protocol conversion or data splicing on the authorized read request packets and write request packets to obtain AW, W, AR channel type data packets in the form of AXI bus signals, and send them to the DDR controller, and the DDR controller controls the DDR storage particles to complete the read and write operations; it is also used to generate a read confirmation packet after the read request is authorized and output it to the output control module; it is also used to receive the ID unlock request of the response processing module.

[0049] The response processing module is used to send an ID unlock request to the request processing module; it is also used to receive memory management information from the request processing module, and package the memory management response information into a response packet, and output it to the output control module; it is also used to package the B and R channel data in the form of AXI bus signals read from the DDR controller into a read response packet, and output it to the output control module.

[0050] The output control module is used to receive the read confirmation packet from the request processing module, the response packet from the response processing module, and is also used to handle the situation where the read confirmation packet and the response packet are received at the same time. When receiving at the same time, the response packet is prioritized according to the pre-priority, and the response packet with higher priority is fed back to the on-chip network first, and the response packet with lower priority waits for the next priority arbitration.

[0051] Specifically, Figure 3 As shown in the figure, the three modules in the memory management communication interface are described in detail as follows:

[0052] 1. Request processing module: The request processing module is mainly composed of a verification unit, a memory management unit, a read-write request protocol conversion unit, a write data splicing unit, an ID lock unit, a request processing protocol conversion and a memory management control state machine.

[0053] The verification unit performs a data format integrity check on the request packet from the on-chip network. After the verification is completed, the verification result is returned to the request processing protocol conversion and memory management control state machine. When the verification is successful, the request packet in the complete format is output to the memory management unit. When the verification fails, the request packet is discarded; the memory management unit performs a legality check on the request packet. When the verification is legal, the DDR storage particles are divided into memory blocks of different sizes, and the divided memory blocks are occupied, released, shared, read, and written. When the verification is illegal, the illegal request packet is rejected and the corresponding memory management information is output to the response processing module; for read and write operations, the request processing protocol conversion and memory management control state machine will read and write control information The protocol is output to the read / write request protocol conversion unit, and the protocol conversion obtains AW and AR channel type data packets in the form of AXI bus signals, which are output to the DDR controller; for write operations, the request processing protocol conversion and memory management control state machine outputs the write data to the write data splicing unit to splice the data into a W channel type data packet in the form of AXI bus signals, and outputs it to the DDR controller; for read operations, the request processing protocol conversion and memory management control state machine generates a read confirmation packet according to the legal read request information and outputs it to the output control module; when processing the request packet, the request processing protocol conversion and memory management control state machine queries the locked ID number of the ID lock unit according to the event ID of the request packet and sends an ID locking request.

[0054] The verification unit, memory management unit, read / write request protocol conversion unit, write data splicing unit, ID lock unit, request processing protocol conversion and memory management control state machine are introduced as follows:

[0055] Verification unit. In one embodiment, the request packet includes a plurality of microchips in a fixed format arranged in sequence. The microchips carry information such as the type of operation event, event ID, address, and data to be transmitted. The verification unit performs a data format integrity check on the request packet from the on-chip network. After the verification is completed, the verification result is returned to the request processing protocol conversion and memory management control state machine. When the verification is successful, the request packet in the complete format is output to the memory management unit. When the verification fails, the request packet is discarded.

[0056] The memory management unit, in one embodiment, the host sends an initialization write request packet with address 0, and the write data includes the capacity of the DDR storage particle. The memory management unit divides the capacity into two levels according to the binary tree algorithm, and divides the DDR storage particles into memory blocks of different sizes.

[0057] In another embodiment, the memory management unit performs a validity check on the event type, data length, and write and read addresses in the request packet. The validity is that the host can read, write, share, and release the memory block of the DDR storage particle occupied by the application, the shared host can read the memory block, and other hosts cannot perform any operations on the occupied memory block. When the request is legal, the legal information of the memory management of the application, release, and sharing request will be output to the response processing module, and the read and write requests will be output to the request processing protocol conversion and memory management control state machine; when the request is illegal, the illegal information of the memory management of the application, release, and sharing request will be output to the response processing module and rejected.

[0058] A read / write request protocol conversion unit, in one embodiment, for read and write operations, the request processing protocol conversion and memory management control state machine outputs read / write control information such as read / write event ID, read / write address, read / write length, etc. to the read / write request protocol conversion unit, and the protocol conversion obtains AW and AR channel type data packets in the form of AXI bus signals, which are output to the DDR controller to control the DDR storage particles to perform read / write operations.

[0059] In one embodiment, for a write operation, since the data bit width of the W channel type in the form of an AXI bus signal on the DDR controller side is 256 bits, and the data packet from the on-chip network is transmitted in units of words (32 bits), that is, the data bit width is 128 bits, when a write operation is initiated to the DDR controller, the write data needs to be spliced ​​and aligned according to the low bit of the word alignment start address, that is, when a write request is initiated to the AXI bus, the corresponding address of the write data must always be a multiple of 32. The eight 0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 write data splicing modules respectively complete the write data splicing tasks corresponding to the low bit 0 / 4 / 8 / 12 / 16 / 20 / 24 / 28 of the word alignment address. The request processing protocol conversion and memory management control state machine outputs the write data to the write data splicing unit to splice the data into a W channel type data packet in the form of an AXI bus signal, and outputs it to the DDR controller to control the DDR storage particles to perform write data operations.

[0060] ID lock unit. In one embodiment, the ID lock unit is responsible for limiting the transmission of data packets with the same TID, ensuring that the read-related transactions or write-related transactions to be processed and being processed in the interface have different TIDs. In a normal workflow, the request processing module will first check the ID lock status of the corresponding TID after receiving the request packet. If the check result is unlocked, the subsequent processing will be carried out. When the request packet processing module completes the AXI request, the corresponding ID will be locked, and the ID will be unlocked only after the response processing module completes the corresponding AXI response. When processing the request packet, the request processing protocol conversion and memory management control state machine queries the ID lock unit for the locked ID number and sends an ID lock request according to the event ID of the request packet.

[0061] Specifically, the specific functions of the above-mentioned ID lock unit are as follows:

[0062] (1) The write ID lock status signal in the output signal will report the write ID status consistent with the current check write ID input signal, 0 means unlocked, and 1 means locked.

[0063] (2) The read ID lock status signal in the output signal will report the read ID status consistent with the current check read ID input signal, 0 means unlocked and 1 means locked.

[0064] (3) When the write ID lock request is 1, the ID lock will lock the write ID that is consistent with the locked write ID signal, that is, write 1 to the corresponding write ID register in the module.

[0065] (4) When the read ID lock request is 1, the ID lock will lock the read ID that is consistent with the locked read ID signal, that is, write 1 to the corresponding read ID register in the module.

[0066] (5) When the write ID unlock request is 1, the ID lock will unlock the write ID that is consistent with the unlock write ID signal, that is, write 0 to the corresponding write ID register in the module.

[0067] (6) When the read ID unlock request is 1, the ID lock will unlock the read ID that is consistent with the unlock read ID signal, that is, write 0 to the corresponding read ID register in the module.

[0068] (7) When an ID unlock request and an ID lock request are initiated simultaneously for the same TID, the corresponding ID will be locked.

[0069] Request processing protocol conversion and memory management control state machine. In one embodiment, the request processing protocol conversion and memory management control state machine determines whether to discard the request packet based on the verification result of the verification unit. If the verification format is complete, the control verification unit outputs the request packet to the memory management unit; if the verification format is incomplete, the control verification unit discards the request packet.

[0070] In another embodiment, the request processing protocol conversion and memory management control state machine performs an ID lock query on the ID lock unit based on the legitimate request of the memory management unit. If the same event ID operation is being executed, the request is put on hold and executed again after the ID is unlocked; if no same event ID operation is being executed, the request is executed and the ID of the request is locked at the same time.

[0071] In another embodiment, the request processing protocol conversion and memory management control state machine extracts the read and write control information of the legal read and write requests, and outputs it to the read and write request protocol conversion unit; extracts the data of the write request, and outputs it to the write data splicing unit; and outputs the read confirmation packet to the output control module based on the read request information.

[0072] 2. Response processing module: In one embodiment, Figure 4 As shown, the response processing module is mainly composed of a memory management response unit, a packaging logic unit, a read data splicing unit, and a response processing protocol conversion control state machine.

[0073] The response processing protocol conversion control state machine receives the memory management information from the request processing module, controls the memory management response unit to generate the corresponding response packet and outputs it to the output control module; the response processing protocol conversion control state machine receives the data of the B and R channels in the form of AXI bus signals from the DDR controller. The data of the B channel is the write response information, and the response packet is generated by the packaging logic unit and output to the output control module. The data of the R channel is the read data, which is spliced ​​into a data packet by the read data splicing unit, and then generated by the packaging logic unit and output to the output control module; the response processing protocol conversion control state machine sends an ID unlock request to the request processing module. The memory management response unit, packaging logic unit, read data splicing unit, and response processing protocol conversion control state machine are introduced as follows:

[0074] A memory management response unit, in one embodiment, receives memory management response information from a response processing protocol conversion control state machine, which includes illegal operation information and legal operation information. The illegal operation information includes: (1) applying, releasing, sharing, reading and writing operations without initialization; (2) releasing, sharing, reading and writing operations without applying for a memory block; (3) insufficient space in the applied memory block, and the read and write operations are out of bounds; (4) insufficient remaining space in the DDR storage particle, and the application of the memory block fails. Legal operation information includes: (1) successful application information; (2) successful sharing information; (3) successful release information.

[0075] In another embodiment, the memory management response unit generates a response packet based on the above information and sends it to the output control module.

[0076] The packing logic unit, in one embodiment, packs the B-channel type data in the form of AXI bus signals from the DDR controller including write event ID, write response information of the write transfer status into a write response packet, and outputs it to the output control module.

[0077] In another embodiment, the packing logic unit outputs the read data contained in the R channel type data in the form of an AXI bus signal from the DDR controller to the read data splicing unit, and after splicing, packs it into a read response packet with the read response information of the read event ID, and outputs it to the output control module.

[0078] In one embodiment, for the read operation, since the data bit width of the R channel type in the form of the AXI bus signal on the DDR controller side is 256 bits, and the data packet from the on-chip network is transmitted in units of words (32 bits), that is, the data bit width is 128 bits, and the request packet processing module always ensures that the address value is a multiple of 32 when initiating a read request through the AR channel type data in the form of the AXI bus signal. Therefore, for the R channel type data in the form of the AXI bus signal, the read data needs to be spliced ​​and aligned according to the low bit of the word alignment start address, so as to output the correct read response packet. The eight read data splicing modules 0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 respectively complete the read data splicing task corresponding to the low bit 0 / 4 / 8 / 12 / 16 / 20 / 24 / 28 of the word alignment address, that is, according to the length information and address information of the corresponding data packet, the valid bits are selected from the read data for splicing and alignment, and output to the packaging logic unit to be encapsulated as the data part of the read response packet.

[0079] Response processing protocol conversion control state machine, in one embodiment, the response processing protocol conversion control state machine receives the memory management information from the request processing module and generates memory management response information to the memory management response unit.

[0080] In another embodiment, the response processing protocol conversion control state machine receives B channel type data in the form of AXI bus signals from the DDR controller, generates write response information, and outputs it to the packaging logic unit; the response processing protocol conversion control state machine receives R channel type data in the form of AXI bus signals from the DDR controller, generates read data, and outputs it to the read data splicing unit, and generates read response information, which is output to the packaging logic unit.

[0081] In another embodiment, the response processing protocol conversion control state machine makes an unlock request for the event ID of the request according to the completed output response information, and outputs it to the ID lock unit in the request processing module.

[0082] 3. Output control module: The output control unit is used to feed back the received read confirmation packets, memory management response packets and response packets from DDR storage particles to the on-chip network. When the read confirmation packets, memory management response packets and response packets from DDR storage particles are received at the same time, the response packets are prioritized according to the pre-priority, and the response packets with higher priorities are fed back to the on-chip network first, and the response packets with lower priorities wait for the next priority arbitration, where the pre-priority is a fixed priority, that is, the read confirmation packet has the highest priority, followed by the response packet from the DDR storage particle.

[0083] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A memory management communication interface for an on-chip network and a DDR controller, wherein the memory management communication interface is connected to a host through an on-chip network and is connected to a DDR storage particle through a DDR controller; characterized in that: The memory management communication interface includes: The request processing module is used to receive the request packet from the host through the on-chip network and verify the integrity of the data format of the request packet; it is also used to perform memory management on the DDR storage particles, including dividing the memory blocks of the DDR storage particles, verifying the legitimacy of the host's occupation request, sharing request, release request, read request and write request to the memory blocks of the DDR storage particles, and outputting the memory management information to the response processing module; it is also used to perform protocol conversion or data splicing on the authorized read request packet and write request packet to obtain the AW, W and AR channel type data packets in the form of AXI bus signals, and send them to the DDR controller, and the DDR controller controls the DDR storage particles to complete the read and write operations; it is also used to generate a read confirmation packet after the read request is authorized and output it to the output control module; it is also used to receive the ID unlock request of the response processing module; The response processing module is used to send an ID unlock request to the request processing module; it is also used to receive the memory management information from the request processing module, and pack the memory management response information into a response packet, and output it to the output control module; it is also used to pack the data of the B and R channels in the form of AXI bus signals read from the DDR controller into a read response packet, and output it to the output control module; The output control module is used to receive the read confirmation packet from the request processing module and the response packet from the response processing module; it is also used to handle the situation where the read confirmation packet and the response packet are received at the same time; when receiving them at the same time, the response packets are prioritized according to the pre-priority, and the response packets with high priority are fed back to the on-chip network first, and the response packets with low priority wait for the next priority arbitration.

2. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 1, characterized in that: The memory management communication interface receives a request packet from the host through the on-chip network, verifies the integrity and legality of the request packet data, converts the legal request packet into a request data packet of AW, W and AR channel types in the form of AXI bus signals, and controls the DDR storage particles to perform read and write operations through the DDR controller; after the read and write operations are completed, the DDR controller returns a response data packet of B and R channel types in the form of AXI bus signals to the memory management communication interface, and the memory management communication interface packages the response data packet into a response packet, and outputs it to the host through the on-chip network.

3. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 1, characterized in that: The specific connection circuit of the memory management communication interface is: The data input port of the request processing module is connected to the data output port of the on-chip network, and the data output port of the request processing module is connected to the data input ports of the DDR controller, the response processing module and the output control module; the data input port of the response processing module is connected to the data output ports of the DDR controller and the request processing module, and the data output port of the response processing module is connected to the data output port of the output control module; the data input port of the output control module is connected to the data output ports of the request processing module and the response processing module, and the data output port of the output control module is connected to the data input port of the on-chip network.

4. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 1, characterized in that: The request processing module includes: The verification unit performs data format integrity verification on the request packet from the on-chip network. After the verification is completed, the verification result is returned to the request processing protocol conversion and memory management control state machine; when the verification is successful, the request packet with a complete format is output to the memory management unit; when the verification fails, the request packet is discarded; The memory management unit performs a validity check on the request packet. When the check is valid, the DDR storage particles are divided into memory blocks of different sizes, and the divided memory blocks are occupied, released, shared, read, and written. When the check is invalid, the illegal request packet is rejected and the corresponding memory management response information is output to the response processing module. Request processing protocol conversion and memory management control state machine; The read / write request protocol conversion unit, for read / write operations, requests the processing protocol conversion and the memory management control state machine to output the read / write control information to the read / write request protocol conversion unit, and the protocol conversion obtains the AW and AR channel type data packets in the form of AXI bus signals, and outputs them to the DDR controller; Write data splicing unit, for write operation, the request processing protocol conversion and memory management control state machine outputs the write data to the write data splicing unit, and splices the data into a W channel type data packet in the form of an AXI bus signal, and outputs it to the DDR controller; for read operation, the request processing protocol conversion and memory management control state machine generates a read confirmation packet according to the legal read request information and outputs it to the output control module; When the ID lock unit processes a request packet, the request processing protocol conversion and memory management control state machine queries the locked ID number and sends an ID locking request to the ID lock unit according to the event ID of the request packet.

5. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 1, characterized in that: The response processing module includes: Memory management response unit; Packing logic unit; Read data splicing unit; The response processing protocol conversion control state machine is used to receive the memory management response information from the request processing module, control the memory management response unit to generate a corresponding response packet and output it to the output control module; it is also used to receive the data of the B and R channels in the form of AXI bus signals from the DDR controller. The data of the B channel is write response information, and a response packet is generated through a packing logic unit and output to the output control module; the data of the R channel is read data, which is spliced ​​into a data packet through a read data splicing unit, and then a response packet is generated through a packing logic unit and output to the output control module; it is also used to send an ID unlock request to the request processing module.

6. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 4, characterized in that: In the verification unit, the request packet includes a plurality of flits in a fixed format arranged in sequence, and the flits carry the type of operation event, event ID, address and data information of the transmission; In the memory management unit, the event type, data length and write and read addresses in the request packet are checked for legality.

7. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 4, characterized in that: The ID lock unit is responsible for limiting the transmission of data packets with the same TID, ensuring that the read-related transactions or write-related transactions to be processed and being processed in the interface have different TIDs; after receiving the request packet, the request processing module first checks the ID lock status of the corresponding TID, and if the check result is unlocked, the subsequent processing process is performed; When the request packet processing module completes the AXI request, the corresponding ID is locked, and when the response processing module completes the corresponding AXI response, the ID is unlocked.

8. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 4, characterized in that: The ID lock unit also includes the following functions: (1) The write ID lock status signal in the output signal will report the write ID status consistent with the current check write ID input signal, 0 means unlocked, 1 means locked; (2) The read ID lock status signal in the output signal will report the read ID status consistent with the current check read ID input signal, 0 means unlocked, 1 means locked; (3) When the write ID lock request is 1, the ID lock will lock the write ID that is consistent with the lock write ID signal, that is, write 1 to the corresponding write ID register in the ID lock unit; (4) When the read ID lock request is 1, the ID lock will lock the read ID that is consistent with the locked read ID signal, that is, write 1 to the corresponding read ID register in the ID lock unit; (5) When the write ID unlock request is 1, the ID lock will unlock the write ID that is consistent with the unlock write ID signal, that is, write 0 to the corresponding write ID register in the ID lock unit; (6) When the read ID unlock request is 1, the ID lock will unlock the read ID that is consistent with the unlock read ID signal, that is, write 0 to the corresponding read ID register in the ID lock unit; (7) When an ID unlock request and an ID lock request are initiated simultaneously for the same TID, the corresponding ID will be locked.

9. A memory management communication interface for an on-chip network and a DDR controller as claimed in claim 4, characterized in that: The request processing protocol conversion and memory management control state machine performs an ID lock query on the ID lock unit according to the legitimate request of the memory management unit. If an operation with the same event ID is being executed, the request is shelved and executed after the ID is unlocked; If no operation with the same event ID is being executed, the request is executed and the ID of the request is locked.

10. The memory management communication interface for on-chip network and DDR controller according to claim 5, characterized in that: The memory management response unit receives memory management response information from the response processing protocol conversion control state machine, and the memory management response information includes illegal operation information and legal operation information; Illegal operation information includes: applying, releasing, sharing, reading and writing without initialization; releasing, sharing, reading and writing without applying for a memory block; insufficient space in the applied memory block, read and write operations out of bounds; insufficient remaining space in the DDR storage particle, and failure to apply for a memory block; Legal operation information includes: successful application information; successful sharing information; successful release information.

Citation Information

Patent Citations

  • Method for processing DDR particle information and backdoor tasks in DDR simulation and application

    CN112464592A

  • Router and routing method for DDR (Double Data Rate) network-on-chip system and network-on-chip system

    CN117130974A

  • Sideband access method, memory controller, core particle and computer equipment

    CN117539805A

  • Communication interface for network-on-chip and NandFlash controller

    CN117807004A

  • Pipelined hybrid packet / circuit-switched network-on-chip

    US20160182256A1