Computer-implemented method and electronic control unit for deterministic data communication in partitioned embedded systems

By using predefined function windows and dedicated cross-cluster communication windows in partitioned embedded systems, the problem of communication uncertainty between software tasks in the AUTOSAR system is solved, deterministic data transmission is achieved, and system stability and resource utilization are improved. Rate.

CN118633079APending Publication Date: 2024-09-10纬湃科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280068726.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-10-11
Filing Date
2022-08-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In classic AUTOSAR-based software systems, data communication between different software tasks is uncertain due to task jitter and runtime changes, resulting in unpredictable communication between different software clusters on partitioned systems, which may cause delays and inconsistencies. characteristics, and the conventional communication architecture does not allow system-level optimization, affecting the stability of the software cluster.

Method used

By providing predefined functional windows and dedicated cross-cluster communication windows in partitioned embedded systems, ensuring that functional tasks and cross-cluster communication tasks are executed in different time slots, deterministic data communication across software clusters is achieved, ensuring that data is communicated in different functions Reliable transfer between tasks.

Benefits of technology

It achieves deterministic data communication in partitioned embedded systems, reduces delays and inconsistencies, increases the freedom of temporal interference between software clusters, improves system reproducibility and resource utilization, and allows top-down communication design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633079A
    Figure CN118633079A
Patent Text Reader

Abstract

The present invention relates to a computer-implemented method and an electronic control unit for partitioning deterministic data communication in an embedded system wherein the software of the embedded system comprises a plurality of software clusters (152, 154), the plurality of software clusters (152, 154) comprising a functional task (158) and a cross-cluster communication task (160, 162), wherein the method comprises the steps of:-providing an execution schedule (300), the execution schedule (300) comprising a predefined function window (320) of function tasks (158) of the plurality of software clusters (152, 154); -providing a dedicated cross-cluster communication window (310) to the cross-cluster communication tasks (160, 162) of the plurality of software clusters (152, 154) in the execution schedule (300), wherein the cross-cluster communication window (310) is different from the functional window (320).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a computer-implemented method and an electronic control unit for deterministic data communication in a partitioned embedded system such as the Automotive Open System Architecture (AUTOSAR). The software of the embedded system includes a plurality of software clusters, the plurality of software clusters including functional tasks and cross-cluster communication tasks. The software cluster of the embedded system includes a plurality of functional tasks. Further, the software cluster of the embedded system includes a plurality of cross-communication tasks for communication between different software clusters.

[0002] In classic AUTOSAR-based software systems, the communication of data between different software tasks is generally performed inside a task: immediately after the task starts for consumed data, and just before the task terminates for produced data. Applying this general principle on a partitioned system means that any task of a partition can interact / communicate with any task of another partition.

[0003] Because the duration and jitter of a single task typically show variations, the conventional behavior described above creates problems with deterministic behavior of communication between different tasks. For example, the communication between two tasks is conventionally not deterministic due to task jitter or varying runtime. For a software cluster (task set) that communicates with another software cluster, LET (Logical Execution Time) provides determinism, but only for each individual task, not for the complete system, and in a stable manner across successive project updates (i.e., task content updates). Especially in multi-core systems, this may lead to unpredictable delays in communication between different software clusters. Another problem with conventional communication between different software clusters is that the data consumed in different functional tasks will be captured as frequently as used, and therefore this leads to instability or inconsistency within the software cluster. Similarly, the data generated in different functional tasks will result in multiple communications toward consumers, thereby also leading to possible inconsistencies.

[0004] Furthermore, conventional communication architectures do not allow for optimizations at the system (multi-cluster) level, such as software cluster internal production rates being used for cross-cluster communication, even though consuming software clusters will be satisfied with lower production rates. Furthermore, in conventional systems, full decoupling between different software clusters is not achieved, and upgrades in one software cluster may have functional impacts on another (stable) software cluster as production of outputs moves from one task to another, thereby introducing (or removing) delays in the transferred data.

[0005] It is therefore an object of the present disclosure to create a computer implemented method and electronic control unit that creates advantageous deterministic data communication in a partitioned embedded system.

[0006] This object is achieved by a computer implemented method comprising the features of the independent claims and by an electronic control unit comprising means for performing the computer implemented method according to the independent claims. Advantages, embodiments of the method and the electronic control unit are specified in the dependent claims.

[0007] A computer-implemented method for deterministic data communication in a partitioned embedded system is specified, wherein the partitioned embedded system includes software. The software of the embedded system includes multiple software clusters, and the multiple software clusters include functional tasks and cross-cluster communication tasks. According to the present disclosure, the functional tasks are designed to perform functional tasks within the corresponding software clusters using provided data in the partitioned embedded system, and the cross-cluster communication tasks are designed to perform cross-cluster communication tasks between different software clusters of the partitioned embedded system. The computer-implemented method for deterministic data communication in the partitioned embedded system includes the following steps:

[0008] - Providing an execution schedule, the execution schedule comprising predefined functional windows for functional tasks of the plurality of software clusters. The execution schedule defines different functional windows during which the functional tasks of the plurality of software clusters are executed during operation of the partitioned embedded system. Thus, the execution schedule is designed to fulfill the desired tasks of the partitioned embedded system.

[0009] -Providing a dedicated cross-cluster communication window to the communication tasks of multiple software clusters in the execution schedule, wherein the cross-cluster communication window is different from the functional window. In other words, the execution schedule further includes a cross-cluster communication window in which a predefined cross-cluster communication task is executed. The cross-cluster communication task provides necessary data communication between different software clusters. The transmitted data is then used in, for example, the functional tasks of other corresponding software clusters. In other words, the cross-cluster communication task reads data from other software clusters for input into the functional task, and the cross-cluster communication task writes the output of other software clusters as the output data of the functional task. Therefore, the communication data can, for example, provide the expected communication from a functional task, which writes the output to another functional task of another software cluster as the expected input. According to the present disclosure, the cross-cluster communication window is different from / independent of the functional window. This means that the cross-cluster communication window is not linked to the functional window. For example, it is worth noting that the cross-cluster communication window is located at a time slot completely different from the time slot of the functional window in the overall execution schedule. Therefore, it is possible to place the cross-cluster communication window in the overall execution schedule as desired to create the expected deterministic communication independently of the execution of the functional task during the functional window.

[0010] -Scheduling is performed during operation of the partitioned embedded system, wherein functional tasks of a software cluster are executed in a predefined functional window, and wherein cross-cluster communication tasks of a software cluster for cross-cluster communication are executed in a dedicated cross-cluster communication window, thereby achieving deterministic data communication for cross-cluster communication in the partitioned embedded system.

[0011] During the operation of the partitioned embedded system, the execution scheduling of the partitioned embedded system is performed, which means that the functional tasks of the software cluster are executed in a predefined functional window, and the cross-cluster communication tasks of the software cluster for cross-cluster communication are executed in a dedicated cross-cluster communication window. For example, a functional task within the first software cluster is executed, thereby generating output data. Subsequently, the second functional task of the first software cluster is executed, thereby generating other output data. Subsequently, the cross-cluster communication task of the first software cluster is executed, thereby transmitting the two output data of the two previous functional tasks to the second software cluster, and the second software cluster transmits the data to at least one of its internal functional tasks. Therefore, according to the present disclosure, it is possible to create very specific deterministic communication between different software clusters, which allows the desired communication between different software clusters without any data corruption during the operation of different functional tasks. This is possible because the communication between different software clusters is only completed during the predefined cross-cluster communication window with the cross-cluster communication task, so that the input and output data required by the different functional tasks are always provided to the required functional tasks, so that the overall execution of the partitioned embedded system is realized and achieved without any data delay or data corruption. The cross-cluster communication window can be positioned at a predefined and stable location in the execution schedule in a coordinated manner on the system level (multi-cluster level). They can be scheduled in a continuous and synchronous order, even across the cores in a multi-core system or even across different devices in a multi-microprocessor and / or multi-microcontroller system. The cross-cluster communication task in the cross-cluster communication window can have a relatively short dedicated execution window (short runtime) and a possible high priority, so as to achieve reproducible and deterministic behavior of the partitioned embedded system. Therefore, the described computer-implemented method creates a very deterministic behavior about data communication in the partitioned embedded system. Therefore, it is possible that the overall system is as a high-level data determinism.

[0012] According to the present disclosure, the degree of freedom of temporal interference between the communications of different software clusters is increased, and the possibility of independent release and verification of different software clusters in a partitioned embedded system is further increased. Further, according to the present disclosure, it is possible to implement defined timing behaviors of inputs and outputs between different software clusters, and in this case it is possible to reduce the number of copies entering the memory of different software clusters, which saves microprocessor / microcontroller resources of the partitioned embedded system. Another advantage of the computer-implemented method according to the present disclosure is that it enables a top-down approach for designing software clusters and communications between them by pre-fixing the cross-cluster communication window of the complete system.

[0013] According to one embodiment, the partitioned embedded system uses the Automotive Open System Architecture (AUTOSAR).If the partitioned embedded system uses the AUTOSAR architecture, the implementation of the method according to the present disclosure is particularly easy.

[0014] According to one embodiment, the functional tasks of the software cluster have a determined priority, and the cross-cluster communication tasks of the software cluster have a determined priority, wherein the cross-cluster communication tasks of the software cluster have a higher priority than the functional tasks of the software cluster, so that if they compete for resources, one of the cross-cluster communication tasks is executed before one of the functional tasks. According to this embodiment, the communication tasks are executed before the functional tasks. This ensures that the data communication between different software clusters and between different functional tasks has the required high quality, certainty and reproducibility. Therefore, it is possible to ensure that all functional tasks have the required input data before they are executed.

[0015] According to one embodiment, the software cluster includes a cross-cluster communication window for input communication and / or a cross-cluster communication window for output communication, wherein in the cross-cluster communication window for input communication, the cross-cluster communication task reads input data, and in the cross-cluster communication window for output communication, the cross-cluster communication task writes output data. In other words, according to this embodiment, the cross-cluster communication window is separated into a cross-cluster communication window for input communication and a cross-cluster communication window for output communication. This allows the desired separation of a dedicated cross-cluster communication window for input communication and the dedicated separation of a cross-cluster communication window for output communication. According to one embodiment, if it is only necessary to have input communication, a dedicated cross-cluster communication window for input communication can be foreseen in the overall execution schedule, and if it is only necessary to have output communication, a dedicated cross-cluster communication window for output communication can be foreseen in the overall schedule. This allows better and more accurate deterministic communication in the overall partitioned embedded system. According to one embodiment, it is possible, for example, that a cross-cluster communication window for output communication is followed by a cross-cluster communication window for input communication. In this case, the output communication is followed by the input communication, so that the expected input of the functional task is provided and the expected output is sent to the required functional task of the different software cluster.

[0016] According to one embodiment, a microprocessor of a partitioned embedded system includes multiple cores, and wherein a cross-cluster communication task provides communication between different cores of the microprocessor. According to this embodiment, a computer-implemented method according to the present disclosure is used to provide the required deterministic data communication between different cores of a microprocessor of a partitioned embedded system. Different software clusters can be executed on different cores of a microprocessor. These different software clusters need to communicate across different cores of a microprocessor, wherein the computer-implemented method according to the present disclosure has, for example, communication windows on different cores, so that it is possible to perform deterministic communication between different software clusters on different cores of a microprocessor. According to this embodiment, it is therefore possible to perform deterministic and very specific communication between multiple different cores of a microprocessor.

[0017] According to another embodiment, the partitioned embedded system includes multiple microprocessors and / or microcontrollers, wherein each of the microprocessors / microcontrollers may have multiple cores. Enabling software clusters in the partitioned embedded system to have dedicated cross-cluster communication windows on each microprocessor allows deterministic data communication between different microprocessors and between different cores of different microprocessors. Therefore, in the overall partitioned embedded system, it is possible to have deterministic, specific, and stable data communication during operation of the partitioned embedded system.

[0018] According to one embodiment, all cross-cluster communication windows are provided only on a specific core of a multi-core / multi-processor system. According to this embodiment, the microprocessor includes multiple cores, and all cross-cluster communication windows for cross-cluster communication tasks are provided only on one core. This allows relatively simple design and allocation of different cross-cluster communication tasks of an embedded system. According to this embodiment, synchronization between different cores is not required when a cross-cluster communication task is updated, which reduces the complexity of the system. Further, according to this embodiment, conflicts can be avoided in the case of synchronous updates of different cores.

[0019] According to one embodiment, different cross-cluster communication windows are provided on different cores of a microprocessor / system. According to this embodiment, the microprocessor includes different cores, and on these different cores, different cross-cluster communication windows for cross-cluster communication tasks are provided. For example, each of the different cores of the microprocessor includes at least one dedicated cross-cluster communication window for a desired cross-cluster communication task. Grouping functional tasks and cross-cluster communication tasks of the same software cluster on the same core allows for favorable control of flows between cross-cluster communication tasks and functional tasks, and improves scheduling of complete task setups. It allows for core-local allocation of memory, which improves performance.

[0020] According to one embodiment, after or before a dedicated cross-cluster communication window for input communication or output communication is at least one functional window. In other words, after a cross-cluster communication window for input communication is followed by at least one functional window for a functional task and / or before a cross-cluster communication window for output communication is at least one functional window for a functional task. For example, a five-millisecond execution scheduling period starts with a dedicated cross-cluster communication window for input communication, followed by a first functional window for a first functional task, followed by a second functional window for a second functional task, followed by a third functional window for a third functional task, followed by a dedicated cross-cluster communication window for output communication, which, for example, completes the specific period on a core of a microprocessor of an embedded system. According to this embodiment, it is therefore possible to read the required input data during a dedicated cross-cluster communication window for input data, and then perform the required functional task using the read input data, and after the successful execution of the functional task, write the required output data during a dedicated cross-cluster communication window for output communication to other software clusters. In general, the communication between different cores of different software clusters and different microprocessors of an embedded system is very stable and deterministic. According to this embodiment, the advantage is that the system and method are more flexible in terms of placement compared to intervals. It is sufficient to ensure that all functional tasks have generated the required output data before the dedicated cross-cluster communication task for output communication starts, and that all functional tasks read the required input data after the dedicated cross-cluster communication task for input communication ends. As long as this condition is ensured, the actual use of data can be moved from one functional task to another without affecting the communication task.

[0021] According to one embodiment, execution scheduling includes an execution period in which a predefined functional task is executed, and each execution period includes only one cross-cluster input communication window and only one cross-cluster output communication window. In other words, for each execution period, there is a dedicated cross-cluster input communication window and a dedicated cross-cluster output communication window for input communication and output communication. According to one embodiment, the cross-cluster input communication window is at the beginning of the execution period, and according to one embodiment, the cross-cluster output communication window is at the end of the execution period. According to one embodiment, the function window for the predefined functional task is between the cross-cluster input communication window and the cross-cluster output communication window. Before the first functional task, a cross-cluster input communication window with a cross-cluster input communication task is executed so that all required input data of the predefined functional task are read from other software clusters. Subsequently, a functional task that uses input data and generates output data is executed. Subsequently, a cross-cluster output communication window with a cross-cluster output communication task is executed to write output data from the executed functional task to other software clusters. According to this embodiment, the overall architecture of the embedded system is advantageously simple and robust.

[0022] According to one embodiment, execution scheduling includes an execution period in which a predefined functional task is executed, and each execution period includes one or more cross-cluster input communication windows and / or one or more cross-cluster output communication windows. According to this embodiment, the number of cross-cluster input communication windows and cross-cluster output communication windows in an execution period is unlimited, which means that the execution period can have more than one cross-cluster input communication window and / or more than one cross-cluster output communication window. For example, an execution period starts with a cross-cluster input communication window, followed by, for example, two functional windows, followed by a cross-cluster input communication window, followed by another functional window, followed by a cross-cluster output communication window to complete the execution period. According to this embodiment, it is therefore possible to read data to a specific functional task or write data to a specific functional task during a defined cross-cluster input communication window or during a defined cross-cluster output communication window, even, for example, in the middle of an execution period. Therefore, it is possible to provide different communication time slots between different software clusters within a period. This embodiment allows a huge degree of freedom in designing execution scheduling for different tasks of an embedded system. Further, it allows a favorable fast communication path between different software clusters.

[0023] According to one embodiment, at least two cross-cluster communication windows are synchronized across at least two cores of a microprocessor. For example, if the microprocessor includes two cores, the two cores execute different functional tasks of the scheduling in parallel. According to this embodiment, different schedulings of different cores have cross-cluster communication windows at the same time slot. This results in the parallel execution of cross-cluster communication tasks across different cores of the microprocessor. This embodiment provides the advantage of a relatively simple architecture of an overall partitioned embedded system. Furthermore, if the cross-cluster communication input tasks of different cores are simultaneous, and the cross-cluster communication output tasks of different cores are simultaneous, there is no risk of concurrent access to the same data, and therefore there is no risk of inconsistency.

[0024] According to a further aspect of the present disclosure, an electronic control unit for deterministic data communication is specified. The electronic control unit is part of a partitioned embedded system, wherein the embedded system includes a plurality of software clusters including functional tasks and cross-cluster communication tasks, wherein the electronic control unit includes a component designed to perform one of the previously computer-implemented methods. It is conceivable that the electronic control unit can be an electronic control unit for a powertrain of a vehicle, such as a battery electric vehicle. It is also conceivable that the electronic control unit is implemented in a server architecture of an electric vehicle. According to another embodiment, the electronic control unit includes several control units, such as a main controller or a vehicle server, which form an entire partitioned embedded system, such as a vehicle.

[0025] Further advantageous embodiments of the present disclosure will become apparent from the detailed description of exemplary embodiments in conjunction with the drawings.

[0026] In each figure:

[0027] Figure 1 shows schematically a conventional cross-cluster communication between two software clusters,

[0028] Figure 2 shows in a schematic manner cross-cluster communication between two software clusters according to a first exemplary embodiment,

[0029] Figure 3 Two details of execution scheduling according to two different embodiments are shown in a schematic manner,

[0030] FIG. 4 schematically shows a first execution schedule according to the first embodiment,

[0031] FIG5 schematically shows a second execution schedule according to the second embodiment,

[0032] FIG. 6 schematically shows a third execution schedule according to the third embodiment,

[0033] FIG. 7 schematically shows a fourth execution schedule according to a fourth embodiment,

[0034] FIG8 shows in a schematic manner a fifth execution schedule according to the fifth embodiment.

[0035] Figure 1 A first diagram 100 of data communication between two different software clusters 110, 120 is shown. The first diagram 100 includes a first cluster A 110 and a second cluster B 120. Cluster A 110 includes intervals A1 112 and intervals A2 114 and intervals A3 116. Cluster B 120 includes intervals B1 122, intervals B2 124 and intervals B3 126. Interval A1 112 performs a first functional task and generates output data. The output data DA1 is provided to intervals B1 122 and intervals B3 126. Interval A2 114 then performs a second task that generates output data DA2. The output data DA2 is provided to intervals B3 126. The last interval A3 116 of cluster A 110 reads the input data of interval B2 124 of cluster B 120 and then performs a third functional task. Interval B1 122 of cluster B 120 reads input data DA1 generated in interval A1 112. Interval B1 122 then performs a functional task. Interval B2 124 performs a functional task that generates output data DB2. The output data DB2 is provided to interval A3 116 of cluster A 110. Interval B3 126 of cluster B 120 reads input data DA1 and DA2 of interval A1 112 and interval A2 of cluster A 110. The first diagram 100 illustrates the difficulty of communication between different clusters 110, 120. The two clusters can be executed simultaneously, for example, on separate cores. Data generated in one cluster should have been transmitted to another cluster for executing a different task, but due to different communication time slots, the task has been executed using old or erroneous data input. The overall communication between different software clusters according to this embodiment is not deterministic and may cause unpredictable delays in communication between software clusters. Another problem is that data consumed in different intervals will be captured as frequently as used, and thus this leads to instability or inconsistency within the software cluster.

[0036] Figure 2A second diagram 150 of cross-cluster communication according to a first exemplary embodiment is shown. The second diagram 150 includes a first software cluster 152 and a second software cluster 154. The software clusters 152, 154 include different software components 156, which are, for example, software blocks. Further, the software clusters 152, 154 include different functional tasks 158 executed within a functional window (not shown). Different functional tasks 158 require different software components 156 for their tasks, which is shown by the links between different functional tasks 158 and different software components 156. Further, the small arrows between the functional tasks 158 within one software cluster 152, 154 illustrate possible data communications between different functional tasks 158 within one software cluster 152, 154. The second diagram 150 further includes a cross-cluster output communication task 160 and a cross-cluster input communication task 162 executed within a cross-cluster communication window (not shown). The cross-cluster output communication task 160 writes output data from one software cluster 154, 152 to another software cluster 152, 154. The cross-cluster input communication task 162 reads input data from another software cluster 154, 152 to its own software cluster 152, 154. Figure 2 The cross-software cluster data flow is shown in FIG, where the arrows are between cross-cluster communication tasks 160, 162. The read input data is then provided to the functional task 158. And the data generated from the functional task 158 is then provided to the cross-cluster output communication task 160 for cross-cluster communication. Figure 2 As can be seen in FIG. 1 , cross-cluster communication tasks 160, 162 are different from functional tasks 158 in the overall execution schedule. Figure 1 This independence allows for the desired deterministic communication between the different software clusters 152, 154, compared to the communication between the software clusters shown in FIG.

[0037] Figure 3 A third diagram 200 is shown, which includes a first detail 210 of an execution schedule according to a conventional embodiment and a second detail 220 of an execution schedule according to a second exemplary embodiment of the present disclosure. The first detail 210 shows the execution of a task within a first time period 211. The task is executed within a function window 212. The task execution 213 within the function window 212 is shown in FIG. Figure 2212. In the embodiment of the present invention, the first detail 210 is shown as a gray rectangle. Further, within the function window 212, data is transmitted to and from the function task. The first detail 210 is shown for the data communication arrow of the data input 214 and the arrow of the data output 215. The data input arrow 214 points to the function window 212, and the data output arrow 215 points away from the function window 212. As can be seen in the first detail 210, the communication between different tasks is not deterministic, which may lead to unstable data age of task execution due to jitter problems. In contrast, the second detail 220 shows the highly deterministic data communication between different tasks according to the present disclosure. The second detail 220 includes two second time periods 221, and the function window 222, the cross-cluster input communication window 224 and the cross-cluster output communication window 226 are placed in the two second time periods 221. The second detail 220 further includes a third time period 228, and other function windows 222, one other cross-cluster input communication window 224 and one other cross-cluster output communication window 226 that may belong to another software cluster are placed in the third time period 228. Functional tasks 223 are executed within the functional window 222, cross-cluster input communication tasks 225 are executed within the cross-cluster input communication window 224, and cross-cluster output communication tasks 227 are executed within the cross-cluster output communication window 226. Specific task executions are shown in the second detail 220 using gray or black rectangles. Cross-cluster communication tasks 225, 227 further have corresponding arrows. Using specific communication windows 224, 226, it is possible to have highly deterministic data communication between different software clusters or even different cores or electronic control units within an embedded system.

[0038] FIG. 4 shows a first execution schedule 300. The first execution schedule 300 includes a function window 320 and a cross-cluster communication window 310. The function window 320 is scheduled for a function task (not shown) executed during the function window 320. The cross-cluster communication window 310 is implemented in the execution schedule 300 for communication tasks (not shown) between different software clusters. Different software clusters may include different function windows 320 and corresponding different function tasks executed during different function windows 320. Further, the software cluster includes different cross-cluster communication windows 310 during which different cross-cluster communication tasks for communication between different software clusters are executed. As can be seen in FIG. 4, different cross-cluster communication windows 310 are placed in the first execution schedule 300 that is different from / independent of different function windows 320, which means that the cross-cluster communication window 310 is only dedicated to a specific cross-cluster communication task. Therefore, it is possible to have highly deterministic communication between different software clusters in an embedded system. Different function tasks can be executed during different function windows 320, and output data can be generated. Subsequently, during the execution of the cross-cluster communication task in the cross-cluster communication window 310, the generated output data is, for example, sent to another functional task in another functional window 320. According to this embodiment, it is thus possible to have a highly deterministic and specific communication between different software clusters of a partitioned embedded system, for example based on the AUTOSAR software architecture.

[0039] Fig. 5 shows a second execution schedule 400. The second execution schedule 400 includes two different schedules. Both schedules are used in a multi-core microprocessor. The microprocessor for the execution of the second execution schedule 400 includes a first core A2 410, a second core A3 420, and a third core B0 430. Each core has a dedicated schedule, which includes a cross-cluster communication window 310 and a function window 320. The difference between the two schedules as shown in the second execution schedule 400 is that in the upper schedule, all cross-cluster communication windows 310 are scheduled only in the first core A2 410. According to this embodiment, all cross-cluster communication tasks are executed on the first core A2 410. The lower schedule of the second execution schedule 400 shows that the cross-cluster communication window 310 is included on all cores. Therefore, the cross-cluster communication tasks executed during the cross-cluster communication window 310 are executed on all different cores 410, 420, 430.

[0040] Fig. 6 shows the third execution schedule 500. In addition, the third execution schedule 500 shows two different schedules here. The upper schedule shows a cross-cluster communication window 310 and a function window 320. The cross-cluster communication window 310 includes a cross-cluster communication window 510 for input communication and a cross-cluster communication window 520 for output communication. The cross-cluster communication window 510 for input communication and the cross-cluster communication window 520 for output communication are shown in Fig. 6 using two triangles, wherein one triangle indicates the cross-cluster communication window 510 for input communication, and the other triangle indicates the cross-cluster communication window 520 for output communication. The upper schedule in Fig. 6 shows that the cross-cluster communication window 510 for input communication and the cross-cluster communication window 520 for output communication are combined in the cross-cluster communication window 310, which means that before the functional task is executed in the function window 320, the output communication and the input communication are executed after each other. As can be seen in the lower schedule of Fig. 6, the cross-cluster communication window 510 for input communication and the cross-cluster communication window 520 for output communication are separated across the overall schedule. In other words, as can be seen in FIG. 6 , the schedule starts with a cross-cluster communication window 510 for input communication, which, for example, reads input data of different functional tasks. Subsequently, the schedule executes different functional tasks in different functional windows 320, and the period is completed by a cross-cluster communication window 520 for output communication, which writes output data of a specific software cluster. The lower schedule of FIG. 6 shows a dedicated cross-cluster communication window 510 for input communication and a dedicated cross-cluster communication window 520 for output communication, which allows the overall schedule to be designed with high certainty as desired with respect to the required input data and / or with respect to the provided output data.

[0041] Fig. 7 shows the fourth execution schedule 600. In addition, the fourth execution schedule 600 is separated into upper scheduling and lower scheduling here. The fourth execution schedule 600 shows different cross-cluster communication windows 310 again, which include a cross-cluster communication window 510 for input communication and a cross-cluster communication window 520 for output communication. Further, the fourth execution schedule 600 includes a function window 320 for a functional task. The fourth execution schedule 600 as shown in Fig. 7 further includes a first execution period 610, a second execution period 620 and a third execution period 630. The first execution period 610 is, for example, an execution period of five milliseconds, the second execution period 620 is, for example, an execution period of ten milliseconds, and the third execution period 630 is, for example, an execution period of 20 milliseconds. This is indicated via brackets as shown in Fig. 7. As can be seen in the upper schedule, the first execution period 610, the second execution period 620 and the third execution period 630 include only one cross-cluster communication window 510 for input communication and only one cross-cluster communication window 520 for output communication. This is the case for each core 410, 420, 430. The difference to the lower schedule as shown in FIG7 is that, in different execution periods, it is possible to provide and execute multiple cross-cluster communication windows 510 for input communication or multiple communication windows 520 for output communication. Therefore, it is possible to read input data more than once in one execution period or write output data more than once in one execution period, and thus transmit different data at different points in time.

[0042] Fig. 8 shows a fifth execution schedule 700. The fifth execution schedule 700 also includes an upper schedule and a lower schedule. The difference between the fifth execution schedule 700 and other execution schedules is that the cross-cluster communication window 510 for input communication and / or the cross-cluster communication window 520 for output communication are not always synchronized across cores 410, 420, 430, which is shown in the lower schedule. In the upper schedule, the cross-cluster communication window 510 for input communication and / or the cross-cluster communication window 520 for output communication are synchronized across cores 410, 420, 430.

Claims

1. A computer-implemented method for deterministic data communication in a partitioned embedded system, wherein software of the embedded system includes a plurality of software clusters (152, 154), the plurality of software clusters (152, 154) including functional tasks (158) and cross-cluster communication tasks (160, 162), wherein the method comprises the following steps: - providing an execution schedule (300) comprising predefined functional windows (320) of functional tasks (158) of the plurality of software clusters (152, 154); - providing a dedicated cross-cluster communication window (310) to the cross-cluster communication tasks (160, 162) of the plurality of software clusters (152, 154) in the execution schedule (300), wherein the cross-cluster communication window (310) is different from the function window (320); - Execution scheduling (300) wherein functional tasks (158) of a software cluster are executed in a predefined functional window (320), and wherein cross-cluster communication tasks (160, 162) of a software cluster (152, 154) for cross-cluster communication are executed in a dedicated cross-cluster communication window (310), thereby achieving deterministic data communication in a partitioned embedded system for cross-cluster communication.

2. The computer-implemented method of claim 1 , wherein a functional task (158) of a software cluster (152, 154) has a determined priority, and wherein a cross-cluster communication task (160, 162) of the software cluster (152, 154) has a determined priority, wherein the cross-cluster communication task (160, 162) of the software cluster (152, 154) has a higher priority than the functional task (158) of the software cluster (152, 154), such that if they compete for computing resources, the cross-cluster communication task (160, 162) is executed before the functional task (158).

3. A computer-implemented method according to any of the preceding claims, wherein the software cluster (152, 154) includes a cross-cluster communication window (510) for input communication and / or a cross-cluster communication window (520) for output communication, wherein in the cross-cluster communication window (510) for input communication, the input communication task (162) reads input data from at least one other software cluster (152, 154), and in the cross-cluster communication window (520) for output communication, the output communication task (160) writes output data for at least one other software cluster (152, 154).

4. A computer-implemented method according to any of the preceding claims, wherein a microprocessor of the partitioned embedded system comprises a plurality of cores (410, 420, 430), and wherein a cross-cluster communication task (160, 162) of the software cluster (152, 154) provides communication between different cores (410, 420, 430).

5. The computer-implemented method of claim 4, wherein all cross-cluster communication windows (310) are provided on only one specific core (410) of a microprocessor, or wherein different cross-cluster communication windows (310) are provided on different cores (410, 420, 430) of a microprocessor.

6. The computer-implemented method of any of the preceding claims 3 to 5, wherein a dedicated cross-cluster communication window (510, 520) for incoming or outgoing communication is followed by at least one functional window (320).

7. A computer-implemented method according to claim 6, wherein the execution schedule (600) includes execution periods (610, 620, 630) in which predefined functional tasks (158) are executed, and wherein each execution period (610, 620, 630) includes only one cross-cluster input communication window (510) and only one cross-cluster output communication window (520).

8. A computer-implemented method according to claim 6, wherein the execution schedule (600) includes execution periods (610, 620, 630) in which predefined functional tasks (158) are executed, and wherein each execution period (610, 620, 630) includes one or more cross-cluster input communication windows (510) and / or one or more cross-cluster output communication windows (520).

9. The computer-implemented method of any of the preceding claims 4 to 8, wherein at least two cross-cluster communication windows (510, 520) are synchronized across at least two cores of at least one of the microprocessors.

10. An electronic control unit for deterministic data communication, wherein the electronic control unit is part of a partitioned embedded system, wherein the embedded system comprises a plurality of software clusters (152, 154), the plurality of software clusters (152, 154) comprising functional tasks (158) and cross-cluster communication tasks (160, 162), wherein the electronic control unit comprises components designed to perform a computer-implemented method according to any of the preceding claims.