Efficient memory utilization in processing clusters with split and locked modes

JP7554602B2Active Publication Date: 2024-09-20ARM LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020142185
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-24
Filing Date
2020-08-26
Publication Date
2024-09-20
Estimated Expiration
2040-08-26

AI Technical Summary

Benefits of technology

【0008】 本技法のさらなる態様、特徴及び利点は、添付の図面とともに読まれるべき、実例の以下の説明から明らかになろう。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007554602000001
    Figure 0007554602000001
  • Figure 0007554602000007
    Figure 0007554602000007
  • Figure 0007554602000004
    Figure 0007554602000004
Patent Text Reader

Abstract

To provide an apparatus comprising a cluster of processing elements.SOLUTION: The cluster has a split mode in which processing elements are configured to process independent processing workloads, and a lock mode in which the processing elements comprise at least one primary processing element and at least one redundant processing element and each redundant processing element is configured to perform a redundant processing workload for checking correctness of a primary processing workload performed by the primary processing element. Each processing element has an associated local memory comprising a plurality of memory locations. A local memory access control mechanism is configured, during the lock mode, to allow the at least one primary processing element to access the memory locations within the local memory associated with the at least one redundant processing element.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technique relates to the field of data processing. [Background technology]

[0002] In some fields it can be important to provide processing hardware that provides some level of functional safety assurance. For example, this can be useful in processing systems designed for use in the automotive field, such as processors for controlling braking or steering systems in vehicles. One technique for providing functional safety can be to provide a locked mode, where a redundant processing element can replicate the same processing workload as is being performed by a primary (also called "primary") processing element, so that the results can be compared to detect errors.

[0003] When designing a cluster of processing elements (e.g., a cluster of central processing units (CPUs)), a split-lock configuration may be employed to provide flexibility as to how the processing elements are used. A decision may then be made (e.g., at integration time) as to whether to operate the cluster in a split mode, where the processing elements can be truly independent, allowing the processing elements to perform their own tasks, or in the above-mentioned locked mode (sometimes called lockstep mode), where the redundant processing elements are performing the same tasks as the primary processing elements.

[0004] It is a growing trend for silicon providers to have a "one silicon multiple use" model, where a processor cluster is built according to a split-lock design and then turned into either a split-only cluster or a lockstep-only cluster depending on the target application. This is often the case in designs where each processing element is given its own local storage resources (e.g. random access memory (RAM) structures) to implement, for example, cache structures or tightly coupled memory (also called scratchpad memory). These local storage resources can be efficiently utilized when operating in split mode (where each processing element can use its own local storage resources alone), but when operating in locked mode, the primary and redundant processing elements are running the same workload and share the same local storage resources. This generally means that when in locked mode, the local storage resources of the primary processing element are used, but the local storage resources of the redundant processing element are not used. Summary of the Invention [Means for solving the problem]

[0005] At least some examples are a split mode in which the processing elements are configured to process independent processing workloads; and a locked mode in which the processing elements include at least one primary processing element and at least one redundant processing element, each redundant processing element configured to execute a redundant processing workload for checking the correctness of a primary processing workload executed by the primary processing element; each processing element having an associated local memory comprising a plurality of memory locations; a cluster of processing elements; a local memory access control mechanism configured to allow at least one primary processing element to access memory locations in a local memory associated with at least one redundant processing element during the locked mode; An apparatus comprising:

[0006] At least some examples are 1. A method for operating a data processing apparatus comprising a cluster of processing elements, the method comprising: running independent processing workloads on processing elements of the cluster when operating the cluster in split mode; When operating the cluster in a locked mode, configuring the processing elements to include at least one primary processing element and at least one redundant processing element, executing a primary processing workload on the at least one primary processing element, and executing a redundant processing workload on the at least one redundant processing element for validating correctness of the primary processing workload executed by the primary processing element; providing each processing element with an associated local memory comprising a plurality of memory locations; employing a local memory access control mechanism to enable at least one primary processing element to access memory locations in a local memory associated with at least one redundant processing element during the locked mode; The present invention provides a method for operating a data processing apparatus, comprising:

[0007] According to other examples, a cluster of processing means, the cluster having a split mode, the processing means being configured to process independent processing workloads, the cluster having at least one primary processing means and at least one redundant processing means, each redundant processing means for executing a redundant processing workload for checking correctness of a primary processing workload executed by the primary processing means, and a locked mode, a cluster of processing means, each processing means having an associated local memory means comprising a plurality of memory locations; local memory access control means for enabling at least one primary processing means to access memory locations in a local memory associated with at least one redundant processing means during the locked mode; An apparatus is provided comprising:

[0008] Further aspects, features and advantages of the present technique will become apparent from the following description of examples, which should be read in conjunction with the accompanying drawings.

[0009] The present technique will now be further described, by way of example only, with reference to examples thereof illustrated in the accompanying drawings, in which: [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a schematic diagram of a processing cluster, according to an example implementation. [Figure 2A] 2 is a schematic diagram of the processing cluster of FIG. 1 when operating in split mode, in accordance with an exemplary implementation. [Figure 2B] 2 is a schematic diagram of the processing cluster of FIG. 1 when operating in a locked mode, according to an exemplary implementation. [Diagram 3] FIG. 2 illustrates a schematic diagram of a processing cluster operating according to an alternative exemplary implementation. [Figure 4A] FIG. 4 is a schematic diagram of the processing cluster of FIG. 3 when operating in split mode, in accordance with an exemplary implementation. [Figure 4B] FIG. 4 is a schematic diagram of the processing cluster of FIG. 3 when operating in a locked mode, according to an exemplary implementation. [Diagram 5] 1 is a flow diagram illustrating steps in a method for accessing tightly coupled memory (TCM) when a processing cluster is operating in a locked mode, according to one exemplary implementation. [Figure 6]1 is a flow diagram illustrating steps in a method for accessing a TCM when a processing cluster is operating in a locked mode according to a channel-based access mechanism employed in one exemplary implementation. [Figure 7] 4 is a flow diagram illustrating steps in a method for determining a channel for a TCM access request, according to one exemplary implementation. [Figure 8] 11 is a flow diagram illustrating steps in a method for determining a channel for a TCM access request, according to another example implementation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Some specific examples are described below, and it will be appreciated that the present invention is not limited to these examples.

[0012] As previously described, some systems may provide a split-lock configuration in which a cluster of processing elements may be operated in split or locked mode depending on the application. In split mode, each processor executes an independent workload, whereas in locked mode, one of the processors acts as a primary processor and at least one acts as a redundant processor. In locked mode, both processors execute the primary processing workload, with information (e.g., results of operations) generated by the redundant processor being used to check the correctness of the primary processor's operations.

[0013] Each processor in the cluster may be provided with an associated local memory. In one exemplary implementation, this associated local memory is a Tightly Coupled Memory (TCM), also known as a scratchpad memory. The TCM is generally provided close to the associated processor to improve access time, providing memory locations in the memory address space that are addressable by access requests issued by the associated processor. It will be appreciated that memory having its own address space may be referred to as golden memory, and thus, the TCM is a form of golden memory. Golden memory is not a cache and does not store a copy of data held in the main memory, but instead is allocated its own range of addresses in the memory address space that are separate from the addresses used when accessing the main memory. In split mode, each core may utilize its own TCM. In some systems, when operating in locked mode, both the primary and redundant processors execute the same workload, which runs within the memory address space of the primary processor. As a result, only the TCMs of the primary processor are available for use (in addition to any main memory resources) and the TCMs of the redundant processor are unused. The present technology provides a method by which both the TCMs associated with the primary and redundant processing cores may be accessed when in locked mode. Although the examples provided herein focus on TCMs, the techniques described herein may be adapted for use in connection with other local storage devices, such as local caches, thus enabling an increase in effective cache capacity when in locked mode.

[0014] In the following examples, a processing cluster operating in locked mode includes a primary processing element and a redundant processing element, however, it will be appreciated that the techniques may be applied to processing clusters having more than one primary processing element and / or more than one redundant processing element.

[0015] The apparatus of the present technology includes a cluster of processing elements having a split mode in which the processing elements are configured to handle independent processing workloads. In the split mode, the processing elements, which may otherwise be referred to as cores or simply processors, can execute different instruction sequences and access their own defined memory address spaces. Their individual memory address spaces may include regions that map to their local TCMs.

[0016] In the locked mode, the processing elements comprise at least one primary processing element and at least one redundant processing element. Each redundant processing element is configured to execute a redundant processing workload to check the correctness of the primary processing workload executed by the primary processing element. Depending on the workload, a decision can be made as to whether to operate in split mode or in locked mode. For example, safety-critical workloads can be executed in locked mode to minimize the probability of errors, when speed of processing can be sacrificed for correctness. These can be, for example, error sources due to hard circuit failures, elementary particle collisions or electromagnetic radiation. Conversely, in case of non-critical processing, a split mode, where errors can be tolerated, can be adopted to process the workload faster.

[0017] Each processing element may have an associated local memory that comprises a number of memory locations, which may be a tightly coupled memory (TCM) or any other memory local to the processing element, and may be constructed, for example, as a random access memory (RAM).

[0018] According to the present technique, a local memory access control mechanism is provided that is configured to enable at least one primary processing element to access memory locations in a local memory associated with at least one redundant processing element during a locked mode. That is, during a locked mode, the primary processing element has the ability to access main memory locations, local memory locations associated with the TCM of the primary processor, and local memory locations associated with the TCM of the redundant processor. As a result, effective local memory capacity is increased by incorporating the TCM of the redundant processor within an address space accessible to the primary processing element when executing in the locked mode.

[0019] In at least one instance of the technique, while in the locked mode, accesses to memory are performed in response to memory access requests issued by the primary processing element when executing a primary processing workload. Corresponding memory access requests issued by the redundant processing element when executing a redundant processing workload are prevented from causing an access to memory. When operating in the locked mode, the redundant processor is used to check that the processing performed by the primary processor is legitimate. Thus, when a memory access is performed, the request from the primary processor is propagated to the appropriate memory and the access is performed. This may be a read or write access. The redundant processing element issues a corresponding request when no error occurs, since the redundant processing element is processing the same instruction. This request is compared to the corresponding request from the primary processing element as a check that both processors are attempting the same type of access to the same memory location. The request from the redundant processor is not propagated to memory since this would lead to two requests to access the same memory location simultaneously. Rather, a request from the primary processor is propagated to an access to a memory location and allowed to complete, and the result of the access is propagated to both the primary and redundant processors. During the locked mode, the corresponding memory access request issued by the redundant processing element may therefore be used to check the correctness of the primary processing workload.

[0020] During the locked mode, at least a subset of memory locations of the local memory associated with at least one redundant processing element is included within a memory address space that identifies permissible memory addresses for use by the primary processing element, i.e., when operating in the locked mode, a memory map is provided that makes both the local memory associated with the primary processing element and the redundant processing element accessible to the primary processing element when executing a primary processing workload.

[0021] In at least some instances, the local memory access control mechanism comprises a local memory access control unit associated with each processing element in the cluster. The control unit controls access to the associated local memory of that processing element. Also, an interconnect signal path may be provided to couple an output of the local memory access control unit associated with the primary processing element to an input of the local memory associated with the redundant processing element. This means that during the locked mode, the memory access control unit associated with the primary processing element may be configured to employ the interconnect signal path to access the local memory associated with the redundant processing element upon detecting that a memory access request issued by at least one primary processing element seeks to access a memory location in the local memory associated with the redundant processing element. The control unit is thus capable of routing access requests issued by the primary processor to the local memory of the redundant processor via a dedicated signal path.

[0022] During the locked mode, the result generated as a result of a memory access request issued by the primary processing element is propagated to both at least one primary processing element and at least one redundant processing element. This ensures that the result of the memory access is the same and is given to both the redundant and the primary processor. This result may be used in further processing operations and therefore it is important for error checking comparison that both the redundant and the primary processor are given the same information. In the case of a read request, the result may be the value read from the local memory. In the case of a write request, the result may simply be an acknowledgement that the write operation has been completed.

[0023] In at least some instances, the primary processing element has a primary request channel and a secondary (also referred to as "secondary") request channel for issuing memory access requests. During the locked mode, the primary processing element is configured, in response to determining that access is required to a memory location in its associated local memory, to issue a memory access request on the primary request channel that identifies the memory location. That is, memory requests targeted at the local memory associated with the primary processing element are issued via the primary request channel.

[0024] The at least one primary processing element is further configured, in response to determining that access is required to a memory location within a local memory associated with the at least one redundant processing element, to issue a memory access request on the secondary request channel identifying the memory location, such that if the memory access request targets a local memory associated with the redundant processing element, the memory access request is issued over the secondary channel.

[0025] It should be noted that each of the processing elements may be constructed identically in one exemplary implementation, and thus a processing element used as a redundant processing element in locked mode may also have a primary request channel and a secondary request channel.

[0026] In an implementation employing the interconnect signal paths previously described, then during the locked mode, the local memory access control unit associated with the primary processing element may be configured to employ the interconnect signal paths to access the local memory associated with the redundant processing element upon detecting receipt of a memory access request over the secondary request channel. This means that no explicit determination of the intended destination of the access needs to be made by the local memory access control unit (that determination has already been made by the primary processing element), and the local memory access control unit is able to correctly route the request to the destination local memory depending on the channel over which it was received.

[0027] In alternative implementations, the processing elements may not issue access requests directly to their associated local memory access control units. Instead, the processing cluster may further comprise a common access port associated with the cluster's local memory, the common access port having a primary request channel and a secondary request channel for propagating memory access requests to the local memory. During the locked mode, the primary processing element may be configured to issue memory access requests via the common access port when executing the primary processing workload. This means that in response to determining that the memory access request seeks to access a memory location in the associated local memory of the primary processing element, the common access port is configured to propagate the memory access request on the primary request channel. Conversely, in response to determining that the memory access request seeks to access a memory location in the local memory associated with at least one redundant processing element, the common access port is configured to propagate the memory access request on the secondary request channel. With such an approach, the primary processing element no longer needs to figure out which local memory requires access; instead, that task is delegated to a common access port, thus improving the efficiency of operation of the primary processing element.

[0028] The common access port may have access to decision logic and / or a memory map that allows the common access port to determine which local memory the request targets. If the request targets the local memory of the primary processing element, the request is propagated towards the appropriate local memory via the primary channel. Similarly, if it is determined that the request targets the local memory of a redundant processing element, the request is propagated via the secondary request channel. As with the previous example where the primary processing element made this decision, this means that the memory access control unit does not need to make an active decision regarding the destination of the access, rather, it is inferred from the channel on which the request is received.

[0029] In at least one instance employing the common access port described above, the cluster still includes a local memory access control unit associated with each processing element and an interconnect signal path coupling an output of the local memory access control unit associated with the primary processing element to an input of the local memory associated with the redundant processing element. During the locked mode, the memory access control unit associated with at least one primary processing element may be configured to employ the interconnect signal path to access the local memory associated with the at least one redundant processing element upon detecting receipt of a memory access request issued via the common access port on the secondary request channel.

[0030] In some instances, each of the local memories has an associated private access port, and each private access port is coupled to both the primary request channel and the secondary request channel. The common access port is then configured to broadcast memory access requests on a selected channel to both the private access port of the primary processing element and the private access port of the redundant processing element. In this manner, both of the local access control units receive requests via the private access port on the appropriate channel, regardless of whether the access is targeted at a local memory associated with the redundant processing element or the primary processing element. This aids in checking the correctness of the primary processing workload by ensuring that appropriate checks can still be performed despite the fact that, in this exemplary implementation, the local access control units are not receiving requests directly from their associated processing elements.

[0031] In one exemplary implementation, the common access port may be configured to provide access to the local memory by devices external to the cluster of processing elements. Thus, another device outside the processing cluster may be able to access the local memory associated with the processing element through the common access port. For example, during startup, instructions and / or data may be loaded into the TCM by such an external device to define an initial state of the TCM for use by the associated processor. Data may be moved from main memory to the local memory during this process, but as previously explained, the TCM has its own address range in a memory address space separate from the addresses associated with main memory, so the data then resides in its own separate address space (i.e., such data is not simply a copy of cached data in main memory, but instead is processed entirely separately from the data in main memory once loaded into the TCM).

[0032] Each local memory may be used to store instructions for execution by an associated processing element. In one example, the local memory may thus take the form of an instruction TCM, with its own address space separate from the main memory address space. Such a form of local instruction memory may exist regardless of whether an instruction cache is also provided, which, if provided, is separate for the local instruction TCM.

[0033] The local memory may alternatively or additionally be used to store data that is manipulated by the associated processing element when executing instructions. Storing data in a local memory according to the present invention may mean that the data is more readily retrievable more quickly than data stored in main memory. Data stored in a local memory may, for example, be values ​​that need to be accessed periodically. Thus, in one instance, the local memory may be a data TCM, which, similar to the instruction TCM described above, may be provided as a separate structure to any data cache provided (unlike a cache, a data TCM does not cache a copy of data in main memory, but instead has its own range of addresses in a memory address space separate from the range of addresses associated with main memory).

[0034] A comparison circuit may be employed to compare, during the locked mode, memory access requests issued by the primary processing element with corresponding memory access requests issued by the redundant processing element to establish the correctness of the primary processing workload. When operating in the locked mode, both processing elements may be configured to process the same workload at the same time. Thus, a comparison is made between the outputs of the two processing elements, including the generated memory access requests, to check that no errors have occurred. This may include a simple comparator provided to check that the type (read / write) and target address of the memory access request issued by the primary processing element is the same as the corresponding request issued by the redundant processing element.

[0035] When the comparison circuit detects a mismatch between a memory access request issued by the primary processing element and a corresponding memory request issued by the redundant processing element, the comparison circuit may be configured to issue an error signal, which may be asserted immediately, e.g., to prevent the access from occurring, or may alternatively be used to create a log of the error but allow the memory request to propagate and complete the memory access in accordance with the request issued by the primary processing element.

[0036] Specific examples will now be described with reference to the figures.

[0037] FIG. 1 illustrates a schematic illustration of a processing cluster according to one exemplary implementation. Processing cluster 1 includes processing cores including core 0 200 and core 0' 400. Each core 200, 400 includes a processing element 201, 401 (also referred to as a processing pipeline) and an associated tightly coupled memory (TCM) 212, 412 inside a TCM wrapper 210, 410. The processing pipeline 201, 401 may issue requests to access the TCM 212, 412 directly to the TCM wrapper 210, 410. The TCM controller 211, 411 then manages the performance of requests from the processing pipeline 201, 401. Two channels of communication (sometimes referred to herein as p (primary) and r (redundant) channels) are provided between the processing pipelines and the associated TCM wrappers as illustrated in the figure, as indicated by pairs of arrows in each direction between those components.

[0038] In the following description, core 0' 400 may also be referred to as core 1 when operating in split mode, when core 0' 400 is processing a workload independent of core 0. When operating in locked mode, core 0' 400 may also be referred to as core 0' when processing a redundant workload, and may be considered a separate instance of core 0.

[0039] FIG. 2A illustrates the processing cluster of FIG. 1 when operating in split mode, according to one exemplary implementation. The dotted lines indicate functionality not used in split mode. In split mode, each of the processing pipelines 201, 401 may operate solely to execute their own processing workloads and may issue TCM access requests to the corresponding TCM wrappers 210, 410, which are illustrated in the diagram by solid downward arrows indicating that the requests are issued over the P channel. The appropriate TCM controller 211, 411 then propagates the request to the TCM 212, 412 of the same core over the Req-P channel. The access is completed in the TCM 212, 412, and the result is propagated to the TCM controller 211, 411, as indicated by the Resp-response channel. The response is then propagated from the TCM controller 211, 411 to the processing pipeline 201, 401 as indicated by the solid upward arrow between each TCM wrapper 210, 410 and the associated pipeline 201, 401. Note that in this scheme, the interconnect paths between the cores 200, 400 are not used. The multiplexers 414 and 416 of Core 0' 400 route requests (and corresponding responses) received on the primary channel to the TCM 412 (and TCM controller 411) of Core 0' 400 during split mode. In locked mode, requests (and responses) received on the redundant channel are routed to the TCM 412 (and TCM controller 411) of Core 0' 400.

[0040] FIG. 2B illustrates the schematic of the processing cluster of FIG. 1 when operating in locked mode, according to one exemplary implementation. Both core 200 with processing pipeline 201 and core 400 with processing pipeline 401 process the same workload when operating in locked mode, with core 0 200 acting as the primary core and core 0' 400 acting as the redundant core. A request issued by a processing pipeline 201, 401 is propagated through a channel depending on whether its target address is the TCM 212 of core 0 200 or the TCM 412 of core 0' 400. Thus, two channels are shown as downward arrows from the pipelines 201, 401 to the TCM wrappers 210, 410. The request is then propagated from the TCM controller 211 on the Req-P channel for requests targeting the TCM 212 of Core 0 200, and from the TCM controller 411 on the Req-R channel for requests targeting the TCM 412 of Core 0' 400.

[0041] A request issued from the TCM controller 211 of Core 0 200 on the Req-P channel is compared by comparator 300 with a corresponding request from the TCM controller of Core 0' 411 on the Req-P channel. However, the request from Core 0' is not propagated further. Instead, the request from the TCM controller 211 of Core 0 200 is propagated to the TCM 212 of Core 0 200 (assuming it is on the Req-P channel). A response to the request is sent from the TCM 212 to both the TCM controllers 211, 411 where it is received at the P channel input. The controllers then forward the result back to their respective pipelines 201, 401, again utilizing the p channel to indicate that the response came from the TCM 212 of Core 0 200.

[0042] A request issued from the TCM controller 211 of Core 0 200 on the Req-R channel is compared by a comparator 310 with a corresponding request from the TCM controller 411 of Core 0' 400. The request from Core 0 200 is propagated to the TCM 412 of Core 0' 400 (the redundant core) via the Req-R channel incorporating the interconnect signal path 305 passing between the two cores, and the access is completed in the TCM 412. The response is propagated to the TCM controller 211 of Core 0 200 and the TCM controller 411 of Core 0' 400 where it is received at the r-channel input. The result is then forwarded from the TCM wrappers 210, 410 back to their respective pipelines 201, 401, again using the r-channel to indicate that the response came from the TCM 412 of Core 0' 400.

[0043] It is clear from the diagram and its description that during locked mode, requests issued by the redundant processing pipeline 401 are not allowed to propagate to the target TCM 212, 412. Instead, they are used for comparison with requests issued by the primary processing pipeline 201. The results are propagated to both cores 200, 400 to ensure that both pipelines 201, 401 are given the same results.

[0044] It will be appreciated that in this configuration, the processing pipeline has a memory map that includes not only an address range for main memory, but also a separate address range for each TCM. Each processing pipeline, when generating an access request, can then determine whether a TCM is being accessed and therefore whether the request should be issued to an associated TCM wrapper. Additionally, each processing pipeline can determine which TCM contains the target memory address and therefore determine on which channel to output the request (i.e., the channel corresponding to the TCM being targeted).

[0045] FIG. 3 illustrates a schematic of an example processing cluster system according to an alternative exemplary implementation in which each pipeline is configured to issue an access request over the system interconnect, even if the access request is to a TCM (in the exemplary implementations of FIGS. 1, 2A and 2B, a pipeline may only do so if the access was to main memory, and route the request directly to its local TCM wrapper if the access was a TCM access, as previously described). Processing cluster 1 includes elements similar to those described with respect to FIG. 1 above. In addition, a system interconnect 3 is provided that can route requests to shared slave ports 2, 4. Shared slave port 4 is provided for redundancy to allow inspection of operations performed by shared slave port 2 when in locked mode. From shared slave port 2, requests may be propagated to core 0 200 via private slave port 220 and to core 0′ via private slave port 420.

[0046] 4A illustrates the processing cluster system of FIG. 3 when operating in split mode, according to an exemplary implementation. When operating in split mode, the processing pipelines 201, 401 process independent workloads. Accesses to both main memory and TCMs 212, 412 are issued by the processing pipelines to the system interconnect 3. The system interconnect 3 is capable of determining whether the target address of the request is in main memory or one of the TCMs 212, 412. Requests to access a TCM are routed to the shared slave port 2, which is capable of determining which of the TCMs 212, 412 is targeted. A request for Core 0 200's TCM 212 is routed over the Req-P channel to the private slave port 220 associated with Core 0 200, and the TCM controller 211 then controls access to the TCM 212 in a manner similar to that previously described in FIG. 2A, and the results from this request are propagated from the TCM wrapper 210 to the pipeline 201 over the P channel.

[0047] A request targeted to the TCM 412 associated with Core 0' 400 is routed by shared slave port 2 over the Req-P-Core 1 channel to the private slave port 420 associated with Core 0' 400. The slave port 420 forwards the request to the TCM wrapper 410, where it is serviced and the results are propagated back to the pipeline 401, which operates as previously described in Figure 2A. Thus, as in the example of Figure 2A, each processing pipeline 201, 401 has access to its respective TCM 212, 412.

[0048] FIG. 4B illustrates the processing cluster system of FIG. 3 when operating in locked mode, according to an exemplary implementation. In locked mode, Core 0 200 acts as the primary processor and Core 0' 400 acts as the redundant processor. Requests from the redundant pipeline 401 of Core 0' 400 are not issued to the system interconnect 3; instead, they are compared to the corresponding request from the primary processing pipeline 201 of Core 0 200 by a comparator 320 so that an error can be signaled in case of a mismatch. This request from the primary processing pipeline 201 is received by the system interconnect 3, which is able to determine whether the request targets main memory or a TCM. If the latter is true, the request is propagated to both shared slave port 2 and shared slave port 4. These shared slave ports independently determine which of the TCMs the request targets and send the request on the appropriate channel. Requests for TCM 212 are propagated over the Req-P channel from each of the shared slave ports 2, 4. These are compared by comparator 330 so that an error can be signaled in the event of a mismatch, and the request from shared slave port 2 is propagated over the P channel to both slave port 220 of core 200 and slave port 420 of core 400. The requests are then propagated over the P channel to the TCM controllers 211, 411 where they are then processed in a similar manner as described above with reference to FIG.

[0049] Similarly, requests for TCM 412 are propagated over the Req-R channel from each of slave ports 2, 4. The request from shared slave port 4 is compared to the request from shared slave port 2 by comparator 340, and the request from shared slave port 2 is propagated over the r-channel to both private slave port 220 and private slave port 420. The requests are then propagated over the r-channel to TCM controllers 211, 411 where they are then processed in a manner similar to that described above with reference to FIG.

[0050] The process of using both shared slave ports 2, 4, and the comparison using comparators 330, 340 ensures that the decision regarding which TCM is being accessed is performed correctly and that the request content generated by each slave port 2, 4 is equivalent. As with the previous exemplary implementation, the requests of the redundant processors are used to determine the legitimacy of the primary processing workload and are not propagated to the TCMs themselves.

[0051] By using the approach described with reference to FIG. 4B rather than the approach described with reference to FIG. 2B, the pipeline no longer needs to figure out which TCM is being accessed; instead, that task is delegated to the shared slave ports 2, 4 (also referred to herein as common access ports), thus improving the efficiency of the operation of the pipeline.

[0052] FIG. 5 shows a flow diagram illustrating steps in a method for accessing a TCM when operating a processing cluster in a locked mode, according to one exemplary implementation. In step S101, a memory access is received by the TCM controller, and then in step S102, a determination is made as to which TCM the memory access request targets. The TCM is accessed in step S103, but if the memory request comes from a redundant processor, it may be the corresponding request from the primary processor that is used when actually performing the memory access. The result of the memory access is then received in step S104, which may be, for example, a value accessed by a read request, or confirmation that a write request has been made. In step S105, the result is propagated to both the primary and redundant processing pipelines.

[0053] FIG. 6 illustrates a flow diagram showing steps in a method for accessing a TCM when a processing cluster is operating in a locked mode, according to one particular exemplary implementation utilizing separate channels as previously described. In step S201, a memory request is received on one of two channels. In step S202, a determination is made as to which of the two channels the request was received on. If it was received on the P channel, it is determined that the access is targeted to a TCM of the primary processor, and this TCM is accessed in step S203a. If the request was received on the R channel, it is determined that the access is targeted to a TCM associated with a redundant processor, and this TCM is accessed in step S203b. In either case, the result of the memory access is received in step S204 and propagated to the primary and redundant processors in S205.

[0054] FIG. 7 shows a flow diagram illustrating steps in a method for determining a channel for a TCM access request according to one exemplary implementation in which the determination is made by a processing pipeline. In step S301, the processing pipeline executes an instruction that includes a memory access. In step S302, it is determined whether this is a TCM access. If it is not a TCM access, in step S303, it is assumed that the target is in main memory and the request is allowed to proceed as per normal main memory access protocol. If it is determined in step S302 that it is a TCM access, in step S304, another determination is made as to whether the address of the request is associated with the primary TCM. If the address is associated with the primary TCM, in step S305, the request is issued over the P channel and the memory access continues as per the method described for one of FIG. 5 or FIG. 6. If in step S304, the address is not associated with the primary TCM, it is assumed to be associated with the redundant TCM in step S306. The request is then issued over the R channel in step S307 and the process again proceeds in one of the ways previously described.

[0055] FIG. 8 shows a flow diagram illustrating steps in a method for determining a channel of a TCM according to another exemplary implementation, the determination being made by a shared slave port. In step S410, the processing pipeline issues a memory access request that is received by the system interconnect in step S402. The system interconnect determines whether the request is a TCM access in step S403. If the request is not a TCM request, the request is processed as a "normal" main memory request in step S404. If the request is a TCM request, the request is propagated to the shared slave port in step S405. In step S406, the shared slave port determines whether the request targets an address associated with the TCM of the primary core. If the request targets an address associated with the TCM of the primary core, the request is issued to the private slave ports of both the redundant core and the primary core on the P channel in step S407, and the method then proceeds to one of the exemplary implementations described in FIG. 5 and FIG. 6. If in step S406 it is determined that the address space is not associated with a primary TCM, then in step S408 it is assumed that the address space is associated with a redundant TCM. In step S409, the request is thus propagated via the private slave port to both the primary and redundant cores of the R channel, and the method then proceeds to one of the exemplary implementations described in Figures 5 and 6.

[0056] By using the techniques described herein, a split-lock configuration of a processing cluster may be employed without disabling the local memory resources of the cores used as redundant cores in locked mode. Thus, the efficiency of the design may be improved. In particular, when in locked mode, the capacity of local memory may be significantly increased without adding additional memory to the design by facilitating the use of memory resources that would typically be unavailable in locked mode.

[0057] In this application, the word "configured to" is used to mean that elements of an apparatus have a configuration capable of performing a defined operation. In this context, "configuration" refers to an arrangement or manner of interconnection of hardware or software. For example, an apparatus may have dedicated hardware that provides the defined operation, or a processor or other processing device may be programmed to perform the function. "Configured to" does not imply that the apparatus elements need to be modified in any way to provide the defined operation.

[0058] Although exemplary implementations of the present invention have been described in detail herein with reference to the accompanying drawings, it should be understood that the present invention is not limited to those precise exemplary implementations, and that various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of the present invention, as defined by the appended claims.

Claims

1. a cluster of processing elements, the cluster having a split mode, the processing elements being configured to process independent processing workloads; and a locked mode, the processing elements comprising at least one primary processing element and at least one redundant processing element, each redundant processing element being configured to execute a redundant processing workload for checking correctness of a primary processing workload executed by the primary processing element; each processing element having an associated local memory comprising a plurality of memory locations; a cluster of processing elements; a local memory access control mechanism configured to enable the at least one primary processing element to access memory locations in the local memory associated with the at least one redundant processing element during the locked mode; An apparatus comprising:

2. 2. The apparatus of claim 1, wherein during said locked mode, in response to a memory access request issued by said at least one primary processing element when executing said primary processing workload, access to memory is performed, and a corresponding memory access request issued by said at least one redundant processing element when executing said redundant processing workload is prevented from causing an access to memory.

3. 3. The apparatus of claim 2, wherein during said locked mode, said corresponding memory access requests issued by said at least one redundant processing element when executing said redundant processing workload are used when checking correctness of said primary processing workload.

4. 2. The apparatus of claim 1, wherein during said locked mode, at least a subset of said memory locations of said local memory associated with said at least one redundant processing element are included within a memory address space that identifies permissible memory addresses for use by said at least one primary processing element when executing said primary processing workload.

5. The local access control mechanism comprises: a local memory access control unit associated with each processing element in the cluster for controlling access of said processing element to said associated local memory; an interconnect signal path coupling an output of the local memory access control unit associated with the at least one primary processing element to an input of the local memory associated with the at least one redundant processing element; Equipped with 2. The apparatus of claim 1, wherein during the locked mode, the memory access control unit associated with the at least one primary processing element is configured to employ the interconnect signal path to access the local memory associated with the at least one redundant processing element upon detecting that a memory access request issued by the at least one primary processing element when executing the primary processing workload seeks to access a memory location within the local memory associated with the at least one redundant processing element.

6. 3. The apparatus of claim 2, wherein during the locked mode, results produced as a result of processing the memory access requests issued by the at least one primary processing element when executing the primary processing workload are propagated to both the at least one primary processing element and the at least one redundant processing element.

7. each of the at least one primary processing element having a primary request channel and a secondary request channel for issuing memory access requests; configured, during the locked mode, for the at least one primary processing element, in response to determining that access is required to a memory location within its associated local memory, to issue a memory access request on the primary request channel identifying the memory location; 2. The apparatus of claim 1, wherein during the locked mode, the at least one primary processing element is configured, in response to determining that access is required to a memory location within the local memory associated with the at least one redundant processing element, to issue a memory access request on the secondary request channel identifying the memory location.

8. The local access control mechanism comprises: a local memory access control unit associated with each processing element in the cluster for controlling access of said processing element to said associated local memory; an interconnect signal path coupling an output of the local memory access control unit associated with the at least one primary processing element to an input of the local memory associated with the at least one redundant processing element; Equipped with 8. The apparatus of claim 7, wherein during the locked mode, the local memory access control unit associated with the at least one primary processing element is configured to employ the interconnect signal path to access the local memory associated with the at least one redundant processing element upon detecting receipt of a memory access request issued by the at least one primary processing element over the secondary request channel.

9. a common access port associated with the local memory of the cluster, the common access port having a primary request channel and a secondary request channel for propagating memory access requests to the local memory; Further equipped with during the locked mode, the at least one primary processing element is configured to issue memory access requests via the common access port when executing the primary processing workload; the common access port is configured to propagate the memory access request on the primary request channel in response to determining that the memory access request seeks to access a memory location within an associated local memory of the at least one primary processing element; the common access port is configured to propagate the memory access request on the secondary request channel in response to determining that the memory access request seeks to access a memory location within the local memory associated with the at least one redundant processing element; 2. The apparatus of claim 1.

10. The local access control mechanism comprises: a local memory access control unit associated with each processing element in the cluster for controlling access of said processing element to said associated local memory; an interconnect signal path coupling an output of the local memory access control unit associated with the at least one primary processing element to an input of the local memory associated with the at least one redundant processing element; Equipped with 10. The apparatus of claim 9, wherein during the locked mode, the memory access control unit associated with the at least one primary processing element is configured to employ the interconnect signal path to access the local memory associated with the at least one redundant processing element upon detecting receipt of a memory access request issued on the secondary request channel via the common access port.

11. 10. The apparatus of claim 9, wherein each of the local memories has an associated private access port, each private access port coupled to both the primary request channel and the secondary request channel, and wherein the common access port is configured to broadcast the memory access request on a selected one of the primary request channel and the secondary request channel to both the private access port of the at least one primary processing element and the private access port of the at least one redundant processing element.

12. 10. The apparatus of claim 9, wherein the common access port is configured to provide access to the local memory by devices external to the cluster of processing elements.

13. 2. The apparatus of claim 1, wherein the associated local memory is a scratchpad memory.

14. 2. The apparatus of claim 1, wherein each local memory is used to store at least one of instructions for execution by the associated processing element and data operated on by the associated processing element when executing the instructions.

15. 2. The apparatus of claim 1, further comprising: a comparison circuit employed to compare, during said locked mode, memory access requests issued by said at least one primary processing element when executing said primary processing workload with corresponding memory access requests issued by said at least one redundant processing element when executing said redundant processing workload to establish said correctness of said primary processing workload.

16. 16. The apparatus of claim 15, wherein the comparison circuitry is configured to issue an error signal when the comparison circuitry detects a mismatch between the memory access requests issued by the at least one primary processing element when executing the primary processing workload and the corresponding memory requests issued by the at least one redundant processing element when executing the redundant processing workload.

17. 1. A method for operating a data processing apparatus comprising a cluster of processing elements, the method comprising: processing independent processing workloads on the processing elements of the cluster when operating the cluster in a split mode; configuring the processing elements to include at least one primary processing element and at least one redundant processing element when operating the cluster in a locked mode, executing a primary processing workload on the at least one primary processing element, and executing a redundant processing workload on the at least one redundant processing element for validating the correctness of the primary processing workload executed by the primary processing element; providing each processing element with an associated local memory comprising a plurality of memory locations; employing a local memory access control mechanism for allowing said at least one primary processing element to access memory locations in said local memory associated with said at least one redundant processing element during said locked mode; 23. A method for operating a data processing apparatus, comprising:

18. a cluster of processing means, the processing means being configured to process independent processing workloads; a split mode, the processing means comprising at least one primary processing means and at least one redundant processing means, each redundant processing means for executing a redundant processing workload for checking correctness of a primary processing workload executed by the primary processing means; a locked mode, a cluster of processing means, each processing means having an associated local memory means comprising a plurality of memory locations; local memory access control means for enabling said at least one primary processing means to access memory locations in said local memory associated with said at least one redundant processing means during said locked mode; An apparatus comprising:

Citation Information

Patent Citations

  • multiprocessor system bridge

    JP2002518739A

  • Managing memory in multiprocessor systems

    JP2017532671A

  • Semiconductor device

    JP2019066983A

  • Semiconductor device

    JP2019095893A