Circuits and methods

By introducing attribute storage circuits and control circuits to supervise the publication and association of data processing transactions, the problem of low efficiency in the interaction between the TCU and memory in the data processing circuit is solved, and the efficiency of the address translation process and system performance are improved.

CN113448885BActive Publication Date: 2026-11-27ARM LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110292847.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-03-26
Filing Date
2021-03-18
Publication Date
2026-11-27
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

Existing data processing circuits suffer from inefficiency and latency when handling data processing transactions, especially address translation transactions, particularly when the translation control unit (TCU) interacts with memory, requiring lengthy page table traversals.

Method used

By introducing attribute storage circuits, comparator circuits, and control circuits, the publication and association of data processing transactions are monitored, forming a list of related transactions, optimizing the interaction between the TCU and the memory, and reducing unnecessary requests and data traffic.

Benefits of technology

It improves the efficiency of data processing transactions, reduces the latency of TCU-memory interaction, optimizes the memory address translation process, and enhances the overall performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113448885B_ABST
    Figure CN113448885B_ABST
Patent Text Reader

Abstract

The present application relates to circuits and methods. A circuit includes attribute storage circuitry having a plurality of entries to hold data defining attributes of at least one transaction initiated by transaction source circuitry; comparator circuitry to compare transaction attributes of a given data processing transaction with the data held by the attribute storage circuitry to detect whether the given data processing transaction is to be resolved by any data processing transaction for which data is held by a corresponding entry; control circuitry to associate the given data processing transaction with the corresponding entry to form a set of associated data processing transactions when the comparator circuitry detects that the given data processing transaction is to be fulfilled by the data processing transaction for which data is held by the corresponding entry; the control circuitry including output circuitry to provide resolution to the transaction source circuitry in response to resolution of a data processing transaction in the set of associated data processing transactions as resolution of each of the set of associated transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to circuits and methods. Background Technology

[0002] Various examples of data processing circuits utilize so-called data processing transactions to allow upstream circuitry to initiate actions or operations on downstream circuitry. An example of such a transaction is an address translation transaction, used to obtain address translations from downstream translation control units (TCUs), or for the TCU to obtain translations from memory.

[0003] This disclosure is intended to provide potential improvements related to such arrangements. Summary of the Invention

[0004] In the example arrangement, a circuit is provided, the circuit comprising: An attribute storage circuit has multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by a transaction source circuit; A comparator circuit is used to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage circuit to determine whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit; and The control circuit, when the comparator circuit detects that a given data processing transaction will be performed by a data processing transaction in which the attribute data is stored in the corresponding entry in the attribute storage circuit, associates the given data processing transaction with the corresponding entry in the attribute storage circuit to form a set of associated data processing transactions. The control circuit includes an output circuit that, in response to the parsing of a data processing transaction in the set of associated data processing transactions, provides the parsing to the transaction source circuit as the parsing for each of the set of associated transactions.

[0005] In another example arrangement, a circuit is provided, the circuit comprising: An attribute storage device having multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by a transaction source device; A comparator device is configured to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage device to determine whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage device; and The control device, when the comparator device detects that a given data processing transaction will be performed by a data processing transaction in which attribute data is stored in the corresponding entry in the attribute storage device, associates the given data processing transaction with the corresponding entry in the attribute storage device to form a set of associated data processing transactions. The control device includes an output device that, in response to the parsing of a data processing transaction in the set of associated data processing transactions, provides a parsing to the transaction source device as a parsing for each of the set of associated transactions.

[0006] In another example arrangement, a method is provided that includes the following steps: Data processing transactions are received from the transaction source circuit, and each data processing transaction is defined by a corresponding set of one or more transaction attributes; Store data that defines at least one transaction attribute of one or more corresponding data processing transactions; The transaction attributes of a given data processing transaction are compared with the saved data to determine whether the given data processing transaction will be parsed by any data processing transaction that saves the attribute data. When the comparison step detects that a given data processing transaction will be performed by the corresponding data processing transaction that stores attribute data, the given data processing transaction is associated with the corresponding data processing transaction detected by the comparison step to form a set of associated data processing transactions. In response to the parsing of the data processing transactions in the set of associated data processing transactions, the parsing is provided to the transaction source circuit as the parsing for each of the set of associated transactions.

[0007] Other aspects and features of this technology are defined by the appended claims. Attached Figure Description

[0008] The present technology will be further described by way of example only, with reference to embodiments of the present technology shown in the accompanying drawings, in which: Figure 1 An example circuit is shown schematically; Figure 2 and Figure 3 schematically shown Figure 1 The data flow in the circuit; Figure 4a A transition buffer unit (TBU) is schematically shown. Figure 4b The arrangement of the transfer backup buffer (TLB) is schematically shown; Figure 5 The conversion control unit (TCU) is shown schematically. Figure 6 and Figure 8 This is a schematic flowchart illustrating the corresponding method; Figure 7 and Figure 9 It schematically illustrates various aspects of transaction processing; Figure 10 and Figure 11 The circuitry for the hazard cache and hazard list is illustrated schematically. Figure 12 A set of transactions is illustrated schematically; Figure 13 An example of a hazard list circuit is illustrated schematically; Figures 14 to 16 The diagram illustrates a list of hazards representing a set of transactions. Figure 17 and Figure 18 Other examples of hazard caching and hazard list circuits are illustrated schematically; and Figure 19 This is a schematic flowchart illustrating one method. Detailed Implementation

[0009] Before discussing embodiments with reference to the accompanying drawings, the following description of the embodiments is provided.

[0010] An example embodiment provides a circuit, the circuit comprising: An attribute storage circuit has multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by a transaction source circuit; A comparator circuit is used to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage circuit to determine whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit; and The control circuit, when the comparator circuit detects that a given data processing transaction will be performed by a data processing transaction in which the attribute data is stored in the corresponding entry in the attribute storage circuit, associates the given data processing transaction with the corresponding entry in the attribute storage circuit to form a set of associated data processing transactions. The control circuit includes an output circuit that, in response to the parsing of a data processing transaction in the set of associated data processing transactions, provides the parsing to the transaction source circuit as the parsing for each of the set of associated transactions.

[0011] The example implementation provides an efficient way to monitor data processing transactions such as address translation transactions so that transactions can be associated together so that when an expected transaction response is to be applied to another transaction, the response is effectively reused in another transaction.

[0012] In the example arrangement, the control circuit is configured to generate an entry from the given data processing circuit for storage in the attribute storage circuit when the comparator circuit detects that a given data processing transaction will not be performed by a data processing transaction whose attribute data is saved by any entry in the attribute storage circuit, and / or the control circuit is configured to initiate the publication of the given transaction for parsing when the comparator circuit detects that a given data processing transaction will not be performed by a data processing transaction whose attribute data is saved by any entry in the attribute storage circuit.

[0013] Although a given data processing transaction can be any of a set of related data processing transactions, or it can be a previously received data processing transaction, in the example embodiment, the given data processing transaction is the data processing transaction most recently initiated by the transaction source circuit.

[0014] While an unordered or so-called flat list of associated data processing transactions can be used, in the example embodiment, the set of associated data processing transactions comprises a linked list of data processing transactions. This makes iterating over the list more efficient in order to output a transaction response for each data processing transaction in the list, for example, from the head or first item to the tail or last item (however, in other examples, the traversal may be in the opposite direction).

[0015] Conveniently, to add a new item to the list, the control circuit can be configured to associate the given data processing transaction with the corresponding entry in the attribute storage circuit as the new last item in the linked list of data processing transactions associated with the entry in the attribute storage circuit when the comparator circuit detects that the given data processing transaction will be performed by a data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit. Similarly, the control circuit can be configured to create a new linked list with the given data processing transaction as the starting list item when the comparator circuit detects that the given data processing transaction will not be performed by a data processing transaction whose attribute data is not stored by any entry in the attribute storage circuit.

[0016] The set of associated data processing transactions can be conveniently stored by a list memory to store data that defines at least those data processing transactions that are not currently saved by the attribute memory.

[0017] In some examples, the list remains up-to-date whenever the attribute storage circuitry is modified. In such cases, for example, the control circuitry can be configured to store data defining a data processing transaction in the list memory in response to creating an entry in the attribute memory for that data processing transaction. In other examples, the control circuitry is configured to store data defining a data processing transaction in the list memory in response to information relating to a data processing transaction that is removed from the attribute storage circuitry by storing data defining the attributes of another data processing transaction.

[0018] To improve the efficiency of subsequent accesses and avoid so-called memory-to-memory access cycles, list stores can be configured to store data for two or more data processing transactions as a single entry in the list store.

[0019] In an example embodiment, the list store includes entries that can be addressed by the transaction identifier of a data processing transaction within the set of associated data processing transactions.

[0020] As part of a so-called list expansion to output the received parsings of other transactions in the list, the output circuitry can be configured to detect, in response to the parsing of a data processing transaction within the set of associated data processing transactions, whether an entry related to that parsing is held by the attribute storage circuitry, and whether the list memory currently stores data defining a set of associated data processing transactions that includes the transaction that has received the parsing. The check by the attribute storage circuitry is particularly useful when the set of associated data processing transactions may be held at least partially by both the attribute storage circuitry and the list memory.

[0021] While these techniques are applicable to any type of data processing transaction, they are particularly relevant when the data processing transaction is an address translation transaction that requests the translation of an input memory address in the input memory address space into an output memory address in the output memory address space. For example, although a so-called intermediate physical address can be used, the input memory address can be a virtual memory address; the input memory address space can be a virtual memory address space; the output memory address can be a physical address; and the output memory address space can be a physical address space. In other examples involving one stage of a two-stage memory address translation, the input memory address is a virtual memory address; the input memory address space is a virtual memory address space; the output memory address is an intermediate physical address; and the output memory address space is an intermediate physical address space; or the input memory address is an intermediate physical memory address; the input memory address space is an intermediate physical address space; the output memory address is a physical address; and the output memory address space is a physical address space.

[0022] This technology also provides a memory address translation circuit comprising: the circuit defined above; an address translation buffer for storing data defining one or more memory address translations; and a transaction source circuit that, when the data currently stored in the address translation buffer does not provide the required memory address translation, publishes a data processing transaction to another circuit, the transaction source circuit being configured to receive the data defining the required memory address translation as parsing of the data processing transaction. In other words, the techniques discussed above can be used to supervise the publication of transactions through circuitry that stores one or more translations in a cache or store, such as a so-called translation buffer unit. In other examples, these techniques can be employed to obtain translations in response to unavailability in a buffer (such as a so-called miniature TLB) (e.g., in the memory address translation circuit), wherein the memory address translation circuit includes: another circuit; wherein the other circuit is configured to interact with a data memory and publish a transaction as another data processing transaction to obtain data defining the required memory address translation from information stored in the data memory; the other circuit includes another instance of the circuit defined above, the other instance being configured to control the processing of the other data processing transaction.

[0023] Another example embodiment provides a circuit including: An attribute storage device having multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by a transaction source device; A comparator device is used to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage circuit to detect whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit; and The control device, when the comparator device detects that a given data processing transaction will be performed by a data processing transaction in which attribute data is stored in the corresponding entry in the attribute storage device, associates the given data processing transaction with the corresponding entry in the attribute storage device to form a set of associated data processing transactions. The control device includes an output device that, in response to the parsing of a data processing transaction in the set of associated data processing transactions, provides a parsing to the transaction source device as a parsing for each of the set of associated transactions.

[0024] Another example embodiment provides a method comprising the following steps: Data processing transactions are received from the transaction source circuit, and each data processing transaction is defined by a corresponding set of one or more transaction attributes; Store data that defines at least one transaction attribute of one or more corresponding data processing transactions; The transaction attributes of a given data processing transaction are compared with the saved data to determine whether the given data processing transaction will be parsed by any data processing transaction that saves the attribute data. When the comparison step detects that a given data processing transaction will be performed by the corresponding data processing transaction that stores attribute data, the given data processing transaction is associated with the corresponding data processing transaction detected by the comparison step to form a set of associated data processing transactions. In response to the parsing of the data processing transactions in the set of associated data processing transactions, the parsing is provided to the transaction source circuit as the parsing for each of the set of associated transactions.

[0025] Circuit Overview Figure 1 The diagram schematically illustrates a data processing circuit 100 including one or more upstream devices 110, which communicate with one or more downstream devices 120 via a system memory management unit (SMMU) 130.

[0026] Upstream devices can be, for example, one or more processing elements or central processing units acting as a "master" device, as they are configured to issue data processing transactions 112 for downstream devices 120 to parse. Parsing includes upstream device 110 receiving one or more corresponding transaction responses 114.

[0027] For example, in the case of a data processing transaction reading a data item (such as a so-called cache line) from a specific memory address stored in one of the downstream devices 120, the upstream device that issued the request may, in response, first receive an acknowledgment that the read request is being processed, followed by the actual requested data item itself. The initial acknowledgment may be optional for a read transaction. For the case of the relevant upstream device 110 providing a data write operation for a data item to be stored at a memory address stored in one of the downstream devices 120, the relevant transaction response 114 may be a simple acknowledgment that the write operation has been successfully performed. (Of course, in both cases, an error or negative acknowledgment response may be provided if the specific operation cannot be performed). Other examples of data processing transactions may include, for example, invalid transactions, in which a cached copy of a data item stored on a device is invalid.

[0028] Transaction 112 is published to SMMU 130, which then provides it to downstream devices as transaction 132. SMMU receives response 134 and sends it back to the relevant upstream device as response 114. The reasons for using SMMU will be discussed below.

[0029] Downstream device 120 may include, for example, a main memory system, one or more interconnects, or a higher-level cache memory (where "higher" refers to a level in the cache hierarchy of any cache memory stored in upstream device 110, etc.). In general, downstream device 120 acts as a transaction "slave" device because they generally do not initiate data processing transactions themselves, but rather respond to data processing transactions initiated by upstream device 110.

[0030] Address Translation - Overview The SMMU 130 provides what is known as address translation functionality.

[0031] exist Figure 1 In this arrangement, address translation is used so that one or more address spaces accessed by upstream device 110 do not necessarily have the same physical address space used to access memory storage devices at downstream device 120. One reason for using this type of arrangement is to allow different processing elements, operating systems, applications, or other functions to access their respective address spaces to avoid security issues. For example, if an application cannot access the address space associated with another application at all, the risk of malicious code or faulty code corrupting data stored by the other application can be reduced.

[0032] In some examples, the upstream device operates based on a virtual address scheme within the virtual address space, and the SMMU translates this to the corresponding physical address within the physical address space. In cases where... Figure 1 In other examples shown, intermediate stages of the translation are provided, such that the virtual address (VA) is first translated into an intermediate physical address (IPA), and then the intermediate physical address is translated into a physical address (PA). However, although the corresponding techniques can be applied to one or both of the VA-to-IPA and IPA-to-PA translations, Figure 1 The example in the example only utilizes the VA-PA conversion.

[0033] The input data processing transaction 112 is provided to the Transformation Buffer Unit (TBU) 140, which converts any VA associated with the transaction into the corresponding PA and outputs transaction 132 to the relevant downstream device 120. Similarly, the TBU processes any routing of response 134 and, if necessary, converts them from PA space to VA space to output 114 to the relevant upstream device.

[0034] As part of its operation, TBU 140 can interact with a conversion control unit (TCU) 150, which in turn can interact with the main memory via one of the downstream devices 120 or at one of the downstream devices 120.

[0035] Now refer to Figure 2 and Figure 3 describe Figure 1 Some aspects of the arrangement and operation.

[0036] exist Figure 2 and Figure 3 In the middle, transaction information and responses, as well as... Figure 3 The routing of other data is represented by a series of ordered arrows, annotated with consecutive letters from A… upwards. The alphabetical order indicates the schematic sequence of the steps shown.

[0037] The TBU 140 is configured to store a cached copy of the information required to translate the memory addresses of at least some of the inputs in the VA space. Figure 2 This schematically illustrates the situation when the appropriate copy is indeed cached at TBU 140.

[0038] refer to Figure 2 A transaction is initiated by upstream device 110 and sent (A) to TBU 140. The transaction involves at least one VA. In this example, TBU 140 has a cached copy of sufficient information to convert the VA to a PA and forward the transaction (B) with PA information to downstream device 120. The downstream device in question provides (C) a response (or more than one response), and TBU 140 provides the conversion as needed to provide an appropriate response to the upstream device that initiated the transaction (D). TCU does not participate. Figure 2 The data stream.

[0039] However, in Figure 3 In this case, the TBU 140 does not currently save a copy of the relevant data to convert the input PA to VA, therefore, another system must be called.

[0040] Upstream device 110 again publishes a transaction (A) to TBU 140. TBU checks its internal cache and finds that the translation information for the VA specified by the transaction is not currently saved by TBU. Therefore, TBU publishes a request (B) to TCU to obtain the relevant translation information. TCU consults memory 120 (C), for example, by performing a so-called page table walk. This may involve multiple queries to memory during the page table walk, but eventually TCU 150 will receive enough information (D) to fulfill the translation required by TCU. TCU forwards this information (E) to TBU.

[0041] In response to receiving conversion information (E) from the TCU, the TBU stores this information in its own cache and serves the conversion of the original transaction (A) from the cache copy. Once the conversion is performed, the TBU is then free to publish the transaction (F) with the relevant PA in the appropriate position to the downstream device 120 and process any responses (G) as before, forwarding them back to the upstream device (H).

[0042] Generally speaking, Figure 2 The process may be more Figure 3 The process is faster. The cache stored in the TBU can include one or more cache portions in a hierarchy; for example, the smallest but fastest cache is called a micro TLB or µTLB 142, where "TLB" stands for "Translation Back Buffer." If this translation is already stored on the µTLB, the µTLB may have a response latency of one or several clock cycles to provide the translation. Alternatively, a larger but slower TLB can be provided, for example, called a "master" TLB 144. The master TLB may have an access latency of tens of clock cycles. Conversely, as... Figure 3 As shown, sending a request (B) to the TCU can introduce greater latency. Typically, it can take hundreds of clock cycles for the TCU to query the page table in main memory.

[0043] The example embodiments discussed further below are intended to help coordinate requests from the TBU to the TCU and coordinate the TCU's handling of the conversion task, but this may take a long time and, where possible, reduce the amount of requests and data traffic from the TBU to the TCU and / or between the TCU and the memory.

[0044] Therefore, in these examples, the data processing transaction supervised by the hazardous cache / list circuitry is an address translation transaction that requests the translation of an input memory address in the input memory address space to an output memory address in the output memory address space. In the examples discussed, the input memory address is a virtual memory address; the input memory address space is a virtual memory address space; the output memory address is a physical address; and the output memory address space is a physical address space. In other examples involving the stages of a two-stage memory address translation, the input memory address is a virtual memory address; the input memory address space is a virtual memory address space; the output memory address is an intermediate physical address; and the output memory address space is an intermediate physical address space; or the input memory address is an intermediate physical memory address; the input memory address space is an intermediate physical memory address space; the output memory address is a physical address; and the output memory address space is a physical address space.

[0045] TBU and TCU Figure 4a Some aspects of the TBU 140 are schematically shown. The TBU 140 includes a bus interface 300, a sorting circuit 310 for initiating and sorting conversion requests for processing by the TBU and / or TCU, and a cache circuit 320 including a TLB 322.

[0046] The sorting circuit 310 provides the function of maintaining the so-called hazard list 312, and the buffer circuit provides the function of maintaining the so-called hazard buffer 324. The hazard list and hazard buffer will be discussed in more detail below.

[0047] It should be noted that in some other examples, at least a portion of the functionality of TBU 140 may be distributed and provided at each of the upstream devices 110 or associated with each of the upstream devices 110.

[0048] Figure 4b The TLB 322 is schematically shown, which, as described above, can provide a smaller but faster μTLB 400, a slower but larger main TLB 410, and control circuitry 420 for controlling access to and updates to the TLB 322.

[0049] Figure 5 Some aspects of the TCU 150 are illustrated schematically. The TCU 150 includes a transition controller 500 for overseeing the processing of transition requests from the TBU and access to page tables or other data stored in memory, and a hazard system 510 including a hazard controller 520, a hazard cache 530, and a hazard list 540.

[0050] Therefore, it can be seen that the TBU provides hazard list 312 and hazard cache 324, and the TCU also provides hazard list 540 and hazard cache 530. They provide similar overall functionality, but involve different aspects of the transformation handled by SMMU 130.

[0051] The functional similarity involves the fact that each group (hazard list, hazard cache) of circuit processing will be sent to the next stage of processing for a transformation transaction. That is, the hazard list and hazard cache held by the TBU refer to transformation requests sent to the TCU. The hazard list and hazard cache held by the TCU refer to transformations implemented by accessing downstream devices (including memory) (e.g., via so-called page table traversal). (See reference...) Figures 6-9 Describe the similarities in the operations of the two arrangements.

[0052] Therefore, these arrangements provide an example of a memory address translation circuit 130, which includes: circuits 312, 324; an address translation buffer 322 for storing data defining one or more memory address translations; and a transaction source circuit 310 that, if the data currently stored in the address translation buffer does not provide the required memory address translation, publishes a data processing transaction to another circuit 150, the transaction source circuit being configured to receive the data defining the required memory address translation as parsing of the data processing transaction. In an example embodiment, the memory address translation circuit 130 further includes another circuit 150; wherein, the other circuit is configured to interact with the data memory 120 and publish a transaction as another data processing transaction to obtain data defining the required memory address translation from information stored in the data memory; the other circuit includes another instance of circuits 520, 530, 540, the other instance being configured to control the processing of the other data processing transaction.

[0053] Transaction processing that exploits caches and lists Figure 6 This is a simplified schematic flowchart illustrating the operation when a new transaction (Txn) (e.g., (a) a transaction related to an address translation not found in TLB 322 (or at least not found in µTLB 400) at TBU 140 and issued by the TBU to the TCU, or (b) a translation transaction to be issued by the TCU 150 for querying via main memory, etc., for resolution) needs to be processed at 600. It should be noted that although these examples relate to address translation transactions, the same techniques can be applied to other types of data processing transactions, such as those listed above as examples.

[0054] In step 610, it is determined whether the new transaction will actually be fulfilled by resolving any existing transaction in the system, or at least by resolving any transaction whose details are recorded in the hazard list and / or hazard cache. In some example embodiments, this detection is performed by checking if an entry with attributes corresponding to the new transaction 600 exists in the relevant hazard cache. If the answer is yes, control proceeds to step 620, where the new transaction is associated with another pending transaction to be executed or added to a list, such as, for example (but not exclusively), a linked list. At this point, the new transaction 600 can actually be discarded, as its resolution will be provided by resolving the already pending transaction.

[0055] However, if the answer in step 610 is no, then in step 630, data is stored, for example as an entry in the relevant harm cache, providing the characteristics or attributes of the new transformation 600, which can then be compared with other subsequent input transactions. In step 640, the new transaction is either published, queued for publication (in other words, publication has at least been initiated), or the new transaction is passed to the resolution process through the next processing stage.

[0056] The attributes or characteristics discussed above may include, for example, the address or address range to be converted, optionally other characteristics with the desired action, and optionally, an identifier for the transaction itself. In some example embodiments, step 610 may include checking not only the harm cache but also the harm list, or in other embodiments, the check may be performed only on the harm list. In fact, in some examples, a harm cache is not actually needed; the relevant information can be maintained in a single harm list.

[0057] At the overview level, it also refers to Figure 7 Here, the new transaction 700 discussed above is compared with entries in the cache to see if there are any cache entries whose attributes (such as the address range to be translated) correspond to those attributes of the new transaction 700, such that the new transaction will be executed by fulfilling the transaction that created the cache entry for it. Suppose such a cache entry 710 is found ( Figure 6 If the result of step 610 is "Yes", then the new transaction 720 is added to the linked list 740 of the transformation transactions as a new tail or final entry 730. Here, the first or first entry 750 in the linked list (transformation transaction A) is the transaction for which the cache entry 710 was first created. The transactions 700 added subsequently are B and C, and the most recently added new transaction 700 is the new tail entry 730. This provides an example in which the control circuit 1010 is configured to associate the given data processing transaction with the corresponding entry in the attribute storage circuit as the new last item in the linked list of data processing transactions associated with the entry in the attribute storage circuit when the comparator circuit detects that the given data processing transaction will be performed by the data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit.

[0058] In the negative result of step 610, a cache entry 710 corresponding to the new transaction is created, thereby eviction of previously saved cache entries according to the eviction policy (if necessary). Optionally, at this stage, a new (single item) list can be created, or the creation of the list can be postponed until the list includes at least two items. The latter result provides an example in which the control circuit 1010 is configured to create a new linked list, with the given data processing transaction as the starting list item, when the comparator circuit detects that a given data processing transaction will not be fulfilled by a data processing transaction whose attribute data is saved by any entry in the attribute storage circuit.

[0059] Although the example is a linked list (which makes it easier or more convenient to traverse the list in subsequent parsing phases), the list can be an unordered list of associated transaction heaps.

[0060] In the case of ordered or linked lists, each item in the list may optionally be linked to a pointer to the next list item (in... Figure 7 This is schematically represented by arrow 760. Each item in the list can optionally be associated with a "tail flag" or "tail indicator" 770, which is essentially an indicator of whether a pointer to the next item is valid (assuming that the tail or final list item will not have a valid next item pointer). In the example shown, the tail flag is 0 for items that are not the last item in the list, and 1 for the last item in the list.

[0061] Whenever a new transaction is identified that does not yet have a corresponding cached entry, the transaction is either published or queued for publication until it is resolved. Therefore, in Figure 7 In the example, transaction A 750 has been published or is queued for resolution.

[0062] refer to Figure 8 In step 800, the parsing of the pending transaction is received. For a conversion issued by the TBU to the TCU (and therefore related to hazard lists 312 and 324), step 800 refers to the parsing returned by the TCU to the TBU. For a transaction issued by the TCU and parsed via a memory query (via the conversion controller 500), step 800 corresponds to the completion of page table traversal and the generation of the parsing for the conversion to be passed back to the TBU.

[0063] The resolution is identified by the transaction identifier (the identifier of the transaction initiated or published for resolution), so a response to the transaction defined by the specific identifier can be returned in step 810.

[0064] In step 820, the detection list (or Figure 7Are there any other transformation transactions in the linked list (of the type shown) that were earlier identified as being performed by the resolution of the original transaction and, therefore, are associated as a group of transactions? If the answer is yes, control proceeds to step 830, where they are accomplished by returning the response received in step 800, as if they were responses or resolutions of those listed associated transactions. This process can be performed cyclically or on other basis and can be referred to as “unwinding” the list. Control then proceeds to step 840, where processing of this particular resolution ends. A negative result from step 820 also proceeds to step 840.

[0065] refer to Figure 9 Suppose that (in step 800) a transaction response 900 with the ID of transaction A is received, where transaction A is... Figure 7 If the first item in the list is selected, then in step 810, the response to transaction A is returned as 910.

[0066] exist Figure 7 The list also includes other transactions B, C, and ( Figure 7 (New transactions received in the process). In step 830, transaction response 900 is returned in the same manner as responses to transactions B 920, C 930, and D 940, for example, in consecutive clock cycles.

[0067] Therefore, it can be seen that each transaction in the list has been serviced, with either parsing or a response provided, but at the cost of processing only the first transaction in the list. Other transactions are serviced by reusing the response generator to serve the first transaction in the list. This can improve... Figure 1 The operational efficiency of one or both of the TBU and TCU in the system can be improved, for example, by reducing the number of conversions that must be parsed in subsequent stages, by reducing the data flow between the TBU, TCU and memory, and by reducing the overall workload of the TCU and / or memory.

[0068] For lists or groups other than linked lists, any transaction in the group can be sent for resolution, and in response to this resolution, responses can be provided for other transactions in the group. In other examples, more than one transaction in the group can be sent for resolution; for example, in response to the first transaction that is successfully resolved, responses can be sent for some or all of the other transactions (potentially canceling any unfulfilled transactions at that stage).

[0069] Figure 10 This schematically illustrates an overview of some structural aspects of the hazard cache and hazard list for either or both of the TBU and TCU as described above. Figure 10 In the middle, it shows the relationship with Figure 6 and Figure 7The relevant operation (input of a new transaction). The input transaction 1000 is provided to the control circuit 1010 (which may be provided as a distributed control circuit with separate parts for processing the hazard cache and the hazard list). In the case of the TBU, the control circuit is configured to query the TLB 1020 and, possibly, use the comparator circuit 1030 in parallel to compare the attributes of the input transaction 1000 with each entry in the hazard cache, i.e., entries 0 to N 1040.

[0070] If the required transformation is found in μTLB 400, the control circuit 1010 terminates processing here. The transformation obtained from μTLB 400 is returned as a response to transaction 1000.

[0071] Therefore, in the example embodiment, the following processing is performed only if the required transformation is not found in µTLB 400. In other words, processing can be initiated during the search in main TLB 410, and if a resolution is indeed found in the main TLB, this processing can be aborted (if applicable).

[0072] The comparison performed by comparator circuit 1030 provides... Figure 6 The function of step 610 is as follows. The attributes of the new transaction ensure that, when compared with the attributes stored in cache entry 1040, the new transaction will be fulfilled by fulfilling any transaction that holds the cache entry. If the answer is yes, control circuit 1010 generates a control signal to "append" the new transaction to the list associated with a cache entry that matches the cache entry; if the answer is no, control circuit 1010 generates a control signal to create a new list and a new cache entry. It should be noted that control circuit 1010 can operate a replacement strategy, thereby selecting cache entries to be deleted according to this strategy in order to make room for the cache entry associated with the new transaction 1000 (if needed).

[0073] While these operations are being performed, the control circuit 1010 monitors the check of the main TLB 410, which may be slower than the check of the µTLB 400.

[0074] The occurrence of the "create" operation and the absence of related transformations in the main TLB cause the control circuit 1010 to control the publication of the transaction 1050 (or at least queue it for publication) for resolution by the next stage of processing (such as the TCU). In the sense that the transaction is not published for resolution, the occurrence of additional operations will cause the control circuit 1010 to abandon or discard the transaction.

[0075] In response to a "create" or "attach" operation, the hazard list 1060 can be modified to initiate a new list or to add transaction 1000 as a new tail item to an existing list. In the second embodiment, which will be discussed below, the list is not modified until an existing entry in the cache is replaced.

[0076] The hazard list 1060 can be stored by a list memory to store data of at least those transactions that are not currently saved in the attribute memory within a set of associated data processing transactions.

[0077] therefore, Figure 10 An example of a circuit is provided, the circuit comprising: The attribute storage circuit 1040 has multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by the transaction source circuit 110. Comparator circuits 1010 and 1030 are used to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage circuit to detect whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit; and The control circuit 1010, when the comparator circuit detects that a given data processing transaction will be performed by a data processing transaction in which attribute data is stored in the corresponding entry in the attribute storage circuit, associates the given data processing transaction with the corresponding entry in the attribute storage circuit to form a set of associated data processing transactions. The control circuit 1010 includes an output circuit 1012 (hereinafter), which, in response to the parsing of a data processing transaction in a set of associated data processing transactions, provides a parsing to the transaction source circuit as a parsing for each of the associated transactions.

[0078] In other words, such as Figure 10 As shown, the control circuit has the function of supervising the filling of the hazard cache and hazard list, as well as the output of the transaction response as described above (see reference below). Figure 11 (As discussed).

[0079] refer to Figure 11 Regarding the input parsing 1100 for the transformation transaction, the control circuit 1010 again controls the comparison with the list 1060 and / or entry 1040 in the vulnerability cache to detect which other transactions (if any) need to publish this parsing, as if it were a response to another transaction. The output circuit 1012 of the control circuit 1010 controls the publication 1110 of transaction responses to all relevant transactions, and also controls the writing of newly received transformations to at least μTLB 400 in TLB 420.

[0080] Regarding the operational structure of the hazard list and hazard cache, two example implementations will now be described.

[0081] First Example Implementation In the first embodiment, the control circuit 1010 is configured to store data defining the data processing transaction in a list memory in response to creating an entry for the data processing transaction in the attribute memory.

[0082] refer to Figure 12 Assume a new transaction A is received (e.g., Figure 12 (As shown on the left), and the comparator circuit 1030 did not find any matches among the existing cache entries related to valid cache entries. In this example, the initiator has only one entry, namely the list of transactions A (as shown on the left). Figure 12 (As shown on the right), and also generates a cache entry with the attribute of transaction A to allow a set of associated transactions to be generated from it. The initiation of a new cache entry provides an example of control circuit 1010, which is configured to generate an entry from a given data processing circuit for storage by the attribute storage circuit when the comparator circuit detects that a given data processing transaction will not be performed by a data processing transaction whose attribute data is saved by any entry in the attribute storage circuit.

[0083] An example of these operations performed on a newly received transaction A is provided, where the given data processing transaction (as described above, comparing and processing the harmful cache) is a data processing transaction recently initiated by the transaction source circuit.

[0084] Transaction B can be fulfilled through the resolution of transaction A, and therefore, it is added to the list as a new tail item.

[0085] Similarly, transaction C can be fulfilled through the resolution of transaction A, and therefore added to the list as a new tail item.

[0086] Figure 13 An example logic structure of a hazard list circuit according to a first embodiment is schematically shown. A controller 1300 (via signal 1310) interacts with a hazard buffer circuit (e.g., forming part of controller 1010, interacting with another part of controller 1010 associated with the hazard buffer circuit). A set of "tail flop" 1320 includes multiple entries 1322, each entry having a logical left-hand side (LHS) and a right-hand side (RHS). Here and elsewhere in this specification, the terms "left" and "right" refer to convenient logical names for the respective portions of the co-addressed storage entries and do not represent any aspect of the physical or circuit layout.

[0087] An example of the use of LHS and RHS is provided in the first or second example embodiment, wherein the list store is configured to store data defining two or more data processing transactions as a single entry in the list store.

[0088] exist Figure 13 In this diagram, entries are shown as horizontally drawn portions and can be addressed by a transaction identifier (1324). The tail flip-flop 1320 is implemented as a "flip-flop," also known as a "flip-flop," and stores (in this example) one bit in each of the LHS and RHS for each entry 1322. Flip-flops are used because (a) they provide low latency and, in some examples, parallel access; and (b) the amount of data to be stored (two bits in total per entry) is relatively low, making the additional circuit overhead of using flip-flops instead of RAM entries relatively low. The tail flip-flop 1320 stores information indicating the state of a "tail item," in other words, an indicator indicating whether a particular item in the linked list of items forming the hazard list as described above is the final or tail item in this linked list.

[0089] The pointer RAM 1330 is also arranged into multiple entries 1332, each addressable by a transaction identifier 1334, and each entry has an LHS and RHS. Typically, the pointer RAM 1330 is implemented as RAM (e.g., SRAM), but if the number of pointers to be stored makes this a feasible design decision, it can be implemented by triggers. The pointer RAM 1330 provides pointers to subsequent items in the linked list that forms the aforementioned hazard list.

[0090] Addressing the tail trigger 1320 and pointer RAM 1330 via the transaction identifier means that, in at least the example embodiment, for each possible value of the transaction identifier, there will be a list of "entries" in each of the tail trigger 1320 and pointer RAM 1330. For example, if the transaction identifier has a valid available value (decimal) between 0 and 7, each of the tail trigger 1320 and pointer RAM 1330 will provide eight entries (each with an LHS and RHS) indexed by the transaction ID between 0 and 7.

[0091] The purpose of LHS and RHS is actually to store information related to two linked list items in a single entry 1322, 1332. This allows information related to multiple items to be retrieved in a single read operation and in a practical circuit implementation, thus avoiding the use of so-called RAM-to-RAM cycling, which can be undesirable for timing purposes as well as for diagnostics and other confidence tests of the circuit design.

[0092] Now refer to Figure 12 and Figure 13 The operation of this example embodiment will be described below. In this example, three consecutively received transactions are represented by A, B, and C. For the purposes of discussion, it is assumed that the parameters or attributes of the transactions (e.g., the address range in the VA space to be translated) cause each of transactions B and C to be fulfilled through the resolution of transaction A. Therefore, in the example embodiment, a hazard cache and a hazard list are used to associate transactions A, B, and C together; in these examples, this means linking the three transactions to a linked list.

[0093] For illustrative purposes, assume that these three transactions are associated with transaction identifiers, as shown below: Received transaction A Upon receiving transaction A, it is assumed that the entry for a previously received transaction is not currently stored in the hazard cache, causing transaction A to be fulfilled by serving the previously received transaction. In other words, the comparison performed by comparator 1030 does not find a match. Therefore, the actions taken by controller 1010 include: (a) creating a new entry in the hazard cache, where TxnID = start ID = 0 and validity = valid; and (b) publishing a “create” message to the hazard list and controller 1300. As described above, the publication of the “create” message initiates the publication of transaction A (or at least queues it for publication) for fulfillment by the next level circuitry. This provides an example where control circuitry 1010 is configured to initiate the publication of a given transaction for resolution when the comparator circuitry detects that a given data processing transaction will not be fulfilled by a data processing transaction for which attribute data is stored by any entry in the attribute storage circuitry.

[0094] In the hazard list, the response to the "Create" message is to set the tail flag in the LHS of the tail trigger entry addressed by TxnID = 0. This effectively indicates that transaction A (TxnID = 0) is currently at the beginning and end of the single-linked list. Since there are no subsequent items in the linked list, no pointer is set in pointer RAM 1330 at this stage.

[0095] This arrangement provides an example where the list store includes entries that can be addressed by the transaction identifier of a data processing transaction within a set of associated data processing transactions.

[0096] Received transaction B Here, comparator 1030 obtains a match indicating that a hazard cache entry related to transaction A is stored in the hazard cache, and transaction B will be performed through transaction A. Therefore, the action taken by controller 1010 includes issuing an "additional" message to the hazard list and controller 1300. As described above, issuing the "additional" message initiates the abandonment or discarding of transaction B, so that transaction B will not be published or will be queued for publication so that it can be performed by the next level circuit.

[0097] The response to the "Additional" message in the hazard list is as follows: The tail trigger is accessed again at the entry addressed by the transaction identifier of transaction A (because only the LHS of this entry has been occupied so far). The tail indicator at the LHS of this entry is set to 0 (in this example, indicating that the first item in the linked list is "not the tail"), but the tail indicator at the RHS of this entry is set to 1 (indicating that the second item in the linked list is the "tail" of the linked list).

[0098] The pointer RAM 1330 is also accessed at the entry addressed by the transaction identifier of transaction A, and at the LHS of this entry, the pointer identifying transaction B (in other words, the pointer to TxnID = 2) is inserted.

[0099] Received transaction C Here, comparator 1030 again obtains a match, indicating that the hazard cache entry related to transaction A is stored in the hazard cache, and transaction C will be fulfilled by fulfilling transaction A. Therefore, the action taken by controller 1010 includes issuing an "additional" message to the hazard list and controller 1300. As described above, issuing the "additional" message will initiate the abandonment or discarding of transaction C, so that transaction C will not be published or will be queued for publication so that it can be fulfilled by the next level circuit.

[0100] In the hazard list, the response to the "additional" message is again as follows: Visit the tail trigger again at the entry addressed by the transaction identifier of transaction A to set the tail indicator at the RHS of this entry to 0 (not the tail).

[0101] The tail trigger is accessed at the entry address via the transaction identifier of transaction C, and the LHS tail indicator is set to 1 (the third item in the linked list is the tail of the list).

[0102] Alternatively, you can access the pointer RAM 1330 (which is still an empty entry at its RHS) at the entry addressed by the transaction identifier of transaction A, and insert a pointer that identifies transaction B (in other words, a pointer to TxnID = 4) at the RHS of this entry.

[0103] Figure 14 A more detailed, illustrative working example is provided, showing two lists of linked transactions. The first list of linked transactions begins with transaction 1400, for which a creation message was published (by...). Figure 14 The value 1 in the first row indicates that the resulting list of links is shown by illustrative path 1410. The second list of links begins at transaction 1420 and follows illustrative path 1430. Figure 14 It also has a representation of a so-called payload 1440, which may optionally be stored in an optional payload RAM that also has LHS and RHS and can be addressed by a transaction identifier. Line 1450 indicates the location where the new item should be stored in the tail trigger (and if used, in the pointer RAM and payload RAM accordingly), while line 1460 indicates the previously used locations in the tail trigger, pointer RAM, and optional payload RAM.

[0104] Figure 14 The representation is in Figure 14 The graph shows a column starting from transaction 1400, representing consecutive transaction reception and processing cycles. This representation is continued in [the following text is incomplete and requires further context]. Figure 15 and Figure 16 , Figure 15 and Figure 16 Indicate respectively upon receiving Figure 14 The set of tail triggers shown is a transaction-period trigger ( Figure 15 ) and pointer RAM ( Figure 16 The contents of the tail trigger and pointer RAM are represented by the corresponding row addressed by transaction identifiers 1500 and 1600, and plotted as (LHS, RHS) to indicate the two items within each entry. Note that writes to the tail trigger and pointer RAM are shown as occurring (or at least completing) within one cycle after the relevant transaction has been received. Figure 15 and Figure 16 The evolution of the contents of the tail flip-flop and pointer RAM follows the principles described above.

[0105] Expand the list by reading from the tail trigger and pointer RAM. The output circuit is configured to, in response to the parsing of a data processing transaction in a set of associated data processing transactions, detect whether the entry related to the parsing is saved in the attribute storage memory, and detect whether the list memory currently stores data that defines a set of associated data processing transactions that includes the transaction that has been parsed.

[0106] Therefore, in response to receiving a parsed transaction for a specific transaction (e.g., receiving a VA translation from the next-level circuit – in this example, assuming this is for TxnID 0), the following steps are performed: Update μTLB Initiate an update to the main TLB (note that this may be a slightly slow process). Comparator 1030 compares transaction identifier 0 with those identifiers stored in the vulnerability cache to identify the first item in the linked list. Controller 1010 invalidates the harm cache entry to prevent additional list items from being appended to the harm cache entry. Controller 1300 checks the LHS of the tail trigger entry for transaction identifier 0. If this is a "1" indicating "tail of the list," a transaction response is returned for transaction identifier 0, but the process then stops. However, if the LHS of the tail trigger entry is "zero," controller 1300 checks the LHS of the pointer RAM for this entry, which indicates the next transaction 2 in the linked list. Whether this transaction is at the tail of the list is indicated by the RHS of the returned tail trigger entry for transaction identifier 0; if not, the RHS of the pointer RAM for the returned transaction identifier 0 indicates the next transaction 4 in the linked list. Now that the LHS and RHS of the entry with TxnID = 0 have been checked, the next check will be for the LHS of the entry with TxnID = 4, and so on in the linked list.

[0107] Invalidation of entries in the cache is harmful. An entry in the cache that may be compromised may be invalidated in response to one or more of the following conditions: Analyze the transaction that initially created the harmful cache entry. Controller 1010 detects that the linked list has reached the maximum allowed or threshold number of entries, for example, 16 entries. (Optionally, limiting the maximum number of entries in the hazard list can provide an effective and easily implemented method to prevent one or more very large hazard transaction lists from blocking other lists from progressing after the expansion process of a large list has begun (sometimes referred to as the "starvation" problem). This is considered useful for avoiding starvation, especially (but not exclusively) in systems with multiple upstream agents attempting to access shared downstream resources.)

[0108] In response to a newly received transaction, it is required to provide available space in the vulnerability cache. Regardless of the reason for invalidation, the effect is that no other list items can be appended to the list associated with the cached entry. This can be achieved by setting the validity flag of the cached entry to "invalid," or (in other embodiments discussed below) by setting a "do not append" flag or indicator associated with the entry.

[0109] Second Example Implementation In the second embodiment, the control circuit 1010 is configured to store the data defining the data processing transaction in a list memory in response to information relating to a data processing transaction that is removed from the attribute storage circuit by storing data defining the attributes of another data processing transaction.

[0110] Figure 17 and Figure 18 Aspects of the second embodiment are schematically illustrated, wherein, unlike the first embodiment where the hazard list is represented by multiple storage entities (such as tail triggers and pointer RAM), a unified list RAM 1700, 1800 is provided. Note that in Figure 17 In this context, each RAM entry 1720 (addressable via TxnID as before) stores a set of values. Figure 18 In this configuration, each RAM entry has an LHS 1810 and an RHS 1820. As before, this feature allows two sets of data to be read in a single operation and can help avoid RAM-to-RAM loops.

[0111] RAM entry 1720 (or one of LHS 1810 and RHS 1820) provides a next transaction pointer 1722 and a tail flag 1724. The next pointer 1722 indicates the next item in the linked list, while the tail flag indicates whether this is the tail or the last entry in the linked list. Optionally, a payload item (in...) can be provided at each RAM entry or at each LHS / RHS of a RAM entry. Figure 17 or Figure 18 (Not shown in the image).

[0112] Harmful caches can be similarly viewed as group entries or single entries (1710, Figure 10 ) or entry 1830 which has LHS 1840 and RHS 1850 ( Figure 18 In each case, the following are stored: Transaction ID TxnID 1712, Valid Flag 1714, Beginning ID 1716 indicating the beginning of the related linked list, and "Do Not Attach" (DNA) Flag 1718. Figure 18 In the LHS, the initial ID and DNA flags are shared by both the LHS and RHS.

[0113] The key difference between the first and second embodiments is that in the first embodiment, the hazard list is always complete; that is, the linked list of transactions can be fully recovered from the hazard list at any time. In the second embodiment, the contents of hazard cache entries are not written to the hazard list until they are replaced by new data written to the hazard cache. This means that to recover the linked list, both the hazard cache and the hazard list need to be checked.

[0114] For illustrative purposes, let's again assume that these three transactions are associated with transaction identifiers, as shown below: Received transaction A Upon receiving transaction A, it is assumed that valid entries from previously received transactions (and entries without the "DNA" flag set to "Do Not Attach") are not currently stored in the hazard cache. Therefore, transaction A will be fulfilled by servicing the previously received transaction. In other words, the comparison performed by comparator 1030 did not find a match. Therefore, the actions taken by controller 1010 include (for Figure 17 (Example) Set the starting ID to 0 Set TxnID = 0 Set valid = 1 (i.e., valid). Set (or retain) DNA = 0 (can be appended) Do not write anything to RAM 1700. for Figure 18 In the embodiments described, these operations are performed for LHS 1840.

[0115] Received transaction B Here, comparator 1030 obtains a match, indicating that the hazard cache entry related to transaction A is stored in the hazard cache, and transaction B will be executed by executing transaction A. Therefore, the actions taken by controller 1010 include (for Figure 17 (Example) The hazard cache entries are now full, therefore, the entries related to transaction A are written to the hazard list as follows: o Writes the entry addressed by TxnID = 0 onxtPtr = 2 o tail = 0 (the last item in the indicator list is still in the hazard cache) In cache entry 1710: o Keep the starting ID = 0 o Set TxnID = 2 o Retains validity = 1 (i.e., valid) o Retain DNA = 0 (can be appended) for Figure 18 In this embodiment, there is still space in the RHS cache entry; therefore, the information written to the RHS is as follows: Keep the starting ID = 0 Set TxnID = 2 Set valid = 1 (i.e., valid). The information written at LHS is as follows: Retain valid = 1 (Note that in other examples, when the RHS validity flag is set to 1, the LHS validity flag can be set to 0, because the presence of valid data on the RHS indicates that there must also be valid data in the LHS.)

[0116] Received transaction C Comparator 1030 obtains a match again, indicating that the hazard cache entry related to transaction A is stored in the hazard cache, and transaction B will be fulfilled by fulfilling transaction A. Therefore, the actions taken by controller 1010 include (for Figure 17 (Example) The hazard cache entries related to transaction B are written to the hazard list as follows: o Writes the entry addressed by TxnID = 2 onxtPtr = 4 o tail = 0 In cache entry 1710: o Keep the starting ID = 0 o Set TxnID = 4 o Retains validity = 1 (i.e., valid) o Set (or retain) DNA = 0 (can be appended) about Figure 18 In one embodiment, the LHS and RHS of cached entries (transactions A and B) are written to RAM 1800, and transaction C is written to the LHS of the cached entry: The hazard cache LHS and RHS entries related to transactions A and B are written to the hazard list as follows: o Writes the entry addressed by TxnID = 0 oLHS 1810 nxtPtr = 2 Tail end = 0 oRHS 1820 nxtPtr = 4 Tail end = 0 Transaction C writes LHS cache entry 1840 as follows: o Keep the starting ID = 0 o Set TxnID = 4 o Retains validity = 1 (i.e., valid) o Set (or retain) DNA = 0 (can be appended) Expand list in the second embodiment As mentioned above, this refers to the process of receiving a response from a transaction in a list (such as the initial transaction in this example) and iterating through the list so that it can return responses as if they were responses to each transaction in the list.

[0117] In the example of the hazard cache and hazard list just described, at a specific point in time, the total number of entries in the list is represented by the contents of lists in RAM 1700 and 1800 and the contents of the current cached entries. In the example below, the list can be "finalized" or moved entirely to RAM. However, assuming this has not yet occurred, the following steps can be performed to expand the list.

[0118] List finalization At any stage, one option available to controller 1010 is to "finalize" the list. This can be done, for example, if it is necessary to free up cached entries to make room for new cached entries corresponding to newly received transactions that do not constitute part of any existing linked lists. Figure 17 In the example, this involves: Using the techniques discussed above in conjunction with Transaction C, the current cache entry is moved to RAM. Invalidate cached entries or at least set DNA = 1 (attachment not allowed). exist Figure 18 Example case: If the LHS cache entry is recently written, move the LHS cache entry to the LHS of the RAM entry addressed by the TxnID of the previous transaction in the list; or If the RHS cache entry is recently written, then the LHS and RHS cache entries are moved to the LHS and RHS of the RAM entry addressed by the TxnID of the previous transaction referenced in the LHS cache entry. The finalized list will be fully qualified by the information in RAM 1700 and 1800. The tail ID of the final entry in the list will be "1" (indicating the tail item).

[0119] Detect finalized or non-finalized lists when expanding them. First, controller 1010 checks the cache to detect if a valid entry exists, whose starting ID value is equal to the transaction ID of the newly returned response.

[0120] If no valid entry is found, the relevant list is entirely stored in RAM 1700 and 1800, starting with the RAM entry addressed by the transaction ID of the newly returned response. The list is traversed as described in the heading "Finalized List" below.

[0121] In other aspects, if an entry is found in the cache, the controller sets the DNA flag to 1 (do not append any other entries to this list). The list is then iterated over as described in the heading "Non-finalized Lists" below.

[0122] Example – Iterating over a list of “non-finalized” lists To expand the list in this case, the cache is checked at each stage of the RAM read operation during list traversal to detect whether the next (actually the last) list item (or entry for a qualified LHS / RSH item) is held by the cache.

[0123] At once Figure 17 In other words: a) Return the response to the transaction identified by the response (910, Figure 9 ) b) Detect the TxnID of the returned response. c) Retrieve RAM entry 1700 addressed by TxnID d) For Figure 17 This indicates the next transaction in the list. Return the response for the next transaction (920, 930, ...). Figure 9 ); e) Assuming the tail ID is 0 (which will always be the case in the case of a non-finalized list), check the entries in the cache that have the transaction ID; f) If a cached entry is found, the last list item will be indicated. Return the response for this item and end. Otherwise, retrieve the RAM 1700 entry addressed by the next transaction ID. g) Repeat (d) and (e) until the RAM tail ID = 1, which indicates that the last transaction in the list (940, Figure 9 Alternatively, obtain the last transaction in the list from the cached entry in step (f).

[0124] At once Figure 18 In other words: a) Return the response to the transaction identified by the response (910, Figure 9 ) b) Detect the TxnID of the returned response. c) Retrieve RAM entry 1800 addressed by TxnID d) For Figure 18 The next transaction in the LHS indicator list. Returns the response for the next transaction (920, 930). Figure 9 ); e) Assuming the tail ID of the LHS is 0, the RHS indicates the next transaction in the list. Return the response for the next transaction (920, 930, ...). Figure 9 ); f) Assuming the RHS tail ID is 0 (which will always be the case in the case of a non-finalized list), check the entries in the cache that have the transaction ID; g) If a cached entry is found, the last list item will be indicated. Return the response for this item and end. Otherwise, retrieve the RAM 1800 entry addressed by the next transaction ID. h) Repeat (d) and (e) until the RAM tail ID = 1, which indicates that the last transaction in the list (940, Figure 9 Alternatively, obtain the last transaction in the list from the cached entry in step (f).

[0125] Example – Iterating through the “finalized” list To unpack the list in this scenario, the same process is performed, but it will fail on each cache check. For convenience, execution could stop after a single failure, or from a circuit perspective, it might be more convenient to continue running the cache check. In any case, the unpacking process will continue until the tail ID = 1, indicating that the last transaction in the list (940, Figure 9 ).

[0126] Example uses of the first and second embodiments The distributed arrangement of the first embodiment is particularly suitable for use in a TBU as described above, while the arrangement of the second embodiment is particularly suitable for use in a TCU as described above. However, either embodiment can be used in either circuit.

[0127] Overview and examples of technical effects In summary, embodiments of this disclosure can ensure or provide greater guarantees regarding cache consistency at the expense of cache maintenance operations such as invalid requests, without introducing the need for a fully invalid decoder and invalid matching logic. Therefore, there is no need to store any additional request data required only for invalid matches.

[0128] The same mechanism, requiring very little additional logic, can disrupt malicious transaction patterns that could lead to so-called starvation situations (such as a number of transaction groups exceeding a threshold, such as the value 16 mentioned above as an example).

[0129] The purpose of using a hazard cache is to reduce the number of downstream transactions by matching incoming transactions and tracking hazard transactions. Once a response is received from a downstream transaction, the hazard circuitry applies the response to all applicable hazard transactions, thus potentially satisfying upstream request groups without the additional area and power overhead of a regular cache.

[0130] However, this structure behaves similarly to a regular cache and can also be affected by cache maintenance operations (such as invalidation operations). Therefore, hazardous caches should ensure that they do not apply outdated response payloads to unfolded hazardous transactions.

[0131] In other cases, this would require implementing a completely invalid decoder and invalid matching logic to identify transactions affected by invalid operations. This decoder and matching functionality would represent significant design complexity and require substantial silicon area and power consumption. In embodiments of this technique, at least such requirements are avoided.

[0132] The ability to satisfy invalid requests without designing and implementing corresponding invalidation logic offers an advantage over other example layouts.

[0133] These techniques achieve this by simply closing the threat list when any invalid request arrives at the threat cache, meaning there's no need to decode invalid operations at all. Only invalid requests need to be detected. Therefore, there's no need to store any additional request data that's only needed for invalid matches.

[0134] Once an invalid request is detected, all entries in the harm cache become invalid. Therefore, new transaction requests must create new harm lists, as it's no longer possible to append to previous lists. The harm lists created up to this point remain valid and maintained in a RAM-based structure, and can still be fulfilled with responses that begin with their corresponding list entries. The only visible effect of invalidation is that new input transactions from upstream need to use a new entry to start new harm lists and append to them. Therefore, for each newly created list, a single request needs to be sent downstream. In this way, the mechanism ensures that invalidated harm requests can only be fulfilled with invalidated responses.

[0135] In addition, the same mechanism for closing the hazard list enables the technology to handle malicious traffic patterns that could lead to starvation. The only difference is that instead of closing all currently open lists due to invalid operations, a single list is only closed after a certain number of additional operations have been calculated for the hazard list. This simple mechanism ensures that individual transaction streams that are harmful to each other do not block the response channel for an indeterminate period of time. The only additional logic required is a simple counter for each hazard cache entry. Unfortunately, prematurely closing the hazard list due to reaching the additional operation limit would result in the creation of new lists and additional downstream transactions. However, depending on the configurable counter limit, the impact on power and performance can be very low, while still requiring only a small additional logical overhead to ensure that all other hazard transactions progress.

[0136] Traditional methods of ensuring progress on all risky tasks require at least multiple unfolding slots, plus an arbitrator with a built-in anti-starvation mechanism, which would require more silicon area and significantly increase design / verification complexity.

[0137] Compared to the high complexity and significantly larger silicon area of ​​conventional methods, the new mechanism will have advantages in many applications due to its low complexity and smaller performance / power impact.

[0138] Method Overview Figure 19 This is a schematic flowchart illustrating a method comprising the following steps: Receive data processing transactions from the transaction source circuit (in step 1900), each data processing transaction being defined by a corresponding set of one or more transaction attributes; Save (in step 1910) data that defines at least one transaction attribute of one or more corresponding data processing transactions; The transaction attributes of a given data processing transaction are compared with the saved data (in step 1920) to detect whether the given data processing transaction will be parsed by any data processing transaction that saves attribute data; When the comparison step detects that a given data processing transaction will be performed by the corresponding data processing transaction that stores attribute data, the given data processing transaction is associated with the corresponding data processing transaction detected by the comparison step (in step 1930) to form a set of associated data processing transactions; and In response to the parsing of the data processing transactions in the set of associated data processing transactions, a parsing is provided (in step 1940) to the transaction source circuit as a parsing for each of the set of associated transactions.

[0139] In this application, the phrase "configured as..." is used to indicate that the elements of the device have a configuration capable of performing the defined operations. Herein, "configuration" refers to the arrangement or manner of interconnection of hardware or software. For example, the device may have dedicated hardware that provides the defined operations, or a processor or other processing device may be programmed to perform the function. "Configured as" does not imply that the elements of the device need to be changed in any way to provide the defined operations.

[0140] Although illustrative embodiments of the present technology have been described in detail with reference to the accompanying drawings, it should be understood that the present technology is not limited to those precise embodiments, and various changes, additions, and modifications can be made by those skilled in the art without departing from the scope and spirit of the technology as defined by the appended claims. For example, features of the dependent claims can be combined with features of the independent claims in various ways without departing from the scope of the present technology.

Claims

1. A circuit for data processing, comprising: An attribute storage circuit having multiple entries to store data defining at least one transaction attribute of one or more corresponding data processing transactions initiated by a transaction source circuit; A comparator circuit is used to compare the transaction attributes of a given data processing transaction with the data stored in the attribute storage circuit to detect whether the given data processing transaction will be parsed by any data processing transaction whose attribute data is stored by the corresponding entry in the attribute storage circuit. as well as The control circuit, when the comparator circuit detects that the given data processing transaction will be performed by a data processing transaction whose attribute data is stored in the corresponding entry in the attribute storage circuit, associates the given data processing transaction with the corresponding entry in the attribute storage circuit to form a set of associated data processing transactions; A list storage device is used to store data that defines at least those data processing transactions that are not currently saved by the attribute storage circuitry within the set of associated data processing transactions. The control circuit includes an output circuit that, in response to the parsing of a data processing transaction in the set of associated data processing transactions, provides the parsing to the transaction source circuit as the parsing for each of the set of associated transactions. The list store is configured to store data defining two or more data processing transactions as a single entry in the list store.

2. The circuit according to claim 1, wherein, The control circuit is configured to generate an entry stored by the attribute storage circuit from the given data processing circuit when the comparator circuit detects that the given data processing transaction will not be performed by a data processing transaction whose attribute data is saved by any entry in the attribute storage circuit.

3. The circuit according to claim 2, wherein, The control circuit is configured to initiate the publication of the given data processing transaction for parsing when the comparator circuit detects that the given data processing transaction will not be performed by a data processing transaction whose attribute data is stored by any entry in the attribute storage circuit.

4. The circuit according to claim 1, wherein, The given data processing transaction is the most recently initiated data processing transaction by the transaction source circuit.

5. The circuit according to claim 2, wherein, The set of associated data processing transactions includes a linked list of data processing transactions.

6. The circuit according to claim 5, wherein, The control circuit is configured to associate the given data processing transaction with the corresponding entry in the attribute storage circuit when the comparator circuit detects that the given data processing transaction will be performed by a data processing transaction whose attribute data is stored in the corresponding entry in the attribute storage circuit, as a new last item in the linked list of data processing transactions associated with the entry in the attribute storage circuit.

7. The circuit according to claim 5, wherein, The control circuit is configured to: when the comparator circuit detects that the given data processing transaction will not be performed by a data processing transaction whose attribute data is stored by any entry in the attribute storage circuit, create a new list of links with the given data processing transaction as the starting list item.

8. The circuit according to claim 1, wherein, The control circuit is configured to store data defining the data processing transaction in the list memory in response to creating an entry for the data processing transaction in the attribute storage circuit.

9. The circuit according to claim 1, wherein, The control circuit is configured to store the data defining the data processing transaction in the list memory in response to information relating to a data processing transaction that is removed from the attribute storage circuit by storing data defining the attributes of another data processing transaction.

10. The circuit according to claim 9, wherein, The set of associated data processing transactions includes a linked list of data processing transactions.

11. The circuit according to claim 1, wherein, The list store includes entries that can be addressed by the transaction identifier of the data processing transaction in the set of associated data processing transactions.

12. The circuit according to claim 1, wherein, The output circuit is configured to: detect whether an entry related to the parsing of a data processing transaction in the set of associated data processing transactions is saved by the attribute storage circuit in response to the parsing of the data processing transaction in the set of associated data processing transactions, and detect whether the list memory currently stores data defining the following set of associated data processing transactions: the set of associated data processing transactions includes the transaction that has been received and parsed.

13. The circuit according to claim 1, wherein, The data processing transaction is an address translation transaction, which is used to request the conversion of the input memory address in the input memory address space into the output memory address space.

14. The circuit according to claim 13, wherein: (a) The input memory address is a virtual memory address; The input memory address space is a virtual memory address space; The output memory address is a physical address; and The output memory address space is a physical address space; or (b) The input memory address is a virtual memory address; The input memory address space is a virtual memory address space; The output memory address is an intermediate physical address; and The output memory address space is an intermediate physical address space; or (c) The input memory address is an intermediate physical memory address; The input memory address space is the intermediate physical memory address space; The output memory address is a physical address; and The output memory address space is the physical address space.

15. A memory address translation circuit, comprising: The circuit according to claim 13; An address translation buffer is used to store data that defines one or more memory address translations; A transaction source circuit, which, when the data currently stored in the address translation buffer does not provide the required memory address translation, issues a data processing transaction to another circuit, the transaction source circuit being configured to receive data that defines the required memory address translation as parsing of the data processing transaction.

16. The memory address translation circuit according to claim 15, comprising: The other circuit; The other circuit is configured to interact with the data memory and publish a transaction as another data processing transaction to obtain data defining the required memory address translation from the information stored in the data memory; The other circuit includes another instance of the circuit according to claim 5, the other instance being configured to control the processing of the other data processing transaction.

17. A method for data processing, comprising: Data processing transactions are received from the transaction source circuit, and each data processing transaction is defined by a corresponding set of one or more transaction attributes; Store data that defines at least one transaction attribute of one or more corresponding data processing transactions; The transaction attributes of a given data processing transaction are compared with the stored data to determine whether the given data processing transaction will be resolved by any data processing transaction that has stored attribute data. The list store stores data of at least those data processing transactions that are not currently saved by the save step within the set of associated data processing transactions. When the comparison step detects that the given data processing transaction will be performed by the corresponding data processing transaction that has stored attribute data, the given data processing transaction is associated with the corresponding data processing transaction detected by the comparison step to form a set of associated data processing transactions. In response to the parsing of a data processing transaction in the set of associated data processing transactions, the parsing is provided to the transaction source circuit as the parsing for each of the set of associated transactions; The list store is configured to store data defining two or more data processing transactions as a single entry in the list store.

Citation Information

Patent Citations

  • Transaction indentifier expansion circuitry and method of operation of such circuitry

    US20120290752A1

  • Data processing system and method for handling multiple transactions

    US20150199290A1

  • Hazard checking

    US20170091097A1

  • Transaction dispatcher for memory management unit

    US20190087351A1

  • Memory access scheduling using a linked list

    US20200081652A1