Model Integration
The shift from Model-in-the-Loop (MIL) and Software-in-the-Loop (SIL) simulations to Hardware-in-the-Loop (HIL) closed-loop simulation introduces several technical challenges.
- Plant Model and Software under Test Split
- Plant Model Real-time Execution
- Plant Model Harnessing for HIL
- Plant Model Signal Mapping to HIL Physical Channels
Plant Model and Software under Test Path Split
One of the primary changes involves the separation of the plant simulation from the software under test (SUT). In HIL setups, the plant model must be migrated to a dedicated HIL controller to ensure real-time execution. Meanwhile, the SUT is deployed onto the actual ECU hardware.
The following diagram overviews how the model framework execution is split across two different target hardware: Real-time Machine from HIL System and Real Vehicle ECU.

Plant Model Real-Time Execution
To maintain real-time performance, the choice between using the HIL controller’s CPU or an FPGA board depends on the model’s sampling rate. Typically, models with sampling rates exceeding 10 kHz require FPGA-based execution to meet timing constraints and ensure accurate simulation fidelity.
Plant model real-time execution at the required sampling rate needs also to be verified as the computational resources for its execution could exceed those available from the real-time target.
An implementation of the original model suitable for real-time HIL execution (often known as the HIL implementation model) often leads to the partitioning of the model to enable multicore execution.
Plant Model Harnessing for HIL
The HIL implementation model will also need to be harnessed for the HIL system. Model harnessing is about making available in the real-time platform desired model signals and parameters for reading and writing purposes.
Plant Model Signal Mapping to HIL Channels
This step is fundamental to ensure all the signals produced or fed to the models are redirected to the appropriate interface so the HIL can emulate the behaviour for the ECU to implement the desired functions.
Example of mapping are:
- Connecting models output to network messages (such CAN, LIN, etc…) or physical IO interfaces,
- Connecting models input to ECU interfaces (them being network or physical IO) so the ECU sees the process variables and other inputs as they are presented in the real environment.
The HIL system acts as hardware abstraction layer that will make available IO interfaces to the software modules and provide the information form the source to destination by linking the various component on a logical basis.