PhaDiscnct_MDD

Module Design Document

For

PhaDiscnct

February 16, 2018

Prepared For:

Software Engineering

Nexteer Automotive,

Saginaw, MI, USA

Prepared By:

Software Group,

Nexteer Automotive,

Saginaw, MI, USA
Change History

DescriptionAuthorVersionDate
Initial VersionKrzysztof Byrski124-Aug-2017
Updated as per Design version 1.2.0Krzysztof Byrski203-Oct-2017
Updated as per Design version 1.3.0Krzysztof Byrski316-Feb-2018


Table of Contents

1 Introduction 4

1.1 Purpose 4

1.2 Scope 4

2 PhaDiscnct & High-Level Description 5

3 Design details of software module 6

3.1 Graphical representation of PhaDiscnct 6

3.2 Data Flow Diagram 6

3.2.1 Component level DFD 6

3.2.2 Function level DFD 6

4 Constant Data Dictionary 7

4.1 Program (fixed) Constants 7

4.1.1 Embedded Constants 7

5 Software Component Implementation 8

5.1 Sub-Module Functions 8

5.1.1 Init: PhaDiscnctInit1 8

5.1.2 Per: PhaDiscnctPer1 8

5.1.3 Per: PhaDiscnctPer2 8

5.2 Server Runables 8

5.3 Interrupt Functions 9

5.4 Module Internal (Local) Functions 9

5.4.1 Local Function PerformDiag 9

5.4.2 Local Function ClosingStateBody 9

5.4.3 Local Function ClosedStateBody 10

5.4.4 Local Function OpeningStateBody 10

5.4.5 Local Function OpenedStateBody 10

5.4.6 Local Function SetHwPhaDiscnctIO 11

5.5 GLOBAL Function/Macro Definitions 12

6 Known Limitations with Design 13

7 UNIT TEST CONSIDERATION 14

Appendix A Abbreviations and Acronyms 15

Appendix B Glossary 16

Appendix C References 17

Introduction

Purpose

MDD for ES330A_PhaDiscnct_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.

PhaDiscnct & High-Level Description

Phase Disconnect provides mechanism of disconnecting Motor Phases from system in order to prevent generation of unintended negative or positive motor torque. Phase Disconnect is controlled by System State and Motor Control Gate Driver FET fault signals. Phase Disconnect functionality provides support for loss of assist mitigation.

Design details of software module

Graphical representation of PhaDiscnct

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 NameResolutionUnitsValue
DIAGFLTPRMFAILTODIAGFLG_CNT_U081Cnt8
DIAGMOTCURRCORRDABITPOSN_CNT_U081Cnt1
DIAGMOTCURRCORRDBBITPOSN_CNT_U081Cnt2
DIAGMOTCURRCORRDCBITPOSN_CNT_U081Cnt4
DIAGSTCMPL_CNT_U081Cnt2
DIAGSTINI_CNT_U081Cnt0
DIAGSTPROC_CNT_U081Cnt1
DIAGSTSFAILTODIAG_CNT_U081Cnt2
DIAGSTSFAILTOOPEN_CNT_U081Cnt1
DIAGSTSPASS_CNT_U081Cnt0
DIAGTSTITRNPHAA_CNT_U081Cnt2
DIAGTSTITRNPHAB_CNT_U081Cnt1
DIAGTSTITRNPHAC_CNT_U081Cnt0
DISCNCTCURRCOMPIDX_CNT_U081Cnt0
OPERSTCLSPROGSN_CNT_U081Cnt0
OPERSTCLS_CNT_U081Cnt1
OPERSTOPENPROGSN_CNT_U081Cnt2
OPERSTOPEN_CNT_U081Cnt3
PHADISCNCTCMDALLOFF_CNT_U081Cnt0
PHADISCNCTCMDALLON_CNT_U081Cnt7
PHADISCNCTCMDAON_CNT_U081Cnt1
PHADISCNCTCMDBON_CNT_U081Cnt2
PHADISCNCTCMDCON_CNT_U081Cnt4

Software Component Implementation

Sub-Module Functions

Init: Init1

Design Rationale

Refer FDD

Module Outputs

Refer FDD

Per: Per1

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

Per: PhaDiscnctPer2

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 PerformDiag

Function NamePerformDiagTypeMinMax
Arguments PassedMotCurrCorrdA_Ampr_T_f32float32-200.0200.0
MotCurrCorrdB_Ampr_T_f32float32-200.0200.0
MotCurrCorrdC_Ampr_T_f32float32-200.0200.0
Return ValuePhaDiscnctDiagcPwmVect_Cnt_T_enumenum14

Design Rationale

Refer FDD

Processing

Refer FDD

Local Function ClosingStateBody

Function NameClosingStateBodyTypeMinMax
Arguments PassedStrtUpSt_Cnt_T_u08uint80160
SysSt_Cnt_T_enumenum03
Return ValuePhaDiscnctInactvTemp_Cnt_T_loglbooleanFALSETRUE

Design Rationale

Refer FDD

Processing

Refer FDD


Local Function ClosedStateBody

Function NameClosedStateBodyTypeMinMax
Arguments PassedIvtrFetFltPha_Cnt_T_enumenum04
IvtrFetFltTyp_Cnt_T_enumenum04
SysSt_Cnt_T_enumenum03
Return ValuePhaDiscnctCmdTemp_Cnt_T_u08Uint807

Design Rationale

Refer FDD

Processing

Refer FDD

Local Function OpeningStateBody

Function NameOpeningStateBodyTypeMinMax
Arguments PassedIvtrFetFltTyp_Cnt_T_enumenum04
SysSt_Cnt_T_enumenum03
Return ValuePhaDiscnctCmdTemp_Cnt_T_u08uint807

Design Rationale

Refer FDD

Processing

Refer FDD

Local Function OpenedStateBody

Function NameOpenedStateBodyTypeMinMax
Arguments PassedIvtrFetFltPha_Cnt_T_enumenum04
IvtrFetFltTyp_Cnt_T_enumenum04
SysSt_Cnt_T_enumenum03
Return ValuePhaDiscnctInactvTemp_Cnt_T_loglbooleanFALSETRUE
PhaDiscnctCmdTemp_Cnt_T_u08uint807

Design Rationale

Refer FDD

Processing

Refer FDD

Local Function SetHwPhaDiscnctIO

Function NameSetHwPhaDiscnctIOTypeMinMax
Arguments PassedPhaDiscnt_Cnt_T_u08uint807
Return ValueN/A

Design Rationale

Refer FDD

Processing

Refer FDD


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.4.0 R4.0 Rev 3
2MDD Guideline EA41.02
3EA4 Software Naming Conventions1.01
4Software Design and Coding Standards2.01
5ES330A_PhaDiscnct_DesignSee Synergy Sub Project Version
Last modified October 12, 2025: Initial commit (af72ad2)