This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - ImcArbn_IntegrationManual
Integration Manual
For
Imc Arbitration
VERSION: 1.0
DATE: 02-Feb-2017
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Revision History
Sl. No. | Description | Author | Version | Date |
1 | Initial version | Akilan Rathakrishnan | 1.0 | 17-Jan-2017 |
2 | Added note about potential compilation issue in case of no signal group configured | Akilan Rathakrishnan | 2.0 | 02-Feb-2017 |
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 8
5 Integration DATAFLOW REQUIREMENTS 9
5.1 Required Global Data Inputs 9
5.2 Required Global Data Outputs 9
5.3 Specific Include Path present 9
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 - <AR350A_ImcArbn_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
None
Configuration REQUIREMeNTS
Build Time Config
Modules | Notes | |
None |
Configuration Files to be provided by Integration Project
ImcArbn_Private_Cfg.c
ImcArbn_Private_Cfg.h
ImcArbn_ Cfg.h
Note 1: Include “ImcArbn_Private_Cfg.h” in the “Rte_UserTypes.h” file as user defined typedefs are generated in this file.
Note 2: Configuration files “ImcArbn_Private_Cfg.c”, “ImcArbn_Private_Cfg.h” and “ImcArbn_ Cfg.h”
shall be regenerated whenever there is a change in text template files ImcArbn_Private_Cfg.c.tt, ImcArbn_Private_Cfg.h.tt and ImcArbn_Cfg.c.tt.
Note 3: If there is no IMC Signal Group / IMC Signals are configured, configuration scripts of this component will end-up in generating zero-size array typedefs, which will cause compilation issues. It is a design limitation and underlying assumption is that if no Signal Group configured, then the component shall be removed from the project altogether.
Da Vinci DEVELOPER NOTES
Davinci Developer project for this component is just base. Integrator need to import the developer project into the integration project and add all required IMC Signals in order to access the signal using S/R Ports. Also, for every of the signal, based on the Rate Group provided by higher level Architectural and Requirement documents, port access shall be provided to corresponding Transmit periodics (ImcArbnPer1= 2ms, ImcArbnPer2= 10ms and ImcArbnPer3= 100ms). All IMC Signals RTE reads shall be direct reads.
Da Vinci Parameter Configuration Changes
Following configurations shall be made in DaVinci configurator for the component. Configuration data for this component shall be provided by higher level Architectural and Requirement documents.
DaVinci Interrupt Configuration Changes
ISR Name | VIM # | Priority Dependency | Notes |
N/A |
Manual Configuration Changes
Constant | Notes | SWC |
N/A |
Exclusive Areas
Constant | Notes | SWC |
ExclsvAr1DrvrTxRxBuf | Exclusive area needs to protect access to Transmit and Receive buffers from asynchronous updates by server runnables and periodic updates by tasks. Integrator needs to verify if client calls to server runnables can inteerupt periodics and set up exclusive area to properly protect access. If exclusive area is needed, at minimum it must disable OS Task scheduling (It is assumed that all clients call occurs in OS Tasks). | |
ExclsvAr2SigDataBuf | Exclusive area needs to protect access to Signal data buffers from asynchronous read by server runnables and periodic updates by tasks. Integrator needs to verify if client calls to server runnables can inteerupt periodics and set up exclusive area to properly protect access. If exclusive area is needed, at minimum it must disable OS Task scheduling (It is assumed that all clients call occurs in OS Tasks). |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Refer AR350A_ImcArbn_DataDict.m file
Required Global Data Outputs
Refer AR350A_ImcArbn_DataDict.m file
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
Init | Scheduling Requirements | Trigger |
ImcArbnInit1 | Invoked by RTE during Init | RTE |
Runnable | Scheduling Requirements | Trigger |
ImcArbnPer1 | Refer Notes listed below the table | RTE 2ms Task |
ImcArbnPer2 | Refer Notes listed below the table | RTE 10ms Taks |
ImcArbnPer3 | Refer Notes listed below the table | RTE 100ms Task |
ImcArbnPer4 | Refer Notes listed below the table | RTE 2ms Task |
ImcArbnPer5 | Refer Notes listed below the table | RTE 10ms Task |
ImcArbnPer6 | Refer Notes listed below the table | RTE 100ms Task |
GetSigImcDataExtdSts_f32_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_u32_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_s32_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_u16_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_s16_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_u08_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_s08_Oper | Server Runnable | Client call |
GetSigImcDataExtdSts_logl_Oper | Server Runnable | Client call |
GetSigImcData_f32_Oper | Server Runnable | Client call |
GetSigImcData_u32_Oper | Server Runnable | Client call |
GetSigImcData_s32_Oper | Server Runnable | Client call |
GetSigImcData_u16_Oper | Server Runnable | Client call |
GetSigImcData_s16_Oper | Server Runnable | Client call |
GetSigImcData_u08_Oper | Server Runnable | Client call |
GetSigImcData_s08_Oper | Server Runnable | Client call |
GetSigImcData_logl_Oper | Server Runnable | Client call |
GetTxRateGroup_Oper | Server Runnable | Client call |
GetTxSigGroup_Oper | Server Runnable | Client call |
SetRxSigGroup_Oper | Server Runnable | Client call |
Notes:
ImcArbnPer1, ImcArbnPer2 and ImcArbnPer3 periodic functions shall be called prior to calling respective primary and secondary signal source transmit layer functions.
ImcArbnPer4, ImcArbnPer5 and ImcArbnPer6 periodic functions shall be called after calling respective primary and secondary signal source receive layer functions.
ImcArbn Receive periodic functions (ImcArbnPer4, ImcArbnPer5 and ImcArbnPer6) shall run prior to the ImcArbn Transmit periodics (ImcArbnPer1, ImcArbnPer2 and ImcArbnPer3) functions.
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>
2 - ImcArbn_MDD
Module Design Document
For
Imc Arbitration
Jan 17, 2017
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 | 17-Jan-2017 |
Table of Contents
1 ImcArbn High-Level Description 7
2 Design details of software module 8
Graphical representation of ImcArbn 8
3.1 User defined typedef definition/declaration 10
3.2 Variable definition for enumerated types 12
4.1.2 Module specific Lookup Tables Constants 13
5 Software Module Implementation 14
5.2 Server Runnable Functions 15
5.2.1 GetSigImcDataExtdSts_f32 15
5.2.2 GetSigImcDataExtdSts_u32 15
5.2.3 GetSigImcDataExtdSts_u16 15
5.2.4 GetSigImcDataExtdSts_s16 15
5.2.5 GetSigImcDataExtdSts_u08 15
5.2.6 GetSigImcDataExtdSts_s08 15
5.2.7 GetSigImcDataExtdSts_logl 15
5.3 Module Internal (Local) Functions 16
5.3.17 Transition Functions 20
5.3.18 Global Function/Macro Definitions 21
6 Known Limitations with Design 22
Appendix A Abbreviations and Acronyms 24
ImcArbn High-Level Description
The Inter-Micro Communication (IMC) Arbitration prepares data for transmission to a complimentary ECU through two redundant communication paths. On the receive side, the Arbitration reads data from the primary source and determines the data validity. A validity fault on primary source prompts the IMC Arbitration component to evaluate the same signal from the secondary source. Faulty signals from the primary source will be replaced with signals from the secondary source, as long as they are valid. If both data sources are invalid the IMC Arbitration outputs the signal status based on never received, missing and invalid conditions.
Design details of software module
See FDD.
Graphical representation of ImcArbn
Data Flow Diagram
See FDD.
Component level DFD
See FDD.
Function level DFD
See FDD.
Variable Data Dictionary
User defined typedef definition/declaration
<This section documents any user types uniquely used for the module.>
Variable definition for enumerated types
Enum Name | Element Name | Value |
See AR350A_ImcArbn_DataDict.m file |
Constant Data Dictionary
Program (fixed) Constants
Embedded Constants
Local Constants
Constant Name | Resolution | Units | Value |
See AR350A_ImcArbn_DataDict.m file |
Global
<This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application>
Constant Name |
See AR350A_ImcArbn_DataDict.m file |
Module specific Lookup Tables Constants
<(This is for lookup tables (arrays) with fixed values, same name as other tables)>
Constant Name | type | Value | Software Segment |
SIGGROUPCONFIG_REC | SigGroupRec1 | Configurable | ImcArbn_CONST |
<SIGGROUPNAME>_REC | SigPrmRec1 | Configurable | ImcArbn_CONST |
RATEGROUPOFFS_CNT_U08 | Uint8 | Configurable | ImcArbn_CONST |
NRSIGGROUPINRATEGROUP_CNT_U08 | Uint8 | Configurable | ImcArbn_CONST |
MISSSIGGROUPTIOUT_CNT_U08 | Uint8 | Configurable | ImcArbn_CONST |
Note: <SIGGROUPNAME>_REC – Placeholder <SIGGROUPNAME> will be replaced based on respective Signal Group names from the configuration. Also note, this component will have as many number of <SIGGROUPNAME>_REC constants as number of Signal Groups.
Software Module Implementation
Sub-Module Functions
None
Init: ImcArbnInit1
Design Rationale
Design follows implementation in FDD.
Design Rationale
Refer FDD
PERIODIC FUNCTIONS
Per: ImcArbnPer1
Design Rationale
Refer FDD
Per: ImcArbnPer2
Design Rationale
Refer FDD
Per: ImcArbnPer3
Design Rationale
Refer FDD
Per: ImcArbnPer4
Design Rationale
Refer FDD
Per: ImcArbnPer5
Design Rationale
Refer FDD
Per: ImcArbnPer6
Design Rationale
Refer FDD
Interrupt Functions
None
Server Runnable Functions
GetSigImcDataExtdSts_f32
Design Rationale
Refer FDD
GetSigImcDataExtdSts_u32
Design Rationale
Refer FDD
GetSigImcDataExtdSts_u16
Design Rationale
Refer FDD
GetSigImcDataExtdSts_s16
Design Rationale
Refer FDD
GetSigImcDataExtdSts_u08
Design Rationale
Refer FDD
GetSigImcDataExtdSts_s08
Design Rationale
Refer FDD
GetSigImcDataExtdSts_logl
Design Rationale
Refer FDD
GetSigImcData_f32
Design Rationale
Refer FDD
GetSigImcData_u32
Design Rationale
Refer FDD
GetSigImcData_s32
Design Rationale
Refer FDD
GetSigImcData_u16
Design Rationale
Refer FDD
GetSigImcData_s16
Design Rationale
Refer FDD
GetSigImcData_u08
Design Rationale
Refer FDD
GetSigImcData_s08
Design Rationale
Refer FDD
GetSigImcData_logl
Design Rationale
Refer FDD
GetTxRateGroup
Design Rationale
Refer FDD
GetTxSigGroup
Design Rationale
Refer FDD
SetRxSigGroup
Design Rationale
Refer FDD
Module Internal (Local) Functions
Local Function #1
Function Name | ImcArbnTx | Type | Min | Max |
Arguments Passed | RateGroup_Cnt_T_u08 | Uint8 | 0 | 2 |
Return Value | void | N/A | N/A | N/A |
Description
This function implements “ImcArbnTx” function in the FDD.
Local Function #2
Function Name | ImcArbnRx | Type | Min | Max |
Arguments Passed | FrmFltCntr_Ary2D_u8 | Ary2D_u8_2_2* | 0x00000001 | 0xFFFFFFFF |
RateGroup_Cnt_T_u08 | uint8 | 0 | 2 | |
IniTiOutChkCmpl_Cnt_T_logl | Boolean | 0 | 1 | |
Return Value | None | N/A | N/A | N/A |
Description
This function implements “ImcArbnRx” function in the FDD.
Local Function #3
Function Name | NoDataHndlg | Type | Min | Max |
Arguments Passed | RxSigExtdSts1_Cnt_T_enum | ImcArbnRxExtdSts1 | 0 | 6 |
RxDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 | |
RateGroup_Cnt_T_u08 | uint8 | 0 | 2 | |
SigGroup_Cnt_T_u08 | uint8 | 0 | 255 | |
PrimSrcNoDataRxd_Cnt_T_logl | boolean | 0 | 1 | |
SecdrySrcNoDataRxd_Cnt_T_logl | boolean | 0 | 1 | |
Return Value | None | N/A | N/A | N/A |
Description
This function implements “NoDataHndlg” function in the FDD.
Local Function #4
Function Name | OvrdSigStsDurgStrtUp | Type | Min | Max |
Arguments Passed | SigGroup_Cnt_T_u08 | uint8 | 0 | 255 |
IniTiOutChkCmpl_Cnt_T_logl | Boolean | 0 | 1 | |
Return Value | None | N/A | N/A | N/A |
Description
This function implements “OvrdSigStsDurgStrtUp” function in the FDD.
Local Function #5
Function Name | EvlSigGroupNeverRxdMissSts | Type | Min | Max |
Arguments Passed | RateGroup_Cnt_T_u08 | uint8 | 0 | 2 |
SigGroup_Cnt_T_u08 | uint8 | 0 | 255 | |
Return Value | RxSigExtdSts1_Cnt_T_enum | ImcArbnRxExtdSts1 | 0 | 6 |
Description
This function implements “OvrdSigStsDurgStrtUp” function in the FDD.
Local Function #6
Function Name | RxFrmVldChk | Type | Min | Max |
Arguments Passed | DataBuf_Cnt_T_u08 | uint8* | 0x00000001 | 0xFFFFFFFF |
FrmFltCntr_Cnt_T_u08 | Ary1D_u8_2* | 0x00000001 | 0xFFFFFFFF | |
SigGroupDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 | |
RateGroup_Cnt_T_u08 | uint8 | 0 | 2 | |
SigGroup_Cnt_T_u08 | Uint8 | 0 | 255 | |
PrimSrcOnlySigGroup_Cnt_T_logl | Boolean | 0 | 1 | |
IniTiOutChkCmpl_Cnt_T_logl | Boolean | 0 | 1 | |
Return Value | FrmSts_Cnt_T_enum | ImcArbnRxRollgCntrSts1 | 0 | 2 |
Description
This function implements “RxFrmVldChk” function in the FDD.
Local Function #7
Function Name | ImcChResyncHndlg | Type | Min | Max |
Arguments Passed | SigGroupDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 |
SigGroup_Cnt_T_u08 | Uint8 | 0 | 255 | |
PrsntRollgCntr_Cnt_T_u08 | Uint8 | 0 | 31 | |
Return Value | Void | NA | NA | NA |
Description
This function implements “ImcChResyncHndlg” function in the FDD.
Local Function #8
Function Name | VldtRollgCntr | Type | Min | Max |
Arguments Passed | SigGroupDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 |
RateGroup_Cnt_T_u08 | Uint8 | 0 | 2 | |
SigGroup_Cnt_T_u08 | Uint8 | 0 | 255 | |
PrsntRollgCntr_Cnt_T_u08 | Uint8 | 0 | 31 | |
Return Value | RollgCntrSts_Cnt_T_enum | ImcArbnRxRollgCntrSts1 | 0 | 2 |
Description
This function implements “VldtRollgCntr” function in the FDD.
Local Function #9
Function Name | VldtRollgCntrAlg | Type | Min | Max |
Arguments Passed | SigGroupDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 |
RateGroup_Cnt_T_u08 | Uint8 | 0 | 2 | |
SigGroup_Cnt_T_u08 | Uint8 | 0 | 255 | |
PrsntRollgCntr_Cnt_T_u08 | Uint8 | 0 | 31 | |
Return Value | RollgCntrSts_Cnt_T_enum | ImcArbnRxRollgCntrSts1 | 0 | 2 |
Description
This function implements “VldtRollgCntrAlg” function in the FDD.
Local Function #10
Function Name | RollgCntrSeqChk | Type | Min | Max |
Arguments Passed | PrsntRollgCntr_Cnt_T_u08 | Uint8 | 0 | 31 |
AntcptdRollCntr_Cnt_T_u08 | Uint8 | 0 | 31 | |
UpprDriftLim_Cnt_T_u08 | Uint8 | 0 | 255 | |
LwrDriftLim_Cnt_T_u08 | Uint8 | 0 | 255 | |
Return Value | RollgCntrVld_Cnt_T_logl | boolean | 0 | 1 |
Description
This function implements “RollgCntrSeqChk” function in the FDD.
Local Function #11
Function Name | CreatSigGroupData | Type | Min | Max |
Arguments Passed | SigGroup_T_rec | SigGroupRec1 const* | 0x00000001 | 0xFFFFFFFF |
Return Value | RetData_Uls_T_u32 | uint32 | 0 | 4294967295 |
Description
This function implements “CreatSigGroupData” function in the FDD.
Local Function #12
Function Name | DecodSigGroupData | Type | Min | Max |
Arguments Passed | SigGroup_T_rec | SigGroupRec1 const* | 0x00000001 | 0xFFFFFFFF |
SigGroupRxData_Uls_T_u32 | uint32 | 0 | 4294967295 | |
RxSigExtdSts1_Cnt_T_enum | ImcArbnRxExtdSts1 | 0 | 6 | |
RxDataSrc_Cnt_T_enum | ImcArbnRxDataSrc1 | 0 | 2 | |
Return Value | void |
Description
This function implements “DecodSigGroupData” function in the FDD.
Local Function #13
Function Name | GetBitMask | Type | Min | Max |
Arguments Passed | NrOfBits_Cnt_T_u08 | Uint8 | 0 | 31 |
Return Value | BitMask_Cnt_T_u32 | uint32 | 0 | 4294967295 |
Description
This function implements “GetBitMask” function in the FDD.
Local Function #14
Function Name | GetImcSigSts | Type | Min | Max |
Arguments Passed | RxSigExtdSts1_Cnt_T_enum | ImcArbnRxExtdSts1 | 0 | 6 |
Return Value | RetSts_Cnt_T_enum | ImcArbnRxSts1 | 0 | 2 |
Description
This function implements “GetImcSigSts” function in the FDD.
Local Function #15
Function Name | GetImcFltParamByte | Type | Min | Max |
Arguments Passed | void | |||
Return Value | FltBitMask_Cnt_T_u08 | Uint8 | 0 | 15 |
Description
This function implements “GetImcFltParamByte” function in the FDD.
Local Function #16
Function Name | NoDataRxd | Type | Min | Max |
Arguments Passed | StrtByte_Cnt_T_u08 | Uint8 | 0 | 255 |
EndByte_Cnt_T_u08 | Uint8 | 0 | 255 | |
Return Value | RetVal_Cnt_T_logl | boolean | 0 | 1 |
Description
This function implements “NoDataRxd” function in the FDD.
Transition Functions
None.
Global Function/Macro Definitions
Refer FDD
Known Limitations with Design
None
UNIT TEST CONSIDERATION
Number of Signals / Signal Groups / Rate Groups that can be supported by Imc Tx/Rx is configurable. Even though underlying data type of configuration information might have wider range, only values that are generated out of configuration will be supported by the component. If complete range need to be supported, then make configuration, and generate the cfg files accordingly. Also, none of the configuration values shall be hand-modified to cover legal range of underlying parameter.
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 | EA4 01.00.00 |
3 | Software Naming Conventions.doc | 1.0 |
4 | Software Design and Coding Standards.doc | 2.1 |
5 | FDD: AR350A_ImcArbn_Design | See Synergy subproject version |
3 - ImcArbn_Review
Overview
Summary SheetSynergy Project
Davinci Files
Source Code
PolySpace
Integration Manual
Sheet 1: Summary Sheet

Sheet 2: Synergy Project
Sheet 3: Davinci Files
Sheet 4: Source Code
Rev 1.2 | 8-Jun-15 | |||||||||||||||||||||||
Peer Review Meeting Log (Source Code Review) | ||||||||||||||||||||||||
Source File Name: | ImcArbn.c | Source File Revision: | 1 | |||||||||||||||||||||
Header File Name: | ImcArbn.h | Header File Revision: | ||||||||||||||||||||||
MDD Name: | ImcArbn_MDD.doc | Revision: | 1 | |||||||||||||||||||||
FDD/SCIR/DSR/FDR/CM Name: | AR350A_ImcArbn_Design | Revision: | 1.1.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 | Yes | 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 | No | Comments: | ||||||||||||||||||||||
Refer Comments | ||||||||||||||||||||||||
Component.h is included | Yes | Comments: | ||||||||||||||||||||||
All other includes are actually needed. (System includes | Yes | Comments: | ||||||||||||||||||||||
only allowed in Nexteer library components) | ||||||||||||||||||||||||
Software Design and Coding Standards followed: | Version: 2.1 | |||||||||||||||||||||||
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 | Yes | Comments: | ||||||||||||||||||||||
finite loop iterations: [N63] | ||||||||||||||||||||||||
All divides protect against divide by zero | N/A | 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 | Yes | Comments: | ||||||||||||||||||||||
null pointer if needed: [N70] | ||||||||||||||||||||||||
Component outputs are limited to the legal range | N/A | 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 | N/A | Comments: List Anomaly or CR numbers | ||||||||||||||||||||||
for any FDD corrections needed | ||||||||||||||||||||||||
General Notes / Comments: | ||||||||||||||||||||||||
Contract c file generation script changes only | ||||||||||||||||||||||||
Change Owner: | Akilan Rathakrishnan | Review Date : | 02/02/17 | |||||||||||||||||||||
Lead Peer Reviewer: | Krishna Anne | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
Other Reviewer(s): | ||||||||||||||||||||||||