This is the multi-page printable view of this section. Click here to print.
Component Implementation
1 - MotCurrRegVltgLimr_Integration Manual
Integration Manual
For
‘MotCurrRegVltgLimr’
VERSION: 1.0
DATE: 26-May-2015
Prepared By:
Selva Sengottaiyan
Nexteer Automotive,
Saginaw, MI, USA
Revision History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial version | Selva Sengottaiyan | 1.0 | 4-June-2015 |
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 |
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 – SF105A_MotCurrRegVltgLimr_Design | See Synergy sub project version |
| 2 | Software Naming Conventions | Process 4.00.00 |
| 3 | Software Design and Coding Standards | Process 4.00.00 |
Dependencies
SWCs
| Module | Required Feature |
|---|---|
| None |
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
None
Da Vinci Parameter Configuration Changes
| Parameter | Notes | SWC |
|---|---|---|
| None |
DaVinci Interrupt Configuration Changes
| ISR Name | VIM # | Priority Dependency | Notes |
|---|---|---|---|
| None |
Manual Configuration Changes
| Constant | Notes | SWC |
|---|---|---|
| None |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Refer DataDict.m file in the FDD
Required Global Data Outputs
Refer DataDict.m file file in the FDD
Specific Include Path present
Yes
Runnable Scheduling
This section specifies the required runnable scheduling.
| Init | Scheduling Requirements | Trigger |
|---|---|---|
| MotCurrRegVltgLimrInit1 | None | Init |
| Runnable | Scheduling Requirements | Trigger |
|---|---|---|
| MotCurrRegVltgLimrPer1 | Motor Control ISR*2 |
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
|---|---|---|
| MotCtrl_START_SEC_CODE | Code section for Motor Control scheduled functions | |
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
| Feature | RAM | ROM |
|---|---|---|
| <Memmap usuage info> |
Non RTE NvM Blocks
| Block Name |
|---|
| None |
RTE NvM Blocks
| Block Name |
|---|
| none |
Compiler Settings
Preprocessor MACRO
None.
Optimization Settings
None
Appendix
None
2 - MotCurrRegVltgLimr_MDD
Module Design Document
For
‘MotCurrRegVltgLimr’
VERSION: 5.0
DATE: 08-Nov-2017
Prepared By:
TATA ELXSI,
TRIVANDRUM, INDIA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial Version | Selva Sengottaiyan | 1.0 | 26-May-2015 |
| 2 | Updated graphical representation and added local function information | Nick Saxton | 2.0 | 13-Apr-2016 |
| 3 | Updated for FDD v2.1.0 | Matthew Leser | 3.0 | 7-Nov-2016 |
| 4 | Updated to fix Anomaly EA4#9045 | Matthew Leser | 4.0 | 04-Jan-2017 |
| 5 | Updated for FDD v3.0.0 | TATA | 5.0 | 08-Nov-2017 |
Table of Contents
1 Abbrevations And Acronyms 5
2 References 6
3 High-Level Description 7
4 Design details of software module 8
4.1 Graphical representation 8
4.2 Data Flow Diagram 8
4.2.1 Module level DFD 8
4.2.2 Sub-Module level DFD 8
4.3 COMPONENT FLOW DIAGRAM 8
5 Variable Data Dictionary 9
5.1 User defined typedef definition/declaration 9
5.2 Variable definition for enumerated types 9
6 Constant Data Dictionary 10
6.1 Program(fixed) Constants 10
6.1.1 Embedded Constants 10
6.1.1.1 Local 10
6.1.1.2 Global 10
6.1.2 Module specific Lookup Tables Constants 10
7 Software Module Implementation 11
7.1 Sub-Module Functions 11
7.1.1 Initialization Functions 11
7.1.1.1 INIT: MotCurrRegVltgLimrInit1 11
7.1.1.1.1 Design Rationale 11
7.1.1.1.2 Module Outputs 11
7.1.1.1.3 Module Internal 11
7.1.2 PERIODIC FUNCTIONS 11
7.1.2.1 INIT: MotCurrRegVltgLimrPER1 11
7.1.2.1.1 Design Rationale 11
7.1.2.1.2 Module Outputs 11
7.1.3 Interrupt Functions 11
7.1.4 Server runnables 12
7.1.4.1.1 Store Local copy of outputs into Module Outputs 12
7.1.5 Local Function/Macro Definitions 12
7.1.5.1.1 Local function #1 12
7.1.5.1.2 Local function #2 12
7.1.5.1.3 Local function #3 12
7.1.5.1.4 Local function #4 13
7.1.5.1.5 Local function #5 13
7.1.6 GLObAL Function/Macro Definitions 13
7.1.7 Tranisition FUNCTIONS 13
8 Known Limitations With Design 14
9 UNIT TEST CONSIDERATION 15
10 Appendix 16
Abbrevations And Acronyms
| Abbreviation | Description |
|---|---|
| DFD | Design functional diagram |
| MDD | Module design Document |
| FDD | Functional Design Document |
References
This section lists the title & version of all the documents that are referred for development of this document
| Sr. No. | Title | Version |
|---|---|---|
| 1 | MDD Guidelines | Process 4.02.01 |
| 2 | Software Naming Conventions | Process 4.02.01 |
| 3 | Software Design and Coding standards | 2.1 |
| 4 | FDD – SF105A_MotCurrRegVltgLimr_Design | See Synergy sub project version |
High-Level Description
None
Design details of software module
Graphical representation

Data Flow Diagram
Refer FDD
Module level DFD
Refer FDD
Sub-Module level DFD
Refer FDD
COMPONENT FLOW DIAGRAM
Refer FDD
Variable Data Dictionary
User defined typedef definition/declaration
<This section documents any user types uniquely used for the module.>
| Typedef Name | Element Name | User Defined Type | Legal Range (min) | Legal Range (max) |
|---|---|---|---|---|
| None | ||||
Variable definition for enumerated types
| Enum Name | Element Name | Value |
|---|---|---|
| None |
Constant Data Dictionary
Program(fixed) Constants
Embedded Constants
Local
| Constant Name | Resolution | Units | Value |
|---|---|---|---|
| MODIDXHILIM_VOLT_F32 | Single precision float | Volt | 1 |
| MODIDXLOLIM_VOLT_F32 | Single precision float | Volt | 0 |
| BITMASK1_CNT_U08 | Uint8 | CNT | 1U |
| BITMASK2_CNT_U08 | Uint8 | CNT | 2U |
| BITMASK4_CNT_U08 | Uint8 | CNT | 4U |
Global
| Constant Name |
|---|
Module specific Lookup Tables Constants
None
Software Module Implementation
Sub-Module Functions
Initialization Functions
MotCurrRegVltgLimrInit1
INIT: MotCurrRegVltgLimrInit1
Design Rationale
Design follows implemenetation in FDD.
Module Outputs
Refer ‘MotCurrRegVltgLimrInit’ block in FDD
Module Internal
None
PERIODIC FUNCTIONS
INIT: MotCurrRegVltgLimrPER1
Design Rationale
Module Outputs
As per FDD, dMotCurrRegVltgLimrMotVltgDecouplFbDax, dMotCurrRegVltgLimrMotVltgDecouplFbQax renamed with dMotCurrRegVltgLimrMotVltgDecoupldFbDax, dMotCurrRegVltgLimrMotVltgDecouplFbQax in the source file. And also dMotCurrRegVltgLimrMotCurrCmdErr(display variable) is nowhere used in source file. That variable davinci definition is removed. Design follows implemenetation in FDD.
Interrupt Functions
None
Server runnables
None
Store Local copy of outputs into Module Outputs
None
Local Function/Macro Definitions
Local function #1
| Function Name | KpKiCtrl | Type | Min | Max |
| Arguments Passed | MotPropGain_Ohm_T_f32 | Float32 | 0 | 2.25 |
| MotIntglGain_Ohm_T_f32 | Float32 | 0 | 3.6 | |
| SysSt_Cnt_T_enum | Enum | SYSST_DI | SYSST_WRMININ | |
| CmdErr_Ampr_T_f32 | Float32 | -200 | 400 | |
| *MotVltgIntglCmdPrev_Volt_T_f32 | Float32 | -1000 | 1000 | |
| *MotCurrRegVltgLimrMotVltgPropCmd_Volt_T_f32 | Float32 | -26.5 | 26.5 | |
| *MotCurrRegVltgLimrMotVltgIntglPreLim_Volt_T_f32 | Float32 | -26.5 | 26.5 | |
| MotVltgIntglLoLim_Volt_T_f32 | Float32 | -31 | 0 | |
| MotVltgIntglHiLim_Volt_T_f32 | Float32 | 0 | 31 | |
| *MotVltgPropCmd_Volt_T_f32 | Float32 | -26.5 | 26.5 | |
| *MotVltgIntglCmd_Volt_T_f32 | Float32 | 6 | 26.5 |
* MotVltgPropCmd_Volt_T_f32 and * MotVltgIntglCmd_Volt_T_f32 are outputs of this function.
Local function #2
| Function Name | ErrorCalcQax | Type | Min | Max |
| Arguments Passed | QaxCurrCmd_Ampr_T_f32 | Float32 | -200 | 200 |
| QaxRplCmd_Ampr_T_f32 | Float32 | -29 | 29 | |
| QaxCoggCmd_Ampr_T_f32 | Float32 | -6 | 6 | |
| QaxCurrModif_Ampr_T_f32 | Float32 | -200 | 200 | |
| * QaxCmdFinal_Ampr_T_f32 | Float32 | -200 | 200 | |
| Returns | CmdErrQax_Ampr_T_f32 | Float32 | -200 | 400 |
*QaxCmdFinal_Ampr_T_f32 is also an output of this function.
Local function #3
| Function Name | LoaScaFac | Type | Min | Max |
| Arguments Passed | CurrLoaMtgtnEn_Cnt_T_logl | Boolean | FALSE | TRUE |
| IvtrLoaMtgtnEn_Cnt_T_logl | Boolean | FALSE | TRUE | |
| MotCtrlDualEcuMotCtrlMtgtnEna_Cnt_T_logl | Boolean | FALSE | TRUE | |
| FetLoaMtgtnEna_Cnt_T_logl | Boolean | FALSE | TRUE | |
| *CurrLoaScaFac_Uls_T_f32 | Float32 | 0 | 1 | |
| *IvtrLoaScaFac_Uls_T_f32 | Float32 | 0 | 1 | |
| *DualEcuScaFac_Uls_T_f32 | Float32 | 0 | 1 | |
| *FetScaFac_Uls_T_f32 | Float32 | 0.0F | 1.0F |
*CurrLoaScaFac_Uls_T_f32, *IvtrLoaScaFac_Uls_T_f32, and *DualEcuScaFac_Uls_T_f32 are outputs of this function.
Local function #4
| Function Name | MotCurr_Pred | Type | Min | Max |
| Arguments Passed | MotInduQaxEstimdIvs_IvsHenry_T_f32 | Float32 | 2240 | 33334 |
| MotREstimd_Ohm_T_f32 | Float32 | 0.005 | 0.12565 | |
| CurrQax_Ampr_T_f32 | Float32 | -200 | 200 | |
| MotVltgQaxPrev_Volt_T_f32 | Float32 | -26.5 | 26.5 | |
| CurrDax_Ampr_T_f32 | Float32 | -200 | 200 | |
| MotVltgDaxPrev_Volt_T_f32 | Float32 | -26.5 | 26.5 | |
| MotBackEmfVltg_Volt_T_f32 | Float32 | -101.25 | 101.25 | |
| ReacncQax_Ohm_T_f32 | Float32 | -0.5 | 0.5 | |
| ReacncDax_Ohm_T_f32 | Float32 | -0.5 | 0.5 | |
| MotInduDaxEstimdIvs_IvsHenry_T_f32 | Float32 | 2240 | 33334 | |
| MotCurrRegVltgLimrMotCurrPredEna_Cnt_T_f32 | Boolean | FALSE | TRUE | |
| MotCtrlCurrPredTi_NanoSec_T_f32 | Float32 | 0 | 125000 | |
| *MotCurrQaxPred_Ampr_T_f32 | Float32 | -200 | 200 | |
| *MotCurrDaxPred_Ampr_T_f32 | Float32 | -200 | 200 |
*MotCurrQaxPred_Ampr_T_f32 and *MotCurrDaxPred_Ampr_T_f32 are outputs of this function.
Local function #5
| Function Name | Decoder | Type | Min | Max |
| Arguments Passed | MotAndThermProtnLoaMod_Cnt_T_u08 | Uint8 | OU | 255U |
| CurrMeasLoaMtgtnEna_Cnt_T_logl | Boolean | FALSE | TRUE | |
| IvtrLoaMtgtnEna_Cnt_T_logl | Boolean | FALSE | TRUE | |
| FetLoaMtgtnEna_Cnt_T_logl | Boolean | FALSE | TRUE |
* CurrMeasLoaMtgtnEna_Cnt_T_logl, *IvtrLoaMtgtnEna_Cnt_T_logl, *FetLoaMtgtnEna_Cnt_T_logl are outputs of this function.
GLObAL Function/Macro Definitions
None
Tranisition FUNCTIONS
None
Known Limitations With Design
None
UNIT TEST CONSIDERATION
None
Appendix
None
3 - MotCurrRegVltgLimr_Peer Review Checklists
Overview
Summary SheetSynergy Project
Davinci Files
Source Code
Source Code (2)
MDD
PolySpace
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: | CDD_MotCurrRegVltgLim.c | Source File Revision: | 7 | |||||||||||||||||||||
| Header File Name: | CDD_MotCurrRegVltgLimr.h | Header File Revision: | ||||||||||||||||||||||
| MDD Name: | MotCurrRegVltgLimr_MDD.docx | Revision: | 5 | |||||||||||||||||||||
| FDD/SCIR/DSR/FDR/CM Name: | SF105A_MotCurrRegVltgLimr_Design | Revision: | 3.0.0 | |||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| Working EA4 Software Naming Convention followed: | ||||||||||||||||||||||||
| for variable names | N/A | Comments: | ||||||||||||||||||||||
| for constant names | N/A | Comments: | ||||||||||||||||||||||
| for function names | N/A | Comments: | ||||||||||||||||||||||
| for other names (component, memory | N/A | Comments: | ||||||||||||||||||||||
| mapping handles, typedefs, etc.) | ||||||||||||||||||||||||
| All paths assign a value to outputs, ensuring | N/A | Comments: | ||||||||||||||||||||||
| all outputs are initialized prior to being written | NA for changes | |||||||||||||||||||||||
| 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. | N/A | 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 | Yes | 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: 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 | N/A | 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 | N/A | Comments: | ||||||||||||||||||||||
| "magic numbers": [N12] | ||||||||||||||||||||||||
| Memory mapping for non-RTE code | N/A | Comments: | ||||||||||||||||||||||
| is per standard | ||||||||||||||||||||||||
| All execution-order-dependent code can be | Yes | 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 | N/A | Comments: | ||||||||||||||||||||||
| if needed: [N65] | ||||||||||||||||||||||||
| All integer division and modulus operations | N/A | Comments: | ||||||||||||||||||||||
| handle negative numbers correctly: [N76] | ||||||||||||||||||||||||
| All typecasting and fixed point arithmetic, | N/A | 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. | N/A | 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 | 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: | ||||||||||||||||||||||||
| Change Owner: | Ramachandran (TATA Elxsi) | Review Date : | 11/14/17 | |||||||||||||||||||||
| Lead Peer Reviewer: | Krishna Anne | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
Sheet 5: Source Code (2)
| Rev 1.2 | 8-Jun-15 | |||||||||||||||||||||||
| Peer Review Meeting Log (Source Code Review) | ||||||||||||||||||||||||
| Source File Name: | CDD_MotCurrRegVltgLim_MotCtrl.c | Source File Revision: | 12 | |||||||||||||||||||||
| Header File Name: | CDD_MotCurrRegVltgLimr.h | Header File Revision: | ||||||||||||||||||||||
| MDD Name: | MotCurrRegVltgLimr_MDD.docx | Revision: | 5 | |||||||||||||||||||||
| FDD/SCIR/DSR/FDR/CM Name: | SF105A_MotCurrRegVltgLimr_Design | Revision: | 3.0.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 | N/A | 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 | Yes | 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: 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 | N/A | 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 | N/A | Comments: | ||||||||||||||||||||||
| "magic numbers": [N12] | ||||||||||||||||||||||||
| Memory mapping for non-RTE code | N/A | Comments: | ||||||||||||||||||||||
| is per standard | ||||||||||||||||||||||||
| All execution-order-dependent code can be | Yes | 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 | N/A | Comments: | ||||||||||||||||||||||
| if needed: [N65] | ||||||||||||||||||||||||
| All integer division and modulus operations | N/A | Comments: | ||||||||||||||||||||||
| handle negative numbers correctly: [N76] | ||||||||||||||||||||||||
| All typecasting and fixed point arithmetic, | N/A | 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. | N/A | 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 | N/A | Comments: List Anomaly or CR numbers | ||||||||||||||||||||||
| for any FDD corrections needed | ||||||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Change Owner: | Ramachandran (TATA Elxsi) | Review Date : | 11/14/17 | |||||||||||||||||||||
| Lead Peer Reviewer: | Krishna Anne | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||