Virtual development environment device, method and recording medium
The virtual development environment device automates bridge placement and configuration between CAE and virtual ECU tools, addressing inefficiencies in manual vHILS construction and enhancing simulation efficiency.
Patent Information
- Application Number
- JP2021116022
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2041-07-13
AI Technical Summary
The manual process of building a vHILS environment is time-consuming and requires manual placement of bridges and configuration of signal lines between CAE tools and virtual ECU simulation tools, leading to potential errors and inefficiencies.
A virtual development environment device equipped with a vHILS environment construction tool that automatically places bridges and configures connections between CAE tools and virtual ECU simulation tools, reducing manual intervention and errors.
Automated construction of the vHILS environment reduces the time and effort required for verification, minimizes user errors, and enhances efficiency in creating a functional simulation environment.
Smart Images

Figure 0007576521000001 
Figure 0007576521000002 
Figure 0007576521000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a virtual development environment device. The present disclosure is applicable to a virtual development environment device that uses a virtual environment called vHILS (Virtual Hardware In the Loop Simulation), for example. [Background technology]
[0002] MBD (Model Based Development) is becoming more widespread in the development of software for control devices such as ECUs (Electronic Control Units). In control system development, the functions of the control device and the controlled object are modeled using CAE (Computer Aided Engineering) tools such as MATLAB (registered trademark) / shimulink (registered trademark). MBD is a development methodology that aims to improve quality and development efficiency throughout the entire product lifecycle by using these models as executable specifications. MBD is also carried out according to a development process known as the V-shaped development process.
[0003] Within the V-shaped development process, there are processes in which computer simulation plays an important role, such as MILS (Model In the Loop Simulation) and HILS (Hardware In the Loop Simulation). In MILS, the functions of the control device and the functions of the controlled object, called the plant, are modeled, and then the MILS model that combines these is verified. HILS is a simulation that uses the ECU to be implemented. In HILS, the ECU is verified by combining the actual ECU with a model of the plant.
[0004] If HILS performance verification reveals that the ECU performance has not been achieved, it is necessary to redesign the ECU. Redesigning an ECU requires work hours. For this reason, vHILS is used instead of HILS. vHILS is a simulation that virtualizes HILS using a model of the ECU to be implemented (virtual ECU). In the vHILS environment, software code generated from MILS is used, and verification is performed using a virtual ECU simulation tool. This reduces the work hours required to go back and redesign.
[0005] Japanese Patent Application Laid-Open No. 2018-81400 discloses the following: A system control application program for an ECU is developed and verified using a virtual device model (virtual ECU) of an ECU to be developed and a system test program for the ECU. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2018-81400 A Summary of the Invention [Problem to be solved by the invention]
[0007] The task of constructing a vHILS environment from MILS is manual, and redesign efforts still remain. A bridge is required to connect the CAE tool and the virtual ECU simulation tool. Users must manually place this bridge in the MILS model. Users must also manually configure the bridge to connect the signal lines of the virtual ECU's I / O (Input / Output) ports.
[0008] Other objects and novel features will become apparent from the description of this specification and the accompanying drawings. [Means for solving the problem]
[0009] A brief outline of a representative aspect of the present disclosure is as follows: The virtual development environment device is equipped with a vHILS environment construction tool, and automatically performs the placement of bridges and bridge connection settings required for vHILS. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating the vHILS environment. [Diagram 2] FIG. 2 is a diagram for explaining a bridge that connects the CAE tool and the virtual ECU simulation tool. [Diagram 3] FIG. 3 is a diagram showing an example of the configuration of a virtual development environment device in a comparative example. [Figure 4] FIG. 4 is a diagram showing an example of the configuration of the virtual development environment device in the first embodiment. [Diagram 5] FIG. 5 is a diagram for explaining the configuration and processing of the vHILS environment construction tool shown in FIG. [Figure 6] FIG. 6 is a diagram showing an example of the configuration of a virtual development environment device in the second embodiment. [Figure 7] FIG. 7 is a diagram for explaining the configuration and processing of the vHILS environment construction tool shown in FIG. [Figure 8] FIG. 8 is a diagram showing the configuration of the MILS model in the third embodiment. [Figure 9] FIG. 9 is a diagram showing an example of the configuration of a vHILS when there is a shortage of output I / O ports in the MILS model shown in FIG. [Figure 10] FIG. 10 is a diagram illustrating the vHILS environment in the third embodiment. [Figure 11] FIG. 11 is a diagram showing an example of the configuration of a virtual development environment device in the third embodiment. [Figure 12] FIG. 12 is a diagram for explaining the configuration and processing of the vHILS environment construction tool shown in FIG. [Figure 13] FIG. 13 is a flowchart showing the process of the I / O port setting unit shown in FIG. [Figure 14] FIG. 14 is a flowchart showing the process of the I / O port setting unit shown in FIG. [Figure 15] FIG. 15 is a diagram showing an example of the configuration of a vHILS when there is a shortage of input I / O ports in the MILS model shown in FIG. [Figure 16] FIG. 16 is a diagram showing an example of the configuration of vHILS in a modified example of the third embodiment corresponding to the MILS model shown in FIG. [Figure 17] FIG. 17 is a diagram showing an example of the configuration of a virtual development environment device in a modified example of the third embodiment. [Figure 18] FIG. 18 is a diagram for explaining the configuration and processing of the vHILS environment construction tool shown in FIG. [Figure 19] FIG. 19 is a flowchart showing the process of the I / O port setting unit shown in FIG. [Figure 20] FIG. 20 is a flowchart showing the process of the I / O port setting unit shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments, examples, and modifications will be described with reference to the drawings. In the following description, the same components are designated by the same reference numerals, and repeated description may be omitted.
[0012] First, the process of constructing a vHILS environment from a MILS environment will be explained with reference to Figures 1 and 2.
[0013] In the MILS environment, the functions of the control device and the functions of the controlled object, called the plant, are modeled, and then a MILS model is created that combines these. Then, the MILS model is simulated using a CAE tool (CAE_T) to verify the MILS model. For example, as shown in Figure 1, the MILS model has three blocks: a controller block (CNTR) that implements the control, a plant block (PLNT) that is the controlled object, and a delay block (DLY). In addition, to realize a loop simulation, the inputs and outputs of these three blocks are connected to each other in a ring shape with signal lines.
[0014] In the vHILS environment, the CAE tool (CAE_T) and the virtual ECU simulation tool (vECU_ST) are connected, and the CAE tool (CAE_T) and the virtual ECU simulation tool (vECU_ST) work together to perform a simulation. For this purpose, a bridge (BRDG) is created to connect the MILS model and the virtual ECU simulation tool (vECU_ST). Then, the bridge (BRDG) is replaced with the controller block (CNTR) of the MILS model to create a vHILS model. In addition, the source code of the software program (the program that realizes the functions of the controller block) generated from the verified controller block (CNTR) of the MILS model is built. Then, the built load module is downloaded to the virtual ECU simulation tool (vECU_ST) and used when simulating the virtual ECU.
[0015] As shown in FIG. 2, the virtual ECU (vECU) verified by the virtual ECU simulation tool (vECU_ST) has a ROM (Read Only Memory) that stores a downloaded load module, an input I / O port (I1), an output I / O port (O1), and the like. The bridge (BRDG) shown in FIG. 1 is composed of an output bridge and an input bridge. As shown in FIG. 2, the output bridge connects the input port (in1) of the controller block and the input I / O port (I1) used for input to the virtual ECU (vECU). The input bridge connects the output port (out1) of the controller block (CNTR) and the output I / O port (O1) used for output from the virtual ECU (vECU).
[0016] Next, in order to clarify this embodiment, the configuration of a virtual development environment device in a comparative example will be described with reference to FIG.
[0017] The virtual development environment device 100 in the comparative example has a CPU (Central Processing Unit) 110, a main memory device 120, an auxiliary memory device 130, and a bus (BUS) 140 connecting them. The main memory device 120 stores a CAE tool (CAE_T) 121, a build tool (BUILD_T) 122, and a virtual ECU simulation tool (vECU_ST) 123. The auxiliary memory device 130 stores a vHILS model and a set of source code (c1).
[0018] The CAE tool 121 is a tool that performs a simulation using a MILS model or a vHILS model. The virtual ECU simulation tool 123 is a tool that simulates a virtual ECU (vECU).
[0019] The user prepares a set of source code (c1) and stores it in the auxiliary storage device 130. The set of source code (c1) includes source code (c11) of an application program to be run in a virtual ECU (vECU) generated from a MILS model, and source code (c12, c13) of a driver that initializes input and output I / O ports. The build tool 122 generates a load module (c2) from the set of source code (c1). The user also prepares a vHILS model and stores it in the auxiliary storage device 130.
[0020] In the virtual development environment device in the comparative example, the user must manually place a bridge (BRDG) in the MILS model. In addition, the user must manually set the connection of the signal line of the I / O port of the virtual ECU (vECU) to the bridge (BRDG). The user performs these operations to create a vHILS model and stores it in the auxiliary storage device 130.
[0021] Next, an embodiment will be described below. The virtual development environment device in the embodiment has a new vHILS environment construction tool compared to the comparative example. The user then newly prepares block name information as the first setting information of the controller block (CNTR) and I / O port information as the second setting information. The vHILS environment construction tool automatically places the bridge (BRDG) and sets up the bridge (BRDG) connections.
[0022] In this way, the embodiment arranges the bridge (BRDG) based on the block name information and I / O port information of the controller block (CNTR), and automatically compiles the process up to the setting of the bridge (BRDG). This allows the vHILS environment that connects the CAE tool (CAE_T) and the virtual ECU simulation tool (vECU_ST) to be automatically constructed. For the user, the time required for arranging and setting the bridge (BRDG) can be reduced. In addition, even if the number of signal lines used is increased or decreased due to a change in the MILS model, the time required for changing the arrangement and reconfiguration of the bridge (BRDG) can be reduced.
[0023] Hereinafter, specific examples of the embodiment will be described using a first example, a second example, and a third example. EXAMPLES
[0024] The configuration of the virtual development environment device in the first embodiment will be described with reference to FIG.
[0025] The virtual development environment device 100 has a CPU 110, a main memory 120 as a first memory, an auxiliary memory 130 as a second memory, and a bus 140 connecting them. The CPU 110 and the main memory 120 form a processing execution unit. The virtual development environment device 100 may be configured to include various input devices, a display, a communication interface, and the like. The various input devices are devices that accept operational inputs to the virtual development environment device 100. The various input devices are, for example, a keyboard, a button, and a mouse. The display is a device that displays various types of information. The communication interface is a device that communicates various types of data with external devices.
[0026] The virtual development environment device 100 is, for example, a desktop personal computer equipped with a display. However, the virtual development environment device 100 is not limited to this and may be any device having the functions described below. The virtual development environment device 100 may be, for example, a laptop personal computer.
[0027] The CPU 110 reads various programs, including an OS (Operating System) and application programs, installed in the auxiliary storage device 130. The CPU 110 then loads the read programs into the main storage device 120 and executes them.
[0028] The primary storage device 120 is typically a volatile storage medium such as a Synchronous Dynamic Random Access Memory (SDRAM). The primary storage device 120 holds various work data necessary for executing various programs, in addition to the codes of various programs including the OS executed by the CPU 110. The auxiliary storage device 130 is a non-volatile storage medium such as a hard disk or a Solid State Drive (SSD). The auxiliary storage device 130 holds various programs including the OS, in addition to various design information, etc. Note that the primary storage device 120 and the auxiliary storage device 130 may be collectively referred to as memory.
[0029] A CAE tool (CAE_T) 121, a build tool (BUILD_T) 122, a virtual ECU simulation tool (vECU_ST) 123, and a vHILS environment construction tool (vHILS_ECT) 124 are software programs stored in the main storage device 120 and the auxiliary storage device 130. Note that Fig. 4 shows the storage state of each tool at the time of execution.
[0030] The CAE tool 121 is a tool that performs a simulation using a MILS model or a vHILS model. The build tool 122 is a tool that individually defines the tasks that make up a build (analysis, compilation, linking, test execution, etc.) and executes them. The build tool 122 generates a load module (c2) from source code (c1). The virtual ECU simulation tool 123 is a tool that simulates a virtual ECU (vECU). The vHILS environment construction tool 124 is a tool that constructs a vHILS environment. The vHILS environment construction tool 124 has a MILS model analysis unit A1.
[0031] Prior to processing by the vHILS environment construction tool 124, the user prepares a MILS model (m1) that runs on the CAE tool 121 and stores it in the auxiliary storage device 130. As described above, the MILS model (m1) has a controller block (CNTR) that implements control, a plant block (PLNT) to be controlled, and the like.
[0032] The user also prepares first setting information (a1) and second setting information (a2) and stores them in the auxiliary storage device 130. The first setting information (a1) is a name given to a controller block (CNTR) among blocks included in the MILS model (m1), and is block name information of the controller block (CNTR). The second setting information (a2) is I / O port information in which a list of I / O ports available in the virtual ECU (vECU) is described.
[0033] Furthermore, the user prepares a set of source codes (c1) and stores it in the auxiliary storage device 130. The set of source codes (c1) includes an application code (c11), an input I / O port driver (c12), and an output I / O port driver (c13). The application code (c11) is a source code of an application program to be run in the virtual ECU (vECU). The application code (c11) is generated from a MILS model. The input I / O port driver (c12) initializes the I / O port of the virtual ECU (vECU). For example, the driver (c12) sets the I / O port of the virtual ECU (vECU) to be used as an input I / O port. The output I / O port driver (c13) initializes the I / O port of the virtual ECU (vECU). For example, the driver (c13) sets the I / O port of the virtual ECU (vECU) to be used as an output I / O port. The driver (c12) and the driver (c13) are created by the user. The build tool 122 generates a load module (c2) from the set of source codes (c1).
[0034] The configuration and processing of the vHILS environment construction tool 124 will be described with reference to FIG.
[0035] The MILS model analysis unit A1 has a model analysis unit A1-1, a bridge placement unit A1-2, an I / O port setting unit A1-3, and a bridge port connection unit A1-4.
[0036] The processing of the MILS model analysis unit A1 will be described with reference to FIG.
[0037] (Model Analysis Part A-1) The model analysis unit A1-1 reads the MILS model (m1) and the first setting information (a1) from the auxiliary storage device 130. Then, the model analysis unit A1-1 acquires the block name of the controller block (CNTR) from the first setting information (a1). Next, the model analysis unit A1-1 analyzes the MILS model (m1) and acquires the names of all blocks included in the MILS model (m1). The model analysis unit A1-1 searches for a block name that matches the block name of the controller block (CNTR) from among all the acquired block names, and identifies the controller block (CNTR). The model analysis unit A1-1 identifies the positions of the input port and the output port of the controller block (CNTR), and outputs the positions to the main storage device 120 as the first result information (b1). The first result information (b1) is information on the placement position of the bridge (BRDG).
[0038] (Bridge placement section A1-2) The bridge placement unit A1-2 reads the MILS model (m1) and the first result information (b1) from the auxiliary storage device 130. Then, the bridge placement unit A1-2 obtains output port information of the controller block (CNTR) from the first result information (b1), and places an output bridge at the output port of the controller block (CNTR) which is the placement position of the bridge (BRDG). The bridge placement unit A1-2 obtains input port information of the controller block (CNTR) from the first result information (b1), and places an input bridge at the input port of the controller block (CNTR) which is the placement position of the bridge (BRDG). The bridge placement unit A1-2 deletes blocks other than the bridge (BRDG) in the controller block (CNTR). As a result, a MILS model in which the bridge (BRDG) is placed is generated. The bridge placement unit A1-2 outputs the MILS model in which the bridge (BRDG) is placed to the main storage device 120 as the second model (m2).
[0039] (I / O port setting section A1-3) The I / O port setting unit A1-3 reads the second model (m2) from the main storage device 120. Then, the I / O port setting unit A1-3 reads the second setting information (a2) from the auxiliary storage device 130, and obtains information on the I / O ports available for the virtual ECU (vECU). The I / O port setting unit A1-3 performs one-to-one correspondence between the available I / O ports of the virtual ECU (vECU) and all the input ports and output ports of the controller block (CNTR). That is, the I / O port setting unit A1-3 corresponds the input I / O ports of the virtual ECU (vECU) to the input ports of the controller block (CNTR), and corresponds the output I / O ports of the virtual ECU (vECU) to the output I / O ports of the virtual ECU (vECU). As a result, correspondence information between the I / O ports of the virtual ECU (vECU) and the input and output ports of the controller block (CNTR) is generated. The I / O port setting unit A1-3 outputs the association information to the main storage device 120 as second result information (b2).
[0040] (Bridge port connection A1-4) The bridge port connection unit A1-4 reads the second model (m2) and the second result information (b2) from the main storage device 120. Then, the bridge port connection unit A1-4 connects the bridge (BRDG) to the virtual ECU simulation tool 123. Specifically, the bridge port connection unit A1-4 obtains correspondence information between the input I / O port and the output I / O port of the virtual ECU (vECU) and the input port and the output port of the controller block (CNTR) from the second result information (b2). Based on the correspondence information, the bridge port connection unit A1-4 associates the input port with the input I / O port and the output port with the output I / O port in the bridge (BRDG) of the second model (m2). That is, the bridge port connection unit A1-4 obtains the input I / O port information of the virtual ECU (vECU) and the input port name of the controller block (CNTR), and connects the input port of the input bridge to the input I / O port. The bridge port connection unit A1-4 obtains the output I / O port information of the virtual ECU (vECU) and the output port name of the controller block (CNTR), and connects the output port of the output bridge to the output I / O port. This generates a model in which the bridge (BRDG) and the I / O port of the virtual ECU (vECU) are associated and connected. The bridge port connection unit A1-4 outputs the model for which the association has been completed to the main storage device 120 as a vHILS model (m3).
[0041] According to the first embodiment, the placement of the bridge (BRDG) and the connection settings of the bridge (BRDG) required for verification using vHILS are performed automatically. This allows the user to reduce the time (man-hours) required to build a verification environment using vHILS. In addition, automating the construction of the vHILS environment can reduce user errors when building the vHILS environment. EXAMPLES
[0042] Next, a second embodiment will be described. In the second embodiment, an I / O port driver generation unit A2 is further provided in the vHILS environment construction tool in the first embodiment to automatically generate an I / O port driver for a virtual ECU (vECU).
[0043] The configuration of the virtual development environment device in the second embodiment will be described with reference to FIG.
[0044] The configuration of the virtual development environment device 100 in the second embodiment is the same as that in the first embodiment, except that the vHILS environment construction tool 124 stored in the main storage device 120 and the auxiliary storage device 130 has a MILS model analysis unit A1a and an I / O port driver generation unit A2.
[0045] The configuration and processing of the vHILS environment construction tool 124 in the second embodiment will be described with reference to FIG.
[0046] The MILS model analysis unit A1a has a model analysis unit A1-1, a bridge placement unit A1-2, an I / O port setting unit A1-3a, and a bridge port connection unit A1-4. The model analysis unit A1-1, the bridge placement unit A1-2, and the bridge port connection unit A1-4 in the second embodiment have the same configurations as in the first embodiment. And the I / O port driver generation unit A2 has a driver generation unit A2-1.
[0047] In the second embodiment, the model analysis unit A1-1, the bridge placement unit A1-2, and the bridge port connection unit A1-4 perform the same processes as in the first embodiment. The process of the I / O port setting unit A1-3a will be described with reference to FIG.
[0048] (I / O port setting section A1-3a) First, similarly to the I / O port setting unit A1-3 of the first embodiment, the I / O port setting unit A1-3a reads the second model (m2) from the main storage device 120. Then, the I / O port setting unit A1-3a reads the second setting information (a2) from the auxiliary storage device 130. Then, the I / O port setting unit A1-3a associates the I / O ports of the virtual ECU (vECU) with the input ports and output ports of the controller block (CNTR). Then, the I / O port setting unit A1-3a outputs the association result to the main storage device 120 as second result information (b2).
[0049] Next, the I / O port setting unit A1-3a outputs information on the associated I / O ports as third result information (b3) and fourth result information (b4) to the main memory device 120. That is, the I / O port setting unit A1-3 outputs the name of the associated input I / O port as the third result information (b3). Then, the I / O port setting unit A1-3 outputs the name of the associated output I / O port as the fourth result information (b4).
[0050] (I / O port driver generation part A2) The driver generation unit A2-1 of the I / O port driver generation unit A2 reads the third result information (b3) from the main storage device 120. Then, the driver generation unit A2-1 acquires the name of the input I / O port. Then, the driver generation unit A2-1 generates a driver code that initializes the I / O port for input based on the acquired name of the input I / O port. Then, the driver generation unit A2-1 outputs the driver code to the auxiliary storage device 130 as a driver (c12) for the input I / O port.
[0051] The driver generation unit A2-1 reads the fourth result information (b4) from the main storage device 120. Then, the driver generation unit A2-1 acquires the name of the output I / O port. Then, the driver generation unit A2-1 generates a driver code that initializes the output I / O port driver based on the acquired name of the output I / O port. Then, the driver generation unit A2-1 outputs the driver code to the auxiliary storage device 130 as a driver (c13) for the output I / O port.
[0052] According to the second embodiment, by automatically creating drivers for the I / O ports of the virtual ECU (vECU), the user does not need to create the drivers as in the first embodiment, which can reduce the number of steps required to create the drivers and the number of errors that users may make when creating the drivers. EXAMPLES
[0053] In the first and second embodiments, the case where the number of I / O ports available on the virtual ECU (vECU) is sufficient for the number of input and output ports of the MILS model is described. In the third embodiment, the case where the number of I / O ports available on the virtual ECU (vECU) is insufficient is described.
[0054] A method for configuring vHILS when the number of available I / O ports of a virtual ECU (vECU) is insufficient for the number of input and output ports of the MILS model will be described with reference to FIGS. 8 and 9.
[0055] As shown in FIG. 8, the controller block (CNTR) controls four plant blocks (PLNT1 to PLNT4). The controller block (CNTR) has four input ports (in1 to in4) and four output ports (out1 to out4). The four output ports (out1 to out4) are connected to the input ports (i1 to i4) of the four plant blocks (PLNT1 to PLNT4), respectively. For example, when the number of output I / O ports of the virtual ECU (vECU) is two, there is a shortage of output I / O ports.
[0056] Therefore, when the I / O ports (IO) of a virtual ECU (vECU) are insufficient, a second virtual ECU (vECU2) and a LIN (Local Interconnect Network) bus are added to the first virtual ECU (vECU1) as shown in Fig. 9. Then, by using the I / O ports (IO) of the added second virtual ECU (vECU2) in combination, the shortage of I / O ports is resolved.
[0057] Here, the four input I / O ports (I1 to I4) of the first virtual ECU (vECU1) are connected to the four input ports (in1 to in4) of the controller block (CNTR) via an output bridge. The two output I / O ports (O3, O4) of the first virtual ECU (vECU1) are connected to the two output ports (out3, out4) of the controller block (CNTR) via an input bridge. The two output I / O ports (O1, O2) of the second virtual ECU (vECU2) are connected to the two output ports (out1, out2) of the controller block (CNTR) via an input bridge.
[0058] The two signals processed in the first virtual ECU (vECU1) are output to the output I / O ports (O1, O2) of the second virtual ECU (vECU2) via the LIN block that controls communication according to the LIN standard of the first virtual ECU (vECU1), the LIN bus, and the LIN block of the second virtual ECU (vECU2). The other two signals processed in the first virtual ECU (vECU1) are output to the output I / O ports (O3, O4) of the first virtual ECU (vECU1).
[0059] The vHILS environment in the third embodiment will be described with reference to Fig. 10. In the vHILS environment, a simulation is performed by replacing the controller block (CNTR) of the MILS model with a first virtual ECU (vECU1) and a second virtual ECU (vECU2). For this reason, an output bridge is created that connects the input ports (in1 to in4) of the controller block (CNTR) and the input I / O ports (I1 to I4) of the first virtual ECU (vECU1). Then, an input bridge is created that connects the output ports (out1, out2) of the controller block (CNTR) and the output I / O ports (O1, O2) of the second virtual ECU (vECU2) and also connects the output ports (out3, out4) of the controller block (CNTR) and the output I / O ports (O3, O4) of the first virtual ECU (vECU1).
[0060] Then, a bridge (BRDG) combining these output bridges and input bridges is replaced with the controller block (CNTR) of the MILS model to create a vHILS model. Also, the source code of the software program generated from the controller block (CNTR) of the MILS model is built and downloaded to the ROM of the first virtual ECU (vECU1). The vHILS model in the CAE tool (CAE_T), the first virtual ECU (vECU1) in the first virtual ECU simulation tool (vECU_ST1), and the second virtual ECU (vECU2) in the second virtual ECU simulation tool (vECU_ST2) are connected. Then, the CAE tool (CAE_T), the first virtual ECU simulation tool (vECU_ST1), and the second virtual ECU simulation tool (vECU_ST2) cooperate to perform a simulation.
[0061] The configuration of the virtual development environment device in the third embodiment will be described with reference to Fig. 11. The configuration of the virtual development environment device 100 in the third embodiment is the same as that in the first embodiment. However, the vHILS environment construction tool 124 stored in the main storage device 120 has a MILS model analysis unit A1b.
[0062] The configuration and processing of the MILS model analysis unit in the third embodiment will be described with reference to FIG.
[0063] The MILS model analysis unit A1b has a model analysis unit A1-1, a bridge arrangement unit A1-2, an I / O port setting unit A1-3b, and a bridge port connection unit A1-4. The model analysis unit A1-1, bridge arrangement unit A1-2, and bridge port connection unit A1-4 in the third embodiment have the same configurations as in the first embodiment. The model analysis unit A1-1, bridge arrangement unit A1-2, and bridge port connection unit A1-4 in the third embodiment are the same as in the first embodiment.
[0064] The process of the I / O port setting unit A1-3b will be described with reference to FIG. 13 and FIG.
[0065] 13, the I / O port setting unit A1-3 reads the second setting information (a2) from the auxiliary storage device 130 (step S31). Then, the I / O port setting unit A1-3b reads the second model (m2) from the main storage device 120 (step S32). Then, the I / O port setting unit A1-3 associates one input port of the controller block (CNTR) with one input I / O port of the virtual ECU (vECU), and performs this association for all input ports (step S33).
[0066] Next, the I / O port setting unit A1-3 compares the number of output I / O ports (Nvop) of the virtual ECU (vECU) with the number of output ports (Ncop) of the controller block (CNTR) (step S3b1).
[0067] When the number (Nvop) of output I / O ports of the virtual ECU (vECU) is equal to or larger than the number (Ncop) of output ports, the I / O port setting unit A1-3 associates all output I / O ports of the virtual ECU (vECU) with the output ports of the controller block (CNTR) one by one (step S34). The I / O port setting unit A1-3b outputs the association result as second result information (b2) (step S35). Note that the processing of the I / O port setting unit A1-3 in the first embodiment is performed in steps S31, S32, S33, S34, and S35.
[0068] When the number (Nvop) of output I / O ports of the virtual ECU (vECU) is smaller than the number (Ncop) of output ports, as shown in FIG. 14, the I / O port setting unit A1-3 sets the variable (mcu) to 1 and sets the number (Ncop) of output I / O ports to be used to the variable (uaop) (step S3b2). Then, the I / O port setting unit A1-3 associates the output ports of the controller block (CNTR) with all the output I / O ports of the virtual ECU (vECU) one by one (step S3b3). Then, the I / O port setting unit A1-3 excludes the associated output ports from the targets of unsupported output ports. That is, the I / O port setting unit A1-3 subtracts the number (Naop) of output I / O ports of the assigned virtual ECU (vECU) from the variable (uaop) (step S3b4).
[0069] Next, the I / O port setting unit A1-3 compares the variable (uaop) with "0" to determine whether or not there remains an output port for which no correspondence has been established (step S3b5).
[0070] If there is an output port that has not been associated (uaop>0), the I / O port setting unit A1-3 adds one virtual ECU (vECU) and adds "1" to the variable (mcu) (step S3b6). Then, the I / O port setting unit A1-3 associates the output ports of the controller block (CNTR) one by one with all the output I / O ports of the added virtual ECU (vECU) (step S3b3). This process is repeated until all the output ports are associated with the output I / O ports. If there is no output port that has not been associated (uaop=0), the I / O port setting unit A1-3 proceeds to step S35 shown in FIG. 13.
[0071] A method for configuring vHILS when the number of available input I / O ports of a virtual ECU (vECU) is insufficient for the number of input ports of the MILS model will be described with reference to FIGS. 8 and 15.
[0072] As shown in FIG. 8, when the number of input ports and output ports of the controller block (CNTR) is four and the number of input I / O ports of the virtual ECU (vECU) is two, there is a shortage of input I / O ports.
[0073] Therefore, when there is a shortage of input I / O ports for the virtual ECU (vECU), a second virtual ECU (vECU2) is added in addition to the first virtual ECU (vECU1) as shown in Fig. 15. Then, by using the I / O ports of the added second virtual ECU (vECU2) in combination, the shortage of I / O ports is resolved.
[0074] Here, the two input I / O ports (I3, I4) of the first virtual ECU (vECU1) are connected to the two input ports (in3, in4) of the controller block (CNTR) via an output bridge. The four output I / O ports (O1 to O4) of the first virtual ECU (vECU1) are connected to the four output ports (out1 to out4) of the controller block (CNTR) via an input bridge. The two input I / O ports (I1, I2) of the second virtual ECU (vECU2) are connected to the two input ports (in1, in2) of the controller block (CNTR) via an output bridge.
[0075] The two signals input to the I / O port (IO) of the second virtual ECU (vECU2) are processed in the first virtual ECU (vECU1) via the LIN block and LIN bus of the second virtual ECU (vECU2) and the LIN block of the first virtual ECU (vECU1). The two signals input to the I / O port (IO) of the first virtual ECU (vECU1) are processed in the first virtual ECU (vECU1). The four signals processed in the first virtual ECU (vECU1) are output to the output I / O ports (O1 to O4) of the first virtual ECU (vECU1).
[0076] When there is a shortage of input I / O ports, the I / O port setting unit A1-3b performs the same process as when there is a shortage of output I / O ports, and outputs the result as third result information (b3).
[0077] According to the third embodiment, even if a shortage of I / O ports occurs in a virtual ECU (vECU), the shortage of I / O ports can be automatically resolved, and the number of steps required to address the shortage of I / O ports can be reduced. Furthermore, in the study before the ECU to be used is determined, the number of I / O ports required becomes clear, and the target specifications of the ECU to be used can be determined.
[0078] [Modification of the third embodiment] In the third embodiment, when the number of I / O ports is insufficient, an example is described in which I / O ports of multiple virtual ECUs (vECUs) are used in combination. When there are multiple control targets (plants), it may be preferable for specific multiple plants to be controlled by one ECU.
[0079] For example, when multiple control objects need to operate simultaneously, the ECU needs to output signals at the same time. When there are multiple such combinations or multiple equal or similar control objects, they are likely to be placed close to each other on the wiring. Also, when there are multiple control objects with dependencies (control objects have priority), such as driving one control object before driving another, the ECU needs to output signals while maintaining the timing difference.
[0080] In this modified example, in these cases, a single ECU is preferentially assigned to these multiple control targets.
[0081] A method of configuring a vHILS in a modified example in which the number of available output I / O ports of a virtual ECU (vECU) is insufficient for the number of output ports of the MILS model will be described with reference to FIGS. 8 and 16.
[0082] As shown in Fig. 8, when the number of input ports and output ports of the controller block (CNTR) is four and the number of output I / O ports of the virtual ECU (vECU) is two, the output I / O ports will be insufficient. Here, the second plant block (PLNT2) and the fourth plant block (PLNT4) surrounded by the dashed line in Fig. 8 are control objects having priority.
[0083] Therefore, when the I / O ports of the virtual ECU (vECU) are insufficient, a second virtual ECU (vECU2) and a LIN bus are added to the first virtual ECU (vECU1) taking into consideration the priority, as shown in Fig. 16. By using the I / O ports of the added second virtual ECU (vECU2) in combination, the shortage of I / O ports can be resolved.
[0084] When associating the I / O ports of the virtual ECU (vECU) with the input and output ports of the controller block (CNTR), for example, priority is given to associating those in which the plant is located near the ECU. For example, as shown in Fig. 16, the second plant block (PLNT2) and the fourth plant block (PLNT4) are located near each other, so the second plant block (PLNT2) and the fourth plant block (PLNT4) are controlled by the same first virtual ECU (vECU1). There is no restriction on the location of the first plant block (PLNT1) and the third plant block (PLNT3), so they are controlled by the second virtual ECU (vECU2).
[0085] Here, the four input I / O ports (I1 to I4) of the first virtual ECU (vECU1) are connected to the four input ports (in1 to in4) of the controller block (CNTR) via an output bridge. The two output I / O ports (O2, O4) of the first virtual ECU (vECU1) are connected to the two output ports (out2, out4) of the controller block (CNTR) via an input bridge. The two output I / O ports (O1, O3) of the second virtual ECU (vECU2) are connected to one output port (out1, out3) of the controller block (CNTR) via an input bridge.
[0086] The two signals processed in the first virtual ECU (vECU1) are output to the output I / O ports (O1, O3) of the second virtual ECU (vECU2) via the LIN block and LIN bus of the first virtual ECU (vECU1) and the LIN block of the second virtual ECU (vECU2). The other two signals processed in the first virtual ECU (vECU1) are output to the output I / O ports (O2, O4) of the first virtual ECU (vECU1).
[0087] The configuration and processing of the virtual development environment device in this modified example will be described with reference to FIG. 17. The configuration of the virtual development environment device 100 in this modified example is the same as that of the third embodiment. However, the vHILS environment construction tool 124 stored in the main storage device 120 has a MILS model analysis unit A1c. In addition to the MILS model (m1), first setting information (a1) and second setting information (a2), third setting information (a3) is stored in the auxiliary storage device 130. The third setting information (a3) is information on the output port of the plant block (PLNT) to be preferentially assigned to the I / O port of one virtual ECU (vECU), i.e., the controller block (CNTR), and is also referred to as priority port information.
[0088] The configuration of the MILS model analysis unit in this modified example will be described with reference to Fig. 18. The MILS model analysis unit A1c has a model analysis unit A1-1, a bridge arrangement unit A1-2, an I / O port setting unit A1-3c, and a bridge port connection unit A1-4. The model analysis unit A1-1, bridge arrangement unit A1-2, and bridge port connection unit A1-4 in the modified example of the third embodiment have the same configurations as those in the third embodiment.
[0089] The processing of the MILS model analysis unit A1c in this modified example will be described with reference to Fig. 18. The processing of the model analysis unit A1-1, bridge arrangement unit A1-2 and bridge port connection unit A1-4 in this modified example is the same as that in the first embodiment.
[0090] The process of the I / O port setting unit A1-3c will be described with reference to FIGS.
[0091] As shown in Fig. 19, steps S31, S32, S33, S34, and S35 of this modified example are similar to the processing of the third embodiment. Also, as shown in Fig. 20, steps S3b2, S3b3, S3b4, S3b5, and S3b6 of this modified example are similar to the processing of the third embodiment. Below, processing that differs from the third embodiment will be described.
[0092] As shown in FIG. 19, the I / O port setting unit A1-3 reads the third setting information (a3) before step 3c3, which will be described later.
[0093] As shown in FIG. 20, after step S3b2, the I / O port setting unit A1-3 compares the variable (mcu) with "1" (step S3c2). In the case of allocation to the I / O port of the first virtual ECU (vECU), the I / O port setting unit A1-3 allocates the unsupported output port to the all output I / O port of the virtual ECU (vECU) based on the third setting information (a3) (step S3c3). In the case of allocation to the I / O port of the second or subsequent virtual ECU (vECU), the I / O port setting unit A1-3 associates the unsupported output port with the all output I / O port of the virtual ECU (vECU) (step S3c3).
[0094] For example, if multiple plants are located close to each other, they can be controlled by the same ECU, shortening the wiring required for ECU implementation. This can improve performance, such as execution speed, and eliminate the shortage of I / O ports while reducing costs.
[0095] The program for executing the processes described in the above embodiments can be provided as a program product by being recorded on a non-transient computer-readable recording medium such as a magnetic disk such as an HDD attached to a computer, an optical disk such as a CD, a magneto-optical disk such as an MO, or a semiconductor memory such as a USB memory. Alternatively, the program can be provided by being recorded on a recording medium such as a hard disk built into a computer. The program can also be provided by downloading via a network.
[0096] The disclosure made by the present inventors has been specifically described above based on the embodiments, examples, and modifications. However, the present disclosure is not limited to the above-mentioned embodiments, examples, and modifications, and it goes without saying that various modifications can be made without departing from the gist of the disclosure. [Explanation of symbols]
[0097] 100 Virtual development environment device 110...CPU (Central Processing Unit) 120: Main memory device (first memory) 130 Auxiliary storage device (second memory)
Claims
1. A virtual development environment apparatus for performing vHILS by cooperating a simulation of a MILS model and a simulation of a virtual ECU, a processing execution unit including a central processing unit and a first memory; a second memory for storing the MILS model including a controller block including an input port and an output port and a plant block that is a control target of the controller block, first setting information for identifying the controller block in the MILS model, a program for realizing a function of the controller block used when executing a simulation of the virtual ECU, and second setting information describing a list of I / O ports that can be used in the virtual ECU, The processing execution unit includes: Identifying a controller block in the MILS model based on the first setting information; a bridge is disposed at the input port and the output port of the specified controller block for connecting the input port and the output port to an I / O port of the virtual ECU; The bridge is configured to connect an I / O port of the virtual ECU based on the second setting information. Virtual development environment equipment.
2. 2. The virtual development environment apparatus of claim 1, The I / O port of the virtual ECU includes an input I / O port and an output I / O port, The processing execution unit includes: generating positions of the input ports and the output ports of the identified controller block as first result information; generating a second model in which the bridge is arranged at the output port and the input port based on the first result information; generating second result information in which the input port or the output port is associated with an I / O port of the virtual ECU based on the second setting information and the second model; generating a vHILS model in which the input port and the output port in the bridge are connected to the input I / O port and the output I / O port, respectively, based on the first result information and the second result information; Virtual development environment equipment.
3. 3. The virtual development environment apparatus of claim 2, The processing execution unit includes: Obtaining a block name of the controller block based on the first setting information, and obtaining block names of all blocks in the MILS model; configured to search and identify a controller block in the MILS model based on the obtained block name; Virtual development environment equipment.
4. 4. The virtual development environment apparatus of claim 3, The processing execution unit includes: obtaining output port information of the controller block from the first result information; placing an input bridge at the output port of the controller block based on the acquired output port information; obtaining input port information of the controller block from the first result information; arranging an output bridge at the input port of the controller block based on the acquired input port information; and generating the second model by deleting blocks other than the input bridge and the output bridge in the controller block. Virtual development environment equipment.
5. 5. The virtual development environment apparatus of claim 4, the processing execution unit is configured to generate the second result information by associating the input port with an input I / O port of the virtual ECU and by associating the output port with an output I / O port of the virtual ECU based on the second setting information and the second model. Virtual development environment equipment.
6. 6. The virtual development environment apparatus of claim 5, The processing execution unit includes: acquiring input I / O port information and an input port name from the second model and the second result information; connecting the input port in the output bridge to the input I / O port based on the acquired input I / O port information and input port name; obtaining output I / O port information and an output port name from the second model and the second result information; connecting the output port in the input bridge and the output I / O port based on the acquired output I / O port information and output port name; configured to generate the vHILS model; Virtual development environment equipment.
7. 6. The virtual development environment apparatus of claim 5, The processing execution unit includes: acquiring correspondence information that associates an I / O port of the virtual ECU with the input port or the output port; generating a driver code for initializing an I / O port based on the association information; Virtual development environment equipment.
8. 8. The virtual development environment apparatus of claim 7, the correspondence information is a name of an input I / O port associated with the input port and a name of an output I / O port associated with the output port, The processing execution unit includes: generating an input driver code for initializing the input I / O port based on the name of the input I / O port; generating an output driver code for initializing the output I / O port based on the name of the output I / O port; Virtual development environment equipment.
9. 3. The virtual development environment apparatus of claim 2, The processing execution unit includes: Corresponding the input port to an input I / O port of the virtual ECU based on the second setting information and the second model; If the number of output I / O ports of the virtual ECU is smaller than the number of output ports, a virtual ECU is added; Corresponding the output ports to the output I / O ports of the virtual ECU and the output I / O ports of the added virtual ECU based on the second setting information and the second model; configured to generate the second result information; Virtual development environment equipment.
10. 10. The virtual development environment apparatus of claim 9, the second memory further stores third setting information for specifying an output port to be preferentially connected to an I / O port of the virtual ECU; The processing execution unit includes: and generating the second result information by associating the output port with an output I / O port of the virtual ECU and an output I / O port of the added virtual ECU based on the second setting information, the second model, and the third setting information. Virtual development environment equipment.
11. A method for implementing vHILS in a virtual development environment apparatus having a central processing unit and a memory, the virtual development environment apparatus performing vHILS by cooperating with a simulation of a MILS model and a simulation of a virtual ECU, the method comprising: the memory stores the MILS model including a controller block including an input port and an output port and a plant block that is a control target of the controller block, first setting information for identifying the controller block in the MILS model, a program for realizing a function of the controller block that is used when executing a simulation of the virtual ECU, and second setting information in which a list of I / O ports that can be used in the virtual ECU is described; Identifying a controller block in the MILS model based on the first setting information; a bridge is disposed at the input port and the output port of the specified controller block for connecting the input port and the output port to an I / O port of the virtual ECU; A method for connecting the bridge and an I / O port of the virtual ECU based on the second setting information.
12. A computer-readable recording medium having a central processing unit and a memory, non-temporarily recording a program executed in a virtual development environment device that performs vHILS by simulating a MILS model and a virtual ECU, comprising: the memory stores the MILS model including a controller block including an input port and an output port and a plant block that is a control target of the controller block, first setting information for identifying the controller block in the MILS model, a program for realizing a function of the controller block that is used when executing a simulation of the virtual ECU, and second setting information in which a list of I / O ports that can be used in the virtual ECU is described; identifying a controller block in the MILS model based on the first setting information; a step of arranging a bridge at the input port and the output port of the specified controller block to connect the input port and the output port to an I / O port of the virtual ECU; a recording medium for recording a program for executing a procedure for connecting the bridge and an I / O port of the virtual ECU based on the second setting information.
Citation Information
Patent Citations
Simulation device, simulation method, and development support method
JP2008269022A
Arithmetic unit and virtual development environment device
JP2018081400A
Simulation method and simulation program
JP2021043749A
