With Model-in-the-Loop Simulation (MILS) tools such as Simulink, you build a control model by wiring together the modeling libraries the tool provides — addition/subtraction blocks, PID control, and so on — letting you verify a control-ECU controller or vehicle plant model on a PC. Once that model is used to auto-generate code targeted at the real ECU's microcontroller, on-target verification is possible — without hand-written-code debugging work (setting the BSW portion aside) — even without a SILS tool like GSIL. So if you're already developing this way, is there still a benefit to using an SILS tool like GSIL?

1. The Benefits of GSIL in MILS Development

1-1. Integration Testing of Auto-Generated and Hand-Written Code

One benefit is being able to run integration tests combining auto-generated code with hand-written code. In model-based development, it's efficient to build control-related portions such as PID control using models, while developing everything else with hand-written code. Engineers already working in C also need to learn a new modeling approach, and when extending legacy C code it's often more efficient to keep using C directly. In such cases, code auto-generated from a model needs to be tested together with the remaining hand-written C code — something GSIL makes straightforward.

1-2. Automated Exhaustive Testing

To improve reliability, GSIL can automatically generate, execute, and verify an enormous number of test cases that would be impossible to create by hand. MILS tools sometimes offer similar functionality, but it's typically an add-on feature that carries meaningful extra cost. Those tools also tend to focus on raising the coverage percentage, which by itself doesn't equate to testing a large number of combinations. GSIL, by contrast, performs automated exhaustive testing at no additional cost. Simply varying inputs at random produces tests very different from real vehicle driving and isn't meaningful — GSIL lets you attach constraints to input values, making tests closer to what would actually happen in a real vehicle.

Example of automated exhaustive testing

1-3. Back-to-Back (B2B) Testing

In model-based development, Back-to-Back (B2B) testing — confirming that a model and real hardware behave the same way — is necessary. GSIL makes B2B testing easy. First, run the automated exhaustive testing described above in GSIL and export the resulting test cases to CSV, which contains an enormous number of variable combinations. That CSV (the input CSV) is then run through the model-based environment, with its output written to another CSV.

The same input CSV is then run against real hardware once it's complete, and its output is likewise written to CSV. Comparing the two output results confirms whether the model and real hardware behave identically.

Back-to-Back testing

1-4. Timing Verification

Automotive ECU control has timing requirements — such as "complete processing within a specific time" — and timing verification confirms whether those requirements are being met. However, because MILS and real hardware execution environments differ so significantly, timing verification within MILS alone is difficult. GSIL, by contrast, enables timing verification by using our companion tool chronVIEW.

2. Summary

As shown here, applying GSIL to model-based development brings a range of benefits. If you're interested, we'd encourage you to take a look at the product page, where GSIL is explained in more detail.

Author
Hiroshi Ueda

Ubiquitous AI Corporation

Embedded Business Unit 3, Deputy General Manager

Hiroshi Ueda

After university, Ueda joined a Tier 1 supplier and worked on ECU software development. He later worked overseas as an embedded software development engineer before returning to Japan, where he has been engaged in technical sales for automotive software since 1998. Drawing on his own experience, he sources overseas software products that help solve customers' development challenges and delivers them to engineers in Japan.

Related Insights

Get in Touch

For more details on GSIL

Contact Us

Want to learn more about GSIL or have challenges in automotive ECU software development?

Try GSIL for Free

Try GSIL for Free

We offer a free trial for corporations, including training and setup support.

Back to Product Page