GmVehPwrMod_MDD

Module Design Document

For

GmVehPwrMod

VERSION:6.0

Dec 13, 2016

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Matthew Leser

Saginaw, MI, USA

Change History

DescriptionAuthorVersionDate
Initial VersionN. Saxton1.028-Sep-2015
Updated with new graphical representation and local functionN. Saxton2.001-Oct-2015
New graphical representationN. Saxton3.012-Nov-2015
Changes to local constants and functionsN. Saxton4.015-Apr-2016
Updated as per design rev. 2.1.0TATA5.022-Nov-2016
Updated as per design rev. 2.2.0/2.3.0 and to fix Anomaly EA4#8982M. Leser6.013-Dec-2016

Table of Contents

1 GmVehPwrMod & High-Level Description 5

2 Design details of software module 6

2.1 Graphical representation of GmVehPwrMod 6

2.2 Data Flow Diagram 6

2.2.1 Component level DFD 6

2.2.2 Function level DFD 6

3 Constant Data Dictionary 7

3.1 Program (fixed) Constants 7

3.1.1 Embedded Constants 7

4 Software Component Implementation 8

4.1 Sub-Module Functions 8

4.1.1 Per: GmVehPwrModPer1 8

4.1.1.1 Design Rationale 8

4.1.1.2 Store Module Inputs to Local copies 8

4.1.1.3 (Processing of function)……… 8

4.1.1.4 Store Local copy of outputs into Module Outputs 8

4.2 Server Runables 8

4.3 Interrupt Functions 8

4.4 Module Internal (Local) Functions 8

4.4.1 Local Function #1 8

4.4.1.1 Design Rationale 9

4.4.1.2 Created to reduce static path count and cyclomatic complexity of periodic function. Processing 9

4.4.2 Local Function #2 9

4.4.2.1 Design Rationale 9

4.4.2.2 Processing 9

4.4.3 Local Function #3 9

4.4.3.1 Design Rationale 9

4.4.3.2 Processing 9

4.5 GLOBAL Function/Macro Definitions 9

5 Known Limitations with Design 10

6 UNIT TEST CONSIDERATION 11

Appendix A Abbreviations and Acronyms 12

Appendix B Glossary 13

Appendix C References 14

GmVehPwrMod & High-Level Description

This GM specific function runs periodically to determine whether to enable assist (if not previously enabled) or to disable assist based on the inputs provided to the function.

Design details of software module

Graphical representation of GmVehPwrMod

Data Flow Diagram

Refer FDD

Component level DFD

Refer FDD

Function level DFD

Refer FDD

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameUnitsValue
LOOKUPTBLSIZE_CNT_U16CNT512
Refer .m file for other constantsN/AN/A

Software Component Implementation

Sub-Module Functions

Per: GmVehPwrModPer1

Design Rationale

None

Store Module Inputs to Local copies

Refer to FDD

(Processing of function)………

Refer to FDD

Store Local copy of outputs into Module Outputs

Refer to FDD

Server Runables

None

Interrupt Functions

None

Module Internal (Local) Functions

Local Function #1

Function NameGetTblIdxTypeMinMax
Arguments PassedGetGpioMcuEna_Cnt_T_loglBooleanFALSETRUE
SysPwrModRun_Cnt_T_loglBooleanFALSETRUE
EngRunActv_Cnt_T_loglBooleanFALSETRUE
VehSpdAssiKeepMin_Cnt_T_loglBooleanFALSETRUE
PrpnSysActvMsgInvld_Cnt_T_loglBooleanFALSETRUE
VehSpdSnsrVld_Cnt_T_loglBooleanFALSETRUE
SysPwrModMsgInvld_Cnt_T_loglBooleanFALSETRUE
BusOffHiSpd_Cnt_T_loglBooleanFALSETRUE
HwTq_HwNwtMtr_T_f32Float32-1010
OutputTblIdxNr_Cnt_T_u16Uint160511


Design Rationale

Created to reduce static path count and cyclomatic complexity of periodic function. Processing

Refer FDD

Local Function #2

Function NameGetMotTqCmdScaTypeMinMax
Arguments PassedAssiEna_Cnt_T_loglBooleanFALSETRUE
OutputMotTqCmdSca_Cnt_T_f32Boolean0.01.0

Design Rationale

Created to reduce static path count and cyclomatic complexity of periodic function.

Processing

Sets MotTqCmdSca to 1.0 if AssiEna is TRUE and sets it to 0.0 otherwise.

Local Function #3

Function NameKeepAssiHwTqTmrTypeMinMax
Arguments PassedHwTq_HwNwtMtr_T_f32Float32-1010
* TblIdxNr_Cnt_T_u16Uint160511

Design Rationale

Created to reduce static path count and cyclomatic complexity of local function #2.

*TblIdxNr_Cnt_T_u16 is an output of this function.

Processing

Refer ‘KeepAssi_HwTqTmr’ block in model.

GLOBAL Function/Macro Definitions

None

Known Limitations with Design

None

UNIT TEST CONSIDERATION

None

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 04.02.01
3EA4 Software Naming Conventions.doc04.02.01
4Software Design and Coding Standards.doc2.1
5FDD: CF017A_GmVehPwrMod_DesignSee Synergy subproject version
Last modified October 12, 2025: Initial commit (312cf32)