This is the multi-page printable view of this section. Click here to print.
Tuning Select Authority
1 - Data Dictionary
Overview
Change LogVariable Dictionary
Calibration Dictionary
Global Constants
Template
Help
Sheet 1: Change Log
TuningSelectAuthority - Rev 4 | <- Global Program / Module Name | ||||||
Revision | Author | Date | Change Description | Data Dictionary Type: | Component | ||
1.0 | VK | 3-Jul-12 | Initial Creation (stub) | ||||
2 | VK | 12-Jul-12 | Updates to add FDD referance name | ||||
3 | LWW | 28-Jul-12 | Changes to add new design | ||||
4 | LWW | 3-Aug-12 | Updates to I/O | ||||
Sheet 2: Variable Dictionary
Sheet 3: Calibration Dictionary
Sheet 4: Global Constants
TuningSelectAuthority - Rev 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Variable Information (Global Variables Only) | Achieved in Software Design | Used in Module List | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Layer 2 | Layer 3 | Layer 4 | Layer 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Constant Name | Description | Uints | Type | Engineering Value | ADC | ADC Diagnostics | Data Memory Verification | DC Link Power Control | DSP Computational Integrity | DSP SPI driver | Event Manager Driver | External Memory Driver | Flash Programming Exec | GPIO | Illegal OpCode Handler | Interrupt Handler | Motor Current Driver | Motor Driver Diagnostics | Motor Position Driver | Phase Feedback Capture | Powerdown Control | Primary Shutdown Control | Program Flow | Program Memory Diagnostic | PWM Duty Cycle | Redundant Memory Check | Redundant Rapid Shutdown | Scheduler | Stack Monitor | State Dependent Task List | System Boot & Startup | System Control | Temperature Sensor Diagnostic | Unused Interrupt Handler | Utilization Monitor | Watchdog Dirver | Smith | Battery Voltage | Battery Voltage Diagnostics | Diagnostic CTC Manager | Diagnostic Manager | Diagnostics Application Services | EOL TorqueTest | Flash Boot Loader | Flight Recorder | Handwheel Position | Handwheel Torque | Motor Control Output Conversion | Motor Position Diagnostics | Motor Position Initialization | Motor Velocity | Motor Velocity Tachometer | Serial Communications I/O | Serial Communications Services | States and Modes | Tuning Select | Vehicle Power Mode | Vehicle Speed | Controller Polarity | Current Estimation | Handwheel Velocity | Inverse Motor Model | Motor Temperature Estimation | Motor Torque Limit | Output Reasonableness Dianostic | Parameter Estimation | Quadrant and rate Detection | Active Pull Compensation | Assist | Damping | Duty Cycle | Kinematic Integrity Diagnostic | Long Term Vehicle Speed Diagnostic | Max Assist Limit | Return | State Output Control | Torque Output |
D_TRUE_CNT_LGC | Counts | boolean | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
D_FALSE_CNT_LGC | Counts | boolean | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sheet 5: Template
2.2a | Data File: | |||||
Header: | extern <TYPE><TAB><NAME>; | |||||
Source: | #pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>"); <TYPE> <NAME>; | |||||
EOL Constants: | ||||||
Header: | extern <TYPE><TAB><NAME>; | |||||
Source: | #pragma DATA_SECTION(<ROOTNAME>, "<SEGMENT>"); <TYPE> <NAME>; | |||||
Global (Embedded) Constants: | ||||||
Header: | #define <NAME><COL40><VALUE> | |||||
A2L Name | ||||||
Measurement: | rte_<SWC>_<NAME> | |||||
Calibration Constants: | ||||||
Tuning ID: | ||||||
Tuning: | N | Index Range: | ||||
Header: | extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>; | |||||
Source: | #pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>"); CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>; | |||||
eCal: | <NAME> | |||||
Tuning: | Y | Index Range: | ||||
Header: | extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>; | |||||
Source: | #pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>"); CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>; | |||||
eCal: | <NAME> | |||||
Tuning: | P | Index Range: | ||||
Header: | extern CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME>; | |||||
Source: | #pragma DATA_SECTION(<ROOTNAME>, ".<SEGMENT>"); CONST(<AUTOSAR_TYPE>, CAL_CONST) <NAME> = <VALUE>; | |||||
eCal: | <NAME> | |||||
Sheet 6: Help
Short cut | Macro | Sescription |
Ctrl-q | ClearDataDictFilter | Will clear all autofilters on the Global Data Dictionary |
DFD_Create | Creates a Series of Data Flow Worksheet Pages from the information in the data dictionary. If Data Flow Worksheet pages already exist, they will be deleted first. | |
DFD_Delete | Will clear all Data Flow Diagram pages from the Data Dictionary. This will make the file smaller for archiving. | |
DFD_Print | Formate and prepares to print the Data Flow Worksheet pages. |
2 - Tuning_Select_Authority_MDD
Module – Tuning Select Authority
High-Level Description
This function broadcasts an authority to allow switching between calibration subsets while driving. It compares handwheel torque and vehicle speed to calibratable thresholds and outputs either a zero or a one.
Figures
Component Diagram
Variable Data Dictionary
For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.
Module Inputs | Module Outputs | |
---|---|---|
HwTorque_HwNm_f32 | ActiveTunPers_Cnt_u16 | |
VehicleSpeed_Kph_f32 | ActiveTunSet_Cnt_u16 | |
DesiredTunPers_Cnt_u16 | TunPer_Ptr_Str * | |
DesiredTunSet_Cnt_u16 | TunSet_Ptr_Str * |
* Note: For unit testing purposes these inputs are defined as pointers to uint16 (as opposed to pointers to tuning structures) for simplicity.
Module Internal Variables
This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.
Variable Name | Resolution | Legal Range (min) | Legal Range (max) | Software Segment |
---|---|---|---|---|
*HwTrqLPFiltSV_HwNm_M_str | Multiple | Multiple | Multiple | TUNINGSELAUTH_START_SEC_VAR_CLEARED_UNSPECIFIED |
| Single Precision Float | 0.0124877435 | 0.4665119090 | |
| Single Precision Float | -10 | 10 | |
PrevTunSet_Cnt_M_u16 | 1 | 0 | 100 | TUNINGSELAUTH_START_SEC_VAR_CLEARED _16 |
PrevTunPers_Cnt_M_u16 | 1 | 0 | 100 | TUNINGSELAUTH_START_SEC_VAR_CLEARED _16 |
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 |
Constant Data Dictionary
Calibration Constants
This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.
Constant Name |
---|
k_TunSelHwTrqThresh_HwNm_f32 |
k_TunSelVehSpdThresh_Kph_f32 |
k_TunSelHwTrqLPFKn_Hz_f32 |
Program(fixed) Constants
Embedded Constants
All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.
Local
Constant Name | Resolution | Units | Value |
---|---|---|---|
D_10MS_SEC_F32 | Single Precision Float | Sec | 0.010 |
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 |
---|
D_TRUE_CNT_LGC |
D_FALSE_CNT_LGC |
T_TunSetSelectionTbl_Ptr_Str[] * |
T_TunPersSelectionTbl_Ptr_Str[][] * |
* Note: For unit testing purposes, these arrays of pointers are of size [3] and [3][5] respectively and are defined as pointers to uint16 (as opposed to pointers to tuning structures) for simplicity.
Module specific Lookup Tables Constants
Constant Name | Resolution | Value | Software Segment |
---|---|---|---|
None |
Functions/Macros used by the Sub-Modules
Library Functions / Macros
The library and functions / Macros that are called by the various sub modules are identified below,
Abs_f32_m
LPF_OpUpdate_f32_m
LPF_KUpdate_f32_m
Data Hiding Functions
<None>
Global Functions/Macros Defined by this Module
None
Local Functions/Macros Used by this MDD only
None
Software Module Implementation
Runtime Environment (RTE) Initial Values
This section lists the initial values of data written by this module but controlled by the RTE. After RTE initialization, the data in this table will contain these values.
Data | Value |
---|---|
HwTorque_HwNm_f32 | 0 |
VehicleSpeed_Kph_f32 | 0 |
DesiredTunPers_Cnt_u16 | 0 |
DesiredTunSet_Cnt_u16 | 0 |
ActiveTunPers_Cnt_u16 | 0 |
ActiveTunSet_Cnt_u16 | 0 |
Initialization Functions
Init: TuningSelAuth_Init1
Design Rationale
LPF_KUpdate_f32 is used to initialize the LPF filter instead of the full LPF_Init_f32 macro as an optimization since the required initial state of the filter is 0, which is the initialized value of the RAM, so there is no need to explicitly initialize the state variables in this init function.
Initialize Low Pass Filters
Periodic Functions
Per: TuningSelAuth_Per1
Design Rationale
Program Flow Start
Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached() Store Module Inputs to Local copies
See below section
Description
Store Local copy of outputs into Module Outputs
See above section
Program Flow End
Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached()
Fault Recovery Functions
None
Shutdown Functions
None
Interrupt Functions
None
Serial Communication Function
None
Transition Functions
None
Execution Requirements
Execution Sequence of the Module
If something besides the defaults of “0” for desired tuning set and desired personality are required at poweron, Init1 must run after the init function that provides these initial values.
Execution Rates for sub-modules called by the Scheduler
This table serves as reference for the Scheduler design
Function Name | Calling Frequency | System State(s) in which the function is called |
---|---|---|
TuningSelAuth_Init1 | Once at Startup | COLDINIT |
TuningSelAuth_Per1 | 10 ms | ALL |
Execution Requirements for Serial Communication Functions
Function Name | Sub-Module called by (Serial Comm Function Name) |
---|---|
None |
Memory Map Definition Requirements
Sub Modules (Functions)
This table identifies the software segments for functions identified in this module.
Name of Sub Module | Software Segment |
---|---|
TuningSelAuth _Init1 | RTE_START_SEC_AP_TUNINGSELAUTH_APPL_CODE |
TuningSelAuth_Per1 | RTE_START_SEC_AP_TUNINGSELAUTH_APPL_CODE |
Local Functions
This table identifies the software segments for local functions identified in this module.
Name of Sub Module | Software Segment |
---|---|
Known Issues / Limitations With Design
INLINE functions defined in “GlobalMacro.h” are not unit tested
The FDD indicates that this module will store the EEPROM value for tuning set, however, this implementation doesn’t provide this block. Instead, it is assumed that some other module will contain the tuning selection block. This was done to enable programs that don’t have multiple tuning sets to just use the default “0” without having to manage an EEPROM block.
Revision Control Log
Item # | Rev # | Change Description | Date | Author Initials |
---|---|---|---|---|
1 | 1.0 | Initial MDD implementing FDD SF-23 v001 | 03Jul12 | VK |
1 | 2.0 | Updates to provide the switching of tuning sets and personalities | 03/08/12 | LWW |
2 | 3.0 | Added checkpoints and memmap software segment is updated for static variables | 24-Sep-12 | Selva |
3 | 4.0 | Updated trigger rate for Per1 | 24-Oct-12 | BWL |
3 - TuningSelAuth_UnitTestReports
Overview
Unit Test InformationModule Definitions
Variable Range
TuningSelAuth_Init1
TuningSelAuth_Init1() p
TuningSelAuth_Init1() b
TuningSelAuth_Per1
TuningSelAuth_Per1() b
TuningSelAuth_Per1() p
Test Vector Description
Sheet 1: Unit Test Information
1.0a | |||||
Nexteer EPS Unit Test Tool | |||||
Rev:2.7b | |||||
Name of Tester: | Rasika Deshpande | ||||
Code File(s) Under Test: | Ap_TuningSelAuth.c | ||||
Code File(s) Version: | 4 | ||||
Module Design Document: | Tuning_Select_Authority_MDD.docx | ||||
Module Design Document Version: | 4 | ||||
Unit Test Plan Version: | 2 | ||||
Optimization Level: | Level 2 | ||||
Compiler (CodeGen) Version: | TMS470_4.9.5 | ||||
Model Type: | Excel Macro | ||||
Model Version: | 1 | ||||
Special Test Requirements: | NOTE: To display address updated in "TunPer_Ptr_Str" pointer from "T_TunPersSelectionTbl_Ptr_Str[] []", "TunPer_Ptr_Str" is taken in "In" and "Out" and value of "T_TunPersSelectionTbl_Ptr_Str[] []"will be given as input to “TunPer_Ptr_Str” which will reflect in output for each of the vector. | ||||
Test Date: | 1/16/2013 | ||||
Comments: | NOTE : Inline function defined in GlobalMacro.h are not Unit Tested. | ||||
Index of Tests: | |||||
Test Set up | Test Worksheets | Test Status | Run TS | ||
TuningSelAuth_Init1 | TuningSelAuth_Init1() b | -- | -- | 25 | |
2 | TuningSelAuth_Init1() p | -- | -- | 2 | |
TuningSelAuth_Per1 | TuningSelAuth_Per1() p | -- | -- | 5 | |
42 | TuningSelAuth_Per1() b | -- | -- | 42 | |

Sheet 2: Module Definitions
![]() | |||||||||||
Nexteer EPS Unit Test Tool | |||||||||||
Rev:2.7b | |||||||||||
Module Definitions | |||||||||||
Module Test Functions | Module Set/Read Variables | Module Function Stubs | |||||||||
Return Type | Name | Parameter Prototype | Scope | Type | Name | Default Value | Return Type | Name | Parameter Prototype | ||
void | TuningSelAuth_Init1 | (void) | G | float | HwTorque_HwNm_f32 | void | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | (void) | |||
void | TuningSelAuth_Per1 | (void) | G | float | VehicleSpeed_Kph_f32 | void | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | (void) | |||
M | LPF32KSV_Str.float | HwTrqLPFiltSV_HwNm_M_str.K | uint8 | TableSize_m | (void) | ||||||
M | LPF32KSV_Str.float | HwTrqLPFiltSV_HwNm_M_str.SV | uint8 | TableSize1_m | (void) | ||||||
float | k_TunSelHwTrqThresh_HwNm_f32 | ||||||||||
float | k_TunSelVehSpdThresh_Kph_f32 | ||||||||||
float | k_TunSelHwTrqLPFKn_Hz_f32 | ||||||||||
UINT16 | DesiredTunPers_Cnt_u16 | ||||||||||
UINT16 | DesiredTunSet_Cnt_u16 | ||||||||||
UINT16 | ActiveTunPers_Cnt_u16 | ||||||||||
UINT16 | ActiveTunSet_Cnt_u16 | ||||||||||
UINT16 | PrevTunSet_Cnt_M_u16 | ||||||||||
UINT16 | PrevTunPers_Cnt_M_u16 | ||||||||||
UINT16 | TunPer_Ptr_Str | ||||||||||
UINT16 | TunSet_Ptr_Str | ||||||||||
UINT16 | T_TunPersSelectionTbl1_Ptr_Str[5] | ||||||||||
UINT16 | T_TunPersSelectionTbl2_Ptr_Str[5] | ||||||||||
UINT16 | T_TunPersSelectionTbl3_Ptr_Str[5] | ||||||||||
UINT16 | T_TunSetSelectionTbl_Ptr_Str[3] |
Sheet 3: Variable Range
![]() | |||||||||||
Nexteer EPS Unit Test Tool | |||||||||||
Rev:2.7b | |||||||||||
Variable Range Definitions | |||||||||||
Variable Name | Max Value | Min Value | |||||||||
HwTorque_HwNm_f32 | |||||||||||
VehicleSpeed_Kph_f32 | |||||||||||
TunSelAuthority_Cnt_lgc | |||||||||||
HwTrqLPFiltSV_HwNm_M_str.K | |||||||||||
HwTrqLPFiltSV_HwNm_M_str.SV | |||||||||||
k_TunSelHwTrqThresh_HwNm_f32 | |||||||||||
k_TunSelVehSpdThresh_Kph_f32 | |||||||||||
k_TunSelHwTrqLPFKn_Hz_f32 | |||||||||||
DesiredTunPers_Cnt_u16 | |||||||||||
DesiredTunSet_Cnt_u16 | |||||||||||
ActiveTunPers_Cnt_u16 | |||||||||||
ActiveTunSet_Cnt_u16 | |||||||||||
PrevTunSet_Cnt_M_u16 | |||||||||||
PrevTunPers_Cnt_M_u16 | |||||||||||
TunPer_Ptr_Str | |||||||||||
TunSet_Ptr_Str | |||||||||||
T_TunPersSelectionTbl1_Ptr_Str[5] | |||||||||||
T_TunPersSelectionTbl2_Ptr_Str[5] | |||||||||||
T_TunPersSelectionTbl3_Ptr_Str[5] | |||||||||||
T_TunSetSelectionTbl_Ptr_Str[3] |
Sheet 4: TuningSelAuth_Init1
![]() | |||||
Nexteer EPS Unit Test Tool | |||||
Rev:2.7b | |||||
Test Setup | |||||
Number Of Calibrations | 0 | ||||
Number Of Calibration Sets | 0 | ||||
Calibration Sheet | |||||
Function(s) Under Test | Variables | Function Stubs | |||
Function Name | TestType | Test Vectors | Set | Read | Function Name |
TuningSelAuth_Init1 | b | 25 | HwTrqLPFiltSV_HwNm_M_str.SV | HwTrqLPFiltSV_HwNm_M_str.K | TableSize_m |
TuningSelAuth_Init1 | p | 2 | HwTrqLPFiltSV_HwNm_M_str.K | TunPer_Ptr_Str | TableSize1_m |
k_TunSelHwTrqLPFKn_Hz_f32 | TunSet_Ptr_Str | ||||
DesiredTunPers_Cnt_u16 | ActiveTunPers_Cnt_u16 | ||||
DesiredTunSet_Cnt_u16 | ActiveTunSet_Cnt_u16 | ||||
T_TunPersSelectionTbl1_Ptr_Str[5] | PrevTunPers_Cnt_M_u16 | ||||
T_TunPersSelectionTbl2_Ptr_Str[5] | PrevTunSet_Cnt_M_u16 | ||||
T_TunPersSelectionTbl3_Ptr_Str[5] | |||||
T_TunSetSelectionTbl_Ptr_Str[3] | |||||
TunPer_Ptr_Str | |||||
TunSet_Ptr_Str |
Sheet 5: TuningSelAuth_Init1() p
TuningSelAuth_Init1 | TS | -- | |||||||||||||||||||||||||||||||||
p | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | Func Stub Return Val | Func Stub Return Val | O/P | O/P | O/P | O/P | O/P | O/P | O/P | Func Stub Counter | Func Stub Counter | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected Stub Cnt | Expected Stub Cnt | Test Status | Perf. Metrics | Comments | |
Vector Number | Vector Description | HwTrqLPFiltSV_HwNm_M_str.SV | HwTrqLPFiltSV_HwNm_M_str.K | k_TunSelHwTrqLPFKn_Hz_f32 | DesiredTunPers_Cnt_u16 | DesiredTunSet_Cnt_u16 | T_TunPersSelectionTbl1_Ptr_Str[5] | T_TunPersSelectionTbl2_Ptr_Str[5] | T_TunPersSelectionTbl3_Ptr_Str[5] | T_TunSetSelectionTbl_Ptr_Str[3] | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.K | TunPer_Ptr_Str | TunSet_Ptr_Str | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.K | TunPer_Ptr_Str | TunSet_Ptr_Str | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TableSize_m | TableSize1_m | P/F | CPU Cycles | |
1 | if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>FALSE, if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>TRUE | -10 | 0.0156 | 20 | 1 | 10 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.715390456663971 | 2589 | 2589 | 1 | 0 | 1 | 0 | 1 | 1 | -- | ||
2 | if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>TRUE, if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>FALSE | -1 | 0.08 | 15 | 50 | 1 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.610338862624653 | 2589 | 2589 | 0 | 1 | 0 | 1 | 1 | 1 | -- | ||
Sheet 6: TuningSelAuth_Init1() b
TuningSelAuth_Init1 | TS | -- | |||||||||||||||||||||||||||||||||
b | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | Func Stub Return Val | Func Stub Return Val | O/P | O/P | O/P | O/P | O/P | O/P | O/P | Func Stub Counter | Func Stub Counter | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected Stub Cnt | Expected Stub Cnt | Test Status | Perf. Metrics | Comments | |
Vector Number | Vector Description | HwTrqLPFiltSV_HwNm_M_str.SV | HwTrqLPFiltSV_HwNm_M_str.K | k_TunSelHwTrqLPFKn_Hz_f32 | DesiredTunPers_Cnt_u16 | DesiredTunSet_Cnt_u16 | T_TunPersSelectionTbl1_Ptr_Str[5] | T_TunPersSelectionTbl2_Ptr_Str[5] | T_TunPersSelectionTbl3_Ptr_Str[5] | T_TunSetSelectionTbl_Ptr_Str[3] | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.K | TunPer_Ptr_Str | TunSet_Ptr_Str | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.K | TunPer_Ptr_Str | TunSet_Ptr_Str | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TableSize_m | TableSize1_m | P/F | CPU Cycles | |
1 | HwTrqLPFiltSV_HwNm_M_str.SV = min | -10 | 0.0156 | 20 | 1 | 10 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.715390456663971 | 2589 | 2589 | 1 | 0 | 1 | 0 | 1 | 1 | -- | ||
2 | HwTrqLPFiltSV_HwNm_M_str.SV = max | 10 | 0.1 | 30 | 2 | 20 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.848164198019351 | 4523 | 4523 | 2 | 0 | 2 | 0 | 1 | 1 | -- | ||
3 | HwTrqLPFiltSV_HwNm_M_str.SV = zero | 0 | 0.2 | 40 | 3 | 30 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.918997407842057 | 9874 | 9874 | 3 | 0 | 3 | 0 | 1 | 1 | -- | ||
4 | HwTrqLPFiltSV_HwNm_M_str.SV = pos | 1 | 0.3 | 5 | 4 | 40 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.269597308951354 | 7412 | 7412 | 4 | 0 | 4 | 0 | 1 | 1 | -- | ||
5 | HwTrqLPFiltSV_HwNm_M_str.SV = neg | -1 | 0.08 | 15 | 50 | 1 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.610338862624653 | 2589 | 2589 | 0 | 1 | 0 | 1 | 1 | 1 | -- | ||
6 | HwTrqLPFiltSV_HwNm_M_str.K = min | 2 | 0.0124877435 | 25 | 60 | 2 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.792120423649238 | 4523 | 4523 | 0 | 2 | 0 | 2 | 1 | 1 | -- | ||
7 | HwTrqLPFiltSV_HwNm_M_str.K = max | -2 | 0.466511909 | 35 | 70 | 3 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.889098721635805 | 9874 | 9874 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
8 | HwTrqLPFiltSV_HwNm_M_str.K = mid | 3 | 0.013 | 45 | 80 | 4 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.940835488705922 | 7412 | 7412 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
9 | k_TunSelHwTrqLPFKn_Hz_f32 = min | -3 | 0.09 | 1 | 90 | 90 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.0608986325757074 | 2589 | 2589 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
10 | k_TunSelHwTrqLPFKn_Hz_f32 = max | 4 | 0.0175 | 50 | 55 | 55 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.956786081736228 | 4523 | 4523 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
11 | k_TunSelHwTrqLPFKn_Hz_f32 = mid | -4 | 0.0189 | 10 | 65 | 65 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.466511908908897 | 9874 | 9874 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
12 | DesiredTunPers_Cnt_u16 = min | 5 | 0.0258 | 15 | 0 | 14 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.610338862624653 | 7412 | 7412 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
13 | DesiredTunPers_Cnt_u16 = max | -5 | 0.036987 | 26 | 100 | 85 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.804780005589417 | 2589 | 2589 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
14 | DesiredTunPers_Cnt_u16 = mid | 6 | 0.04 | 34 | 20 | 96 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.881907020678323 | 4523 | 4523 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
15 | DesiredTunSet_Cnt_u16 = min | -6 | 0.013 | 47 | 1 | 0 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.947822144298302 | 9874 | 9874 | 1 | 0 | 1 | 0 | 1 | 1 | -- | ||
16 | DesiredTunSet_Cnt_u16 = max | 7 | 0.015 | 28 | 2 | 100 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.827833265658001 | 7412 | 7412 | 2 | 0 | 2 | 0 | 1 | 1 | -- | ||
17 | DesiredTunSet_Cnt_u16 = mid | -7 | 0.016 | 39 | 3 | 50 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 2589,2589,2589 | 4523 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.913744570109496 | 4523 | 2589 | 3 | 0 | 3 | 0 | 1 | 1 | -- | ||
18 | T_TunPersSelectionTbl_Ptr_Str[5] = min | 8 | 0.025 | 18 | 4 | 1 | 0,0,0,0,0 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 4523,4523,4523 | 2589 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.677281016732951 | 2589 | 4523 | 4 | 1 | 4 | 1 | 1 | 1 | -- | ||
19 | T_TunPersSelectionTbl_Ptr_Str[5] = max | 8 | 0.038 | 16 | 48 | 2 | 65535,65535,65535,65535,65535 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 9874,9874,9874 | 4523 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.634068693058707 | 4523 | 9874 | 0 | 2 | 0 | 2 | 1 | 1 | -- | ||
20 | T_TunPersSelectionTbl_Ptr_Str[5] = mid | 9 | 0.042 | 20 | 69 | 3 | 500,500,500,500,500 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 7412,7412,7412 | 500 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.715390456663971 | 500 | 7412 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
21 | T_TunSetSelectionTbl_Ptr_Str[3] = min | -9 | 0.0156 | 30 | 36 | 4 | 2589,2589,2589,2589,2589 | 0,0,0,0,0 | 2589,2589,2589,2589,2589 | 0,0,0 | 2589 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.848164198019351 | 2589 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
22 | T_TunSetSelectionTbl_Ptr_Str[3] = max | 1 | 0.1 | 40 | 25 | 25 | 4523,4523,4523,4523,4523 | 65535,65535,65535,65535,65535 | 4523,4523,4523,4523,4523 | 65535,65535,65535 | 4523 | 65535 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.918997407842057 | 4523 | 65535 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
23 | T_TunSetSelectionTbl_Ptr_Str[3] = mid | 2 | 0.2 | 25 | 14 | 14 | 9874,9874,9874,9874,9874 | 500,500,500,500,500 | 9874,9874,9874,9874,9874 | 500,500,500 | 9874 | 500 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.792120423649238 | 9874 | 500 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
24 | All Min | -10 | 0.0124877435 | 1 | 0 | 0 | 0,0,0,0,0 | 0,0,0,0,0 | 0,0,0,0,0 | 0,0,0 | 0 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.0608986325757074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
25 | All Max | 10 | 0.466511909 | 50 | 100 | 100 | 65535,65535,65535,65535,65535 | 65535,65535,65535,65535,65535 | 65535,65535,65535,65535,65535 | 65535,65535,65535 | 65535 | 65535 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0.956786081736228 | 65535 | 65535 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
Sheet 7: TuningSelAuth_Per1
![]() | |||||
Nexteer EPS Unit Test Tool | |||||
Rev:2.7b | |||||
Test Setup | |||||
Number Of Calibrations | 0 | ||||
Number Of Calibration Sets | 0 | ||||
Calibration Sheet | |||||
Function(s) Under Test | Variables | Function Stubs | |||
Function Name | TestType | Test Vectors | Set | Read | Function Name |
TuningSelAuth_Per1 | p | 5 | HwTorque_HwNm_f32 | HwTrqLPFiltSV_HwNm_M_str.SV | TableSize_m |
TuningSelAuth_Per1 | b | 42 | VehicleSpeed_Kph_f32 | ActiveTunPers_Cnt_u16 | TableSize1_m |
HwTrqLPFiltSV_HwNm_M_str.SV | ActiveTunSet_Cnt_u16 | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | |||
HwTrqLPFiltSV_HwNm_M_str.K | PrevTunPers_Cnt_M_u16 | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | |||
k_TunSelHwTrqThresh_HwNm_f32 | PrevTunSet_Cnt_M_u16 | ||||
k_TunSelVehSpdThresh_Kph_f32 | TunPer_Ptr_Str | ||||
T_TunPersSelectionTbl1_Ptr_Str[5] | TunSet_Ptr_Str | ||||
T_TunPersSelectionTbl2_Ptr_Str[5] | |||||
T_TunPersSelectionTbl3_Ptr_Str[5] | |||||
T_TunSetSelectionTbl_Ptr_Str[3] | |||||
PrevTunSet_Cnt_M_u16 | |||||
PrevTunPers_Cnt_M_u16 | |||||
DesiredTunSet_Cnt_u16 | |||||
DesiredTunPers_Cnt_u16 | |||||
TunPer_Ptr_Str | |||||
TunSet_Ptr_Str |
Sheet 8: TuningSelAuth_Per1() b
TuningSelAuth_Per1 | TS | -- | ||||||||||||||||||||||||||||||||||||||||||
b | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | Func Stub Return Val | Func Stub Return Val | O/P | O/P | O/P | O/P | O/P | O/P | O/P | Func Stub Counter | Func Stub Counter | Func Stub Counter | Func Stub Counter | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected Stub Cnt | Expected Stub Cnt | Expected Stub Cnt | Expected Stub Cnt | Test Status | Perf. Metrics | Comments | |
Vector Number | Vector Description | HwTorque_HwNm_f32 | VehicleSpeed_Kph_f32 | HwTrqLPFiltSV_HwNm_M_str.SV | HwTrqLPFiltSV_HwNm_M_str.K | k_TunSelHwTrqThresh_HwNm_f32 | k_TunSelVehSpdThresh_Kph_f32 | T_TunPersSelectionTbl1_Ptr_Str[5] | T_TunPersSelectionTbl2_Ptr_Str[5] | T_TunPersSelectionTbl3_Ptr_Str[5] | T_TunSetSelectionTbl_Ptr_Str[3] | PrevTunSet_Cnt_M_u16 | PrevTunPers_Cnt_M_u16 | DesiredTunSet_Cnt_u16 | DesiredTunPers_Cnt_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.SV | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | HwTrqLPFiltSV_HwNm_M_str.SV | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | P/F | CPU Cycles | |
1 | HwTorque_HwNm_f32 = min | -10 | 60 | 2 | 0.0156 | 1 | 33 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 1 | 1 | 1 | 33 | 33 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 1.8128 | 1 | 1 | 1 | 1 | 33 | 33 | 0 | 0 | 1 | 1 | -- | ||
2 | HwTorque_HwNm_f32 = max | 10 | 70 | -2 | 0.1 | 2 | 68 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 2 | 2 | 2 | 68 | 68 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -0.8 | 2 | 2 | 2 | 2 | 68 | 68 | 0 | 0 | 1 | 1 | -- | ||
3 | HwTorque_HwNm_f32 = zero | 0 | 80 | 3 | 0.2 | 3 | 199 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 3 | 3 | 3 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 2.4 | 3 | 1 | 3 | 1 | 9874 | 9874 | 1 | 1 | 1 | 1 | -- | ||
4 | HwTorque_HwNm_f32 = pos | 1 | 90 | -3 | 0.3 | 4 | 25 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 2 | 1 | 4 | 4 | 25 | 25 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -1.8 | 1 | 2 | 1 | 2 | 25 | 25 | 0 | 0 | 1 | 1 | -- | ||
5 | HwTorque_HwNm_f32 = neg | -1 | 100 | 4 | 0.08 | 5 | 1 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 2 | 5 | 5 | 1 | 1 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 3.6 | 2 | 1 | 2 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | -- | ||
6 | VehicleSpeed_Kph_f32 = min | 2 | 0 | -4 | 0.09 | 6 | 73 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 3 | 6 | 6 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -3.46 | 3 | 2 | 3 | 2 | 4523 | 4523 | 1 | 1 | 1 | 1 | -- | ||
7 | VehicleSpeed_Kph_f32 = max | -2 | 511 | 5 | 0.09 | 7 | 46 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 1 | 7 | 7 | 46 | 46 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 4.37 | 1 | 1 | 1 | 1 | 46 | 46 | 0 | 0 | 1 | 1 | -- | ||
8 | VehicleSpeed_Kph_f32 = mid | 3 | 50 | -5 | 0.0175 | 8 | 11 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 2 | 2 | 8 | 8 | 11 | 11 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -4.86 | 2 | 2 | 2 | 2 | 11 | 11 | 0 | 0 | 1 | 1 | -- | ||
9 | HwTrqLPFiltSV_HwNm_M_str.SV = min | -3 | 33 | -10 | 0.0189 | 9 | 123 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 3 | 9 | 9 | 123 | 123 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -9.8677 | 3 | 1 | 3 | 1 | 123 | 123 | 0 | 0 | 1 | 1 | -- | ||
10 | HwTrqLPFiltSV_HwNm_M_str.SV = max | 4 | 68 | 10 | 0.0203 | 1.2 | 27 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 1 | 10 | 10 | 27 | 27 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 9.8782 | 1 | 2 | 1 | 2 | 27 | 27 | 0 | 0 | 1 | 1 | -- | ||
11 | HwTrqLPFiltSV_HwNm_M_str.SV = zero | -4 | 199 | 0 | 0.0217 | 1.3 | 96 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 2 | 20 | 20 | 96 | 96 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -0.0868 | 2 | 1 | 2 | 1 | 96 | 96 | 0 | 0 | 1 | 1 | -- | ||
12 | HwTrqLPFiltSV_HwNm_M_str.SV = pos | 5 | 25 | 1 | 0.0231 | 1.4 | 81 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 2 | 3 | 30 | 30 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 1.0924 | 3 | 2 | 3 | 2 | 7412 | 7412 | 1 | 1 | 1 | 1 | -- | ||
13 | HwTrqLPFiltSV_HwNm_M_str.SV = neg | -5 | 1 | -1 | 0.0245 | 1.5 | 53 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 1 | 40 | 40 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -1.098 | 1 | 1 | 1 | 1 | 2589 | 2589 | 1 | 1 | 1 | 1 | -- | ||
14 | HwTrqLPFiltSV_HwNm_M_str.K = min | 6 | 73 | 9 | 0.0124877435 | 1.6 | 44 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 2 | 50 | 50 | 44 | 44 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 8.9625367695 | 2 | 2 | 2 | 2 | 44 | 44 | 0 | 0 | 1 | 1 | -- | ||
15 | HwTrqLPFiltSV_HwNm_M_str.K = max | -6 | 46 | -9 | 0.466511909 | 1.7 | 80 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 3 | 60 | 60 | 80 | 80 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -7.600464273 | 3 | 1 | 3 | 1 | 80 | 80 | 0 | 0 | 1 | 1 | -- | ||
16 | HwTrqLPFiltSV_HwNm_M_str.K = mid | 7 | 11 | 1.6 | 0.013 | 1.8 | 90 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 7412,7412,7412 | 2 | 1 | 70 | 70 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 1.6702 | 1 | 2 | 1 | 2 | 7412 | 7412 | 1 | 1 | 1 | 1 | -- | ||
17 | k_TunSelHwTrqThresh_HwNm_f32 = min | -7 | 123 | 6 | 0.234 | 0 | 100 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 2589,2589,2589 | 1 | 2 | 80 | 80 | 100 | 100 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 2.958 | 2 | 1 | 2 | 1 | 100 | 100 | 0 | 0 | 1 | 1 | -- | ||
18 | k_TunSelHwTrqThresh_HwNm_f32 = max | 8 | 27 | -6 | 0.387 | 10 | 110 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 4523,4523,4523 | 2 | 3 | 90 | 90 | 2589 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -0.582 | 3 | 2 | 3 | 2 | 2589 | 4523 | 1 | 1 | 1 | 1 | -- | ||
19 | k_TunSelHwTrqThresh_HwNm_f32 = mid | -8 | 96 | 7 | 0.01345 | 1 | 120 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 9874,9874,9874 | 1 | 1 | 1 | 1 | 120 | 120 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 6.79825 | 1 | 1 | 1 | 1 | 120 | 120 | 0 | 0 | 1 | 1 | -- | ||
20 | k_TunSelVehSpdThresh_Kph_f32 = min | 9 | 81 | -7 | 0.0146 | 2.5 | 0 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 7412,7412,7412 | 2 | 2 | 2 | 2 | 0 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -6.7664 | 2 | 2 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
21 | k_TunSelVehSpdThresh_Kph_f32 = max | -9 | 53 | 8 | 0.01575 | 3.5 | 255 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 3 | 3 | 3 | 255 | 255 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 7.73225 | 3 | 1 | 3 | 1 | 255 | 255 | 0 | 0 | 1 | 1 | -- | ||
22 | k_TunSelVehSpdThresh_Kph_f32 = mid | 1.6 | 44 | -8 | 0.0169 | 6.9 | 10 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 1 | 4 | 4 | 10 | 10 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -7.83776 | 1 | 2 | 1 | 2 | 10 | 10 | 0 | 0 | 1 | 1 | -- | ||
23 | T_TunPersSelectionTbl_Ptr_Str[5] = min | 1 | 58 | 9 | 0.1 | 1 | 58 | 0,0,0,0,0 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 2 | 5 | 5 | 58 | 58 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 8.2 | 2 | 1 | 2 | 1 | 58 | 58 | 0 | 0 | 1 | 1 | -- | ||
24 | T_TunPersSelectionTbl_Ptr_Str[5] = max | 2 | 125 | -9 | 0.2 | 2 | 125 | 65535,65535,65535,65535,65535 | 7412,7412,7412,7412,7412 | 2589,2589,2589,2589,2589 | 7412,7412,7412 | 2 | 3 | 6 | 6 | 125 | 125 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -6.8 | 3 | 2 | 3 | 2 | 125 | 125 | 0 | 0 | 1 | 1 | -- | ||
25 | T_TunPersSelectionTbl_Ptr_Str[5] = mid | 3 | 36 | 1 | 0.3 | 3 | 36 | 500,500,500,500,500 | 2589,2589,2589,2589,2589 | 4523,4523,4523,4523,4523 | 2589,2589,2589 | 1 | 1 | 7 | 7 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 1.6 | 1 | 1 | 1 | 1 | 2589 | 2589 | 1 | 1 | 1 | 1 | -- | ||
26 | T_TunSetSelectionTbl_Ptr_Str[3] = min | 4 | 96 | 2 | 0.08 | 4 | 96 | 4523,4523,4523,4523,4523 | 0,0,0,0,0 | 9874,9874,9874,9874,9874 | 0,0,0 | 2 | 2 | 8 | 8 | 9874 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 2.16 | 2 | 2 | 2 | 2 | 9874 | 0 | 1 | 1 | 1 | 1 | -- | ||
27 | T_TunSetSelectionTbl_Ptr_Str[3] = max | 5 | 74 | 3 | 0.09 | 5 | 74 | 9874,9874,9874,9874,9874 | 65535,65535,65535,65535,65535 | 9874,9874,9874,9874,9874 | 65535,65535,65535 | 1 | 3 | 9 | 9 | 65535 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 3.18 | 3 | 1 | 3 | 1 | 65535 | 65535 | 1 | 1 | 1 | 1 | -- | ||
28 | T_TunSetSelectionTbl_Ptr_Str[3] = mid | 6 | 85 | 4 | 0.09 | 6 | 85 | 7412,7412,7412,7412,7412 | 500,500,500,500,500 | 7412,7412,7412,7412,7412 | 500,500,500 | 2 | 1 | 10 | 10 | 7412 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 4.18 | 1 | 2 | 1 | 2 | 7412 | 500 | 1 | 1 | 1 | 1 | -- | ||
29 | PrevTunSet_Cnt_M_u16 = min | 7 | 156 | 5 | 0.0175 | 7 | 156 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 0,0,0,0,0 | 500,500,500 | 0 | 2 | 20 | 20 | 4523 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 5.035 | 2 | 0 | 2 | 0 | 4523 | 500 | 1 | 1 | 1 | 1 | -- | ||
30 | PrevTunSet_Cnt_M_u16 = max | 8 | 200 | 6 | 0.0189 | 8 | 200 | 7412,7412,7412,7412,7412 | 2589,2589,2589,2589,2589 | 65535,65535,65535,65535,65535 | 0,0,0 | 2 | 3 | 30 | 30 | 65535 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 6.0378 | 3 | 2 | 3 | 2 | 65535 | 0 | 1 | 1 | 1 | 1 | -- | ||
31 | PrevTunSet_Cnt_M_u16 = mid | 9 | 36 | 7 | 0.1 | 9 | 36 | 2589,2589,2589,2589,2589 | 4523,4523,4523,4523,4523 | 500,500,500,500,500 | 65535,65535,65535 | 1 | 1 | 40 | 40 | 4523 | 65535 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 7.2 | 1 | 1 | 1 | 1 | 4523 | 65535 | 1 | 1 | 1 | 1 | -- | ||
32 | PrevTunPers_Cnt_M_u16 = min | -1 | 125 | 8 | 0.2 | 1.1 | 125 | 4523,4523,4523,4523,4523 | 9874,9874,9874,9874,9874 | 2589,2589,2589,2589,2589 | 0,0,0 | 2 | 0 | 50 | 50 | 125 | 125 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 6.2 | 0 | 2 | 0 | 2 | 125 | 125 | 0 | 0 | 1 | 1 | -- | ||
33 | PrevTunPers_Cnt_M_u16 = max | -2 | 85 | 9 | 0.3 | 1.2 | 85 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 4523,4523,4523,4523,4523 | 65535,65535,65535 | 1 | 4 | 60 | 60 | 85 | 85 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 5.7 | 4 | 1 | 4 | 1 | 85 | 85 | 0 | 0 | 1 | 1 | -- | ||
34 | PrevTunPers_Cnt_M_u16 = mid | -3 | 96 | -1 | 0.08 | 1.3 | 96 | 7412,7412,7412,7412,7412 | 7412,7412,7412,7412,7412 | 9874,9874,9874,9874,9874 | 500,500,500 | 2 | 3 | 70 | 70 | 9874 | 500 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -1.16 | 3 | 2 | 3 | 2 | 9874 | 500 | 1 | 1 | 1 | 1 | -- | ||
35 | DesiredTunSet_Cnt_u16 = min | 4 | 58 | 4 | 0.0175 | 2 | 58 | 5641,5641,5641,5641,5641 | 5641,5641,5641,5641,5641 | 5641,5641,5641,5641,5641 | 5641,5641,5641 | 0 | 2 | 0 | 80 | 7412 | 7412 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 4 | 2 | 0 | 2 | 0 | 7412 | 7412 | 0 | 0 | 1 | 1 | -- | ||
36 | DesiredTunSet_Cnt_u16 = max | 5 | 69 | 5 | 0.0189 | 3 | 69 | 1236,1236,1236,1236,1236 | 1236,1236,1236,1236,1236 | 1236,1236,1236,1236,1236 | 1236,1236,1236 | 2 | 3 | 100 | 91 | 100 | 100 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 5 | 3 | 2 | 3 | 2 | 100 | 100 | 0 | 0 | 1 | 1 | -- | ||
37 | DesiredTunSet_Cnt_u16 = mid | 6 | 34 | 6 | 0.0203 | 4 | 34 | 6541,6541,6541,6541,6541 | 6541,6541,6541,6541,6541 | 6541,6541,6541,6541,6541 | 6541,6541,6541 | 1 | 1 | 50 | 25 | 2589 | 2589 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 6 | 1 | 1 | 1 | 1 | 2589 | 2589 | 0 | 0 | 1 | 1 | -- | ||
38 | DesiredTunPers_Cnt_u16 = min | 7 | 15 | 7 | 0.0217 | 5 | 15 | 8523,8523,8523,8523,8523 | 8523,8523,8523,8523,8523 | 8523,8523,8523,8523,8523 | 8523,8523,8523 | 0 | 0 | 67 | 0 | 120 | 120 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 7 | 0 | 0 | 0 | 0 | 120 | 120 | 0 | 0 | 1 | 1 | -- | ||
39 | DesiredTunPers_Cnt_u16 = max | 8 | 62 | 8 | 0.0231 | 6 | 62 | 7895,7895,7895,7895,7895 | 7895,7895,7895,7895,7895 | 7895,7895,7895,7895,7895 | 7895,7895,7895 | 1 | 4 | 89 | 100 | 0 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 8 | 4 | 1 | 4 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
40 | DesiredTunPers_Cnt_u16 = mid | 9 | 74 | 9 | 0.0245 | 7 | 74 | 5641,5641,5641,5641,5641 | 5641,5641,5641,5641,5641 | 5641,5641,5641,5641,5641 | 5641,5641,5641 | 2 | 3 | 74 | 50 | 255 | 255 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 9 | 3 | 2 | 3 | 2 | 255 | 255 | 0 | 0 | 1 | 1 | -- | ||
41 | All Min | -10 | 0 | -10 | 0.0124877435 | 0 | 0 | 0,0,0,0,0 | 0,0,0,0,0 | 0,0,0,0,0 | 0,0,0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | -- | ||
42 | All Max | 10 | 511 | 10 | 0.466511909 | 10 | 255 | 65535,65535,65535,65535,65535 | 65535,65535,65535,65535,65535 | 65535,65535,65535,65535,65535 | 65535,65535,65535 | 2 | 4 | 100 | 100 | 65535 | 65535 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 10 | 4 | 2 | 4 | 2 | 65535 | 65535 | 0 | 0 | 1 | 1 | -- | ||
Sheet 9: TuningSelAuth_Per1() p
TuningSelAuth_Per1 | TS | -- | ||||||||||||||||||||||||||||||||||||||||||
p | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | I/P | Func Stub Return Val | Func Stub Return Val | O/P | O/P | O/P | O/P | O/P | O/P | O/P | Func Stub Counter | Func Stub Counter | Func Stub Counter | Func Stub Counter | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected O/P | Expected Stub Cnt | Expected Stub Cnt | Expected Stub Cnt | Expected Stub Cnt | Test Status | Perf. Metrics | Comments | |
Vector Number | Vector Description | HwTorque_HwNm_f32 | VehicleSpeed_Kph_f32 | HwTrqLPFiltSV_HwNm_M_str.SV | HwTrqLPFiltSV_HwNm_M_str.K | k_TunSelHwTrqThresh_HwNm_f32 | k_TunSelVehSpdThresh_Kph_f32 | T_TunPersSelectionTbl1_Ptr_Str[5] | T_TunPersSelectionTbl2_Ptr_Str[5] | T_TunPersSelectionTbl3_Ptr_Str[5] | T_TunSetSelectionTbl_Ptr_Str[3] | PrevTunSet_Cnt_M_u16 | PrevTunPers_Cnt_M_u16 | DesiredTunSet_Cnt_u16 | DesiredTunPers_Cnt_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | HwTrqLPFiltSV_HwNm_M_str.SV | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | HwTrqLPFiltSV_HwNm_M_str.SV | ActiveTunPers_Cnt_u16 | ActiveTunSet_Cnt_u16 | PrevTunPers_Cnt_M_u16 | PrevTunSet_Cnt_M_u16 | TunPer_Ptr_Str | TunSet_Ptr_Str | TableSize_m | TableSize1_m | Rte_Call_TuningSelAuth_Per1_CP0_CheckpointReached | Rte_Call_TuningSelAuth_Per1_CP1_CheckpointReached | P/F | CPU Cycles | |
1 | if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32) =>FALSE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32)) | -10 | 60 | 2 | 0.0156 | 1 | 33 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589,2589,2589 | 2589,2589,2589 | 1 | 1 | 1 | 1 | 33 | 33 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 1.8128 | 1 | 1 | 1 | 1 | 33 | 33 | 0 | 0 | 1 | 1 | -- | ||
2 | if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32)=>TRUE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32)=>FALSE) | 10 | 70 | -2 | 0.1 | 2 | 68 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 2 | 2 | 2 | 68 | 68 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -0.8 | 2 | 2 | 2 | 2 | 68 | 68 | 0 | 0 | 1 | 1 | -- | ||
3 | if ((Abs_f32_m(HwTorqueFilt_HwNm_T_f32) <= k_TunSelHwTrqThresh_HwNm_f32)=>TRUE && (VehicleSpeed_Kph_T_f32 <= k_TunSelVehSpdThresh_Kph_f32)=>TRUE), if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>FALSE, if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>TRUE | 0 | 80 | 3 | 0.2 | 3 | 199 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 3 | 3 | 3 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 2.4 | 3 | 1 | 3 | 1 | 9874 | 9874 | 1 | 1 | 1 | 1 | -- | ||
4 | if (DesiredTunPers_Cnt_T_u16 >= TableSize_m(T_TunPersSelectionTbl_Ptr_Str[0]))=>TRUE | 2 | 0 | -4 | 0.09 | 6 | 73 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523,4523,4523 | 4523,4523,4523 | 2 | 3 | 6 | 6 | 4523 | 4523 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -3.46 | 3 | 2 | 3 | 2 | 4523 | 4523 | 1 | 1 | 1 | 1 | -- | ||
5 | if (DesiredTunSet_Cnt_T_u16 >= TableSize_m(T_TunSetSelectionTbl_Ptr_Str))=>FALSE | 0 | 80 | 3 | 0.2 | 3 | 199 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874,9874,9874 | 9874,9874,9874 | 1 | 3 | 2 | 3 | 9874 | 9874 | 5 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | 2.4 | 3 | 2 | 3 | 2 | 9874 | 9874 | 1 | 1 | 1 | 1 | -- | ||
Sheet 10: Test Vector Description
![]() | ||||
Nexteer EPS Unit Test Tool | ||||
Rev:2.7b | ||||
Test Setup Sheet | Test Function | Test Type | Vector Number | Vector Description |