This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - requirements
FDD | ID | Source | Function | Line(s) | Status | Comment |
---|---|---|---|---|---|---|
.SwFileName | .SwFuncName | .SwLines | .SwStatus | .SwComment | ||
ES105A | 26 | StHlthSigNormn.c | EcuTFildMon | 890,892 | I | |
ES105A | 27 | StHlthSigNormn.c | OutpAssiMon | 991,993 | I | |
ES105A | 48 | StHlthSigNormn.c | EcuTFildMon | 905-995 | I | |
ES105A | 49 | StHlthSigNormn.c | OutpAssiMon | 906-996 | I | |
ES105A | 46 | StHlthSigNormn.c | EcuTFildMon | 811-815,822-827,834-839,845-850,856-861,865-884 | I | |
ES105A | 44 | StHlthSigNormn.c | EcuTFildMon | 842,844-849 | I | |
ES105A | 45 | StHlthSigNormn.c | EcuTFildMon | 855-860 | I | |
ES105A | 42 | StHlthSigNormn.c | EcuTFildMon | 819,821-826 | I | |
ES105A | 43 | StHlthSigNormn.c | EcuTFildMon | 831,833-838 | I | |
ES105A | 40 | StHlthSigNormn.c | EcuTFildMon | 796-896 | I | |
ES105A | 41 | StHlthSigNormn.c | EcuTFildMon | 808,810-814 | I | |
ES105A | 7 | StHlthSigNormn.c | UpdRawSig_Oper | 756-772 | I | |
ES105A | 6 | StHlthSigNormn.c | UpdRawSig_Oper | 755-771 | I | |
ES105A | 9 | StHlthSigNormn.c | StHlthSigNormnInit1 | 694-700 | I | |
ES105A | 8 | StHlthSigNormn.c | UpdRawSig_Oper | 757-773 | I | |
ES105A | 39 | StHlthSigNormn.c | UpdRawSig_Oper | 795-895 | I | |
ES105A | 15 | StHlthSigNormn.c | OutpAssiMon | 919,920,921 | I | |
ES105A | 14 | StHlthSigNormn.c | EcuTFildMon | 804 | I | |
ES105A | 54 | StHlthSigNormn.c | OutpAssiMon | 966-985 | I | |
ES105A | 51 | StHlthSigNormn.c | OutpAssiMon | 934-941 | I | |
ES105A | 50 | StHlthSigNormn.c | OutpAssiMon | 923 | I | |
ES105A | 53 | StHlthSigNormn.c | OutpAssiMon | 953-960 | I | |
ES105A | 52 | StHlthSigNormn.c | OutpAssiMon | 943-951 | I |
2 - StHlthSigNormn Review
Overview
Summary SheetSynergy Project
Source Code
PolySpace
Sheet 1: Summary Sheet

Sheet 2: Synergy Project
Sheet 3: Source Code
Rev 1.2 | 8-Jun-15 | |||||||||||||||||||||||
Peer Review Meeting Log (Source Code Review) | ||||||||||||||||||||||||
Source File Name: | StHlthSigNormn.c | Source File Revision: | 6 | |||||||||||||||||||||
Header File Name: | Header File Revision: | |||||||||||||||||||||||
MDD Name: | StHlthSigNormn_MDD.doc | Revision: | 3 | |||||||||||||||||||||
FDD/SCIR/DSR/FDR/CM Name: | ES105A_StHlthSigNormn_Design | Revision: | 3.2.0 | |||||||||||||||||||||
Quality Check Items: | ||||||||||||||||||||||||
Rationale is required for all answers of No | ||||||||||||||||||||||||
Working EA4 Software Naming Convention followed: | ||||||||||||||||||||||||
for variable names | Yes | Comments: | ||||||||||||||||||||||
for constant names | Yes | Comments: | ||||||||||||||||||||||
for function names | Yes | Comments: | ||||||||||||||||||||||
for other names (component, memory | N/A | Comments: | ||||||||||||||||||||||
mapping handles, typedefs, etc.) | ||||||||||||||||||||||||
All paths assign a value to outputs, ensuring | Yes | Comments: | ||||||||||||||||||||||
all outputs are initialized prior to being written | ||||||||||||||||||||||||
Requirements Tracability tags in code match the requirements tracability in the FDD | N/A | Comments: | ||||||||||||||||||||||
requirements tracability in the FDD | ||||||||||||||||||||||||
All variables are declared at the function level. | Yes | Comments: | ||||||||||||||||||||||
Synergy version matches change history | Yes | Comments: | ||||||||||||||||||||||
and Version Control version in file comment block | ||||||||||||||||||||||||
Change log contains detailed description of changes | Yes | Comments: | ||||||||||||||||||||||
and Work CR number | ||||||||||||||||||||||||
Code accurately implements FDD (Document or Model) | Yes | Comments: | ||||||||||||||||||||||
Verified no Compiler Errors or Warnings | Yes | Comments: | ||||||||||||||||||||||
Component.h is included | N/A | Comments: | ||||||||||||||||||||||
All other includes are actually needed. (System includes | N/A | Comments: | ||||||||||||||||||||||
only allowed in Nexteer library components) | ||||||||||||||||||||||||
Software Design and Coding Standards followed: | Version: | |||||||||||||||||||||||
Code comments are clear, correct, and adequate | Yes | Comments: | ||||||||||||||||||||||
and have been updated for the change: [N40] and | ||||||||||||||||||||||||
all other rules in the same section as rule [N40], | ||||||||||||||||||||||||
plus [N75], [N12], [N23], [N33], [N37], [N38], | ||||||||||||||||||||||||
[N48], [N54], [N77], [N79], [N72] | ||||||||||||||||||||||||
Source file (.c and .h) comment blocks are per | Yes | Comments: | ||||||||||||||||||||||
standards and contain correct information: [N41], [N42] | ||||||||||||||||||||||||
Function comment blocks are per standards and | Yes | Comments: | ||||||||||||||||||||||
contain correct information: [N43] | ||||||||||||||||||||||||
Code formatting (indentation, placement of | Yes | Comments: | ||||||||||||||||||||||
braces, etc.) is per standards: [N5], [N55], [N56], | ||||||||||||||||||||||||
[N57], [N58], [N59] | ||||||||||||||||||||||||
Embedded constants used per standards; no | Yes | Comments: | ||||||||||||||||||||||
"magic numbers": [N12] | ||||||||||||||||||||||||
Memory mapping for non-RTE code | N/A | Comments: | ||||||||||||||||||||||
is per standard | ||||||||||||||||||||||||
All execution-order-dependent code can be | N/A | Comments: | ||||||||||||||||||||||
recognized by the compiler: [N80] | ||||||||||||||||||||||||
All loops have termination conditions that ensure | N/A | Comments: | ||||||||||||||||||||||
finite loop iterations: [N63] | ||||||||||||||||||||||||
All divides protect against divide by zero | Yes | Comments: | ||||||||||||||||||||||
if needed: [N65] | ||||||||||||||||||||||||
All integer division and modulus operations | Yes | Comments: | ||||||||||||||||||||||
handle negative numbers correctly: [N76] | ||||||||||||||||||||||||
All typecasting and fixed point arithmetic, | Yes | Comments: | ||||||||||||||||||||||
including all use of fixed point macros and | ||||||||||||||||||||||||
timer functions, is correct and has no possibility | ||||||||||||||||||||||||
of unintended overflow or underflow: [N66] | ||||||||||||||||||||||||
All float-to-unsiged conversions ensure the. | Yes | Comments: | ||||||||||||||||||||||
float value is non-negative: [N67] | ||||||||||||||||||||||||
All conversions between signed and unsigned | N/A | Comments: | ||||||||||||||||||||||
types handle msb==1 as intended: [N78] | ||||||||||||||||||||||||
All pointer dereferencing protects against | N/A | Comments: | ||||||||||||||||||||||
null pointer if needed: [N70] | ||||||||||||||||||||||||
Component outputs are limited to the legal range | Yes | Comments: | ||||||||||||||||||||||
defined in the FDD DataDict.m file : [N53] | ||||||||||||||||||||||||
All code is mapped with FDD (all FDD | Yes | Comments: | ||||||||||||||||||||||
subfunctions and/or model blocks identified | ||||||||||||||||||||||||
with code comments; all code corresponds to | ||||||||||||||||||||||||
some FDD subfunction and/or model block): [N40] | ||||||||||||||||||||||||
Review did not identify violations of other | Yes | Comments: | ||||||||||||||||||||||
coding standard rules | ||||||||||||||||||||||||
Anomaly or Design Work CR created | Yes | Comments: | ||||||||||||||||||||||
for any FDD corrections needed | ||||||||||||||||||||||||
General Notes / Comments: | ||||||||||||||||||||||||
Change Owner: | Akilan Rathakrishnan | Review Date : | 10/13/16 | |||||||||||||||||||||
Lead Peer Reviewer: | Krishna Anne | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
Other Reviewer(s): | ||||||||||||||||||||||||
Sheet 4: PolySpace
3 - StHlthSigNormn_IntegrationManual
Integration Manual
For
SThlthSigNormn
VERSION: 1.0
DATE: 09-Feb-2016
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Revision History
Sl. No. | Description | Author | Version | Date |
1 | Initial version | Akilan Rathakrishnan | 1.0 | 09-Feb-2016 |
Table of Contents
3.2 Global Functions(Non RTE) to be provided to Integration Project 6
4 Configuration REQUIREMeNTS 7
4.2 Configuration Files to be provided by Integration Project 7
4.3 Da Vinci Parameter Configuration Changes 7
4.4 DaVinci Interrupt Configuration Changes 7
4.5 Manual Configuration Changes 7
5 Integration DATAFLOW REQUIREMENTS 8
5.1 Required Global Data Inputs 8
5.2 Required Global Data Outputs 8
5.3 Specific Include Path present 8
Abbrevations And Acronyms
Abbreviation | Description |
DFD | Design functional diagram |
MDD | Module design Document |
<ADD more to the table if applicable> | |
References
This section lists the title & version of all the documents that are referred for development of this document
Sr. No. | Title | Version |
<1> | <FDD - <FDD ES105A_StHlthSigNormn_Design> | Refer Synergy subproject version |
Dependencies
SWCs
Module | Required Feature |
None | N/A |
Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be referred. Developer should track the references.
Global Functions(Non RTE) to be provided to Integration Project
< Global function (except the ones that are defined in RTE modules) that is defined in this component but used by other function
Configuration REQUIREMeNTS
Build Time Config
Modules | Notes | |
None |
Configuration Files to be provided by Integration Project
None
Da Vinci Parameter Configuration Changes
Parameter | Notes | SWC |
N/A |
DaVinci Interrupt Configuration Changes
ISR Name | VIM # | Priority Dependency | Notes |
N/A |
Manual Configuration Changes
Constant | Notes | SWC |
N/A |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Refer ES105A_StHlthSigNormn_DataDict.m file
Required Global Data Outputs
Refer ES105A_StHlthSigNormn_DataDict.m file
Specific Include Path present
No
Runnable Scheduling
This section specifies the required runnable scheduling.
Init | Scheduling Requirements | Trigger |
StHlthSigNormnInit1 | None | RTE Init |
Runnable | Scheduling Requirements | Trigger |
UpdRawSig_Oper | Shall be triggered at the end of every tasks from which signals are monitored. | Server invocation for OperationPrototype <Oper> of PortPrototype <UpdRawSig> |
Memory Map REQUIREMENTS
Mapping
Memory Section | Contents | Notes |
None | ||
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
Feature | RAM | ROM |
None |
Table 1: ARM Cortex R4 Memory Usage
Non RTE NvM Blocks
Block Name |
None |
Note : Size of the NVM block if configured in developer
RTE NvM Blocks
Block Name |
None |
Note : Size of the NVM block if configured in developer
Compiler Settings
Preprocessor MACRO
None
Optimization Settings
None
Appendix
<This section is for appendix>
4 - StHlthSigNormn_MDD
Module Design Document
For
State of Health Signal Normalization
Sep 27, 2016
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USAChange History
Sl. No. | Description | Author | Version | Date |
1 | Initial Version | Akilan Rathakrishnan | 1.0 | 09-Feb-2016 |
2 | Updated for EA4# 5445 | Akilan Rathakrishnan | 2.0 | 02-May-2016 |
3 | Updated for EA4#7305 | Akilan Rathakrishnan | 3.0 | 27-Sep-2016 |
Table of Contents
1 StHlthSignNormn High-Level Description 5
2 Design details of software module 6
2.1.1.1 Graphical representation of StHlthSigNormn 6
3.1.1.1 Program (fixed) Constants 9
4 Software Component Implementation 10
4.1.1.1 Init: StHlthSigNormnInit1 10
4.1.2 Interrupt Service Routines 10
4.1.3 Server Runnable Functions 10
4.1.3.1.2 Store Module Inputs to Local copies 10
4.1.3.1.3 (Processing of function)……… 10
4.1.3.1.4 Store Local copy of outputs into Module Outputs 10
4.1.4 Module Internal (Local) Functions 11
4.1.4.2 Local Function #2 Rationale 11
4.1.4.3 Local Function #3 Rationale 11
4.1.4.4 Local Function #4 Rationale 12
4.1.4.5 Local Function #5 Rationale 12
4.1.4.6 Local Function #6 Rationale 12
4.1.4.7 Local Function #7 Rationale 12
4.1.4.8 Local Function #8 Rationale 13
4.1.4.9 Local Function #9 Rationale 13
4.1.4.10 Local Function #10 Rationale 13
4.1.4.11 Local Function #11 Rationale 14
4.1.4.12 Local Function #12 Rationale 14
4.1.4.13 Local Function #13 Rationale 14
5 Known Limitations with Design 15
Appendix A Abbreviations and Acronyms 17
StHlthSignNormn High-Level Description
This component acts as an interface component between ES106A (State of Health Signal Statistics) and rest of the components from which signals need to be monitored. It reads data or status values from different components, applies normalization algorithm to convert it as State of Health information which will be in the scale of 0 to 100. It also provides auxiliary output for some signals to indicate the additional information about monitored signals.
Design details of software module
See FDD.
Graphical representation of StHlthSigNormn
Data Flow Diagram
See FDD.
Component level DFD
See FDD.
Function level DFD
See FDD.
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
Constant Name | Resolution | Units | Value |
TMAXRNGVAL_CNT_U08 | 1 | Cnt | 15 |
VLTGMAXRNGVAL_CNT_U08 | 1 | Cnt | 15 |
PHAVLTGDIVBYZEROPROTNVAL_NANOSEC_U32 | 1 | NanoSec | 180000 |
* Also see FDD ES105A_StHlthSigNormn_DataDict.m file
Software Component Implementation
<The detailed design of the function is provided in the FDD. The detail design shall only be added to the MDD when it is not provided in the FDD or the FDD is not adequate and clarification is needed.>
Sub-Module Functions
Init: StHlthSigNormnInit1
Design Rationale
None
Module Outputs
See FDD
Module Internal
See FDD
Per: None
Interrupt Service Routines
None
Server Runnable Functions
UpdRawSig
Design Rationale
None
Store Module Inputs to Local copies
See FDD
(Processing of function)………
See FDD
Store Local copy of outputs into Module Outputs
See FDD
Module Internal (Local) Functions
Local Function #1
Function Name | EcuTFildMon | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | CtrlrTStHlth | Uint8 | 0 | 100 |
Return Value | CtrlrTRng | Uint8 | 0 | 15 |
Description
This function implements “Controller Temperature” block in the FDD
Local Function #2 Rationale
Function Name | OutpAssiMon | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | OutpAssiStHlth | Uint8 | 0 | 100 |
Return Value | VltgRng | Uint8 | 0 | 15 |
Description
This function implements “Health of Assist Due To Voltage” block in the FDD
Local Function #3 Rationale
Function Name | DigTqSnsrStHlthCalc | Type | Min | Max |
Arguments Passed | SigId_Arg | StHlthMonSig2 | 0 | 20 |
Return Value | DigTqSnsrAStHlth | Uint8 | 0 | 100 |
Return Value | DigTqSnsrBStHlth | Uint8 | 0 | 100 |
Return Value | DigTqIdptSigStHlth | Uint8 | 0 | 100 |
Description
This function implements “Digital Torque Sensor” block in the FDD
Local Function #4 Rationale
Function Name | DutyCycExcddStHlthCalc | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | DutyCycStHlth | Uint8 | 0 | 100 |
Description
This function implements “Duty Cycle” block in the FDD
Local Function #5 Rationale
Function Name | EotImpctCntrStHlthCalc | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | EotImpctStHlth | Uint8 | 0 | 100 |
Description
This function implements “EOT Impact” block in the FDD
Local Function #6 Rationale
Function Name | MotPosnStHlthCalc | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | MotPosStHlth | Uint8 | 0 | 100 |
Description
This function implements “Motor Position” block in the FDD
Local Function #7 Rationale
Function Name | MotPosnErrStHlthCalc | Type | Min | Max |
Arguments Passed | SigId_Arg | StHlthMonSig2 | 0 | 20 |
Return Value | AbsltMotPosABDifStHlth | Uint8 | 0 | 100 |
Return Value | AbsltMotPosACDifStHlth | Uint8 | 0 | 100 |
Return Value | AbsltMotPosBCDifStHlth | Uint8 | 0 | 100 |
Description
This function implements “Motor Position Phase Difference” block in the FDD
Local Function #8 Rationale
Function Name | CurrMotSumStHlthCalc | Type | Min | Max |
Arguments Passed | SigId_Arg | StHlthMonSig2 | 0 | 20 |
Return Value | CurrMotSumABCStHlth | Uint8 | 0 | 100 |
Return Value | CurrMotSumDEFStHlth | Uint8 | 0 | 100 |
Description
This function implements “Current Motor Sum” block in the FDD
Local Function #9 Rationale
Function Name | PhaVltgStHlthCalc | Type | Min | Max |
Arguments Passed | SigId_Arg | StHlthMonSig2 | 0 | 20 |
Return Value | PhaAStHlth | Uint8 | 0 | 100 |
Return Value | PhaBStHlth | Uint8 | 0 | 100 |
Return Value | PhaCStHlth | Uint8 | 0 | 100 |
Return Value | PhaDStHlth | Uint8 | 0 | 100 |
Return Value | PhaEStHlth | Uint8 | 0 | 100 |
Return Value | PhaFStHlth | Uint8 | 0 | 100 |
Description
This function implements “Health of Phase” block in the FDD
Local Function #10 Rationale
Function Name | RamEccSngBitCorrnStHlthCalc | Type | Min | Max |
Arguments Passed | None | N/A | N/A | N/A |
Return Value | RamEccSngBitCorrnStHlth | Uint8 | 0 | 100 |
Description
This function implements “Single Bit Correction” block in the FDD
Local Function #11 Rationale
Function Name | PhaVltgCalcStHlth | Type | Min | Max |
Arguments Passed | MotDrvErrX_NanoSec_T_f32 | float32 | 0,0 | 40000000,0 |
Return Value | PhaXStHlth_Cnt_T_u08 | Uint8 | 0 | 100 |
Description
This function implements a sub-section in“Health of Phase”” block in the FDD
Local Function #12 Rationale
Function Name | FricEstimnStHlthCalc | Type | Min | Max |
Arguments Passed | None | NA | ||
Return Value | None | NA |
Description
This function implements a sub-section in“Friction Estimation”” block in the FDD
Local Function #13 Rationale
Function Name | WhlImbRejctnStHlthCalc | Type | Min | Max |
Arguments Passed | None | NA | ||
Return Value | None | NA |
Description
This function implements a sub-section in“Wheel Imbalance Rejection”” block in the FDD
Transition Functions
None.
Known Limitations with Design
None
UNIT TEST CONSIDERATION
None
Abbreviations and Acronyms
Abbreviation or Acronym | Description |
---|---|
DFD | Design functional diagram |
MDD | Module design Document |
FDD | Functional Design Document |
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 Release 04.02.01 |
3 | Software Naming Conventions.doc | Process Release 04.02.01 |
4 | Software Design and Coding Standards.doc | Process Release 04.02.01 |
5 | FDD: ES105A_StHlthSigNormn_Design | See Synergy subproject version |