Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

AUTOMOTIVE

Taking
Control
Subaru Forester

One of the greatest challenges for electric


and hybrid vehicle designers is creating
accurate control systems that balance
safety, performance and energy efficiency. For nearly a decade, Subaru has relied on ANSYS SCADE
solutions to develop the software code that underlies the electronic control units (ECUs) for its
electric car program. By leveraging SCADE, Subaru engineers can quickly and accurately generate
the mission-critical code that keeps electric vehicles running safely and smoothly, no matter how
complex their technology architecture.
By ANSYS Advantage Staff

F
or the past decade, Subaru Bringing all these sophisticated While Subaru often partners with
Corporation has been at systems together, safely and major auto parts manufacturers to
the forefront of hybrid seamlessly, means establishing co-develop vehicle components,
and electric vehicle design, a flawless system of controls. the engineering team in Subaru’s
beginning with its hybrid engine All components must integrate Tokyo-based electronics department
design for the Subaru XV in perfectly with one another, and
2013 and continuing with its mission-critical functions that
fifth-generation Forester SUV could lead to a system failure, such
introduced in 2018, supported by as steering, must be protected.
a second-generation hybrid engine Maintaining and managing
called the e-BOXER. all these systems is the job of the
To answer consumer needs and electronic control unit (ECU) that
maintain the company’s industry lies at the heart of every hybrid
leadership, Subaru engineers have and electric vehicle. Supported
included more and more advanced by millions of lines of underlying
technologies with every new embedded software code — and
e-vehicle launch. Critical systems subject to strict regulatory
like propulsion, acceleration and oversight — the ECU is one of
braking are now complemented by the most crucial elements of any
infotainment systems, customized electric car.
heating and cooling options, and
Yuji Kawakami, senior engineer
other electronics that add to the in Subaru’s electronics
driving experience. engineering department

© 2019 ANSYS, INC. ANSYS ADVANTAGE I 45


Taking Control (continued)

“While SCADE solutions save valuable time, they also


support Subaru’s long-standing commitment to delivering
high levels of product quality and passenger safety.”

assumes full responsibility for adds new complexity to the Kawakami noted that this
designing and verifying the ECU. control logic and places additional development flow has remained
Since 2008, these engineers have demands on Subaru’s engineers the same at Subaru for nearly a
relied on SCADE solutions from to ensure the ECU’s accuracy and decade, beginning with the ECU
ANSYS to model and generate the tight control. for the Subaru XV and continuing
ECU’s embedded software code. To create the control logic through the more complex ECU to
SCADE has played an essential needed to drive the ECU, support the e-BOXER. A key benefit
role in the fast, cost-effective and Subaru engineers use MATLAB/ of this development flow is that
accurate creation of this code for Simulink, a common industry many steps — from Simulink to
each of Subaru’s hybrid-electric practice. However, according model creation to code generation
vehicles. to Yuji Kawakami, senior — are automated, requiring almost
engineer in Subaru’s electronics no manual intervention.
A MORE DIRECT ROUTE engineering department in Tokyo, “In generating control
TO CODE GENERATION the Subaru team continues to software code for Subaru’s first
The process of generating software apply specialized technology to hybrid vehicle, the Subaru
code for the ECU begins by XV, about 80% of the
defining the control development work
logic for bringing was automated,”
all the parts of the Kawakami stated.
car’s electronics “As Subaru’s
architecture engineering team
together. improved its
This set of internal processes
logic-based rules by using ANSYS
ensures that all the SCADE, the amount
car’s electronics are of automation
integrated safely and securely. It Subaru e-BOXER increased to 95% for the code
manages the system interactions, underlying the e-BOXER.”
sends alerts when needed and produce a systems architecture Today, it only takes Subaru
can also shut down systems in and underlying software code. engineers half a day to implement a
an emergency. It controls vehicle While many other automotive model for an ECU once the Simulink
dynamics, engine function, the engineering teams rely on manual control logic has been defined.
vehicle’s energy consumption methods to accomplish these This enables Subaru’s developers
and the load management of the tasks, Kawakami leads Subaru’s to modify the ECU’s logic and
electric battery. effort to significantly accelerate architecture much more frequently
For the Forester e-BOXER, this process by applying SCADE and easily as they explore
which features an innovative, software. continuing design innovations.
horizontally opposed engine, the “First, Subaru engineers
ECU delivers added intelligence convert the control logic into ENSURING OUTSTANDING
that balances optimal driving a SCADE model of the overall SAFETY, PRODUCT QUALITY
conditions with high fuel system architecture, using AND COMPLIANCE
efficiency. For example, the SCADE Suite Simulink Gateway,” Subaru has a long-standing
e-BOXER’s ECU is programmed said Kawakami. “Then our commitment to delivering high
to support smooth but firm engineers apply SCADE Suite levels of product quality and
acceleration via a motor assist KCG Code Generator to create passenger safety. While SCADE
function, without creating an implementation code based on solutions save valuable time, they
energy drain on the battery. This this model.” also support that commitment by

46 I ANSYS ADVANTAGE ISSUE 3 | 2019


<SmEBUApp>

RunState InitState
<WhenBlock>
thread
AppThreadAdi
that the overall ECU control logic
is modified in Simulink at a later
ThreadAdi
Shrmln_AdiType tbAdiType
Shrmln_Adi Shrmln_Adi ThreadAdi tbAdi tbAdi

AppThreadMed
date by Subaru engineers, SCADE
Shrmln_Adi Shrmln AdiType Shrmln_Adi
ThreadMid solutions automatically and
tbEvi
tbEviType
tbLowType
tbEvi
ThreadMid
ShrmOut_Mid
ShrmOut_MidType
ShrmOut_Mid universally reflect these changes in
tbLow tbLow
the system model and embedded
software code, eliminating costly
AppThreadEvi

ThreadEvi
Shrmln_EviType
Shrmln_Evi
Shrmln_Adi Shrmin_AdiType
Shrmln_Evi
Shrmln_Adi
ShrmOut_Evi
ShrmOut_EviType
ShrmOut_Evi rework and manual updates.
tbAdiType 4 tbAdiType ThreadEvi tbEviType
tbAdi in out tbAdi tbEvi tbEvi
tbLow tbLowType tbLow

WINNING THE RACE VIA


AppThreadLow
ACCELERATED MARKET
Shrmln_LowType

LAUNCHES
Shrmln_Low Shrmln_Low
Shrmln_AdiType ShrmOut_Low ShrmOut_LowType
Shrmln_Adi Shrmln_Adi ShrmOut_Low

“When Subaru engineers first


tbAdiType 5 tbAdiType
tbAdi
tbAdi in out
ShrmOut_InstType
tbEviType 6 tbEviType ThreadLow ShrmOut_Inst ShrmOut_Inst
tbEvi in out tbEvi
1
DiagResultPreBus
DiagResultPreBusType

DiagResultBusType
DiagResultPreBus tbLowType tbLowType tbLow
true
started using ANSYS SCADE
DiagResultBus DiagResultBus
H solutions, we were impressed by
the initial improvements in speed
Threads management example and efficiency,” stated Kawakami.
“Over time, these improvements
have only been amplified as the
delivering extreme accuracy and Kawakami pointed out, “In product development team has
control for software engineers. Subaru’s experience, SCADE increased its ability to leverage
Unlike generic tools, SCADE is a generates such a highly reliable SCADE’s capacity for task
specialized tool for developing code that a manual review is no automation.
embedded software code. Its longer required, resulting in a great “In developing the ECU for
model-based environment and reduction of tasks. The embedded the e-BOXER, most steps were
tight scripting language eliminate software code for the ECU in an successfully automated, and the
the potential for human error as automobile hybrid system is process included almost no human
it translates the control logic for complicated and numerically large, intervention,” he continued. “Even
the ECU. especially for an intelligent hybrid non-dedicated engineers in other

“In Subaru’s experience, SCADE


departments are able to convert
control logic from Simulink to
SCADE and generate accurate
generates such a highly reliable software code.”
In the race to launch new
code that a manual review is no hybrid and electric vehicle
models, SCADE has emerged as a
longer required, resulting in a great valuable strategic tool for Subaru


over the past decade, supporting
reduction of tasks. the automaker’s commitment
to uncompromising safety and
Because the SCADE Suite KCG engine system such as e-BOXER. quality. The time saved during
Code Generator meets automotive It typically takes significant time the end-to-end development of
industry standards such as ​ and effort to manually check this the ECU — without sacrificing the
ISO 26262 at the highest levels of code, so eliminating this step has accuracy of its control software
safety (ASIL D in that case), the significantly improved productivity — has been crucial to Subaru’s
resulting code is automatically in and reduced costs for the Subaru ability to introduce innovative
compliance with strict regulations development team.” new technologies like the e-BOXER
— dramatically reducing the time, In addition, the use of SCADE quickly, seizing a competitive
effort and documentation required facilitates a closed-loop software advantage in an increasingly
for final code verification. SCADE engineering process. In the event crowded industry segment.
is a key tool not only for meeting
regulatory standards, but for Functional Safety Analysis and Support
supporting Subaru’s commitment for ISO 26262 for Automotive Applications
ansys.com/iso26262
to passenger safety.

© 2019 ANSYS, INC. ANSYS ADVANTAGE I 47

You might also like