29
1 HW/SW codesign of a multiple-injections driver for engine control systems Alessandra Nardi Fan Mo Mentor : Alberto Ferrari

HW/SW codesign of a multiple-injections driver for engine control systems

Embed Size (px)

DESCRIPTION

HW/SW codesign of a multiple-injections driver for engine control systems. Alessandra Nardi Fan Mo Mentor : Alberto Ferrari. OUTLINE. Problem definition Driver specifications Behavioral model Functional simulation results. PROBLEM DEFINITION - I. HW/SW Driver for fuel injection - PowerPoint PPT Presentation

Citation preview

Page 1: HW/SW codesign of a multiple-injections driver for engine control systems

1

HW/SW codesign of a multiple-injections driver for engine

control systems

Alessandra Nardi

Fan Mo

Mentor : Alberto Ferrari

Page 2: HW/SW codesign of a multiple-injections driver for engine control systems

2

OUTLINE

• Problem definition

• Driver specifications

• Behavioral model

• Functional simulation results

Page 3: HW/SW codesign of a multiple-injections driver for engine control systems

3

PROBLEM DEFINITION - I

• HW/SW Driver for fuel injection

• Direct injection engine– 2 to 4 cylinders

• One injector for every cylinder– independent– max 5 strokes for engine cycle

• Tight time constraints

Page 4: HW/SW codesign of a multiple-injections driver for engine control systems

4

PROBLEM DEFINITION - I

INTAKE COMPRESSION EXPANSION EXHAUSTED

120°

320°

440°

570°

CRANKSHAFT ANGLE

Massimo Baleani, Alberto Ferrari

Page 5: HW/SW codesign of a multiple-injections driver for engine control systems

5

PROBLEM DEFINITION - II

Engine phase Engine angle

0

180

360

540

Exhaust ExplosionCompression Intake

Page 6: HW/SW codesign of a multiple-injections driver for engine control systems

6

PROBLEM DEFINITION - III

• Fuel sub-system– sensor for fuel temperature (FT)– sensor for fuel pressure (FP)

• Engine angle – fly-wheel (FW) - every 6

– phase-wheel (PW)

Page 7: HW/SW codesign of a multiple-injections driver for engine control systems

7

DRIVER INPUT/OUTPUT

INPUTS

• FW, PW, FT, FP

• Stroke fuel quantities (Q1,…,Q5)

• Stroke opening angles (T1,…,T5)• every TDC Exhaust

PARAMETERS:

Stroke angle ranges : (_o_k, _c_k)

Minimum closure time : Tcmin

Page 8: HW/SW codesign of a multiple-injections driver for engine control systems

8

DRIVER INPUT/OUTPUT

OUTPUTS• Engine angle position (ALPHA90) - every 90

• Engine speed (SRPM90) - every 90

• DC events

• Injector signal J

• Fuel injected in the last cycle: F1, F2, F3, F4, F5

Page 9: HW/SW codesign of a multiple-injections driver for engine control systems

9

DRIVER SPECIFICATIONS - I

• Max 5 strokes for each cycle of each cylinder

• k-th Injection Stroke (ISk) only in (_o_k, _c_k)

• Guarantee : IS1 < IS2 < IS3 < IS4 < IS5

• Overlapped strokes:– injector closed for a minimum amount of time

Tcmin

Page 10: HW/SW codesign of a multiple-injections driver for engine control systems

10

DRIVER SPECIFICATIONS - II

Tk (_o_k, _c_k) ?

• IF Tk < _o_k

THEN _o_k = _o_k

• IF Tk > _o_k

THEN ISk not scheduled

• IF Tk (_o_k, _c_k)

THEN _o_k = Tk

Page 11: HW/SW codesign of a multiple-injections driver for engine control systems

11

DRIVER SPECIFICATIONS - III

• In case of overlapped strokes:

Minimum Closure Time

IS1

IS1

IS2

IS2

Page 12: HW/SW codesign of a multiple-injections driver for engine control systems

12

IMPLEMENTATION CONSTRAINTS

• Injection open angle resolution : +/- 0.2• Injected fuel quantity precision : 0.1mg

– if not cut

• All computation must be integer• Only basic mathematical instructions (no sqrt)

• Use IC/OC to implement timed functionality

Page 13: HW/SW codesign of a multiple-injections driver for engine control systems

13

IMPLEMENTATION CONSTRAINTSInjection open angle resolution : +/- 0.2• Constant speed model

= ·t

• Constant acceleration model

= 0 ·t + 1/2 · a ·t2

• Error : = 1/2 · a ·( / 0 )2

• Example: = 60 = 1,000 rpm

a = 10,000 rpm/s = 0.03

Page 14: HW/SW codesign of a multiple-injections driver for engine control systems

14

IMPLEMENTATION CONSTRAINTS• Injected fuel quantity resolution : +/- 0.1mgV = Q / D = 0.1mg/(0.76mg/mm3) = 0.131mm3

t = 13.1 s

Example:

= 0.03

t = / 0

0 = 1,000 rpm t = 5s

Counter Precision0 = 8,000 rpm t = 125 s Tclock = 0.5s

0 = 500 rpm t = 2 ms # ticks = 4000

# bits = 12

Page 15: HW/SW codesign of a multiple-injections driver for engine control systems

15

FUNCTIONAL/ARCHITECTURE CODESIGN

• Behavioral Model– Behavioral Decomposition #1

resources– Behavioral Decomposition #2

resources optimization

Page 16: HW/SW codesign of a multiple-injections driver for engine control systems

16

BEHAVIORAL DECOMPOSITION #1

Page 17: HW/SW codesign of a multiple-injections driver for engine control systems

17

BEHAVIORAL DECOMPOSITION #2

Page 18: HW/SW codesign of a multiple-injections driver for engine control systems

18

BEHAVIORAL DECOMPOSITION #2

Page 19: HW/SW codesign of a multiple-injections driver for engine control systems

19

DRIVER SYSTEM

Page 20: HW/SW codesign of a multiple-injections driver for engine control systems

20

ENGINE DETECTION

Description of the modules:

- FRC

- DETECTOR

- SAMPLE90

Page 21: HW/SW codesign of a multiple-injections driver for engine control systems

21

CYLINDER DRIVER

Page 22: HW/SW codesign of a multiple-injections driver for engine control systems

22

CYL_DRIVER/OPEN_INJECTION_ANGLES

Tk (_o_k, _c_k) ?

• IF Tk < _o_k

THEN _o_k = _o_k

• IF Tk > _o_k

THEN Isk not scheduled

• IF Tk (_o_k, _c_k)

THEN _o_k = Tk

Page 23: HW/SW codesign of a multiple-injections driver for engine control systems

23

CYL_DRIVER/TIMER_SYSTEM_MNG

Page 24: HW/SW codesign of a multiple-injections driver for engine control systems

24

TIMER_SYSTEM_MNG/V_T_S_CONVERTER

Page 25: HW/SW codesign of a multiple-injections driver for engine control systems

25

DESIGN FLOW

ESTERELDescription

ESTERELCOMPILER

C SIMULATIONPlatform

TESTBENCHPART

DESIGN MODULEPART

TESTBENCHDescription

CCOMPILER

ExecutableFile

OUTPUT DATARecordCOMPARE

Page 26: HW/SW codesign of a multiple-injections driver for engine control systems

26

SIMULATION RESULTS: RPM

0

1000

2000

3000

4000

5000

6000

7000

8000

0 1000000 2000000 3000000 4000000

Time [s]

Spe

ed [

rpm

]

Page 27: HW/SW codesign of a multiple-injections driver for engine control systems

27

SIMULATION RESULTS: INJECT PULSE

0

0.2

0.4

0.6

0.8

1

1.2

0 1000000 2000000 3000000 4000000

Time [s]

Inje

ctor

sig

nal

Page 28: HW/SW codesign of a multiple-injections driver for engine control systems

28

SIMULATION RESULTS: INJECT PULSE

0

0.2

0.4

0.6

0.8

1

1.2

0 50 100 150

Inje

ctor

sig

nal

Angle [°]

Page 29: HW/SW codesign of a multiple-injections driver for engine control systems

29

PERFORMANCE

- RPM: error < 0.3rov/min

- STROKE: no functional error,

angle error < 0.08 degree

- CLOCK FREQUENCY: 1MHz

(with reference to Testbench provided by Alberto Ferrari)