Electronic Control Unit
By pre-calculating and storing map interpolation values, the parallel processing unit in electronic control devices addresses the overhead issue, ensuring faster processing times and improved efficiency.
Patent Information
- Application Number
- JP2021067735
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-04-13
AI Technical Summary
The overhead generated by loading information from a shared memory to the internal memory of a parallel processing unit in electronic control devices increases processing time, potentially reducing the effectiveness of the processor.
The parallel processing unit pre-calculates and stores map interpolation values in a predetermined address, performing calculations ahead of time to reduce processing time by providing immediate results to the control unit when needed.
This approach reduces processing time by minimizing overhead and ensuring the control unit can quickly access pre-calculated results, thereby enhancing the efficiency of the parallel arithmetic processor.
Smart Images

Figure 0007548111000002 
Figure 0007548111000007 
Figure 0007548111000013
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic control device. [Background technology]
[0002] In recent years, for example, in electronic control devices for automobiles, the processing power of microcomputers has been improved due to the increasing complexity of control. As an example, a microcomputer equipped with multiple cores and a parallel processor is installed, and the core requests the parallel processor to process a set of arithmetic instructions, which is a collection of arithmetic instructions, and the parallel processor processes the arithmetic instructions in parallel, thereby speeding up the arithmetic processing. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2016-95796 A Summary of the Invention [Problem to be solved by the invention]
[0004] The parallel processor extracts an instruction from a set of instructions requested by the core, and automatically allocates optimal resources to multiple processors using hardware functions, enabling high-speed parallel calculations. This makes it possible to reduce the processing time of the core by having the parallel processor process tasks that require high-speed processing.
[0005] However, the information used for processing by the parallel processor needs to be loaded from the shared memory to the internal memory of the parallel processor for each control period, and the overhead generated during this process increases processing time, which may reduce the effectiveness of using the parallel processor.
[0006] The present invention has been made in consideration of the above-mentioned circumstances, and its object is to provide an electronic control device that makes it possible to shorten the processing time when a control unit processes a group of calculation instructions using a parallel calculation processor. [Means for solving the problem]
[0007] According to the invention of claim 1, when the control unit (12a to 12c) controls a control target based on the control information, When it becomes necessary to perform calculations based on the map in the parallel processor, the map information in the shared memory is loaded into a predetermined address in an internal memory (23) provided in the parallel processor, The variables required to obtain the control information are given as arguments to a parallel processor (13). Map information stored at a predetermined address; and It pre-calculates and stores the parameters based on the arguments given by the control unit, and then uses the pre-calculated parameters in response to the arguments given during the actual calculation. Map Interpolation Value If the calculation result is stored, the calculation result is provided to the control unit, which determines control information based on the calculation result provided by the parallel processor, and controls the controlled object using the control information. If the argument provided from the control unit is outside the pre-calculated range, the control unit is notified that it is out of range, and a map interpolation value is calculated by either a control unit or a parallel calculation processor that is predetermined depending on the number of dimensions and scale of the map. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a functional block diagram showing a configuration of a microcomputer according to a first embodiment; [Diagram 2] Block diagram showing the connections between the engine ECU and each ECU [Diagram 3] A block diagram showing the schematic configuration of a parallel arithmetic processor. [Figure 4] A diagram showing the structure of the operation instruction group [Diagram 5] Diagram showing the operations involved in precomputation [Figure 6] Diagram showing one-dimensional map [Figure 7] Diagram showing the search method [Figure 8] Diagram showing calculation points [Figure 9] Diagram showing the scope around the arguments [Figure 10] Diagram showing transmission and reception between the core and the parallel processor [Figure 11] FIG. 13 is a diagram showing transmission and reception between a core and a parallel processor according to the second embodiment. [Figure 12] FIG. 13 is a diagram showing transmission and reception between a core and a parallel processor according to the third embodiment. [Figure 13] FIG. 13 is a diagram showing a two-dimensional map according to the fourth embodiment; [Figure 14] Diagram showing calculation points [Figure 15] Diagram showing linear interpolation in the X-axis direction (part 1) [Figure 16] Diagram showing linear interpolation in the X-axis direction (part 2) [Figure 17] Diagram showing linear interpolation in the Y-axis direction [Figure 18] Diagram showing the scope around the arguments DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, a number of embodiments will be described with reference to the drawings. In the multiple embodiments, the same reference numerals may be used to designate functionally or structurally corresponding parts.
[0010] (First embodiment) The first embodiment will be described with reference to FIGS. As shown in Fig. 2, the vehicle is equipped with an engine ECU (Electronic Control Unit) 1. The engine ECU 1 corresponds to an electronic control device. The engine ECU 1 is communicatively connected to other ECUs, such as an automatic transmission ECU 3, a meter ECU 4, and an air conditioning ECU 5, via an in-vehicle LAN 2. The protocol of the in-vehicle LAN 2 is, for example, CAN (Controller Area Network). CAN is a registered trademark.
[0011] The engine ECU 1 is mainly composed of a microcomputer 11. As shown in Fig. 1, the microcomputer 11 is configured with a core group 12 consisting of multiple cores 12a to 12c and a parallel arithmetic processor 13, and these cores 12a to 12c and the parallel arithmetic processor 13 process multiple arithmetic operations in parallel to achieve high speed processing.
[0012] The cores 12a to 12c and the parallel arithmetic processor 13 are connected to each other via an internal bus 14, and are also connected to memories such as a ROM 15 and a RAM 16, and an I / O 17 such as a CAN interface. The microcomputer 11 is also connected to another microcomputer 18 and peripheral circuits 19 such as an AD converter.
[0013] The cores 12a to 12c receive detection signals from various sensors for detecting the operating state of the engine via an input circuit 20, and process detection values indicated by the detection signals to control actuators for controlling the engine via an output circuit 21, or transmit and receive communication signals to and from other ECUs via a communication circuit 22. When a predetermined calculation process is required to control the engine, the cores 12a to 12c request the parallel calculation processor 13 to perform the process.
[0014] 3, the parallel arithmetic processor 13 is composed of a memory 23, a control circuit 24, and a plurality of arithmetic units 25. The memory 23 sequentially stores information for processing a group of arithmetic instructions provided by the plurality of cores 12a to 12c.
[0015] The control circuit 24 performs arithmetic processing of the arithmetic instruction group stored in the memory 23 in cooperation with the arithmetic unit 25. In other words, the control circuit 24 has a scheduler function, and automatically allocates the arithmetic instructions constituting the arithmetic instruction group stored in the memory 23 to the corresponding arithmetic unit 25.
[0016] The arithmetic unit 25 sequentially processes the arithmetic instructions assigned by the control circuit 24. The multiple arithmetic units 25 may be of the same type or different types, and parallel processing is possible by assigning the same type or different types of arithmetic instructions to the arithmetic units 25. The arithmetic unit 25 stores the arithmetic processing results in the memory 23.
[0017] When the multiple cores 12a to 12c request the parallel arithmetic processor 13 to process a group of arithmetic instructions, they obtain the arithmetic results via the memory 23 and execute the subsequent processes based on the arithmetic results.
[0018] The processing order of the operation instructions requested by the cores 12a to 12c is specified. For example, the operation instruction group shown in Fig. 4 specifies that the operation instruction A is processed first, followed by the next operation instructions B to D, and then the next operation instruction E is processed after all the operation instructions B to D are processed.
[0019] Now, it is conceivable to have the parallel arithmetic processor 13 process tasks that require high-speed processing in order to reduce the processing time of the cores 12a to 12c, but the information used in the processing of the parallel arithmetic processor 13 needs to be loaded from the shared memory of the electronic control device to the internal memory 23 of the parallel arithmetic processor 13 for each control cycle. Therefore, there is a risk that the overhead generated at that time will increase the processing time, thereby reducing the effect of using the parallel arithmetic processor 13.
[0020] For these reasons, in this embodiment, if there is any processing that can be pre-calculated by the parallel arithmetic processor 13, a processing request is made to the parallel arithmetic processor 13 in advance. When making this processing request, information required for the pre-calculation is passed to the parallel arithmetic processor 13. Upon receiving the processing request, the parallel arithmetic processor 13 performs pre-calculation based on the information and stores the calculation results. The range of pre-calculation is determined according to the characteristics of the information. For example, a parameter indicated by a time constant is determined, and if the fluctuation range of the information is likely to change for each control cycle, the parameter is set to a large value to set a large range of pre-calculation.
[0021] In the following, map calculation is exemplified as a process that can be pre-calculated by the parallel calculation processor 13, but the process is not limited to map calculation and may be any process that can be pre-calculated. As shown in FIG. 5, map information for control is stored in the shared memory 26 of the electronic control device, and when it becomes necessary for the parallel processor 13 to perform calculations based on the map, the map information is loaded into a specified address in the internal memory 23 of the parallel processor.
[0022] Addresses for loading map information corresponding to the requesting cores 12a to 12c are set in the internal memory 23, and map information is loaded into the corresponding addresses when it is loaded into the parallel arithmetic processor 13. When a variable is provided from the cores 12a to 12c, the parallel arithmetic processor 13 performs map calculation based on the map information stored in the corresponding address and returns the calculation result to the cores 12a to 12c.
[0023] The above operation will now be described in detail. The cores 12a to 12c store in advance a one-dimensional map as shown in Fig. 6. This one-dimensional map shows the correspondence relationship between map points X and corresponding value points Y. A corresponding value Y1 is set corresponding to map point X1, a corresponding value Y2 is set corresponding to map value X2, ... a corresponding value Y9 is set corresponding to map value X9.
[0024] When determining a map interpolation value corresponding to a variable using such a one-dimensional map, if the variable is a map point (X1, X2, ...) defined on the X-axis of the one-dimensional map, the corresponding value (Y1, Y2, ...) can be directly determined. However, if the variable is not defined on the X-axis, the map interpolation value YA cannot be directly determined from the variable XA.
[0025] In such a case, map point A can be interpolated based on map points on the X-axis and Y-axis, but if cores 12a to 12c were to perform the interpolation based on a one-dimensional map, the processing time of cores 12a to 12c would become too long and there is a risk that they would not be able to keep up with the calculation. Therefore, the interpolation process, which requires high speed processing, is performed by parallel arithmetic processor 13, thereby reducing the processing time of cores 12a to 12c.
[0026] When determining a map interpolation value corresponding to a variable in the next periodic task, the cores 12a to 12c provide the parallel processor 13 with the current variable or a variable predicted from the current variable to be used in the next periodic task as an argument XA. Hereinafter, a method for calculating the map interpolation value YA corresponding to the argument XA by the interpolation process in the parallel calculation processor 13 will be described, where X1≦XA≦X2 is assumed.
[0027] The parallel calculation processor 13 first performs an axis search. In the axis search, as shown in FIG. 7, a magnitude judgment is performed starting from map point X9 to determine whether the calculation point is between map points X1 to X9, and the corresponding calculation point is searched for. The axis search may start from map point X1, or from an intermediate map point. If the calculation point is between X1 and X2 when searching from X9, it is predicted that the number of searches will continue to increase. Therefore, it is desirable to improve the efficiency of the search by changing the search start point for each control cycle based on the calculation point from the previous axis search.
[0028] If the result of the axis search by magnitude judgment is that X1≦XA≦X2 as shown in Fig. 8, one-dimensional map interpolation processing is executed. In this interpolation processing, a map interpolation value YA corresponding to the argument XA is calculated from the map points (X1, Y1) and (X2, Y2) using the following first-order linear interpolation formula. YA=((Y2-Y1) / (X2-X1))*(XA-X1)+Y1 By executing the axis search and interpolation processing of the arguments as described above, a map calculation is performed, and a map interpolation value YA corresponding to the argument XA can be obtained as shown in FIG.
[0029] Next, because X1≦XA≦X2, the range indicated by diagonal lines in Fig. 9 is defined as the range around the argument, and interpolation processing is performed for each lattice point. The area around the argument on the X-axis is expressed as ±pLSB from the argument point in the X-axis direction. LSB is the amount of change in the physical value when the RAM value indicating XA changes by 1, in other words, the minimum amount of change in the variable. p is a parameter that indicates the axis characteristics as a time constant. The range around the argument is set by predicting fluctuations for each control cycle.
[0030] Next, an operation of performing map calculation in the parallel arithmetic processor 13 in response to a processing request from the cores 12a to 12c will be described. This embodiment is characterized in that the parallel arithmetic processor 13 pre-calculates and stores a map interpolation value, processes the next periodic task based on the map interpolation value associated with an argument transmitted from the cores 12a to 12c, and passes the calculation result to the cores 12a to 12c.
[0031] As shown in FIG. 10, information is transmitted and received between the cores 12a to 12c and the parallel processor 13 as follows. [Precalculation] (1) The cores 12a to 12c transmit arguments of a map to be used in the next periodic task and map information around the arguments. (2) The parallel calculation processor 13 performs map calculations by executing axis search and interpolation processing around the arguments, and stores the arguments and the map interpolated values in association with each other. (3) The parallel calculation processor 13 transmits the address of the internal memory 23 that holds the map interpolation value.
[0032] [Periodic task processing] (4) When the next control cycle arrives, the cores 12a to 12c request processing. (5) The parallel calculation processor 13 performs a process to obtain calculation values associated with the arguments from the cores 12a to 12c. At this time, the map used is the map calculation stored in (2). (6) The parallel processor 13 returns the calculation result of (5) if the argument to be used is within the range of values held in (2). On the other hand, if the argument to be used is outside the range, it notifies the cores 12a to 12c that it is outside the range.
[0033] (7) When the cores 12a to 12c receive a message indicating that the map is out of range, they perform axis search and interpolation processing to calculate the map. Depending on the number of dimensions and scale of the map, calculations may be faster using the parallel calculation processor 13, so calculations are performed using the parallel calculation processor 13. It is determined in advance whether the calculation should be performed by the cores 12a to 12c or the parallel calculation processor 13 depending on the number of dimensions and scale of the map.
[0034] (8) When it is faster to have the parallel calculation processor 13 perform the calculations, the cores 12a to 12c transmit the map interpolation values and the map information. (9) The parallel calculation processor 13 performs map calculations based on the received information. (10) The parallel calculation processor 13 returns the calculation result, so that the cores 12a to 12c execute the subsequent processes based on the calculation result.
[0035] [Precalculate next periodic task] (11) For the recalculated map, the cores 12a to 12c transmit the arguments of the map to be used in the next periodic task and map information around the arguments. (12) The parallel calculation processor 13 performs the same process as (2) and updates the results it has stored. (13) The parallel calculation processor 13 transmits the address holding the map interpolation value.
[0036] According to this embodiment, the following effects can be obtained. The parallel arithmetic processor 13 pre-calculates and stores map interpolation values corresponding to arguments and their surroundings from the maps stored based on arguments provided from the cores 12a to 12c, and if a calculation result of the pre-calculation corresponding to an argument provided in the next periodic task is stored, the calculation result is provided to the cores 12a to 12c, and the cores 12a to 12c execute subsequent processing using the map interpolation values calculated based on the calculation result provided from the parallel arithmetic processor 13. This makes it possible to suppress overhead, thereby shortening the processing time using the parallel arithmetic processor 13.
[0037] Since the range around the argument by the parallel calculation processor 13 is set in accordance with the characteristics of the map axis, the range around the argument can be set appropriately. Since the cores 12a to 12c can receive the calculation results by transmitting arguments at the desired timing after pre-calculation, the subsequent processing can be executed quickly.
[0038] Since the parallel arithmetic processor 13 changes the storage area for storing the calculation results depending on the destination of the calculation results, the cores 12a to 12c can receive the calculation results at any timing.
[0039] Second embodiment The second embodiment will be described with reference to Fig. 11. The second embodiment is characterized in that the parallel arithmetic processor 13 pre-calculates and holds map interpolation values, and in the next periodic task, passes the map interpolation values associated with arguments transmitted from the cores 12a to 12c to the cores 12a to 12c, and the cores 12a to 12c execute calculations based on the map interpolation values.
[0040] As shown in FIG. 11, information is transmitted and received between the cores 12a to 12c and the parallel processor 13 as follows. [Precalculation] (1) The cores 12a to 12c transmit arguments of a map to be used in the next periodic task and map information around the arguments. (2) The parallel calculation processor 13 performs map calculations by executing axis search and interpolation processing around the arguments, and stores the arguments and the map interpolated values in association with each other. (3) The parallel calculation processor 13 transmits the address of the internal memory 23 that holds the map interpolation value.
[0041] [Periodic task processing] (4) When the next control cycle begins, the cores 12a to 12c transmit the arguments of the map. (5) If the argument to be used is within the range of the information held in (2), the parallel calculation processor 13 returns a map interpolation value associated with the argument. On the other hand, if the argument to be used is outside the range of the information held in (2), it notifies that it is outside the range.
[0042] (6) The cores 12a to 12c perform processing based on the received map interpolation value. On the other hand, if it is received that the value is out of range, the cores 12a to 12c perform map calculation by executing axis search and interpolation processing. If it is better to have the parallel calculation processor 13 perform the calculation depending on the number of dimensions and scale of the map, the cores 12a to 12c transmit the map information to the parallel calculation processor 13, and the parallel calculation processor 13 performs the calculation. In this case, it is determined in advance which one should be used for the calculation depending on the number of dimensions and scale of the map.
[0043] (7) The parallel processor 13 transmits map information when the parallel processor 13 is to perform map calculations. (8) The parallel calculation unit 13 performs map calculations. (9) The parallel calculation processor 13 transmits the map interpolated value. (10) The cores 12a to 12c use the received map interpolated values for processing.
[0044] [Precalculate next periodic task] (11) For the recalculated map, the cores 12a to 12c transmit the arguments of the map to be used in the next periodic task and map information around the arguments. (12) The parallel calculation processor 13 performs the same process as (2) and updates the results it has stored. (13) The parallel calculation processor 13 transmits the address holding the map interpolation value.
[0045] According to this embodiment, the parallel arithmetic processor 13 pre-calculates and stores the map interpolation values, and in the next periodic task, the map interpolation values associated with the arguments transmitted from the cores 12a to 12c are passed to the cores 12a to 12c, and calculations based on the map interpolation values are performed by the cores 12a to 12c. Therefore, even if the processing power of the parallel arithmetic processor 13 is reduced, the overall processing time can be shortened.
[0046] Third embodiment The third embodiment will be described with reference to Fig. 12. The third embodiment is characterized in that the parallel calculation processor 13 pre-calculates map interpolation values, the cores 12a to 12c hold information related thereto, and the next periodic task is processed based on the map interpolation values associated with arguments.
[0047] [Precalculation] (1) The cores 12a to 12c transmit arguments of a map to be used in the next periodic task and map information around the arguments. (2) The parallel calculation processor 13 performs map calculations by executing axis search and interpolation processing around the arguments, and associates the arguments with map interpolated values. (3) The parallel processor 13 transmits the information in (2). (4) The cores 12a to 12c hold the received information.
[0048] [Periodic task processing] (5) The cores 12a to 12c use the stored information to perform processing. If the cores 12a to 12c do not store a result corresponding to the argument, they perform a map calculation before processing.
[0049] [Precalculate next periodic task] (6) For the recalculated map, the cores 12a to 12c transmit the arguments of the map to be used in the next periodic task and map information around the arguments. (7) The parallel calculation processor 13 performs the same process as in (2). (8) The parallel calculation processor 13 transmits the processed information. (9) The cores 12a to 12c update the information in (4).
[0050] According to this embodiment, the map is calculated by transmitting arguments and map information to the parallel arithmetic processor 13 in advance, and the associated information is stored in the cores 12a to 12c, and the next periodic task is processed based on the map interpolation value associated with the arguments. Therefore, even if the processing capacity of the parallel arithmetic processor 13 is extremely reduced, the overall processing time can be shortened.
[0051] (Fourth embodiment) The fourth embodiment will be described with reference to Figures 13 to 16. The fourth embodiment is characterized in that a two-dimensional map is used as the target map.
[0052] As shown in FIG. 13, in the two-dimensional map, a corresponding value Z11 is set corresponding to map point (X1 (X1≦XA≦X2), Y1 (Y1≦YA≦Y2)), a corresponding value Z12 is set corresponding to map point (X2, Y2), ... a corresponding value Z99 is set corresponding to map point (X9, Y9). As shown in FIG. 14, the calculation method of the interpolated value ZA of an arbitrary point (XA, YA) in the two-dimensional map is a combination of linear interpolation using a linear equation in the X-axis direction and the Y-axis direction.
[0053] That is, by searching for the calculation point of the map point of an arbitrary point (XA, YA), the calculation point can be determined as shown in Fig. 14. Since the calculation point is between four points (X1, Y1, Z11), (X2, Y1, Z12), (X1, Y2, Z21), and (X2, Y2, Z22), the interpolation value ZA of the map point (XA, YA) is calculated by a combination of linear interpolation using the first-order expressions of the following interpolation processes 1 to 3.
[0054] First, Zi corresponding to the point (XA, Y1) is found by the interpolation process 1. In the interpolation process 1, as shown in FIG. 15, an interpolation value Zi is calculated from map points (X1, Y1, Z11) and (X2, Y1, Z12) based on the search result of point (XA (X1≦XA≦X2), Y1). The linear interpolation formula for the X-axis direction is Zi=((Z12-Z11) / (X2-X1))*(XA-X1)+Z11.
[0055] Next, Zii corresponding to the point (XA, Y2) is obtained by the interpolation process 1. In the interpolation process 2, as shown in FIG. 16, an interpolation value Zii is calculated from map points (X1, Y2, Z21) and (X2, Y2, Z22) based on the search result of point (XA (X1≦XA≦X2), Y2). The linear interpolation formula in the X-axis direction is Zii = ((Z22-Z21) / (X2-X1))*(XA-X1)+Z21.
[0056] Finally, ZA corresponding to point YA is found by the interpolation process 3. In the interpolation process 3, an interpolation value ZA for a point YA (Y1≦YA≦Y2) is calculated from two points (XA, Y1, Zi) and (XA, Y2, Zii) of the interpolated values calculated in the interpolation processes 1 and 2, as shown in FIG. The linear interpolation formula in the Y-axis direction is ZA=((Zii-Zi) / (Y2-Y1))*(YA-Y1)+Zi. Instead of first interpolating the X-axis direction and then the Y-axis direction, it is also possible to first interpolate the Y-axis direction and then the X-axis direction.
[0057] As shown in Figure 18, for example, if the argument is a point (X (X1≦X≦X2), Y (Y1≦Y≦Y2)), the area around the argument is defined as the diagonal line range, and interpolation is performed for each grid point. In other words, the axis is calculated as ±pLSB in the X-axis direction from the argument point, and ±qLSB in the Y-axis direction. LSB is the amount of change in the physical value when the RAM value changes by 1. In this case, it is decided in advance which method should be used for calculation depending on the number of dimensions and scale of the map. For example, if the X-axis is water temperature and the Y-axis is engine speed, engine speed is basically the parameter that changes more easily, so the Y-axis is set to be wider.
[0058] According to such an embodiment, even if the target map is a two-dimensional map, map calculation can be performed appropriately by sequentially interpolating the X-axis direction and the Y-axis direction.
[0059] (Other embodiments) When the parallel processor 13 does not store the calculation result corresponding to the argument given in advance in the current periodic task, the parallel processor 13 may perform calculation based on the argument given this time and transmit the calculation result to the cores 12a to 12c. In this case, the interpolation process can be performed even if the periphery of the argument has not been interpolated.
[0060] The parallel processor 13 may perform calculations on the currently given arguments and related arguments and update the stored calculation results before executing the next periodic task. In this case, even if the parallel processor 13 does not store the calculation results corresponding to the arguments, it is possible to prevent the effect of using the parallel processor 13 from decreasing.
[0061] The first to third embodiments may be combined in accordance with the processing capacity of the parallel arithmetic processor 13. In other words, when the processing capacity of the parallel arithmetic processor 13 is high, the parallel arithmetic processor 13 may operate as in the first embodiment, and when the processing capacity decreases, the parallel arithmetic processor 13 may operate as in the second or third embodiment.
[0062] A three-dimensional or higher target map may be used. The electronic control device is not limited to the engine ECU, and may be any device that controls a controlled object.
[0063] Although the present disclosure has been described based on the embodiment, it is understood that the present disclosure is not limited to the embodiment or structure. The present disclosure also encompasses various modifications and modifications within the equivalent range. In addition, various combinations and forms, as well as other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and concept of the present disclosure. [Explanation of symbols]
[0064] In the drawing, reference numeral 1 denotes an engine ECU (electronic control unit), 11 denotes a microcomputer, 12a to 12c denote cores (control units), 13 denotes a parallel arithmetic processor, and 25 denotes a computing unit.
Claims
1. An electronic control device including a microcomputer (11) equipped with a parallel arithmetic processor (13) capable of performing parallel processing by a plurality of arithmetic units (25), A shared memory (26) in which map information for control is stored; A control unit (12a to 12c) that controls a control target based on control information, When it becomes necessary for the parallel processor to perform a calculation based on a map, the control unit loads the map information of the shared memory to a predetermined address of an internal memory (23) provided in the parallel processor, provides the parallel processor with variables required for a calculation to obtain the control information as arguments, and obtains the control information based on the calculation result provided by the parallel processor. The parallel calculation processor performs pre-calculation and stores the map interpolation value based on the map information stored at the specified address and the arguments provided by the control unit, and provides the calculation result to the control unit if a calculation result of a map interpolation value by pre-calculation has been stored corresponding to the arguments provided by the control unit at the time of actual calculation, and notifies the control unit that the arguments provided by the control unit are outside the pre-calculated range, and calculates the map interpolation value using either the control unit or the parallel calculation processor, which is predetermined depending on the number of dimensions and scale of the map.
2. The electronic control device according to claim 1 , wherein the parallel calculation processor performs calculations on arguments and peripheral elements of the arguments as pre-calculation.
3. The variables are set as axes of the map; 3. The electronic control device according to claim 2, wherein a range around an argument by the parallel processor is set according to characteristics of the axis.
4. The electronic control device according to claim 1 , wherein the control unit receives the calculation result by the pre-calculation by transmitting an argument at a timing when the control unit desires to receive the calculation result after the pre-calculation.
5. 5. The electronic control device according to claim 4, wherein the parallel calculation processor changes a storage area for storing the calculation results according to a destination of the calculation results obtained by the pre-calculation.
6. 6. The electronic control device according to claim 1, wherein, when the parallel arithmetic processor does not store a calculation result corresponding to an argument given in a pre-calculation at the time of actual calculation, the parallel arithmetic processor performs a calculation based on the currently given argument and transmits the calculation result to the control unit.
7. 7. The electronic control device according to claim 6, wherein when the parallel processor performs a calculation based on an argument currently given in a case where the parallel processor does not store a calculation result corresponding to an argument given in a pre-calculation at the time of actual calculation, the parallel processor calculates the argument and its surroundings and updates the stored calculation result.
Citation Information
Patent Citations
Control system of thyristor power source for resistance welding machine
JP1980097884A
Treating device for data table and method thereof
JP1994093925A
Method for minimizing necessity of arithmetic operation and resultant cache therefor
JP1994318154A
Apparatus and method for generating video within a computer system
JP1998509291A
Electronic control unit and memory device of electronic control unit
JP2004225668A
