Reorder buffer, system, component, device and transmission method

By designing a reordering buffer in the on-chip system and using FIFO and cache modules to prefetch and sequentially return response data, the problem of insufficient bandwidth utilization caused by downstream IP not supporting out-of-order transmission is solved and system performance is improved.

CN118034638BActive Publication Date: 2024-08-27BEIJING XIANGDIXIAN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410446029.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-08-27
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

In the on-chip system, because the downstream IP does not support out-of-order transmission, advance transmission cannot be achieved, resulting in the interconnection network bandwidth not being fully utilized and affecting performance.

Method used

Design a reordering buffer, including FIFO, control module and cache module, to prefetch and sequentially return response data through request identification, realize outstanding transmission of the upstream module, and make full use of it without violating the order preservation requirements of the downstream module. Network bandwidth.

Benefits of technology

It achieves full utilization of the interconnection network bandwidth and improves system performance without changing the order preservation requirements of downstream modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118034638B
    Figure CN118034638B
Patent Text Reader

Abstract

The present disclosure provides a reordering buffer, system, component, device and transmission method. The reordering buffer includes a FIFO, a control module and a cache module; the cache module includes multiple cache areas corresponding to different request identifiers; the control module is configured to write the request identifier of the transaction request into the FIFO; it is also configured to write the response data in sequence into the cache area corresponding to the corresponding request identifier; or, the control module is configured to write the request identifier of the transaction request and the allocated cache address into the FIFO; it is also configured to write the response data to the cache address in the frontmost table entry in the table entry with the corresponding request identifier cached in the FIFO. It not only meets the order preservation requirements of the downstream module (IP), but also reduces the delay, makes full use of the interconnection network bandwidth, and improves performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of reorder buffers, and in particular to a reorder buffer, a system, a component, a device, and a transmission method. Background Art

[0002] System on chip (SOC) usually contains multiple intellectual property cores (IP), including but not limited to central processing unit (CPU), direct memory access unit (DMA), double data rate synchronous dynamic random access memory (DDR) and some dedicated data processing modules. Each IP is connected through an interconnection network and often supports similar protocols, such as the Advanced eXtensible Interface (AXI) protocol. However, the protocol also defines different specifications. Some IPs can support outstanding transmission and out of order transmission, some IPs support outstanding transmission but not out of order transmission, and some IPs do not support either. These situations are common problems faced by SoC chip design.

[0003] Chip designers need to solve the performance problems caused by interconnection and balance the relationship between performance, area and power consumption. If simply connected, outstanding transmission cannot be achieved because the downstream IP does not support out-of-order transmission. Each request can only wait for the data corresponding to the request to be returned before sending the next request to ensure that the data and request are not misaligned. Figure 1 As shown, the upstream module can send transaction request 1 only after response data 0 of transaction request 0 is returned, and can send transaction request 2 only after response data 1 of transaction request 1 is returned, so that the interconnection network bandwidth cannot be fully utilized. Summary of the invention

[0004] The purpose of the present disclosure is to provide a reordering buffer, system, component, device and transmission method, which solves the technical problem in the prior art that in order to achieve downstream IP sequence preservation, outstanding transmission cannot be achieved in the on-chip system, resulting in that the interconnection network bandwidth cannot be fully utilized.

[0005] According to one aspect of the present disclosure, there is provided a reorder buffer, a parsing module, a FIFO, a control module and a cache module;

[0006] The cache module includes a plurality of cache areas corresponding to different request identifiers respectively; the control module is configured to write the request identifier of the transaction request into the FIFO when receiving a transaction request from the upstream module, and send the transaction request to the memory; is also configured to sequentially write the response data into the cache area corresponding to the corresponding request identifier when receiving the response data returned by the memory for a transaction request; is also configured to sequentially read out the response data from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and return it to the downstream module; or,

[0007] The control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; is also configured to, when receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; is also configured to read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to the downstream module.

[0008] In some embodiments, in the above reorder buffer, the pointer of the FIFO includes a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers;

[0009] The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a FIFO and send the transaction request to a memory; is also configured to, upon receiving response data returned by the memory for a transaction request, sequentially write the response data into a cache area corresponding to the corresponding request identifier; is also configured to sequentially read out the response data from the cache area corresponding to the request identifier that is arranged at the front in the FIFO from the cache module and return it to the downstream module, including:

[0010] The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and is also configured to, upon receiving response data returned by the memory for a transaction request, write the response data to the memory; The method further comprises: writing the response data into a cache area corresponding to the corresponding request identifier in sequence, and switching the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data to be valid, and updating the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by the second read pointer; and reading the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer in sequence from the cache module and returning it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, updating the first read pointer to point to the next table entry of the table entry currently pointed to by the first read pointer; or,

[0011] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; is also configured to, when receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; is also configured to read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to a downstream module, including:

[0012] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an entry identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and further configured to, upon receiving a request from the memory for When a transaction request returns response data, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; it is also configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

[0013] In some embodiments, in the above reorder buffer, the control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and, when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer; and is also configured to switch a first flag bit in a table entry currently pointed to by a second read pointer corresponding to a request identifier corresponding to the response data to valid, and update the second read pointer to point to an item corresponding to an item identifier cached in the table entry currently pointed to by the second read pointer, including:

[0014] A control module, configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by a first write pointer, and set a second flag bit in the table entry currently pointed to by the first write pointer to be invalid, and send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to be valid; and further configured to switch the first flag bit in the table entry currently pointed to by a second read pointer corresponding to the request identifier corresponding to the response data to be valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, update the second read pointer to point to an item corresponding to the item identifier cached in the table entry currently pointed to by it; or,

[0015] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer; and is also configured to switch a first flag bit in the table entry currently pointed to by the second read pointer to valid, and update the second read pointer to point to an item corresponding to the item identifier cached in the table entry currently pointed to by the second read pointer, including:

[0016] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, and write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer, wherein a second flag bit in the table entry currently pointed to by the first write pointer is invalid, and send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to valid; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer to valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, update the second read pointer to point to an item corresponding to the item identifier cached in the table entry currently pointed to by the second read pointer.

[0017] In some embodiments, in the above reorder buffer, the pointer of the FIFO further includes a third read pointer;

[0018] The FIFO is configured to send a request identifier in the table entry currently pointed to by the third read pointer to a downstream module, so that the downstream module requests corresponding response data from the control module through the request identifier, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it;

[0019] The control module is configured to read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module in sequence and return it to the downstream module, including:

[0020] The control module is configured to, when receiving a request identifier sent by a downstream module and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer, sequentially read out response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module; or,

[0021] The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, including:

[0022] The control module is configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module when a request identifier sent by the downstream module is received and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer.

[0023] In some embodiments, in the above reorder buffer, the pointer of the FIFO further includes a third read pointer;

[0024] The FIFO is configured to send the request identifier and the cache address in the table entry currently pointed to by the third read pointer to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier and its corresponding cache address, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it;

[0025] The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, including:

[0026] The control module is configured to, upon receiving a request identifier and its corresponding cache address sent by a downstream module and the received request identifier and the cache address are respectively the same as the request identifier and the cache address in the table entry currently pointed to by the first read pointer, read the response data cached at the cache address from the cache module according to the received cache address and return it to the downstream module.

[0027] In some embodiments, in the above reorder buffer, when the first read pointer is updated, the entry pointed to by the first read pointer before being updated is released.

[0028] In some embodiments, in the above reorder buffer, the control module is configured to write a request identifier of the transaction request into the FIFO upon receiving a transaction request from an upstream module, including:

[0029] A control module is configured to write a request identifier of the transaction request into the FIFO when receiving a transaction request from an upstream module and the FIFO is not full; or,

[0030] The control module is configured to write the request identifier and the allocated cache address of the transaction request into the FIFO, including:

[0031] The control module is configured to write the request identifier and the allocated cache address of the transaction request into the FIFO when the FIFO is not full.

[0032] In some embodiments, in the above reorder buffer, the control module includes a parsing module, a write control module, and a read control module;

[0033] The parsing module is configured to write the request identifier of the transaction request into the FIFO and send the transaction request to the memory when receiving the transaction request from the upstream module; the write control module is configured to write the response data into the cache area corresponding to the corresponding request identifier when receiving the response data returned by the memory for a transaction request; the read control module is configured to read the response data from the cache area corresponding to the request identifier arranged at the front in the FIFO from the cache module in sequence and return it to the downstream module; or,

[0034] The parsing module is configured to receive a transaction request from an upstream module, apply to the read control module for a cache address corresponding to the transaction request in the cache module, write the request identifier and the allocated cache address of the transaction request into the FIFO, and send the transaction request to the memory; the write control module is configured to, when receiving response data returned by the memory for a transaction request, write the response data into the cache address of the frontmost entry in the table entry in the FIFO that caches the corresponding request identifier; the read control module is configured to read the response data cached at the cache address in the frontmost entry in the FIFO from the cache module and return it to the downstream module.

[0035] In some embodiments, the reorder buffer further includes a first arbitration module configured to:

[0036] When receiving a transaction request from an upstream module, a handshake request is sent to the parsing module, and when receiving response information returned by the parsing module for the handshake request, one of the received transaction requests is selected and sent to the parsing module.

[0037] In some embodiments, in the above reorder buffer, the parsing module is further configured to:

[0038] When receiving a handshake request from the first arbitration module, the read control module is requested to obtain the cache address in the cache module corresponding to the transaction request corresponding to the handshake request. After obtaining the cache address, the response information for the handshake request is returned to the first arbitration module.

[0039] In some embodiments, the reorder buffer further includes a first arbitration module configured to:

[0040] Receive transaction requests from upstream modules;

[0041] Send the received transaction requests one by one to the control module.

[0042] In some embodiments, the reorder buffer further includes a second arbitration module configured to:

[0043] Receive the response data returned by the downstream module and return it to the corresponding upstream module.

[0044] According to another aspect of the present disclosure, a system on chip is provided, comprising an upstream module, a downstream module and a reorder buffer according to any one of the above embodiments.

[0045] According to another aspect of the present disclosure, an electronic component is provided, comprising the system on chip of any one of the above embodiments.

[0046] According to another aspect of the present disclosure, an electronic device is provided, comprising the electronic component of any one of the above embodiments.

[0047] According to another aspect of the present disclosure, a data transmission method of a system on chip is provided, comprising:

[0048] When receiving a transaction request from an upstream module, the request identifier of the transaction request is written into the FIFO, and the transaction request is sent to the memory; when receiving response data returned by the memory for a transaction request, the response data is written into the cache area corresponding to the request identifier corresponding to the cache module; the response data is sequentially read out from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and returned to the downstream module; the cache module includes multiple cache areas corresponding to different request identifiers respectively; or,

[0049] Receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; when receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to the downstream module.

[0050] In some embodiments, in the above data transmission method, the pointer of the FIFO includes a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers;

[0051] When receiving a transaction request from an upstream module, the request identifier of the transaction request is written into the FIFO, and the transaction request is sent to the memory; when receiving response data returned by the memory for a transaction request, the response data is written into the cache area corresponding to the request identifier corresponding to the cache module; the response data is sequentially read out from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and returned to the downstream module; the cache module includes multiple cache areas corresponding to different request identifiers, including:

[0052] When receiving a transaction request from an upstream module, write the request identifier of the transaction request into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by it; when receiving response data returned by the memory for a transaction request, write the response data sequentially into the cache area corresponding to the corresponding request identifier, switch the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier of the response data to valid, and update the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it; read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module, and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, update the first read pointer to point to the next table entry of the table entry currently pointed to by it; or,

[0053] Receiving a transaction request from an upstream module, allocating a cache address corresponding to the transaction request in a cache module, writing a request identifier of the transaction request and the allocated cache address into a FIFO, and sending the transaction request to a memory; upon receiving response data returned by the memory for a transaction request, writing the response data into a cache address in a table entry that is arranged at the front of a table entry in the FIFO that caches a corresponding request identifier; reading the response data cached at the cache address in the front of a table entry in the FIFO from the cache module and returning it to a downstream module, including:

[0054] Receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write the request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by it; upon receiving a transaction request from the memory, When requesting the returned response data, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; the response data cached at the cache address in the table entry currently pointed to by the first read pointer is read from the cache module and returned to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a timing diagram of transaction request and response data in the scenario where the downstream module does not support out-of-order and does not perform prefetching;

[0056] Figure 2 A timing diagram of transaction requests and response data corresponding to a reorder buffer provided in one embodiment of the present disclosure;

[0057] Figure 3 A schematic diagram of a connection structure of a system on chip including a reorder buffer provided for one embodiment of the present disclosure;

[0058] Figure 4 A schematic diagram of the arrangement of information fields of FIFO table entries provided in one embodiment of the present disclosure;

[0059] Figure 5 A schematic diagram of the interaction process between the parsing module and the first arbitrator provided in one embodiment of the present disclosure. DETAILED DESCRIPTION

[0060] Before introducing the embodiments of the present disclosure, it should be noted that:

[0061] Some embodiments of the present disclosure are described as processing flows. Although the various operation steps of the flow may be given sequential step numbers, the operation steps therein may be implemented in parallel, concurrently or simultaneously.

[0062] In the embodiments of the present disclosure, the terms "first", "second", etc. may be used to describe various features, but these features should not be limited by these terms. These terms are used only to distinguish one feature from another.

[0063] The term “and / or” may be used in embodiments of the present disclosure. “And / or” includes any and all combinations of one or more of the associated features listed.

[0064] It should be understood that when describing the connection or communication relationship between two components, unless it is explicitly stated that the two components are directly connected or directly communicating, the connection or communication between the two components can be understood as direct connection or communication, or as indirect connection or communication through an intermediate component.

[0065] In order to make the technical solutions and advantages of the embodiments of the present disclosure more clearly understood, the exemplary embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0066] The purpose of the present disclosure is to provide a reordering buffer, system, component, device and transmission method, wherein the reordering buffer includes a FIFO, a control module and a cache module; the cache module includes a plurality of cache areas corresponding to different request identifiers respectively; the control module is configured to write the request identifier of the transaction request into the FIFO when receiving a transaction request from an upstream module, and send the transaction request to a memory; it is also configured to write the response data returned by the memory for a transaction request in sequence into the cache area corresponding to the request identifier corresponding to the request identifier; it is also configured to read the cache area corresponding to the request identifier arranged at the front in the FIFO from the cache module. The control module is configured to sequentially read out response data from the buffer zone and return it to the downstream module; or, the control module is configured to receive a transaction request from the upstream module, allocate a cache address corresponding to the transaction request in the cache module, write the request identifier of the transaction request and the allocated cache address into the FIFO, and send the transaction request to the memory; it is also configured to, when receiving response data returned by the memory for a transaction request, write the response data to the cache address of the frontmost entry in the table entry in the FIFO that caches the corresponding request identifier; it is also configured to read the response data cached at the cache address of the frontmost entry in the FIFO from the cache module and return it to the downstream module.

[0067] In this reordering scheme, the response data pre-fetching mechanism is implemented through the FIFO and cache modules, and the outstanding transmission of the upstream module is realized. The response data in the cache module can be returned to the downstream module in order (the order in which the control module receives the transaction request) to a certain extent. This not only meets the order preservation requirements of the downstream module (IP) to a certain extent, but also makes full use of the interconnection network bandwidth and improves performance. Figure 2 As shown, the upstream module can issue transaction request 0, transaction request 1, transaction request 2, transaction request 3 and transaction request 4 continuously and sequentially, and adjacent requests do not need to be issued with a certain delay. The response data 0, response data 1, response data 2, response data 3 and response data 4 corresponding to the transaction request 0, transaction request 1, transaction request 2, transaction request 3 and transaction request 4 respectively can be returned to the downstream module continuously and sequentially.

[0068] An embodiment of the present disclosure provides a reorder buffer, such as Figure 3 As shown, it includes: FIFO, control module and cache module;

[0069] a) the cache module includes a plurality of cache areas corresponding to different request identifiers respectively; the control module is configured to, upon receiving a transaction request from an upstream module, write the request identifier of the transaction request into the FIFO and send the transaction request to the memory; and is further configured to, upon receiving response data returned by the memory for a transaction request, sequentially write the response data into the cache area corresponding to the corresponding request identifier; and is further configured to sequentially read out the response data from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and return it to the downstream module; or,

[0070] b) A control module, configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; further configured to, upon receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; further configured to read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to the downstream module.

[0071] The reorder buffer is interconnected with the upstream module and the downstream module via an interconnection network. In some embodiments, the interconnection network may be an AXI bus, a BUS bus, or a network on chip (NoC).

[0072] Among them, the transaction request includes a write transaction request or a read transaction request. When the transaction request is a write transaction request, the response data is a write response; when the transaction request is a read transaction request, the response data includes a read response and / or read data (data requested from the memory by the read transaction request). The upstream module sends the transaction request to the control module through the read address channel (axi ar), and the control module sends the transaction request to the memory through the read address channel (axi ar). The response data (read response and / or read data) returned by the memory is returned to the control module through the read data channel (axi r).

[0073] The request identifier of the transaction request in the table entry written to the FIFO refers to the original identifier of the transaction request, which can be the identifier of the upstream module that initiated the transaction request (Master ID), or a combination of the transaction identifier and the identifier of the upstream module. For example, the request identifier corresponding to the write transaction request can be AWID or WID, and the request identifier corresponding to the read transaction request can be ARID (ID is the identifier of the upstream module).

[0074] The response data returned by the memory for the transaction request has a corresponding identifier, which has a corresponding relationship with the request identifier. For example, the identifier corresponding to the response data (read response and / or read data) of the read transaction request may be RID (ID is the identifier of the upstream module), so the control module can find the response data corresponding to the request identifier at the front of the FIFO from the cache module, read it and return it to the downstream module.

[0075] In some embodiments, the cache module may be a static random access memory (SRAM).

[0076] In some embodiments, the reorder buffer further includes a first arbitration module configured to:

[0077] Receive transaction requests from upstream modules;

[0078] Send the received transaction requests one by one to the control module.

[0079] Multiple upstream modules may send transaction requests at the same time. In each beat, the first arbitration module can select at most one transaction request to send to the control module. In some embodiments, a first-level Round-Robin arbitration can be used, or arbitration can be performed in a certain priority order according to usage requirements, or a multi-level arbitration scheme can be used according to requirements.

[0080] In some embodiments, the reorder buffer further includes a second arbitration module configured to:

[0081] Receive the response data returned by the downstream module and return it to the corresponding upstream module.

[0082] In some embodiments, the downstream module processes the response data read from the cache module, and then returns (rtn) to the corresponding upstream module through the second arbitration module. The second arbitration module returns the response data to the corresponding upstream module (master) according to the request identifier (such as Master ID) corresponding to the received response data.

[0083] In some embodiments, the second arbitration module is a demultiplexer (demux).

[0084] In the above method a), in the scenario where multiple upstream modules (specifically different request identifiers) correspond to the same downstream module, by fixedly allocating a shared cache area to each upstream module (master), the order preservation of transaction requests and response data with the same request identifier (corresponding to the same upstream module) can be achieved in one FIFO and one cache module, saving hardware resources. Among them, although the response data corresponding to different request identifiers (Master ID) share the cache module, it is a static sharing method, that is, a shared cache area is fixedly allocated to each upstream module (master).

[0085] It can be understood that in the above-mentioned method a), each cache area of ​​the cache module cooperates with the control module to realize the first-in-first-out function, that is, in the cache area corresponding to a request identifier, the response data is sequentially read out and returned to the downstream module in the order of writing to the cache area. Among them, the response data in the cache area and the request identifier in the FIFO are in a one-to-one relationship (that is, the response data of a transaction request in the cache area corresponds to a request identifier in the FIFO), that is, the control module is configured to read the response data of a transaction request in the cache area corresponding to the first request identifier in the FIFO from the cache module each time, and sequentially read out the response data of a transaction request and return it to the downstream module.

[0086] In some embodiments, in the scenario of a static shared cache module (method a above), the pointer of the FIFO includes a first write pointer, a first read pointer, a plurality of second write pointers, and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers;

[0087] The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a FIFO and send the transaction request to a memory; is also configured to, upon receiving response data returned by the memory for a transaction request, sequentially write the response data into a cache area corresponding to the corresponding request identifier; is also configured to sequentially read out the response data from the cache area corresponding to the request identifier that is arranged at the front in the FIFO from the cache module and return it to the downstream module, including:

[0088] The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and is also configured to, upon receiving response data returned by the memory for a transaction request, write the response data to the memory; The data is sequentially written into the cache area corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; it is also configured to read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module, sequentially read out the response data and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

[0089] Among them, when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it, ensuring that the first read pointer will be updated only after the response data corresponding to the transaction request corresponding to the table entry currently pointed to by the first read pointer is written into the corresponding cache area, that is, after there is response data in the corresponding cache area that can be returned to the downstream module. It is ensured that no empty data will be returned to the downstream module, meeting the order preservation requirements of the downstream module (IP).

[0090] In this way, by writing the entry identifier of the entry currently pointed to by the first write pointer into the corresponding entry currently pointed to by the second write pointer, and using the entry currently pointed to by the first write pointer as the new entry currently pointed to by the second write pointer corresponding to the request identifier, the entries of the transaction requests with the same request identifier cached in the FIFO are linked to form a linked list. In the scenario where multiple upstream modules correspond to the same downstream module, the order of transaction requests and response data with the same request identifier (corresponding to the same upstream module) can be maintained in one FIFO, saving hardware resources.

[0091] Multiple second write pointers corresponding to different request identifiers respectively mean that each request identifier corresponds to a second write pointer. In FIFO, the second write pointer corresponding to a request identifier is valid only when the request identifier exists in the FIFO, that is, if the control module receives a transaction request with a request identifier from the upstream module, the request identifier does not currently exist in the FIFO, that is, the second write pointer corresponding to the request identifier is invalid, then when the request identifier of the transaction request is written to the table item currently pointed to by the first write pointer, the second write pointer corresponding to the request identifier will automatically switch to a valid table item that points to the request identifier of the transaction request (that is, the table item currently pointed to by the first write pointer).

[0092] Therefore, no matter whether the second write pointer corresponding to the request identifier of the transaction request is valid when the control module receives a transaction request, the operation of writing the request identifier into the FIFO will trigger the second write pointer corresponding to the request identifier to be updated to point to the table entry currently pointed to by the first write pointer (the table entry written by the request identifier). It can be understood that the control module can determine whether the update operation of the second write pointer triggered by writing the request identifier into the FIFO is completed based on whether the second write pointer corresponding to the transaction request points to the table entry written by the request identifier.

[0093] If the control module receives a transaction request and the second write pointer corresponding to the request identifier of the transaction request is valid, it means that the previous transaction request with the same specific request identifier received by the control module is stored in the table entry currently pointed to by the second write pointer. The table entry identifier of the table entry currently pointed to by the first write pointer is written into the corresponding table entry currently pointed to by the second write pointer. In this way, the table entry currently pointed to by the second write pointer and the table entry currently pointed to by the first write pointer can be linked to form a linked list.

[0094] According to whether the second write pointer corresponding to the request identifier of the transaction request is valid when the control module receives a transaction request, the update operation of the second write pointer triggered by writing the request identifier into the FIFO can be divided into an invalid second write pointer update operation (including switching the second write pointer from invalid to valid and pointing to the table item currently pointed to by the first write pointer) and a valid second write pointer update operation (writing the table item identifier of the table item written by the request identifier into the table item currently pointed to by the corresponding second write pointer, and updating the second write pointer to the table item currently pointed to by the first write pointer). The operation of writing a request identifier into the FIFO will trigger an invalid second write pointer update operation, or a valid second write pointer update operation.

[0095] It should be noted that there is no strict order between the update operation of the first write pointer triggered by a request identifier being written to the FIFO and the update operation of the second write pointer (an invalid second write pointer update operation or a valid second write pointer update operation), and the aforementioned "table entry currently pointed to by the first write pointer" refers to the table entry pointed to by the first write pointer when the control module executes the operation of writing the request identifier to the FIFO, that is, the table entry written by the request identifier.

[0096] In some embodiments, in order to avoid the control module immediately executing an update operation of a valid second write pointer corresponding to the same request identifier after an invalid second write pointer update operation is triggered by writing a request identifier into the FIFO, a criterion may be added to the control module, that is, the control module determines whether the second write pointer corresponding to the request identifier currently points to the table entry written by the request identifier before executing the update operation of the valid second write pointer. If so, the valid second write pointer update operation is not performed; otherwise, the valid second write pointer update operation is performed.

[0097] Multiple second read pointers corresponding to different request identifiers respectively mean that each request identifier corresponds to a second read pointer. In FIFO, a second read pointer corresponding to a request identifier will only exist if the request identifier exists in the FIFO, that is, if the second read pointer corresponding to the request identifier does not currently exist in the FIFO (that is, the corresponding second read pointer is invalid) when a transaction request from an upstream module is received, then when the request identifier of the transaction request is written to the table entry currently pointed to by the first write pointer, the second read pointer corresponding to the request identifier will automatically switch to a valid table entry that points to the request identifier of the transaction request (that is, the table entry currently pointed to by the first write pointer). After the second read pointer is valid, the update method of the second read pointer is that after the first flag position in the table entry currently pointed to by the corresponding second read pointer is valid, the second read pointer is updated to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it. It should be noted that if the entry currently pointed to by the second read pointer does not have a cache entry identifier, that is, there is no linked next entry, that is, the transaction request corresponding to the entry currently pointed to by the second read pointer is the last transaction request with the same request identifier currently cached by the FIFO, then the corresponding second read pointer will not be updated. If the corresponding second read pointer is not updated until the entry is released, the second read pointer will be set to invalid.

[0098] It can be understood that the update method of the first write pointer and the first read pointer is the same as the update method of the read and write pointer of the conventional FIFO, for example: each time the request identifier of a transaction request is written into the table entry currently pointed to by the first write pointer (the table entry currently pointed to by the first write pointer), the first write pointer is incremented by 1 (when the first write pointer is currently at the maximum value, the first write pointer is reset to the minimum value after this write). When the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is incremented by 1 (when the first read pointer is currently at the maximum value, the first read pointer is reset to the minimum value during this update).

[0099] In some embodiments, when the first read pointer is updated, the table entry pointed to by the first read pointer before being updated is released. The first read pointer can be understood as a table entry release pointer.

[0100] In some embodiments, an entry identifier (Entry ID) of an entry may be a serial number of the entry.

[0101] In some embodiments, the request identifier, the entry identifier and the first flag bit written into the entry are located at corresponding positions in the information field of the entry, such as Figure 4 shown.

[0102] In some embodiments, when updating the second read pointer, the control module can determine whether the table entry is linked to other table entries by judging whether the table entry currently pointed to by the second read pointer has a cached table entry identifier. If the table entry currently pointed to by the second read pointer does not have a cached table entry identifier (that is, the table entry is not linked to other table entries), then the table entry currently pointed to by the second read pointer will not be updated, that is, the corresponding second read pointer will not be updated.

[0103] In some embodiments, in order to facilitate the determination of whether the second read pointer can be updated, a second flag bit can be added to the information field of the FIFO table item to indicate whether the table item is linked to other table items. When there is no link, the second flag bit is invalid. When there is a link to other table items, the second flag bit is valid. When a second read pointer needs to be updated, it will first be determined whether the second flag bit in the table item currently pointed to by the second read pointer is valid to determine whether the second read pointer can be updated. The second read pointer can only be updated when the second flag bit in the table item currently pointed to by the second read pointer is valid. If the second flag bit in the table item is not switched to valid (i.e., it is always invalid) until the table item currently pointed to by the second read pointer is released, then the second read pointer will be set to invalid.

[0104] Correspondingly, in the scenario of the static shared cache module (the above-mentioned method a), the control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into the table entry currently pointed to by the first write pointer, and send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data to valid, and update the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it, including:

[0105] A control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by a first write pointer, and set a second flag bit in the table entry currently pointed to by the first write pointer to be invalid, and send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to be valid; and is also configured to switch the first flag bit in the table entry currently pointed to by a second read pointer corresponding to the request identifier corresponding to the response data to be valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, update the second read pointer to point to an item corresponding to the item identifier cached in the table entry currently pointed to by it.

[0106] In some embodiments, in the scenario of a static shared cache module (method a above), the pointer of the FIFO further includes a third read pointer;

[0107] The FIFO is configured to send a request identifier in the table entry currently pointed to by the third read pointer to a downstream module, so that the downstream module requests corresponding response data from the control module through the request identifier, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it;

[0108] The control module is configured to read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module in sequence and return it to the downstream module, including:

[0109] The control module is configured to, upon receiving a request identifier sent by a downstream module and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer, sequentially read out response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module.

[0110] Among them, when the downstream module needs the response data corresponding to a transaction request, it can send the received request identifier to the control module to meet the requirement that the downstream module does not support outstanding transmission. Specifically, a handshake mechanism can be adopted between the FIFO and the downstream module. When the downstream module is ready, the FIFO sends the request identifier in the table item currently pointed to by the third read pointer to the downstream module, thereby enabling the downstream module to obtain the request identifier from the FIFO to meet the requirement that the downstream module does not support outstanding transmission.

[0111] It can be understood that the third read pointer is also updated to point to the next table item after the corresponding module performs the corresponding operation on the table item it points to. Specifically, after the FIFO sends the request identifier in the table item currently pointed to by the third read pointer to the downstream module, the third read pointer is increased by 1 (when the third read pointer is currently at the maximum value, the third read pointer is reset to the minimum value after this reading).

[0112] In some embodiments, in the scenario of a static shared cache module (method a above), the control module is configured to, when receiving a transaction request from an upstream module, write the request identifier of the transaction request into the FIFO, and at the same time write the information carried in the user field of the transaction request (indication information used to instruct the downstream module to perform corresponding processing on the corresponding response data, such as the operation type (including decompression, decryption, etc.)) into the corresponding table entry. In this way, when the FIFO sends the request identifier in the table entry currently pointed to by the third read pointer to the downstream module, it also sends the other information in the table entry (indication information used to instruct the downstream module to perform corresponding processing on the corresponding response data) to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier, and performs corresponding processing on the requested response data according to the corresponding indication information.

[0113] In some embodiments, in the scenario of a static shared cache module (the above-mentioned method a), the control module is configured to write a request identifier of the transaction request into the FIFO upon receiving a transaction request from an upstream module, including:

[0114] The control module is configured to write a request identifier of the transaction request into the FIFO when receiving a transaction request from an upstream module and the FIFO is not full.

[0115] When the FIFO is full, it means that there is no free entry in the FIFO to store the information requested by the transaction.

[0116] The full state signal of the FIFO can be written into the corresponding register by the first read pointer and the first write pointer after a certain combination logic, and the combination logic can be:

[0117] In response to the update of the write pointer, determining whether a current value of the first write pointer is equal to a current value of the first read pointer;

[0118] In response to the current value of the first write pointer being equal to the current value of the first read pointer, it indicates that the FIFO is currently in a full state.

[0119] In some embodiments, in the scenario of a static shared cache module (method a above), the control module includes a parsing module, a write control module, and a read control module;

[0120] The parsing module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a FIFO and send the transaction request to a memory; the write control module is configured to, upon receiving response data returned by the memory for a transaction request, sequentially write the response data into a cache area corresponding to the corresponding request identifier; the read control module is configured to sequentially read out the response data from the cache area corresponding to the request identifier that is arranged at the front in the FIFO from the cache module and return it to the downstream module.

[0121] In the above method b), by writing the request identifier of the transaction request and the allocated cache address into the FIFO, when the response data needs to be written into the cache module, the response data is written into the cache address of the first entry in the table entry with the corresponding request identifier in the FIFO, and when the response data corresponding to a request identifier needs to be read from the cache module and returned to the downstream module, the response data cached at the cache address in the first entry in the FIFO is read from the cache module and returned to the downstream module, and the order of transaction requests and response data with the same request identifier (corresponding to the same upstream module) can be maintained in one FIFO and one cache module, saving hardware resources. In addition, multiple upstream modules (masters) dynamically share the cache module, that is, the cache address of each transaction request in the cache module is not fixed.

[0122] Compared with the above-mentioned method of fixedly allocating a shared cache area to each upstream module (master), the dynamic shared cache method saves one-N (N is the total number of upstream modules connected to the same downstream module) bandwidth. Whether a single upstream module (master) works independently or several or all upstream modules (masters) work together, the cache can be fully utilized and the interface and interconnection network can reach full bandwidth.

[0123] It should be noted that, in the scenario of the dynamic shared cache module (method b above), when the response data needs to be written to the cache address of the frontmost entry in the table entry cached with the corresponding request identifier in the FIFO, if there is already data at the cache address of the frontmost entry in the table entry cached with the corresponding request identifier in the FIFO, the response data can be written to the cache address of the frontmost entry in the table entry cached with the corresponding request identifier in the updated FIFO after the table entry is released.

[0124] In some embodiments, in the scenario of the dynamic shared cache module (the above-mentioned method b), the pointer of the FIFO includes a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers;

[0125] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; is also configured to, when receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; is also configured to read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to a downstream module, including:

[0126] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer, send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an entry identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and further configured to, upon receiving a request from the memory for When a transaction request returns response data, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; it is also configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

[0127] It can be understood that, by writing the request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, and writing the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, and using the table entry currently pointed to by the first write pointer as the table entry currently pointed to by the new second write pointer corresponding to the request identifier, when the response data needs to be written into the cache module, the corresponding table entry (the table entry currently pointed to by the second read pointer) is found through the corresponding second read pointer, and then the response data is written to the cache address in the table entry, and when the response data corresponding to a request identifier needs to be read from the cache module and returned to the downstream module, the corresponding table entry (the table entry currently pointed to by the first read pointer) is found according to the first read pointer, and then the response data is read from the cache address in the table entry and returned to the downstream module. Multiple upstream modules (masters) dynamically share the cache module.

[0128] Among them, the functions and update methods of the first write pointer, the first read pointer, and the second write pointer are similar to those in the scenario of the aforementioned static shared cache module (the above method a), and will not be repeated here. In the scenario of the dynamic shared cache module (the above method b), in addition to being used to switch the first flag bit, the second read pointer is also used to write the response data returned by the memory for a transaction request to the cache address in the table entry currently pointed to by the second read pointer corresponding to its corresponding request identifier when the control module receives the response data returned by the memory for a transaction request, so as to facilitate the step of writing the response data to the cache address in the table entry that is ranked first in the table entry with the corresponding request identifier cached in the FIFO, so as to meet the order preservation requirements of the downstream module (IP).

[0129] In some embodiments, when receiving a transaction request, the control module can determine the cache size required for the response data of the transaction request based on the information carried in the transaction request (such as the burst size corresponding to the read transaction request). Therefore, it can be judged whether there is enough free cache space in the cache module (that is, whether there is free cache space greater than or equal to the required cache size) based on the cache size required for the response data of the transaction request. If so, the address information (that is, the applied cache address) of the corresponding free cache space (whose size is equal to the required cache size) is allocated to the transaction request.

[0130] Among them, since the control module controls the writing and reading of the cache module, it also monitors the used cache space and free cache space in the cache module, so as to determine whether there is enough free cache space in the cache module.

[0131] In some embodiments, the cache address includes a cache start address and a required cache size (ie, the size of the response data corresponding to the read transaction request).

[0132] In some embodiments, when the transaction request is a read transaction request, the cache address includes a cache start address and a burst size (equivalent to the size of data to be read back from the memory by the read transaction request).

[0133] In some embodiments, when a cache address is written into a table entry, it is written into the information field of the table entry, such as Figure 4 shown.

[0134] In some embodiments, during the process of updating the table entry currently pointed to by the second read pointer (i.e., during the process of updating the second read pointer), the control module can determine whether the table entry is linked to other table entries by judging whether the table entry identifier is cached in the table entry currently pointed to by the second read pointer. If the table entry identifier is not cached in the table entry currently pointed to by the second read pointer (i.e., the table entry is not linked to other table entries), then the second read pointer will not be updated.

[0135] In some embodiments, in order to facilitate the determination of whether the second read pointer can be updated, a second flag bit can be added to the information field of the FIFO table item to indicate whether the table item is linked to other table items. When there is no link, the second flag bit is invalid. When there is a link to other table items, the second flag bit is valid. When a second read pointer needs to be updated, it will first be determined whether the second flag bit in the table item currently pointed to by the second read pointer is valid to determine whether the second read pointer can be updated. The second read pointer can only be updated when the second flag bit in the table item currently pointed to by the second read pointer is valid. If the second flag bit in the table item is not switched to valid (i.e., it is always invalid) until the table item currently pointed to by the second read pointer is released, then the second read pointer will be set to null.

[0136] Correspondingly, in the scenario of the dynamic shared cache module (the above-mentioned method b), the control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, and write the request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, and send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer to valid, and the second read pointer is updated to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it, including:

[0137] A control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, and write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer, wherein a second flag bit in the table entry currently pointed to by the first write pointer is invalid, and send the transaction request to a memory, and when a second write pointer corresponding to the request identifier is valid, write an item identifier of the table entry currently pointed to by the first write pointer into a table entry currently pointed to by a corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to valid; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer to valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, update the second read pointer to point to an item corresponding to the item identifier cached in the table entry currently pointed to by the second read pointer.

[0138] In some embodiments, in the scenario of the dynamic shared cache module (method b above), the pointer of the FIFO further includes a third read pointer;

[0139] The FIFO is configured to send a request identifier in the table entry currently pointed to by the third read pointer to a downstream module, so that the downstream module requests corresponding response data from the control module through the request identifier, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it;

[0140] The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, including:

[0141] The control module is configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module when a request identifier sent by the downstream module is received and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer.

[0142] The function and update method of the third read pointer are similar to those in the scenario of the aforementioned static shared cache module (the above method a), and will not be repeated here.

[0143] In some other embodiments, in the scenario of the dynamic shared cache module (method b above), the pointer of the FIFO further includes a third read pointer;

[0144] The FIFO is configured to send the request identifier and the cache address in the table entry currently pointed to by the third read pointer to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier and its corresponding cache address, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it;

[0145] The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, including:

[0146] The control module is configured to, upon receiving a request identifier and its corresponding cache address sent by a downstream module and the received request identifier and the cache address are respectively the same as the request identifier and the cache address in the table entry currently pointed to by the first read pointer, read the response data cached at the cache address from the cache module according to the received cache address and return it to the downstream module.

[0147] It can be understood that since the update method of the first read pointer and the third read pointer is the same, a request identifier sent by the downstream module received by the control module and the request identifier in the table item currently pointed to by the first read pointer can correspond one to one. Therefore, when the control module receives a request identifier sent by the downstream module and the request identifier is the same as the request identifier in the table item currently pointed to by the first read pointer, the response data cached at the cache address in the table item currently pointed to by the first read pointer can be directly returned to the downstream module based on reading it from the cache module, or it can be based on the corresponding cache address received when receiving the request identifier sent by the downstream module, and the response data cached at the cache address can be read from the cache module and returned to the downstream module.

[0148] In some embodiments, in the scenario of a dynamic shared cache module (method b described above), the control module, when writing the request identifier of the transaction request into the FIFO, will simultaneously write the information carried in the user field of the transaction request (indication information used to instruct the downstream module to perform corresponding processing on the corresponding response data, such as the operation type (including decompression, decryption, etc.)) into the corresponding table entry. In this way, when the FIFO sends the request identifier in the table entry currently pointed to by the third read pointer to the downstream module, it will also send other information in the table entry (indication information used to instruct the downstream module to perform corresponding processing on the corresponding response data) to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier, and performs corresponding processing on the requested response data according to the corresponding indication information.

[0149] In some embodiments, in the scenario of the dynamic shared cache module (the above-mentioned method b), the control module is configured to write the request identifier and the allocated cache address of the transaction request into the FIFO, including:

[0150] The control module is configured to write the request identifier and the allocated cache address of the transaction request into the FIFO when the FIFO is not full.

[0151] The method for determining the full state of the FIFO is similar to that in the scenario of the aforementioned static shared cache module (the above method a), and will not be repeated here.

[0152] In some embodiments, in the scenario of a dynamic shared cache module (method b above), the control module includes a parsing module, a write control module and a read control module; the parsing module is configured to receive a transaction request from an upstream module, apply to the read control module for a cache address corresponding to the transaction request in the cache module, write the request identifier and the allocated cache address of the transaction request into the FIFO, and send the transaction request to the memory; the write control module is configured to, upon receiving response data returned by the memory for a transaction request, write the response data into the cache address of the frontmost entry in the table entry in the FIFO that caches the corresponding request identifier; the read control module is configured to read the response data cached at the cache address in the frontmost entry in the FIFO from the cache module and return it to the downstream module.

[0153] Correspondingly, in the scenario where the reorder buffer further includes a first arbitration module, the first arbitration module is configured as follows:

[0154] When receiving a transaction request from an upstream module, a handshake request is sent to the parsing module, and when receiving response information returned by the parsing module for the handshake request, one of the received transaction requests is selected and sent to the parsing module.

[0155] That is to say, the first arbitration module sends a handshake request to the parsing module, and when receiving the response information returned by the parsing module for the handshake request, it selects one of the received transaction requests and sends it to the parsing module. If the first arbitration module does not receive the response information returned by the parsing module for the handshake request, the first arbitration module will not send the transaction request to the parsing module. This is equivalent to the decompression module back-pressing the first arbitration module and not performing a handshake. The first arbitration module will hold the received transaction request, and each upstream module (master) will not be able to continue to send transaction requests to the first arbitration module, which is equivalent to the first arbitration module back-pressing each upstream module (master), thereby achieving data flow control.

[0156] Further, such as Figure 5 As shown, the parsing module is also configured to: when receiving a handshake request from the first arbitration module, apply to the read control module for the cache address corresponding to the transaction request corresponding to the handshake request in the cache module, and after applying for the cache address, return response information for the handshake request to the first arbitration module.

[0157] That is to say, the first arbitration module will trigger the parsing module to apply for a cache address from the read control module through a handshake request. If the application is successful, the first arbitration module will select one of the received transaction requests and send it to the parsing module to complete the handshake. If the application is not successful (the cache module does not have enough free cache space), the first arbitration module will not send a transaction request to the parsing module.

[0158] In some embodiments, multiple independent upstream modules (upstream IP) that do not support disorder are interconnected with a downstream module (downstream IP) that does not support disorder. For example, the upstream module (upstream IP) is a display controller, and the downstream module (downstream IP) is a display decompression module. The display controller usually includes multiple layers, and each layer supports disordered data return, and the order of data return must be guaranteed within the same layer. Each layer opens an API interface to the application. These layers can work alone, such as full-screen video playback; or multiple layers can work at the same time, such as superimposed display, browsing the web page while playing the video in a small window. In this scenario, each layer is used as an upstream module and connected to the same downstream decompression module. The solution of the dynamic shared cache module of the above-mentioned reordering buffer (the above-mentioned method b) can not only achieve the order preservation requirements in this scenario, but also ensure that the bandwidth can be fully utilized when a single layer works and multiple layers work to achieve the highest performance (when a layer works alone, the cache module cannot be fully utilized under the solution of the static shared cache module). Specifically, the control module receives a transaction request from any layer, allocates a cache address corresponding to the transaction request in the cache module, writes the request identifier of the transaction request and the allocated cache address into the FIFO, and sends the transaction request to the memory; when the control module receives response data returned by the memory for a transaction request, the control module writes the response data into the cache address of the frontmost entry in the table entry in the FIFO that caches the corresponding request identifier; the control module reads the response data cached at the cache address in the frontmost entry in the FIFO from the cache module and returns it to the decompression module.

[0159] In some embodiments, multiple independent upstream modules (upstream IPs) are interconnected with a downstream module (downstream IP) that does not support outstanding transmission. For example, the data read from the memory by the upstream module (upstream IP) needs to be decrypted before it can be used, and the downstream module (downstream IP) is a decryption engine that can only execute commands serially (neither supports disorder nor supports multiple outstanding transmissions). Multiple upstream modules (upstream IPs) may work at the same time, or several of them may work together or one of them may work alone. The dynamic shared cache module of the reordering buffer (the above method b) combined with the third read pointer solution not only meets the requirement that the decryption engine does not support outstanding transmission, but also ensures that the decryption engine can achieve maximum performance in the above various working scenarios (when a certain upstream IP works alone, the cache module cannot be fully utilized under the static shared cache module solution). Specifically, the control module receives a transaction request from any upstream module, allocates a cache address corresponding to the transaction request in the cache module, writes the request identifier of the transaction request and the allocated cache address into the FIFO, and sends the transaction request to the memory; when the control module receives response data returned by the memory for a transaction request, the control module writes the response data into the cache address of the frontmost entry in the table entry in which the corresponding request identifier is cached in the FIFO; the FIFO sends the request identifier in the table entry currently pointed to by the third read pointer to the downstream module (decryption engine), so that the downstream module (decryption engine) requests the corresponding response data from the control module through the request identifier; when the control module receives a request identifier sent by the downstream module (decryption engine) and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer, the control module reads the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and returns it to the downstream module (decryption engine).

[0160] In some embodiments, if each upstream module (upstream IP) does not work independently, or the maximum bandwidth that each upstream module (upstream IP) can send is limited and less than the maximum bandwidth of the downstream module (downstream IP), the above-mentioned static shared cache solution can be adopted to fixedly allocate a shared cache area to each upstream module (upstream IP) to reduce some hardware resources.

[0161] Based on the same inventive concept, an embodiment of the present disclosure further provides a system-on-a-chip (SOC), comprising at least one upstream module, a downstream module and a reorder buffer of any of the above embodiments.

[0162] In some embodiments, the reorder buffer may be disposed on an interconnect network of the system on chip.

[0163] Based on the same inventive concept, an embodiment of the present disclosure further provides an electronic component, which includes the system on chip in any of the above embodiments.

[0164] In some usage scenarios, the product form of the electronic component is a graphics card; in other usage scenarios, the product form of the electronic component is a CPU motherboard.

[0165] Based on the same inventive concept, the disclosed embodiment also provides an electronic device, which includes the above-mentioned electronic components. In some usage scenarios, the product form of the electronic device is a portable electronic device, such as a smart phone, a tablet computer, a VR device, etc.; in some usage scenarios, the product form of the electronic device is a personal computer, a game console, etc.

[0166] Based on the same inventive concept, the embodiment of the present disclosure also provides a data transmission method of a system on chip, including:

[0167] When receiving a transaction request from an upstream module, the request identifier of the transaction request is written into the FIFO, and the transaction request is sent to the memory; when receiving response data returned by the memory for a transaction request, the response data is written into the cache area corresponding to the request identifier corresponding to the cache module; the response data is sequentially read out from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and returned to the downstream module; the cache module includes multiple cache areas corresponding to different request identifiers respectively; or,

[0168] Receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, write a request identifier of the transaction request and the allocated cache address into a FIFO, and send the transaction request to a memory; when receiving response data returned by the memory for a transaction request, write the response data into a cache address in a table entry that is arranged at the front in a table entry that is cached with a corresponding request identifier in the FIFO; read the response data cached at the cache address in the table entry that is arranged at the front in the FIFO from the cache module and return it to the downstream module.

[0169] In some embodiments, in the data transmission method of the above-mentioned system on chip, the pointer of the FIFO includes a first write pointer, a first read pointer, multiple second write pointers and multiple second read pointers, the multiple second write pointers correspond to different request identifiers respectively, and the multiple second read pointers correspond to different request identifiers respectively;

[0170] When receiving a transaction request from an upstream module, the request identifier of the transaction request is written into the FIFO, and the transaction request is sent to the memory; when receiving response data returned by the memory for a transaction request, the response data is written into the cache area corresponding to the request identifier corresponding to the cache module; the response data is sequentially read out from the cache area corresponding to the request identifier arranged at the front in the FIFO of the cache module and returned to the downstream module; the cache module includes multiple cache areas corresponding to different request identifiers, including:

[0171] When receiving a transaction request from an upstream module, write the request identifier of the transaction request into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by it; when receiving response data returned by the memory for a transaction request, write the response data sequentially into the cache area corresponding to the corresponding request identifier, switch the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier of the response data to valid, and update the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it; read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module, and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, update the first read pointer to point to the next table entry of the table entry currently pointed to by it; or,

[0172] Receiving a transaction request from an upstream module, allocating a cache address corresponding to the transaction request in a cache module, writing a request identifier of the transaction request and the allocated cache address into a FIFO, and sending the transaction request to a memory; upon receiving response data returned by the memory for a transaction request, writing the response data into a cache address in a table entry that is arranged at the front of a table entry in the FIFO that caches a corresponding request identifier; reading the response data cached at the cache address in the front of a table entry in the FIFO from the cache module and returning it to a downstream module, including:

[0173] Receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write the request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by it; upon receiving a transaction request from the memory, When requesting the returned response data, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; the response data cached at the cache address in the table entry currently pointed to by the first read pointer is read from the cache module and returned to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

[0174] The specific implementation process of the data transmission method of the above-mentioned system on chip can refer to the reorder buffer of any of the above-mentioned embodiments, which will not be repeated here.

[0175] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0176] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A reorder buffer, include: FIFO, control module and cache module; The pointers of the FIFO include a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers; The cache module includes a plurality of cache areas corresponding to different request identifiers respectively; The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when a second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and is also configured to, upon receiving response data returned by the memory for a transaction request, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer. The response data is sequentially written into the cache area corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; it is also configured to read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module and sequentially read out the response data and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

2. The reorder buffer according to claim 1, wherein the control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and, when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer; and is further configured to switch a first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data to valid, and update the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it. include: The control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into a table entry currently pointed to by the first write pointer, the second flag bit in the table entry currently pointed to by the first write pointer being invalid, send the transaction request to a memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to valid; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer corresponding to the request identifier corresponding to the response data to valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, update the second read pointer to point to the table entry corresponding to the table entry identifier cached in the table entry currently pointed to by it.

3. The reorder buffer according to claim 1, wherein the pointer of the FIFO further comprises a third read pointer; The FIFO is configured to send the request identifier in the table entry currently pointed to by the third read pointer to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it; The control module is configured to read the response data from the cache area corresponding to the request identifier in the entry currently pointed to by the first read pointer from the cache module and sequentially read the response data and return it to the downstream module. include: The control module is configured to, upon receiving a request identifier sent by the downstream module and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer, sequentially read out response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module.

4. The reorder buffer according to claim 1, wherein the control module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into the entry currently pointed to by the first write pointer, include: The control module is configured to, when receiving a transaction request from an upstream module and the FIFO is not full, write a request identifier of the transaction request into the table entry currently pointed to by the first write pointer.

5. The reorder buffer according to claim 1, wherein the control module comprises a parsing module, a write control module and a read control module; The parsing module is configured to, upon receiving a transaction request from an upstream module, write a request identifier of the transaction request into the FIFO and send the transaction request to the memory; the write control module is configured to, upon receiving response data returned by the memory for a transaction request, sequentially write the response data into a cache area corresponding to the corresponding request identifier; the read control module is configured to read the response data from the cache area corresponding to the request identifier that is arranged at the front in the FIFO from the cache module, and sequentially read out the response data and return it to the downstream module.

6. The reorder buffer according to claim 5, further comprising a first arbitration module configured to: When receiving the transaction request from the upstream module, a handshake request is sent to the parsing module, and when receiving the response information returned by the parsing module for the handshake request, one of the received transaction requests is selected and sent to the parsing module.

7. A reorder buffer, include: FIFO, control module and cache module; The pointers of the FIFO include a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers; The control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write a request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the table entry currently pointed to by the first write pointer, and update the first write pointer to point to the next table entry of the table entry currently pointed to by the first write pointer; and is also configured to, upon receiving the storage When the device returns response data for a transaction request, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; it is also configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

8. The reorder buffer according to claim 7, wherein the control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, write a request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer; and is further configured to switch the first flag bit in the table entry currently pointed to by the second read pointer to valid, and update the second read pointer to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it, include: The control module is configured to receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in the cache module, and write a request identifier of the transaction request and the allocated cache address into the table entry currently pointed to by the first write pointer, the second flag bit in the table entry currently pointed to by the first write pointer is invalid, and send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the table entry identifier of the table entry currently pointed to by the first write pointer into the table entry currently pointed to by the corresponding second write pointer, and switch the second flag bit in the table entry currently pointed to by the second write pointer to valid; and is also configured to switch the first flag bit in the table entry currently pointed to by the second read pointer to valid, and when the second flag bit in the table entry currently pointed to by the second read pointer is valid, the second read pointer is updated to point to the table entry corresponding to the cached table entry identifier in the table entry currently pointed to by it.

9. The reorder buffer according to claim 7, wherein the pointer of the FIFO further comprises a third read pointer; The FIFO is configured to send the request identifier in the table entry currently pointed to by the third read pointer to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier, and the third read pointer is updated to point to the next table entry of the table entry currently pointed to by it; The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, include: The control module is configured to read the response data cached at the cache address in the table entry currently pointed to by the first read pointer from the cache module and return it to the downstream module when a request identifier sent by the downstream module is received and the request identifier is the same as the request identifier in the table entry currently pointed to by the first read pointer.

10. The reorder buffer according to claim 7, wherein the pointer of the FIFO further comprises a third read pointer; The FIFO is configured to send the request identifier and the cache address in the entry currently pointed to by the third read pointer to the downstream module, so that the downstream module requests the corresponding response data from the control module through the request identifier and its corresponding cache address, and the third read pointer is updated to point to the next entry of the entry currently pointed to by it; The control module is configured to read the response data cached at the cache address in the entry currently pointed to by the first read pointer from the cache module and return it to the downstream module, include: The control module is configured to, upon receiving a request identifier and its corresponding cache address sent by the downstream module, and when the received request identifier and the cache address are respectively the same as the request identifier and the cache address in the table entry currently pointed to by the first read pointer, read the response data cached at the cache address from the cache module according to the received cache address, and return it to the downstream module.

11. The reorder buffer according to claim 7, wherein the control module is configured to write the request identifier and the allocated cache address of the transaction request into the table entry currently pointed to by the first write pointer, include: The control module is configured to write the request identifier and the allocated cache address of the transaction request into the table entry currently pointed to by the first write pointer when the FIFO is in a non-full state.

12. The reorder buffer according to claim 7, wherein the control module comprises a parsing module, a write control module and a read control module; The parsing module is configured to receive a transaction request from an upstream module, apply to the read control module for a cache address corresponding to the transaction request in the cache module, write the request identifier and the allocated cache address of the transaction request into the FIFO, and send the transaction request to the memory. ; The write control module is configured to, when receiving response data returned by the memory in response to a transaction request, write the response data into a cache address in a frontmost entry in the entry cached with a corresponding request identifier in the FIFO; The read control module is configured to read the response data cached at the cache address in the frontmost entry in the FIFO from the cache module and return it to the downstream module.

13. The reorder buffer according to claim 12, further comprising a first arbitration module configured to: When receiving the transaction request from the upstream module, a handshake request is sent to the parsing module, and when receiving the response information returned by the parsing module for the handshake request, one of the received transaction requests is selected and sent to the parsing module.

14. The reorder buffer according to claim 13, wherein the parsing module is further configured to: When receiving a handshake request from the first arbitration module, the read control module is applied for the cache address corresponding to the transaction request corresponding to the handshake request in the cache module, and after obtaining the cache address, the response information for the handshake request is returned to the first arbitration module.

15. The reorder buffer according to claim 1 or 7, wherein when the first read pointer is updated, the table entry pointed to by the first read pointer before being updated is released.

16. The reorder buffer according to claim 1 or 7, further comprising a first arbitration module configured to: Receiving a transaction request from the upstream module; The received transaction requests are sent to the control module one by one.

17. The reorder buffer according to claim 1 or 7, further comprising a second arbitration module configured to: Receive the response data returned by the downstream module and return it to the corresponding upstream module.

18. A system on chip, comprising a downstream module, the reorder buffer according to any one of claims 1 to 17, and at least one upstream module.

19. An electronic component comprising the system on chip according to claim 18.

20. An electronic device comprising the electronic component according to claim 19.

21. A data transmission method of a system on chip, include: When receiving a transaction request from an upstream module, write the request identifier of the transaction request into the entry currently pointed to by the first write pointer of the FIFO; The pointers of the FIFO include a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers; Send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the entry identifier of the entry currently pointed to by the first write pointer into the entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the entry currently pointed to by the first write pointer, and update the first write pointer to point to the next entry of the entry currently pointed to by it; When receiving response data returned by the memory in response to a transaction request, the response data is sequentially written into a cache area corresponding to the request identifier corresponding to the response data in the cache module, and a first flag bit in the entry currently pointed to by a second read pointer corresponding to the request identifier corresponding to the response data is switched to be valid, and the second read pointer is updated to point to the entry corresponding to the cached entry identifier in the entry currently pointed to by the second read pointer; Read the response data from the cache area corresponding to the request identifier in the table entry currently pointed to by the first read pointer from the cache module and sequentially read it out to return it to the downstream module. When the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.

22. A data transmission method of a system on chip, include: Receive a transaction request from an upstream module, allocate a cache address corresponding to the transaction request in a cache module, and write a request identifier of the transaction request and the allocated cache address into a table entry currently pointed to by a first write pointer of a FIFO; the pointer of the FIFO includes a first write pointer, a first read pointer, a plurality of second write pointers and a plurality of second read pointers, the plurality of second write pointers respectively correspond to different request identifiers, and the plurality of second read pointers respectively correspond to different request identifiers; Send the transaction request to the memory, and when the second write pointer corresponding to the request identifier is valid, write the entry identifier of the entry currently pointed to by the first write pointer into the entry currently pointed to by the corresponding second write pointer, update the second write pointer to point to the entry currently pointed to by the first write pointer, and update the first write pointer to point to the next entry of the entry currently pointed to by it; Upon receiving response data returned by the memory in response to a transaction request, the response data is written to the cache address in the table entry currently pointed to by the second read pointer corresponding to the corresponding request identifier, and the first flag bit in the table entry currently pointed to by the second read pointer is switched to valid, and the second read pointer is updated to point to the table entry corresponding to the cached item identifier in the table entry currently pointed to by it; the response data cached at the cache address in the table entry currently pointed to by the first read pointer is read from the cache module and returned to the downstream module, and when the first flag bit in the table entry currently pointed to by the first read pointer is valid, the first read pointer is updated to point to the next table entry of the table entry currently pointed to by it.