BmwDrvgDynStMac_MDD
Module Design Document
For
BmwDrvgDynStMac
April 13, 2018
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date |
| Initial version | Krzysztof Byrski | 1 | 17-Apr-2018 |
Table of Contents
2 BmwDrvgDynStMac & High-Level Description 6
3 Design details of software module 7
3.1 Graphical representation of BmwDrvgDynStMac 7
4.1 Program (fixed) Constants 8
5 Software Component Implementation 9
5.1.1 Init: BmwDrvgDynStMacInit1 9
5.1.2 Per: BmwDrvgDynStMacPer1 9
5.4 Module Internal (Local) Functions 10
5.4.1 Local Function DetermineErrorMode 10
5.4.3 Local Function AssiLvlCnd 11
5.4.4 Local Function CheckActivityTime 11
5.4.5 Local Function CheckDeactivateTime 11
5.4.6 Local Function ErrorIfTi 12
5.4.7 Local Function StateMachine 12
5.4.8 Local Function StateMachineInit 13
5.4.9 Local Function StateMachineIfAvl 13
5.4.10 Local Function StateMachineIfActv 14
5.4.11 Local Function StateMachineStbEpsSts 14
5.4.12 Local Function StateMachineEntry 15
5.5 GLOBAL Function/Macro Definitions 16
6 Known Limitations with Design 17
Appendix A Abbreviations and Acronyms 19
Introduction
Purpose
Model Deign Document for CF089A_BmwDrvgDynStMac_Impl.
Scope
The following definitions are used throughout this document:
Shall: indicates a mandatory requirement without exception in compliance.
Should: indicates a mandatory requirement; exceptions allowed only with documented justification.
May: indicates an optional action.
BmwDrvgDynStMac & High-Level Description
The component implements the functionality of Driving Dynamics State Machine. It is based on requirements for DD State Machine in LH10716411 starting from ID_6159. It outputs signals for CF083A and CF040A.
Design details of software module
Graphical representation of BmwDrvgDynStMac

Data Flow Diagram
Refer FDD
Component level DFD
None
Function level DFD
None
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
| Constant Name | Resolution | Units | Value |
|---|---|---|---|
| * |
*Refer FDD for local 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.
Init: BmwDrvgDynStMacInit1
Design Rationale
Refer FDD
Module Outputs
None
Per: BmwDrvgDynStMacPer1
Design Rationale
Refer FDD
Store Module Inputs to Local copies
Refer FDD
(Processing of function)………
Refer FDD
Store Local copy of outputs into Module Outputs
Refer FDD
Server Runables
None
Interrupt Functions
None
Module Internal (Local) Functions
Local Function DetermineErrorMode
| Function Name | DetermineErrorMode | Type | Min | Max |
| Arguments Passed | SysStFltOutpReqDi_Cnt_T_logl | boolean | 0 | 1 |
| DiagcStsNonRcvrlReqDiFltPrsnt_Cnt_T_logl | boolean | 0 | 1 | |
| DiagcStsCtrldShtDwnFltPrsnt_Cnt_T_logl | boolean | 0 | 1 | |
| StsSteerAssi_Cnt_T_enum | enum | 0 | 1 | |
| BmwVehCdn_Cnt_T_enum | enum | 1 | 15 | |
| Return Value | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "DetermineErrorMode" Simulink block
Processing
Refer FDD
Local Function Fac
| Function Name | Fac | Type | Min | Max |
| Arguments Passed | EffortCmdSca_Uls_T_f32 | float32 | 1 | 2 |
| DampgCmdSca_Uls_T_f32 | float32 | 0 | 1 | |
| RtnCmdSca_Uls_T_f32 | float32 | 0 | 1 | |
| Return Value | Fac_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "Fac" Simulink block
Processing
Refer FDD
Local Function AssiLvlCnd
| Function Name | AssiLvlCnd | Type | Min | Max |
| Arguments Passed | MotTqCmdPwrLimd_MotNwtMtr_T_f32 | float32 | -8.8 | 8.8 |
| Return Value | MotTqCmdPwrLimdActvtUppr_Cnt_T_logl | boolean | FALSE | TRUE |
| MotTqCmdPwrLimdActvtLowr_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdPwrLimdDeactvtLowr_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "AssiLvlCnd" Simulink block
Processing
Refer FDD
Local Function CheckActivityTime
| Function Name | CheckActivityTime | Type | Min | Max |
| Arguments Passed | MotTqCmdPwrLimdCdnActvt_Cnt_T_logl | boolean | FALSE | TRUE |
| Return Value | MotTqCmdPwrLimdActvt_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "CheckActivity Time" Simulink block
Processing
Refer FDD
Local Function CheckDeactivateTime
| Function Name | CheckDeactivateTime | Type | Min | Max |
| Arguments Passed | MotTqCmdPwrLimdCdnDeactvt_Cnt_T_logl | boolean | FALSE | TRUE |
| Return Value | MotTqCmdPwrLimdDeactvt_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "CheckDeactivate Time" Simulink block
Processing
Refer FDD
Local Function ErrorIfTi
| Function Name | ErrorIfTi | Type | Min | Max |
| Arguments Passed | ErrIf_Cnt_T_logl | boolean | FALSE | TRUE |
| Return Value | ErrIfTi_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "ErrorIfTi" Simulink block
Processing
Refer FDD
Local Function StateMachine
| Function Name | StateMachine | Type | Min | Max |
| Arguments Passed | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
| AllwTran_Cnt_T_logl | boolean | FALSE | TRUE | |
| ErrIf_Cnt_T_logl | boolean | FALSE | TRUE | |
| BmwTarHwTqOvrlQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwDrvgDynFacQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTarSteerTqDrvrActrQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTrfcJamAssiDampgStReq_Cnt_T_enum | enum | 1 | 15 | |
| Fac_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdOvrlEquZero_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdPwrLimd_MotNwtMtr_T_f32 | float32 | -8.8 | 8.8 | |
| Return Value | N/A |
Design Rationale
Implementation of "StateMachine" Simulink state machine
Processing
Refer FDD
Local Function StateMachineInit
| Function Name | StateMachineInit | Type | Min | Max |
| Arguments Passed | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
| AllwTran_Cnt_T_logl | boolean | FALSE | TRUE | |
| ErrIf_Cnt_T_logl | boolean | FALSE | TRUE | |
| BmwTarHwTqOvrlQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwDrvgDynFacQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTarSteerTqDrvrActrQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTrfcJamAssiDampgStReq_Cnt_T_enum | enum | 1 | 15 | |
| MotTqCmdPwrLimdActvtUppr_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdPwrLimdActvtLowr_Cnt_T_logl | boolean | FALSE | TRUE | |
| Return Value | N/A |
Design Rationale
Implementation of INIT State
Processing
Refer FDD
Local Function StateMachineIfAvl
| Function Name | StateMachineIfAvl | Type | Min | Max |
| Arguments Passed | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
| AllwTran_Cnt_T_logl | boolean | FALSE | TRUE | |
| ErrIf_Cnt_T_logl | boolean | FALSE | TRUE | |
| BmwTarHwTqOvrlQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwDrvgDynFacQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTarSteerTqDrvrActrQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTrfcJamAssiDampgStReq_Cnt_T_enum | enum | 1 | 15 | |
| MotTqCmdPwrLimdDeactvtLowr_Cnt_T_logl | boolean | FALSE | TRUE | |
| Return Value | N/A |
Design Rationale
Implementation of IF_AVL State
Processing
Refer FDD
Local Function StateMachineIfActv
| Function Name | StateMachineIfActv | Type | Min | Max |
| Arguments Passed | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
| AllwTran_Cnt_T_logl | boolean | FALSE | TRUE | |
| ErrIf_Cnt_T_logl | boolean | FALSE | TRUE | |
| BmwTarHwTqOvrlQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwDrvgDynFacQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTarSteerTqDrvrActrQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTrfcJamAssiDampgStReq_Cnt_T_enum | enum | 1 | 15 | |
| ErrIfTi_Cnt_T_logl | boolean | FALSE | TRUE | |
| Return Value | N/A |
Design Rationale
Implementation of IF_ACTV State
Processing
Refer FDD
Local Function StateMachineStbEpsSts
| Function Name | StateMachineStbEpsSts | Type | Min | Max |
| Arguments Passed | ErrMod_Cnt_T_logl | boolean | FALSE | TRUE |
| AllwTran_Cnt_T_logl | boolean | FALSE | TRUE | |
| ErrIf_Cnt_T_logl | boolean | FALSE | TRUE | |
| BmwTarHwTqOvrlQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwDrvgDynFacQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTarSteerTqDrvrActrQlfr_Cnt_T_enum | enum | 2 | 15 | |
| BmwTrfcJamAssiDampgStReq_Cnt_T_enum | enum | 1 | 15 | |
| Fac_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdOvrlEquZero_Cnt_T_logl | boolean | FALSE | TRUE | |
| MotTqCmdPwrLimdActvtUppr_Cnt_T_logl | boolean | FALSE | TRUE | |
| Return Value | N/A |
Design Rationale
Implementation of STB_EPS_STS State
Processing
Refer FDD
Local Function StateMachineEntry
| Function Name | StateSrvNotAvlStbEpsSts | Type | Min | Max |
| Arguments Passed | N/A | |||
| Return Value | DrvgDynActv_Cnt_T_logl | boolean | FALSE | TRUE |
| DrvgDynIfSt_Cnt_T_enum | enum | 32 | 255 | |
| OutpTqOvrlRampInEna_Cnt_T_logl | boolean | FALSE | TRUE |
Design Rationale
Implementation of "StateMachine" Entry sections
Processing
Refer FDD
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
None
UNIT TEST CONSIDERATION
None
Abbreviations and Acronyms
| Abbreviation or Acronym | Description |
|---|---|
| FDD | Functional Design Document. (See references) |
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
| Term | Definition | Source |
|---|---|---|
| MDD | Module Design Document | |
| DFD | Data Flow Diagram |
References
| Ref. # | Title | Version |
|---|---|---|
| 1 | AUTOSAR Specification of Memory Mapping (Link:AUTOSAR_SWS_MemoryMapping.pdf) | v1.4.0 R4.0 Rev 3 |
| 2 | MDD Guideline EA4 | 1.02 |
| 3 | EA4 Software Naming Conventions | 1.01 |
| 4 | Software Design and Coding Standards | 2.01 |
| 5 | CF089A_BmwDrvgDynStMac_Design | See Synergy Sub Project Version |