GmVehPwrMod_MDD

Module Design Document

For

GmVehPwrMod

April 15, 2016

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Nick Saxton,

Nexteer Automotive,

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

Table of Contents

1 GmVehPwrMod High-Level Description 4

2 Design details of software module 5

2.1 Graphical representation of GmVehPwrMod 5

2.2 Data Flow Diagram 5

2.2.1 Component level DFD 5

2.2.2 Function level DFD 5

3 Constant Data Dictionary 6

3.1 Program (fixed) Constants 6

3.1.1 Embedded Constants 6

4 Software Component Implementation 7

4.1 Sub-Module Functions 7

4.1.1 Per: GmVehPwrModPer1 7

4.1.1.1 Design Rationale 7

4.1.1.2 Store Module Inputs to Local copies 7

4.1.1.3 (Processing of function)……… 7

4.1.1.4 Store Local copy of outputs into Module Outputs 7

4.2 Server Runables 7

4.3 Interrupt Functions 7

4.4 Module Internal (Local) Functions 7

4.4.1 Local Function #1 7

4.4.1.1 Design Rationale 7

4.4.1.2 Processing 7

4.4.2 Local Function #2 8

4.4.2.1 Design Rationale 8

4.4.2.2 Processing 8

4.5 GLOBAL Function/Macro Definitions 8

5 Known Limitations with Design 9

6 UNIT TEST CONSIDERATION 10

Appendix A Abbreviations and Acronyms 11

Appendix B Glossary 12

Appendix C References 13

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

Function level DFD

Constant Data Dictionary

Program (fixed) Constants

Embedded Constants

Local Constants

Constant NameUnitsValue
LOOKUPTBLSIZE_CNT_U16CNT512
Refer .m file for other constants

Software Component Implementation

Sub-Module Functions

The sub-module functions are grouped based on similar functionality that needs to be executed in a given “State” of the system (refer States and Modes). For a given module, the MDD will identify the type and number of sub-modules required. The sub-module types are described below.

Per: GmVehPwrModPer1

Design Rationale

Refer FDD

Store Module Inputs to Local copies

(Processing of function)………

Store Local copy of outputs into Module Outputs

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
Msg0C9Miss_Cnt_T_loglBooleanFALSETRUE
VehSpdSnsrVld_Cnt_T_loglBooleanFALSETRUE
Msg1F1Miss_Cnt_T_loglBooleanFALSETRUE
BusOffHiSpd_Cnt_T_loglBooleanFALSETRUE
HwTq_HwNwtMtr_T_f32Float32-1010
OutputTblIdxNr_Cnt_T_u16Uint160511


Design Rationale

Processing

Created to reduce static path count and cyclomatic complexity of periodic function. 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

UNIT TEST CONSIDERATION

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.00
3EA4 Software Naming Conventions.doc01.00.00
4Software Design and Coding Standards.doc2.1
5CF017A_GmVehPwrMod_DesignSee Synergy subproject version
Last modified October 12, 2025: Initial commit (1fadfc4)