HysCmp_MDD
Module Design Document
For
HysCmp
Jan 04, 2017
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Matthew Leser,
Nexteer Automotive,
Saginaw, MI, USA
Change History
| Description | Author | Version | Date | 
| Initial Version | SB | 1.0 | 04-Aug-2015 | 
| Updated per Design vers. 1.2.0 | ML | 2.0 | 04-Jan-2017 | 
Table of Contents
2 HysCmp & High-Level Description 6
3 Design details of software module 7
3.1 Graphical representation of HysCmp 7
4.1 Program (fixed) Constants 9
5 Software Component Implementation 10
5.4 Module Internal (Local) Functions 10
5.5 GLOBAL Function/Macro Definitions 11
6 Known Limitations with Design 12
Appendix A Abbreviations and Acronyms 14
Introduction
Purpose
Scope
HysCmp & High-Level Description
Refer FDD
Design details of software module
Refer FDD
Graphical representation of HysCmp

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 Name | Resolution | Units | Value | 
|---|---|---|---|
| Refer .m file | 
Software Component Implementation
Refer FDD
Sub-Module Functions
Init: HysCmpInit1
Refer FDD
Per: HysCmpPer1
Refer FDD
Server Runables
None
Interrupt Functions
None
Module Internal (Local) Functions
Local Function #1
| Function Name | MoreCmp | Type | Min | Max | 
| Arguments Passed | TqChg_HwNwtMtr_T_f32 | Float32 | 0 | 20 | 
| *RiseXPtr_HwNwtMtr_T_f32 | Float32 | 0 | 1 | |
| *RiseXFac_HwNwtMtr_T_f32 | Float32 | 0 | 1 | |
| Return Value | RiseY_Uls_T_f32 | Float32 | 0 | 1 | 
Design Rationale
None
Processing
Refer ‘MoreCmp’ block in Simulink model
Local Function #1
| Function Name | LessCmp | Type | Min | Max | 
| Arguments Passed | TqChg_HwNwtMtr_T_f32 | Float32 | 0 | 20 | 
| *RiseYPtr_Uls_T_f32 | Float32 | 0 | 1 | |
| *RiseXFac_HwNwtMtr_T_f32 | Float32 | 0 | 1 | |
| Return Value | RiseY_Uls_T_f32 | Float32 | 0 | 1 | 
Design Rationale
None
Processing
Refer ‘LessCmp’ block in Simulink model
Local Function #1
| Function Name | CalcAvlCmp | Type | Min | Max | 
| Arguments Passed | HwTqFildVal_HwNwtMtr_T_f32 | Float32 | -10 | 10 | 
| AssiCmdFildVal_HwNwtMtr_T_f32 | Float32 | -352 | 352 | |
| Return Value | HysCmpAvl_HwNwtMtr_T_f32 | Float32 | -8.8 | 8.8 | 
Design Rationale
None
Processing
Refer ‘CalcAvlCmp’ block in Simulink model
GLOBAL Function/Macro Definitions
None
Known Limitations with Design
None
UNIT TEST CONSIDERATION
None
Abbreviations and Acronyms
| Abbreviation or Acronym | Description | 
|---|---|
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.3.0 R4.0 Rev 2 | 
| 2 | MDD Guideline | Process 04.02.00 | 
| 3 | Software Naming Conventions.doc | Process 04.02.00 | 
| 4 | Software Design and Coding Standards.doc | Process 04.02.00 | 
| 5 | FDD – SF012A_HysCmp_Design | See Synergy SubProject version |