TEstimn_MDD

Module Design Document

For

TEstimn

06-Apr-2018

Prepared By:

Shawn Penning,

Nexteer Automotive,

Saginaw, MI, USA
Change History

DescriptionAuthorVersionDate
Initial VersionSankardu Varadapureddi117-Sep-2015
Updated to Design v2.2.0Matthew Leser226-Apr-2017
Updated Graph and added new local functionMatthew Leser306-Dec-2017
Added local constants and unit test considerations.SPP406-Apr-2018


Table of Contents

1 Introduction 4

1.1 Purpose 4

1.2 Scope 4

2 TEstimn High-Level Description 5

3 Design details of software module 6

3.1 Graphical representation of TEstimn 6

3.2 Data Flow Diagram 6

3.2.1 Component level DFD 6

3.2.2 Function level DFD 7

4 Constant Data Dictionary 8

4.1 Program (fixed) Constants 8

4.1.1 Embedded Constants 8

5 Software Component Implementation 9

5.1 Sub-Module Functions 9

5.1.1 Init: TEstimnInit1 9

5.1.1.1 Design Rationale 9

5.1.1.2 Module Outputs 9

5.1.2 Per: TEstimnPer1 9

5.1.2.1 Design Rationale 9

5.1.2.2 Store Module Inputs to Local copies 9

5.1.2.3 (Processing of function)……… 9

5.1.2.4 Store Local copy of outputs into Module Outputs 9

5.2 Server Runables 9

5.3 Interrupt Functions 9

5.4 Module Internal (Local) Functions 9

5.5 GLOBAL Function/Macro Definitions 9

6 Known Limitations with Design 10

7 UNIT TEST CONSIDERATION 11

Appendix A Abbreviations and Acronyms 12

Appendix B Glossary 13

Appendix C References 14

Introduction

Purpose

Scope

TEstimn High-Level Description

Refer to FDD

Design details of software module

Graphical representation of TEstimn

Data Flow Diagram

Refer FDD

Component level DFD

Function level DFD

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Refer .m file

Local Constants

#define TESTIMNASSIMECHTHILIM_DEGCGRD_F32 150.0F

#define TESTIMNASSIMECHTLOLIM_DEGCGRD_F32 (-50.0F)

#define TESTIMNFETTHILIM_DEGCGRD_F32 200.0F

#define TESTIMNFETTLOLIM_DEGCGRD_F32 (-50.0F)

#define TESTIMNMAGTHILIM_DEGCGRD_F32 150.0F

#define TESTIMNMAGTLOLIM_DEGCGRD_F32 (-50.0F)

#define TESTIMNWIDGTHILIM_DEGCGRD_F32 300.0F

#define TESTIMNWIDGTLOLIM_DEGCGRD_F32 (-50.0F)

#define DUALECUSTSIDX_CNT_U08 ((uint8)0U)

#define SNGECUSTSIDX_CNT_U08 ((uint8)1U)

#define EXPCOEFF_ULS_F32 (-1.0F)

#define SILLFILVALMIN_ULS_F32 (-2431500.0F)

#define SILLFILVALMAX_ULS_F32 (1001200.0F)

#define SILPFILVALMIN_ULS_F32 (0.0F)

#define SILPFILVALMAX_ULS_F32 (62500.0F)

#define ASSIMECHLLFILVALMIN_ULS_F32 (-4577000.0F)

#define ASSIMECHLLFILVALMAX_ULS_F32 (1716400.0F)

#define ASSIMECHLPFILVALMIN_ULS_F32 (0.0F)

#define ASSIMECHLPFILVALMAX_ULS_F32 (1764.0F)

#define CULLFILVALMIN_ULS_F32 (-2431500.0F)

#define CULLFILVALMAX_ULS_F32 (1001200.0F)

#define CULPFILVALMIN_ULS_F32 (0.0F)

#define CULPFILVALMAX_ULS_F32 (62500.0F)

#define MAGLLFILVALMIN_ULS_F32 (-2431500.0F)

#define MAGLLFILVALMAX_ULS_F32 (1001200.0F)

#define MAGLPFILVALMIN_ULS_F32 (0.0F)

#define MAGLPFILVALMAX_ULS_F32 (62500.0F)

#define FILVALMIN_ULS_F32 (0.0F)

#define TESTIMNFETMTGTNIDX_CNT_U08 ((uint8)2U)

#define TESTIMNIGNTIOFFTHD_CNT_F32 (10000.0F)

Software Component Implementation

Sub-Module Functions

Init: TEstimnInit1

Design Rationale

#define FETLOABITMASK_CNT_U08 ((uint8)4U) Refer FDD for the functionality.

Module Outputs

Refer FDD

Per: TEstimnPer1

Design Rationale

In ‘AssistMechanismLeadLagFilterRe-Initialization’ block, blocks ‘AssistMechanismInitEnable’ and ‘AssistMechanismInitDisable’ have similar logic except for some calculations related to inputs. So the differences are implemented in ‘if-else’ statement and common logic is implemented after ‘if-else’ statements in the SW.

Store Module Inputs to Local copies

Refer FDD

(Processing of function)………

Refer FDD

Store Local copy of outputs into Module Outputs

Refer FDD

Server Runnables

None

Interrupt Functions

None

Module Internal (Local) Functions

Local Function #1

Function NameFltMtgtnCalSelnTypeMinMax
Arguments PassedFetLoaMtgtnEna_Cnt_T_loglbooleanFALSETRUE
DualEcuFltMtgtnEna_Cnt_T_loglbooleanFALSETRUE
Return ValueNANANANA

Design Rationale

Implementation of ‘Fault Mitigation Calibration Selection’ block in FDD (To reduce cyclomatic complexity & path count in Per1).

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

Calculate TEstimnSiLLFilCoeffB0 as per following equation:

TEstimnSiLLFilCoeffB0= -1*[(TEstimnSiLLFilCoeffA1-1)+TEstimnSiLLFilCoeffB1]

Calculate TEstimnCuLLFilCoeffB0 as per following equation:

TEstimnCuLLFilCoeffB0= -1*[(TEstimnCuLLFilCoeffA1-1)+TEstimnCuLLFilCoeffB1]

Calculate TEstimnMagLLFilCoeffB0 as per following equation:

TEstimnMagLLFilCoeffB0= -1*[(TEstimnMagLLFilCoeffA1-1)+TEstimnMagLLFilCoeffB1]

Calculate TEstimnAssiMechLLFilCoeffB0 as per following equation:

TEstimnAssiMechLLFilCoeffB0= -1*[(TEstimnAssiMechLLFilCoeffA1-1)+TEstimnAssiMechLLFilCoeffB1]

Anomaly 20644 Issue 1B and 1C were not addressed due to time considerations. Anomaly 19666 issue 4 is a test issue that should be addressed by test team but does not affect design or code.

Abbreviations and Acronyms

Abbreviation or AcronymDescription

Glossary

Note: Terms and definitions from the source “Nexteer Automotive” take precedence over all other definitions of the same term. Terms and definitions from the source “Nexteer Automotive” are formulated from multiple sources, including the following:

  • ISO 9000

  • ISO/IEC 12207

  • ISO/IEC 15504

  • Automotive SPICE® Process Reference Model (PRM)

  • Automotive SPICE® Process Assessment Model (PAM)

  • ISO/IEC 15288

  • ISO 26262

  • IEEE Standards

  • SWEBOK

  • PMBOK

  • Existing Nexteer Automotive documentation

TermDefinitionSource
MDDModule Design Document
DFDData Flow Diagram

References

Ref. #TitleVersion
1AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf)v1.3.0 R4.0 Rev 2
2MDD GuidelineEA4 01.00.01
3Software Naming Conventions.docEA4 01.00.00
4Software Design and Coding Standards.doc2.1
5FDD : SF006A_ TEstimn_DesignSee Synergy sub project version
Last modified October 12, 2025: Initial commit (af72ad2)