Sci30CfgAndUse Module Design Document
Module Design Document
For
Sci30CfgAndUse
Jan 20, 2016
Prepared For:
Software Engineering
Nexteer Automotive,
Saginaw, MI, USA
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Change History
Description | Author | Version | Date |
Initial Version | Avinash James | 1.0 | 01/20/17 |
Table of Contents
2 Sci30CfgAndUse & High-Level Description 6
3 Design details of software module 7
3.1.1 Graphical representation of Sci30CfgAndUse 7
4.1.1 Program (fixed) Constants 8
5.1.1 User defined typedef definition/declaration 9
5.1.2 Variable definition for enumerated types 9
6 Software Component Implementation 10
6.1.2 Init: Sci30CfgAndUseInit1 10
6.1.5 Per: Sci30CfgAndUsePer1 10
6.1.6 Per: Sci30CfgAndUsePer2 10
6.1.7 Per: Sci30CfgAndUsePer3 11
6.1.8 Per: Sci30CfgAndUsePer4 11
6.1.11 Module Internal (Local) Function: RollOvrAdd 12
6.1.12 Module Internal (Local) Function: UpdDtsTxReg 12
6.1.13 Module Internal (Local) Function: UpdDtsRxReg 12
6.1.14 GLOBAL Function/Macro Definitions 12
7 Known Limitations with Design 14
Appendix A Abbreviations and Acronyms 16
Introduction
Purpose
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.
Sci30CfgAndUse & High-Level Description
See FDD
Design details of software module
Graphical representation of Sci30CfgAndUse
Data Flow Diagram
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 |
---|---|---|---|
SCITXMAXBUFSIZE_CNT_U08 | 1 | Cnt | 80 |
IMCARBNRXDATASRCSCI_CNT_U08 | 1 | Cnt | 1 |
Refer .m file |
Variable Data Dictionary
User defined typedef definition/declaration
Typedef Name | Element Name | User Defined Type | Legal Range (min) | Legal Range (max) |
---|---|---|---|---|
Ary1D_u8_Sci30CfgAndUseA | ||||
Ary2D_u8_Sci30CfgAndUseA | ||||
Ary2D_u8_Sci30CfgAndUseB | ||||
Ary2D_u8_Sci30CfgAndUseC |
Variable definition for enumerated types
Enum Name | Element Name | Value |
---|---|---|
Software Component Implementation
We have the global transmit and receive buffers declared at the file level as static variables in different memory map sections. The global transmit is in a memory map section aligned at 128 bit boundary in the Sci30CfgAndUse data section as DTS has to read the data from the buffer. The global memory map is also aligned on a 128 bit boundary but defined in the .data_dma_128 memory map as the DTS has to write data to the buffer
Sub-Module Functions
Init: Sci30CfgAndUseInit1
Design Rationale
Refer FDD
Module Outputs
None
Per: Sci30CfgAndUsePer1
Design Rationale
See FDD
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Module Outputs
None
Per: Sci30CfgAndUsePer2
Design Rationale
See FDD
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Module Outputs
None
Per: Sci30CfgAndUsePer3
Design Rationale
See FDD
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Module Outputs
None
Per: Sci30CfgAndUsePer4
Design Rationale
See FDD
Store Module Inputs to Local copies
Refer to FDD
(Processing of function)………
Refer to FDD
Store Local copy of outputs into Module Outputs
Refer to FDD
Module Outputs
None
Server Runnables
None
Design Rationale
Store Module Inputs to Local copies
(Processing of function)………
Store Local copy of outputs into Module Outputs
Interrupt Functions
None
Module Internal (Local) Function: RollOvrAdd
Function Name | RollOvrAdd | Type | Min | Max |
Arguments Passed | Idx_Cnt_T_u08 | Uint8 | 0 | 255 |
Return Value | None |
Design Rationale
Function which returns the index value rolled over the max number of bytes received
Processing
Module Internal (Local) Function: UpdDtsTxReg
Function Name | UpdDtsTxReg | Type | Min | Max |
Arguments Passed | SciGlbTxCnt_Cnt_u08 | Uint8 | 0 | 255 |
Return Value | None |
Design Rationale
Processing
Module Internal (Local) Function: UpdDtsRxReg
Function Name | UpdDtsRxReg | Type | Min | Max |
Arguments Passed | None | |||
Return Value | None |
Design Rationale
Processing
GLOBAL Function/Macro Definitions
IninSciDtsChMstReg
Function Name | IninSciDtsChMstReg | Type | Min | Max |
Arguments Passed | None | |||
Return Value | None |
Design Rationale
The DTS channel master registers can only be configured in the supervisor mode. Hence we need to make use of a trusted function to configure the channel master registers
Processing
Known Limitations with Design
UNIT TEST CONSIDERATION
*Rte_Pim_SciDiagcRxMaxDataErrCntr(),*Rte_Pim_SciDiagcOvrrunErrCntr(),*Rte_Pim_SciDiagcParErrCntr() and *Rte_Pim_SciDiagcFrmErrCntr()are used as rolling counters. Hence rollover on them is intentional.
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 | EA4 01.00.00 |
3 | Software Naming Conventions.doc | 1.0 |
4 | Software Design and Coding Standards.doc | 2.0 |