Open access peer-reviewed chapter

Modeling and Simulation of High Performance Electrical Vehicle Powertrains in VHDL-AMS

By K. Jaber, A. Fakhfakh and R. Neji

Submitted: October 14th 2010Reviewed: March 21st 2011Published: September 12th 2011

DOI: 10.5772/16650

Downloaded: 5550

1. Introduction

Nowadays the air pollution and economical issues are the major driving forces in developing electric vehicles (EVs). In recent years EVs and hybrid electric vehicles (HEVs) are the only alternatives for a clean, efficient and environmentally friendly urban transportation system (Jalalifar et al., 2007). The electric vehicle (EV) appears poised to make a successful entrance to the personal vehicle mass market as a viable alternative to the traditional internal combustion engine vehicles (ICE): Recent advances in battery technology indicate decreasing production costs and increasing energy densities to levels soon acceptable by broad consumer segments. Moreover, excluding the generation of the electricity, EVs emit no greenhouse gases and could contribute to meeting the strict CO2 emission limits necessary to dampen the effect of global warming. Several countries around the world have therefore initiated measures like consumer tax credits, research grants or recharging station subsidies to support the introduction of the EV. Finally, the success alternative vehicles like the Toyota Prius Hybrid proves a shift in consumer interest towards cleaner cars with lower operating costs (Feller et al., 2009).

Nonetheless, the EV will first need to overcome significant barriers that might delay or even prevent a successful mass market adoption. Permanent Magnet Synchronous Motor (PMSM) is a good candidate for EVs.

In this work, a high level modelling and an optimization is reported for the determination of time response (Tr) and power (P) of Electric Vehicle. The electric constant of back-electromotive-force, stator d- and q- axes inductances, switching period, battery voltage, stator resistance and torque gear ratio were selected as factors being able to influence Tr and P. The optimization process was carried out with Doehlert experimental design (Jaber et al., 2010).

The optimization is based on simulations of the chain of the electric vehicle; every block is simulated with a different abstraction level using the hardware description language VHDL-AMS. The chain of electric traction is shown in Figure 1. It consists of 4 components: Control strategy, Inverter, PMSM model and Dynamic model. A right combination of these four elements determines the performance of electric vehicles.

VHDL (Very High Speed Integrated Circuit Hardware Description Language) is a commonly used modelling language for specifying digital designs and event-driven systems. The popularity of VHDL prompted the development of Analog and Mixed-Signal (AMS) extensions to the language and these extensions were standardized as IEEE VHDL-AMS in 1999. Some of the main features of this ASCII-based language include Model Portability, Analog and Mixed-Signal modeling, Conserved System and Signal Flow Modeling, Multi-domain modeling, Modeling at different levels of abstraction, and Analysis in time, frequency and quiescent domains. Since VHDL-AMS is an open IEEE standard, VHDL-AMS descriptions are simulator-independent and models are freely portable across tools. This not only prevents model designers from being locked in to a single tool or tool vendor but also allows a design to be verified on multiple platforms to ensure model fidelity.

Figure 1.

Model of traction chain

VHDL-AMS is a strict superset of VHDL and inherently includes language support for describing event-driven systems such as finite state machines. The standard not only provides language constructs for digital and analog designs but also specifies the interactions between the analogue and digital solvers for mixed-signal designs. The analog (continuous time) extensions allow the description of conserved energy systems (based on laws of conservation) as well as signal-flow models (based on block diagram modeling).

VHDL-AMS distinguishes between the interface (ENTITY) of a model and its behavior (ARCHITECTURE). VHDL-AMS allows the association of multiple architectures with the same entity and this feature is typically used to describe a model at different levels of abstraction.

With VHDL-AMS, it is possible to specify model behaviour for transient, frequency and quiescent domain simulations. Depending on the user’s choice of an analysis type, the appropriate behavior is simulated.

The language is very flexible in that it allows different modeling approaches to be used, both individually and collectively. It is possible to describe model behavior with differential algebraic equations, value assignments and subprograms at a very abstract and mathematical level (Mc Dermott et al., 2006).

The VHDL-AMS language is an undiscovered asset for FPGA designers—a powerful tool to define and verify requirements in a non-digital context.

As an electric vehicle is a multidisciplinary system, the new standard VHDL-AMS is suitable for the modelling and the simulation of such system in the same software environment and with different abstraction levels (Jaber et al., 2009).

2. Dynamic model

The first step in vehicle performance modelling is to write an electric force model. This is the force transmitted to the ground through the drive wheels, and propelling the vehicle forward. This force must overcome the road load and accelerate the vehicle (Sadeghi et al., 2009).

For any mission profile, an electric road vehicle is subjected to forces that the onboard propulsion system has to overcome in order to propel or retard the vehicle. These forces are

composed of several components as illustrated in Figure 2.The effort to overcome these forces by transmitting power via the vehicle drive wheels and tyres to the ground is known as the total tractive effort or total tractive force.

Figure 2.

Forces on a vehicle

The rolling resistance is primarily due to the friction of the vehicle tires on the road and can be written as (Jalalifar et al., 2007):


The aerodynamic drag is due to the friction of the body of vehicle moving through the air. The formula for this component is as in the following:


An other resistance force is applied when the vehicle is climbing of a grade. As a force in the opposite direction of the vehicle movement is applied:


The power that the EV must develop at stabilized speed is expressed by the following equation:


The power available in the wheels of the vehicle is expressed by:


According to the fundamental principle of dynamics the acceleration of the vehicle is given by:


3. PMSM model

A permanent magnet synchronous motor (PMSM) has significant advantages, attracting the interest of researchers and industry for use in many applications.

Usage of permanent magnet synchronous motors (PMSMs) as traction motors is common in electric or hybrid road vehicles (Dolecek et al., 2008). The dynamic model of the PMSM can be described in the d-q rotor frame as follows:


WhereK=Pϕmis the electric constant of back-electromotive-force (EMF), it is calculated according to the geometrical magnitudes of the motor so that it can function with a high speed. The equations giving the stator current can be written in the following form:


The electromagnetic torque developed by the motor is given by the following equation:


The equation giving the angle by the motor can be written in the following form:


Figure 3 shows the description of the model of the PMSM in Simplorer 7.0 software.

Figure 3.

SIMPLORER model of the PMSM in the d-q rotor frame

4. Control strategy

In recent years, vector-controlled ac motors, such as induction motor, permanent-magnet synchronous motor (PMSM), and synchronous reluctance motor, have become standard in industrial drives and their performance improvement is an important issue. Particularly, improvement of control performance and drive efficiency is essentially required for drives used in electric vehicles (Ben Salah et al., 2008):


To achieve an optimal control, which means a maximum torque, it is necessary to satisfy the following condition:


from where

Is=Iq    and    Id=0E18

Figure 4.

Stator current and EMF in the d-q rotor frame

The first part (A) in figure 1 illustrates the control strategy. It presents a first PI speed control used for speed regulation. The output of the speed control is Iqref; its application to a second PI current regulator makes the adjustment of phase and squaring currents. The outputs of current regulators are Vdref and Vqref; they are applied to a Park transformation block. Where, Vdref and Vqref are the forcing function to decide the currents in d-q axis model which may be obtained from 3-phase voltages (Va, Vb and Vc) through the park transformation technique as:


The generation of the control signals of the inverter is made by comparison of the simple tensions obtained following the regulation with a triangular signal. Its period is known as switching period.

The different blocks constituting the traction chain were described in a VHDL-AMS structural model by including all expressions detailed above.

5. Inverter model

The structure of a typical three-phase VSI is shown in figure 6. As shown below, Va, Vb and Vc are the output voltages of the inverter. S1 through S6 are the six power transistors IGBT that shape the output, which are controlled by a, a’, b, b’, c and c’. When an upper transistor is switched on (i.e., when a, b or c are 1), the corresponding lower transistor is switched off (i.e., the corresponding a’, b’ or c’ is 0). The on and off states of the upper transistors, S1, S3 and S5, or equivalently, the state of a, b and c, are sufficient to evaluate the output voltage.

Figure 5.

Inverter connected to a balanced load

The relationship between the switching variable vector [a, b, c]t and the line-to-line output voltage vector [Vab Vbc Vca]t and the phase (line-to-neutral) output voltage vector [Va Vb Vc]t are given by the following relationships, where a, b, c are the orders of S1, S3, S5 respectively.


The different blocks constituting the traction chain were introduced both in MATLAB and SIMPLORER 7.0 softwares. They were described in structural models by including all expressions detailed above. The different simulation parameters are summarized in table 1:

VmaxMax Speed80 km/h
CxDrag coefficient of the vehicle0.55
SFrontal surface of the vehicle1.8 m2
fCoefficient of rolling friction0.025
MvTotal mass of the vehicle800 kg
pPair of pole number4

Table 1.

Simulation parameters

6. Simulation results

6.1. MATLAB environment

Figure 6 details the vector control (Id=0 strategy) of the vehicle, implemented under Matlab/simulink software.

Figure 6.

SIMULINK models for a vector control and his interaction in a chain of traction for vehicle

Figure 7 shows the simulation result. The reference speed of the EV is reached after 8.5s. Simulations with MATLAB are useful to verify that our system works well without any dysfunction. But in this case, the traction chain of the EV is described with ideal functional models. Going down in the hierarchical design level, more suitable software should be applied. For this reason, our system was described in VHDL-AMS and simulated with Simplorer 7.0 software.

Figure 7.

Vehicle speed response in MATLAB/SIMULINK

6.2. VHDL-AMS virtual prototype

VHDL-AMS descriptions were developed for each block of the electric vehicle including structural models. The obtained blocks were connected in Simplorer 7.0 Software environment to obtain a high level description our system as detailed on figure 8. The exposed blocks include analogue/digital electronic behavioural descriptions. It represents a so complex multi-domain system (Fakhfakh et al., 2006).

Figure 8.

Electric Vehicle description in Simplorer environment

6.3. Comparison

The dynamic response of the vehicle speed is depicted in figure 9, obtained with both Simplorer and Matlab software. In table 2, we compare the simulation runtime and the obtained response time of the Electric Vehicle. We can distinguish clearly the difference between the two simulation results.

Figure 9.

Dynamic response of the vehicle speed in Simplorer and Matlab

SoftwareSimulation runtimeTime response of max speed
Matlab24s8.5 s
Simplorer66s6.5 s

Table 2.

Simulation runtime simulation

To conclude, Matlab executes simulations more rapidly (24s); we obtained a dynamic response equal to 8.5s. Simplorer simulation runtime is three times longer due to the fact that the modelling abstraction level is lower compared to the functional description with Matlab; the dynamic response is about 6.5s. The power of the Electric Vehicule is about 42 kW.

To resume, we can clearly conclude that simulating a mathematical model with MATLAB software is useful to verify the ideal response of our EV. But with Simplorer environment we can attend the lower abstraction models. In this case, it is possible to simulate the effect of physical parameters such as temperature, battery voltage, etc.

7. Optimization with experimental designs

To optimize our control strategy, we have adopted an experimental design approach by applying the Doehlert design. Six factors have been considered as shown on table 3: Ke, Ld, Ts, E, R and rm. According to the number of factors, in order to limit the number of runs and to take into account the major effects, a screening study is necessary. Consequently, a first step of screening was conducted using a fractional factorial design. The last with six factors is a design involving a minimum of 45 experiments (see appendix).

For each factor, we define three levels: low, center and high levels as detailed on table 3.

Naturel VariableParametersCoded variableLow LevelCenter LevelHigh Level
Keelectric constant of back-electromotive-force (EMF)X10.050.10.2
Ld= LqStator d- and q- axes inductances (mH).X20.2160.4160.616
TsSwitching period (μs)X3100300500
EBattery voltage (V)X4200300400
RStator resistance (Ω)X50.020.050.08
rmTorque gear ratioX6135

Table 3.

Description of experimental variables in the screening design

Our goal is to optimize both the response time and the power of the studied system. The analysis of results and the building of experimental designs were carried out with the NEMRODW mathematical statistical software (El Ati-Hellal et al., 2009).

Because of the none-linearity of the studied system, the experimental response Yi can be represented by a quadratic equation of the response surface (Elek et al., 2004):


Y1 : response representing the response time;

Y2 : response representing the power;

To find an optimum, we should minimize (Y1) and maximize (Y2). So we define the following experimental response Y:


with α=350 and β=0.6 α and β are ponderation factors. In our case, we give the same weight to the response time and the power.

Coefficients bi of the response surface (19) were calculated with Nemrodw software without taking into account experiment 45 due to high residual.

To decide about the efficiency of the obtained regression equation, we compute R2 as:

R2 = (Sum of squares attributed to the regression)/ Total Sum of squares)

We found R² = 0.976; it is well within acceptable limits of R2>= 0.8 which revealed that the experimental data well fitted the second-order polynomial equation as detailed on table 4.

Standard error of response8.4837
R2 pred0.777
Degrees of freedom17

Table 4.

Statiscal data and coefficients of y response model: y= f(x1, x2, x3, x4, x5, x6)

To estimate the quality of the model and validate it, analysis of the variance and the residual values (difference between the calculated and the experimental result) were examined. According to the residual (Figure 10), the choice of the model was appropriate: a systematic behavior was not observed in the plot, for example, an increase in residual suggesting the necessity to transform the response.

After the validation of the proposed second-order polynomial model, we can draw 2D and 3D plots representing the evolution of Y versus 2 factors.

Using contour plot graphs makes the evaluation of the influences of the selected factors easier.

Figure 11 illustrates the experimental response obtained by the simultaneous variation of X2 (Ld&Lq) and X6 (rm). We concluded that in order to increase the response Y, an increase of X6 and decrease of X2 is necessary (Danion et al., 2004) & (El Hajjaji et al., 2005).

Figure 10.

Overview of residual: Normal probability and residual plot

Figure 11.

Contour plot and response surface (Y) of the Torque gear ratio (rm) and Stator d-q axes inductances (Ld&Lq).

An optimal result of control strategy on the electrical vehicle is obtained with NEMRODW software to obtain an optimal dynamic response. It is detailed on table 5.

ResponseBefore optimizationAfter optimization
Tr (Y1)6.5s4.65s
P (Y2)42 Kw58 K w

Table 5.

Optimization result

The optimal values of variables corresponding to the optimal dynamic response (Tr) and power (P) are resumed on table 6.

VariableFactorOptimal value in NEMRODWReal values before optimizationReal values after optimization
X2Ld=Lq0.39760.416 mH0.216 mH
X3Ts1.0086300 μs500 μs
X4E1.0052300 V400 V
X5R1.00610.05 Ω0.08 Ω

Table 6.

Optimal values of variables

The speed response shows the good dynamic suggested of our vehicle. The reference speed is attained in 4.65 second. The direct current is equal to zero in the permanent mode, the quadratic current present the image of the electromagnetic torque. The power is increased to reach 58 kW.

Figure 12.

Dynamic response of the vehicle speed after optimization

8. Conclusion

In this paper, we developed a VHDL-AMS description of a vehicle traction chain and we adopt the vector control Id=0 strategy to drive the designed PMSM. The simulation of the dynamic response of the vehicle shows the effectiveness of this mode of control and the PMSM in the field of the electric traction. The obtained result with Simplorer differs from that obtained with Matlab because we used more accurate models. We think that VHDL-AMS is more suitable to predict the electric vehicle behavior since it is a multidisciplinary HDL. We have shown that response surface analysis coupled with a carefully constructed experimental design is a useful tool to carry out an Optimal Simulation of the Control Strategy of an Electrical Vehicle.

© 2011 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike-3.0 License, which permits use, distribution and reproduction for non-commercial purposes, provided the original is properly cited and derivative works building on this content are distributed under the same license.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

K. Jaber, A. Fakhfakh and R. Neji (September 12th 2011). Modeling and Simulation of High Performance Electrical Vehicle Powertrains in VHDL-AMS, Electric Vehicles - Modelling and Simulations, Seref Soylu, IntechOpen, DOI: 10.5772/16650. Available from:

chapter statistics

5550total chapter downloads

2Crossref citations

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Control of Hybrid Electrical Vehicles

By Gheorghe Livinţ, Vasile Horga, Marcel Răţoi and Mihai Albu

Related Book

First chapter

A Survey on Electric and Hybrid Electric Vehicle Technology

By Samuel E. de Lucena

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us