1 - Data Dictionary


Overview

Change Log
Variable Dictionary
Calibration Dictionary
Global Constants
Template
Help


Sheet 1: Change Log

StateOuputControl - Rev 8<- Global Program / Module Name


RevisionAuthorDateChange Description

Data Dictionary Type:Component
1.0NRAR15-Dec-11Initial Implementation / Per1 /2ms rate



2NRAR5-Jan-12???



3NRAR6-Jan-12???



4OT10-Jan-12Updated Template (v3.1)



5NRAR12-Jan-12Renamed DiagStatus boolean var



6OT18-Jan-12Updated Template (Graph Settings)



7NRAR20-Jan-12???



8OT3-Feb-12Fixed Inconsistencies




































































































































































































































































































Sheet 2: Variable Dictionary

StateOuputControl - Rev 8

IOMDN
Variable Information

YN










Range











Software Variable NameStandard Reference NameFDD ReferenceDescription[I]nput [O]uput [M]oduleInternal [D]isplay [N]onVolatileMemory UsageOEM1X, 1Y, 1Z, 1I, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsInitalization ValueMinMaxResolutionUnit Test Tolerance (+/-)UnitsTypeMemory Segment






Variables




















DiagStsDiagRmpActive_Cnt_lgcDiag_Status

I

001boolean
Bitsboolean







DiagRampRate_XpmS_f32Diagnostic Ramp Rate
Input value for the commanded ramp rate due to a dignostic actionI

00.00010.5Single Precision Float3.91E-03XpmSfloat32







DiagRampValue_Uls_f32Diagnostic Ramp Value
Input value for the final of the ramp function for a diagnostic actionI

001Single Precision Float3.91E-03Ulsfloat32







OperRampRate_XpmS_f32Operational Ramp Rate
Input value for the commanded ramp rate from operational related functions.
Note: FDD has units in Percent/sec, whereas in software units are XpmS.
I

00.00010.005Single Precision Float3.91E-03XpmSfloat32







OperRampValue_Uls_f32Operational Ramp Value
Input variable for the final value of the ramp functionI

001Single Precision Float3.91E-03Ulsfloat32







RampDwnStatusComplete_Cnt_lgcRampStatusCompleteSF05 StateOutputControlOutput indicating that the ramp factor has reached zero and the output is to be completely ramped down to zero.O

001boolean
Cntboolean







OutputRampMult_Uls_f32OutputRampMultSF05 StateOutputControlscaling multiplier used to perform ramp down of motor torqueO

001Single Precision Float3.91E-03Ulsfloat32







RampSrlComSvcDft_Cnt_lgcDefeat Ramp Service
Service used to defeat the ramping functions for manufacturingI

001boolean
Cntboolean







PrevTargetRampMult_Uls_M_f32Ramp TargetSF05 StateOutputControl
M

101Single Precision Float3.91E-03Ulsfloat32







PrevOutputRampMult_Uls_M_f32


D

101Single Precision Float3.91E-03Ulsfloat32







PrevRate_XpmS_M_f32RateSF05 StateOutputControl
M

10.00010.5Single Precision Float3.91E-03XpmSfloat32







RampState_M_Str


M







RampState_T







RampState_M_Str.StartTime_mS_u32






FULLFULL11.00E+00msuint32







RampState_M_Str.Duration_mS_u32






FULLFULL11.00E+00msuint32







RampState_M_Str.StartVal_Uls_f32






01Single Precision Float3.91E-03Ulsfloat32







RampState_M_Str.EndVal_Uls_f32






01Single Precision Float3.91E-03Ulsfloat32


















































































































































































































































































































































Sheet 3: Calibration Dictionary

StateOuputControl - Rev 8


N
Calibration InformationAchieved in Software Design



Y








Range





P
Software Calibration NameStandard Reference NameFDD ReferenceDescriptionTuning SetOEM1X, 1Y, 1Z, 1I, 1BS 2X, 2Y, 2Z, 2I, 2BS etc Graph SettingsDefault ValueMinMaxUnitsTypeMemory Segment



Calibrations
















Sheet 4: Global Constants

StateOuputControl - Rev 8








































































Variable Information (Global Variables Only)

Achieved in Software DesignUsed in Module List





Layer 2Layer 3Layer 4Layer 5
Constant NameDescriptionUintsTypeEngineering ValueADCADC DiagnosticsData Memory VerificationDC Link Power ControlDSP Computational IntegrityDSP SPI driverEvent Manager DriverExternal Memory DriverFlash Programming ExecGPIOIllegal OpCode HandlerInterrupt HandlerMotor Current DriverMotor Driver DiagnosticsMotor Position DriverPhase Feedback CapturePowerdown ControlPrimary Shutdown ControlProgram FlowProgram Memory DiagnosticPWM Duty CycleRedundant Memory CheckRedundant Rapid ShutdownSchedulerStack MonitorState Dependent Task ListSystem Boot & StartupSystem ControlTemperature Sensor DiagnosticUnused Interrupt HandlerUtilization MonitorWatchdog DirverSmithBattery VoltageBattery Voltage DiagnosticsDiagnostic CTC ManagerDiagnostic ManagerDiagnostics Application ServicesEOL TorqueTestFlash Boot LoaderFlight RecorderHandwheel PositionHandwheel TorqueMotor Control Output ConversionMotor Position DiagnosticsMotor Position InitializationMotor VelocityMotor Velocity TachometerSerial Communications I/OSerial Communications ServicesStates and ModesTuning SelectVehicle Power ModeVehicle SpeedController PolarityCurrent EstimationHandwheel VelocityInverse Motor ModelMotor Temperature EstimationMotor Torque LimitOutput Reasonableness DianosticParameter EstimationQuadrant and rate DetectionActive Pull CompensationAssistDampingDuty CycleKinematic Integrity DiagnosticLong Term Vehicle Speed DiagnosticMax Assist LimitReturnState Output ControlTorque Output
D_2MS_SEC_F32
secfloat0.002

















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Sheet 5: Template

2.2aData 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:NIndex 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:YIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.<ROOTNAME>
<SAFETYCRITICAL>
























Tuning:PIndex Range:










Header:<NONCRITICAL>
#define <ROOTNAME><TAB>k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
#define <ROOTNAME><TAB>k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>










Source:










eCal:<NONCRITICAL>
k_N_CalNC_Cnt_Str.Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<NONCRITICAL>
<SAFETYCRITICAL>
k_S_CalSC_Cnt_Str.SC_Personality[L3_S_CalPersSelect_Cnt_G_u16].<ROOTNAME>
<SAFETYCRITICAL>

















Sheet 6: Help

Short cutMacroSescription
Ctrl-qClearDataDictFilterWill clear all autofilters on the Global Data Dictionary




DFD_CreateCreates 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_DeleteWill clear all Data Flow Diagram pages from the Data Dictionary. This will make the file smaller for archiving.

DFD_PrintFormate and prepares to print the Data Flow Worksheet pages.

2 - State_Output_Control_MDD

Module – State Output Control

High-Level Description

This function performs the ramp up and ramp down of the Torque Command.

Figures

Diagram – Function Data Sharing


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.

(Note: Full variable names required in table.)

(Note: All global variables including End Of Line data used should be shown here)

Module Inputs (Global Variable Name)Module Outputs (Global Variable Name)
TrqCmd_MtrNm_f32FinalTrqCmd_MtrNm_f32
SrlComSvcDft_Cnt_b32OutputRampMult_Uls_f32
DiagRampRate_XpmS_32RampDwnStatusComplete_Cnt_lgc
DiagRampValue_Uls_f32
OperRampRate_XpmS_f32
OperRampValue_Uls_f32
RampSrlComSvcDft_Cnt_lgc
DiagStsDiagRmpActive_Cnt_lgc

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 NameResolution

Legal Range

(min)

Legal Range

(max)

Software Segment
AttenFactor_Uls_M_f32Single precision floating point1.175494351e-0383.402823466e+038
ActvRampUsr_Cnt_M_u161016
PrevOutputRampMult_Uls_M_f32Single precision floating point01STOPCTRL_START_SEC_VAR_NOINIT_32
PrevTargetRampMult_Uls_M_f32Single precision floating point01STOPCTRL_START_SEC_VAR_NOINIT_32
PrevRate_XpmS_M_f32Single precision floating point0.00010.5STOPCTRL_START_SEC_VAR_NOINIT_32
RampState_M_StrRampState_TSee 3.1.1See 3.1.1STOPCTRL_START_SEC_VAR_NOINIT_UNSPECIFIED

User defined typedef definition/declaration

This section documents any user types uniquely used for the module.

Typedef NameElement NameUser Defined Type

Legal Range

(min)

Legal Range

(max)

RampState_T

StartTime_mS_u32

Duration_mS_u32

StartVal_Uls_f32

EndVal_Uls_f32

uint32

uint32

float32

float32

0

0

0

0

2^32-1

2^32-1

1

1

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

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 NameResolutionValue
D_TWO_MS_U3212
D_MAXRAMP_XPMS_F32Single precision floating point0.5

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


Module specific Lookup Tables Constants

(This is for lookup tables (arrays) with fixed values, same name as other tables)

Constant NameResolutionValueSoftware Segment
None

Lookup Table Definitions

Software Module Implementation

Initialization Functions

None

Periodic Functions

Per: _Per1

Design Rationale

NOTE: For “starttime” calculations there is tendency for underflow and this is expected in s/w design. So for unittesting, VBA model should be implemented

such that it handles underflow and behaves like source code design.

Program Flow Start

Store Module Inputs to Local copies

Rte_Call_StOpCtrl_Per1_CP0_CheckpointReached() OperRampRate_XpmS_T_f32 as float32

OperRampValue_Uls_T_f32 as float32

DiagRampValue_Uls_T_f32 as float32

DiagRampRate_XpmS_T_f32 as float32

DiagStsDiagRmpActive_Cnt_T_lgc as Boolean

RampSrlComSvcDft_Cnt_T_lgc as Boolean

Rate_T_f32 as float32

Target_T_f32 as float32

DiffOutputRampMult_T_f32 as float32

DiffRate_T_f32 as float32

OperRampRate_XpmS_T_f32 = Rte_IRead_StOpCtrl_Per1_OperRampRate_XpmS_f32

OperRampValue_Uls_T_f32 =Rte_Iread_StOpCtrl_Per1_OperRampValue_Uls_f32

DiagRampValue_Uls_T_f32=Rte_Iread_StOpCtrl_Per1_DiagRampValue_Uls_f32

DiagRampRate_XpmS_T_f32=Rte_Iread_StOpCtrl_Per1_DiagRampRate_XpmS_f32

DiagStsDiagRmpActive_Cnt_T_lgc = Rte_Iread_StOpCtrl_Per1_DiagStsDiagRmpActive_Cnt_lgc

RampSrlComSvcDft_Cnt_T_lgc= Rte_Iread_StOpCtrl_Per1_RampSrlComSvcDft_Cnt_lgc

Store Local copy of outputs into Module Outputs

Rte_Iwrite_StOpCtrl_Per1_RampDwnStatusComplete_Cnt_lgc(RampDwnStatusComplete_T_lgc)

Rte_Iwrite_StOpCtrl_Per1_OutputRampMult_Uls_f32(NewOutputRampMult_T_f32)

Program Flow End

Rte_Call_StOpCtrl_Per1_CP1_CheckpointReached()

Fault Recovery Functions

None

Shutdown Functions

None

Interrupt Functions

None

Serial Communication Functions

None

Local Function/Macro Definitions

RampLib

Function NameRampLibTypeMinMax
Arguments PassedrampState_T_StrRampState_T**
Return ValueOutput_Uls_T_f32Float

*Note: For ranges on structure elements check Table 3.1.1 of MDD

Description

Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32(rampState_T_Str.StartTime_mS_u32, &ElapsedRamp_mS_T_u32)


Execution Requirements

Execution Sequence of the Module

Execution Rates for sub-modules called by the Scheduler

This table serves as reference for the Scheduler design

Function NameCalling FrequencySystem State(s) in which the function is called
StOpCtrl_Per1()2 msALL States

Execution Requirements for Serial Communication Functions

Function NameSub-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 ModuleSoftware Segment
StOpCtrl_Per1()RTE_START_SEC_AP_STOPCTRL_APPL_CODE RTE_STOP_SEC_AP_STOPCTRL_APPL_CODE

Local Functions

This table identifies the software segments for local functions identified in this module.

Name of Sub ModuleSoftware Segment
RampLib

RTE_START_SEC_AP_STOPCTRL_APPL_CODE

RTE_STOP_SEC_AP_STOPCTRL_APPL_CODE


Known Issues / Limitations With Design

  1. (Item #1)


Revision Control Log

Item #Rev #Change DescriptionDateAuthor Initials
11.0Initial release07-Jun-11SAH
22.0FDD SF055-Jan-12NRAR
33.0Value for D_MAXRAMP_XPMS_F32 is fixed6-Jan-12NRAR
44.0DiagStsF1Active_Cnt_lgc is renamed to DiagStsDiagRmpActive_Cnt_lgc12-Jan-12NRAR
54.0PrevRate_XpmS_M_f32 range correction23-Jan-12NRAR
65.0Anom #3272 Ramp output vs. target fix13-Aug-12BWL
76.0Added checkpoints and memmap software segment is updated for static variables23-Sep-12Selva

3 - StateOutputControl_UnitTestResults


Overview

Unit Test Information
Module Definitions
Variable Range
StOpCtrl_Per1
StOpCtrl_Per1() B
StOpCtrl_Per1() P
RampLib
RampLib() B
RampLib() P


Sheet 1: Unit Test Information

1.0a






















Nexteer EPS Unit Test Tool






Rev:2.7b












Name of Tester:Sheetal Wadichar
Source files to be added to the .pjt file Must include path from 'Source Code Directory' setting on the Unit Test Tool Options dialog Include Files:

Code File(s) Under Test:Ap_StOpCtrl.c



Code File(s) Version:21



Module Design Document:State_Output_Control_MDD



Module Design Document Version:6.0



Unit Test Plan Version:3



Optimization Level:Level 2



Compiler (CodeGen) Version:TMS470_4.9.5



Model Type:Excel Macro



Model Version:




Special Test Requirements:




Test Date:1/29/2013



Comments:NOTE1 : Inline functions defined in GlobalMacro.h are not Unit Tested.



Index of Tests:




Test Set upTest WorksheetsTest StatusRun TS

StOpCtrl_Per1StOpCtrl_Per1() P----
2
42StOpCtrl_Per1() B----
42






RampLibRampLib() P----
2
17RampLib() B----
17
























































































































































































































































Sheet 2: Module Definitions









































Nexteer EPS Unit Test Tool












Rev:2.7a












Module Definitions
Module Test Functions
Module Set/Read Variables
Module Function Stubs
Return TypeNameParameter Prototype
ScopeTypeNameDefault Value
Return TypeNameParameter Prototype
voidStOpCtrl_Per1(void)
GfloatDiagRampRate_XpmS_f32

UINT32Rte_Call_SystemTime_GetSystemTime_mS_u32
floatRampLib(void)
GfloatDiagRampValue_Uls_f32

UINT32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32




GfloatOperRampRate_XpmS_f32

voidRte_Call_StOpCtrl_Per1_CP0_CheckpointReached(void)




GfloatOperRampValue_Uls_f32

voidRte_Call_StOpCtrl_Per1_CP1_CheckpointReached(void)




GbooleanRampSrlComSvcDft_Cnt_lgc








GbooleanDiagStsDiagRmpActive_Cnt_lgc








GfloatOutputRampMult_Uls_f32








GbooleanRampDwnStatusComplete_Cnt_lgc








MfloatPrevOutputRampMult_Uls_M_f32








MfloatPrevRate_XpmS_M_f32








MRampState_T.UINT32RampState_M_Str.StartTime_mS_u32








MRampState_T.UINT32RampState_M_Str.Duration_mS_u32








MRampState_T.floatRampState_M_Str.StartVal_Uls_f32








MRampState_T.floatRampState_M_Str.EndVal_Uls_f32








MRampState_T.UINT32rampState_T_Str.StartTime_mS_u32








MRampState_T.UINT32rampState_T_Str.Duration_mS_u32








MRampState_T.floatrampState_T_Str.StartVal_Uls_f32








MRampState_T.floatrampState_T_Str.EndVal_Uls_f32








MfloatPrevTargetRampMult_Uls_M_f32





Sheet 3: Variable Range















































Nexteer EPS Unit Test Tool












Rev:2.7a
























Variable Range Definitions








Variable NameMax ValueMin Value








TrqCmd_MtrNm_f32










SrlComSvcDft_Cnt_b32










FinalTrqCmd_MtrNm_f32










AttenFactor_Uls_M_f32










ActvRampUsr_Cnt_M_u16










RampCmdQueue_T










RampState_T










PassedParameter_1










PassedParameter_2










RampCmdQueue_M_Str.rampCmd










RampCmdQueue_M_Str.rampState










RampState_M_Str.StartTime_mS_u32










RampState_M_Str.Duration_mS_u32










RampState_M_Str.StartVal_Uls_f32










RampState_M_Str.EndVal_Uls_f32










RampLib










User










User1










StaMd_Users










StaMd_Users_NotComplete










StaMd_Users_Complete










RampCmdQueue_M_Str(16).rampCmd










RampCmdQueue_M_Str(16).rampState










RampCmdQueue_M_Str(16).rampCmd.target_X_f32










RampCmdQueue_M_Str(16).rampCmd.rate_XpmS_f32










RampCmdQueue_M_Str[16].rampState










RampCmdQueue_M_Str[16].rampCmd.target_X_f32










RampCmdQueue_M_Str[16].rampCmd.rate_XpmS_f32










RampLibFunction_ReturnValue










RampLib_Par1_StartTime










RampLib_Par2_Duration










RampLib_Par3_StartVal










RampLib_Par4_EndVal










DiagRampRate_XpmS_f32










DiagRampValue_Uls_f32










OperRampRate_XpmS_f32










OperRampValue_Uls_f32










RampSrlComSvcDft_Cnt_lgc










DiagStsF1Active_Cnt_lgc










OutputRampMult_Uls_f32










RampDwnStatusComplete_Cnt_lgc










PrevOutputRampMult_Uls_M_f32










PrevRate_XpmS_M_f32










rampState_T_Str.StartTime_mS_u32










rampState_T_Str.Duration_mS_u32










rampState_T_Str.StartVal_Uls_f32










rampState_T_Str.EndVal_Uls_f32










DiagStsDiagRmpActive_Cnt_lgc










PrevTargetRampMult_Uls_M_f32











Sheet 4: StOpCtrl_Per1




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
StOpCtrl_Per1P2DiagRampRate_XpmS_f32OutputRampMult_Uls_f32Rte_Call_SystemTime_GetSystemTime_mS_u32
StOpCtrl_Per1B42DiagRampValue_Uls_f32RampDwnStatusComplete_Cnt_lgcRte_Call_SystemTime_DtrmnElapsedTime_mS_u32



OperRampRate_XpmS_f32PrevOutputRampMult_Uls_M_f32Rte_Call_StOpCtrl_Per1_CP0_CheckpointReached



OperRampValue_Uls_f32PrevRate_XpmS_M_f32Rte_Call_StOpCtrl_Per1_CP1_CheckpointReached



RampSrlComSvcDft_Cnt_lgcRampState_M_Str.StartTime_mS_u32



DiagStsDiagRmpActive_Cnt_lgcRampState_M_Str.Duration_mS_u32



PrevOutputRampMult_Uls_M_f32RampState_M_Str.StartVal_Uls_f32



PrevRate_XpmS_M_f32RampState_M_Str.EndVal_Uls_f32



RampState_M_Str.StartTime_mS_u32rampState_T_Str.StartTime_mS_u32



RampState_M_Str.Duration_mS_u32rampState_T_Str.Duration_mS_u32



RampState_M_Str.StartVal_Uls_f32rampState_T_Str.StartVal_Uls_f32



RampState_M_Str.EndVal_Uls_f32rampState_T_Str.EndVal_Uls_f32



rampState_T_Str.StartTime_mS_u32PrevTargetRampMult_Uls_M_f32



rampState_T_Str.Duration_mS_u32




rampState_T_Str.StartVal_Uls_f32




rampState_T_Str.EndVal_Uls_f32




PrevTargetRampMult_Uls_M_f32


Sheet 5: StOpCtrl_Per1() B

StOpCtrl_Per1TS--





















































BI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PFunc 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
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 StatusPerf. MetricsComments
Vector NumberVector DescriptionDiagRampRate_XpmS_f32DiagRampValue_Uls_f32OperRampRate_XpmS_f32OperRampValue_Uls_f32RampSrlComSvcDft_Cnt_lgcDiagStsDiagRmpActive_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32OutputRampMult_Uls_f32RampDwnStatusComplete_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32Rte_Call_StOpCtrl_Per1_CP0_CheckpointReachedRte_Call_StOpCtrl_Per1_CP1_CheckpointReachedOutputRampMult_Uls_f32RampDwnStatusComplete_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32Rte_Call_StOpCtrl_Per1_CP0_CheckpointReachedRte_Call_StOpCtrl_Per1_CP1_CheckpointReachedP/FCPU Cycles
1DiagRampRate_XpmS_f32 = min0.00010.10.00040.1000.10.22317890.10.3395115645458520.62352141----------------------------------0.100.10.00041900.10.11900.10.10.11111--

2DiagRampRate_XpmS_f32 = max0.50.20.0010.2110.20.58974560.20.621331232139630.543281022654----------------------------------0.200.20.5102000.20.2102000.20.20.21111--

3DiagRampRate_XpmS_f32 = pos0.00020.30.0020.9000.30.0073521230.30.543255145127410.854103125----------------------------------0.5500.550.0021013000.30.91013000.30.90.91111--

4DiagRampValue_Uls_f32 = min0.4500.00120.6110.40.065641560.40.24863251451230.3254845412----------------------------------0100.54300.404300.4001111--

5DiagRampValue_Uls_f32 = max0.210.00230.7000.50.210001530.50.19567851454560.156312369----------------------------------0.700.70.002310860.50.710860.50.70.71111--

6DiagRampValue_Uls_f32 = pos0.00030.20.00010.2110.60.24563210.60.35641457857890.2587362852----------------------------------0.200.20.56000.60.26000.60.20.21111--

7OperRampRate_XpmS_f32 = min0.0120.40.00010.1000.90.512547590.40.4874144417530.73467325125----------------------------------0.887500.88750.000132380000.90.132380000.90.10.11111--

8OperRampRate_XpmS_f32 = max0.00120.50.0050.8110.50.067851580.80.52311052569510.9378785741----------------------------------0.500.50.578300.50.578300.50.50.51111--

9OperRampRate_XpmS_f32 = pos0.0080.60.0040.9000.60.00912541540.90.652210236414520.57858741256----------------------------------0.900.90.004739750.60.9739750.60.90.91111--

10OperRampValue_Uls_f32 = min0.30.70.0020110.70.008454510.70.78910254526520.476532589----------------------------------0.700.70.532300.70.732300.70.70.71111--

11OperRampValue_Uls_f32 = max0.20.80.0031000.20.0077857540.330.6675278978514520.367895454----------------------------------0.36240601503759400.3624060150375940.0039522660.219522660.2111111--

12OperRampValue_Uls_f32 = pos0.10.90.0040.9110.20.31253650.210.0027505212536520.986395125----------------------------------0.900.90.59310.20.99310.20.90.91111--

13RampSrlComSvcDft_Cnt_lgc = True0.410.00060.2100.50.135412540.00120.01210231644857450.14762515365----------------------------------0.200.20.551300.50.251300.50.20.21111--

14RampSrlComSvcDft_Cnt_lgc = False0.00060.10.00040.3010.60.49529540.220.4596598541276890.2578102214----------------------------------0.47154861944777900.4715486194477790.00061008330.60.11008330.60.10.11111--

15DiagStsDiagRampActive_Cnt_lgc = True0.00090.20.00020.6010.40.53699510.660.002156445678515620.35782100785----------------------------------0.200.20.0009982220.40.2982220.40.20.21111--

16DiagStsDiagRampActive_Cnt_lgc = False0.00140.30.00010.5100.90.0061251590.120.2562141516540.4731044212----------------------------------0.500.50.5104200.90.5104200.90.50.51111--

17PrevOutputRampMult_Uls_M_f32 = min0.00630.40.00020.80000.28543540.540.37851254514520.5873144564----------------------------------0.112800.11280.0002142400000.8142400000.80.81111--

18PrevOutputRampMult_Uls_M_f32 = max0.00880.50.00060.691110.3125412350.0050.142398596536520.6876621145----------------------------------0.500.50.5619110.5619110.50.51111--

19PrevOutputRampMult_Uls_M_f32 = pos0.00010.60.0010.9000.30.4785440000.0230.143312512525410.74763620144----------------------------------0.44400.4440.0016186000.30.96186000.30.90.91111--

20PrevRate_XpmS_M_f32 = min0.00020.70.00020.1110.20.000165233250.20.9121445645640.8236540125----------------------------------0.700.70.53800.20.73800.20.70.71111--

21PrevRate_XpmS_M_f32 = max0.00030.80.01250.5000.50.525812540.10.784561254589840.92476302125----------------------------------0.500.50.012530000.50.530000.50.50.51111--

22PrevRate_XpmS_M_f32 = pos0.00040.90.00060110.70.0612698870.30.2256962175923410.1692522120----------------------------------0.900.90.552000.70.952000.70.90.91111--

23RampState_M_Str.StartTime_mS_u32 = min0.00050.10.000110.7000.60.090310.40.3965262015237890.25838914----------------------------------0.60154015401540200.6015401540154020.00011879090.60.7879090.60.70.71111--

24RampState_M_Str.StartTime_mS_u32 = max0.00060.20.000130.8110.90.0842949672956540.50.11458333513210.35782752147----------------------------------0.200.20.575010.90.275010.90.20.21111--

25RampState_M_Str.StartTime_mS_u32 = pos0.00070.30.00020.9000.70.0720007980.660.2512549546528970.42876750125----------------------------------0.72500.7250.000274810000.70.974810000.70.90.91111--

26RampState_M_Str.Duration_mS_u32 = min0.00080.40.000110.5110.80.064500.990.1365102133744580.5871023954----------------------------------0.400.40.5102100.80.4102100.80.40.41111--

27RampState_M_Str.Duration_mS_u32 = max0.00090.50.000210.6000.90.5125442949672950.540.21453310296580.638965159----------------------------------0.86659663865546200.8665966386554620.0002196314280.90.696314280.90.60.61111--

28RampState_M_Str.Duration_mS_u32 = pos0.0010.60.000250.7110.10.47851000.330.325878510014520.7283960654----------------------------------0.600.60.595810.10.695810.10.60.61111--

29RampState_M_Str.StartVal_Uls_f32 = min0.00110.70.00080.2000.20.365545600.423141245814580.837695789----------------------------------0.200.20.00089300.20.29300.20.20.21111--

30RampState_M_Str.StartVal_Uls_f32 = max0.00120.80.0010.6110.30.22521510.556445496532580.9258620412----------------------------------0.800.80.561810.30.861810.30.80.81111--

31RampState_M_Str.StartVal_Uls_f32 = pos0.00130.90.0020.8000.40.115932450.250.656785200145230.158721035321----------------------------------0.800.80.00210332000.40.810332000.40.80.81111--

32RampState_M_Str.EndVal_Uls_f32 = min0.001400.0030.5110.503578970.5407859651095200.2576122456----------------------------------0100.512010.5012010.5001111--

33RampState_M_Str.EndVal_Uls_f32 = max0.00150.20.0040.6000.60.17594560.661423754410540.376745951----------------------------------0.600.60.0044300.60.64300.60.60.61111--

34RampState_M_Str.EndVal_Uls_f32 = pos0.00160.60.00060.7110.70.21531220.980.3333120140440.42653102----------------------------------0.600.60.55100.70.65100.70.60.61111--

35PrevTargetRampMult_Uls_M_f32 = min0.001400.0030.5110.503578970.540.47859651095200122456----------------------------------0100.512010.5012010.5001111--

36PrevTargetRampMult_Uls_M_f32 = max0.00150.20.0040.6000.60.17594560.660.542375441054145951----------------------------------0.600.60.0044300.60.64300.60.60.61111--

37PrevTargetRampMult_Uls_M_f32 = pos0.00160.60.00060.7110.70.21531220.980.633120140440.553102----------------------------------0.600.60.55100.70.65100.70.60.61111--

38Rte_Call_SystemTime_GetSystemTime_mS_u32 = min0.00210.80.000450.8000.20.3325632550.450.7121459541000.25760551----------------------------------0.4480120030007500.448012003000750.00045429496729413330.20.8429496729413330.20.80.82111--

39Rte_Call_SystemTime_GetSystemTime_mS_u32 = max0.00990.50.000220.9110.60.49657410.120.52112477852000.3767429496729545----------------------------------0.500.50.5429496729300.60.5429496729300.60.50.51111--

40Rte_Call_SystemTime_GetSystemTime_mS_u32 = pos0.01220.90.000210.1000.90.5219630.780.61022145151220.42640025----------------------------------0.89474927802572900.8947492780257290.0002139838090.90.139838090.90.10.11111--

41All Min0.000100.000100000.0001000000000012----------------------------------0100.00010000000000111--

42All Max0.510.00511110.5429496729542949672951142949672954294967295429496729542949672951429496729566----------------------------------1010.54294967295429496729511429496729542949672951110111--






































































































































































































































































































































































































































































































































































































Sheet 6: StOpCtrl_Per1() P

StOpCtrl_Per1TS--





















































PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PI/PFunc Stub
Return Val
Func Stub
Return Val
O/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PO/PFunc 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
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 StatusPerf. MetricsComments
Vector NumberVector DescriptionDiagRampRate_XpmS_f32DiagRampValue_Uls_f32OperRampRate_XpmS_f32OperRampValue_Uls_f32RampSrlComSvcDft_Cnt_lgcDiagStsDiagRmpActive_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32OutputRampMult_Uls_f32RampDwnStatusComplete_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32Rte_Call_StOpCtrl_Per1_CP0_CheckpointReachedRte_Call_StOpCtrl_Per1_CP1_CheckpointReachedOutputRampMult_Uls_f32RampDwnStatusComplete_Cnt_lgcPrevOutputRampMult_Uls_M_f32PrevRate_XpmS_M_f32RampState_M_Str.StartTime_mS_u32RampState_M_Str.Duration_mS_u32RampState_M_Str.StartVal_Uls_f32RampState_M_Str.EndVal_Uls_f32rampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32PrevTargetRampMult_Uls_M_f32Rte_Call_SystemTime_GetSystemTime_mS_u32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32Rte_Call_StOpCtrl_Per1_CP0_CheckpointReachedRte_Call_StOpCtrl_Per1_CP1_CheckpointReachedP/FCPU Cycles
1(FALSE == DiagStsF1Act_Cnt_T_lgc)=>True,
(TRUE == RampSrlComSvcDft_Cnt_T_lgc)=>True,
((DiffOutputRampMult_T_f32 > FLT_EPSILON) || (DiffRate_T_f32 > FLT_EPSILON))=>True
(NewOutputRampMult_T_f32 < FLT_EPSILON)=>False
0.40.30.00020.3100.60.2545448018897654564054231----------------------------------0.300.30.55200.60.35200.60.30.31111--

2(FALSE == DiagStsF1Act_Cnt_T_lgc)=>False,
(TRUE == RampSrlComSvcDft_Cnt_T_lgc)=>False,
((DiffOutputRampMult_T_f32 > FLT_EPSILON) || (DiffRate_T_f32 > FLT_EPSILON))=>False
(NewOutputRampMult_T_f32 < FLT_EPSILON)=>True
0.000100.000100100.0001000000000012----------------------------------0100.00010000000000111--






































































































































































































































































































































































































































































































































































































Sheet 7: RampLib




















Nexteer EPS Unit Test Tool






Rev:2.7b






Test Setup


Number Of Calibrations0


Number Of Calibration Sets0


Calibration Sheet















Function(s) Under TestVariablesFunction Stubs
Function NameTestTypeTest VectorsSetReadFunction Name
RampLibP2rampState_T_Str.StartTime_mS_u32
Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32
RampLibB17rampState_T_Str.Duration_mS_u32




rampState_T_Str.StartVal_Uls_f32




rampState_T_Str.EndVal_Uls_f32


Sheet 8: RampLib() B

RampLibTS--









BI/PI/PI/PI/PFunc Stub
Return Val
Function
Return Val
Func Stub
Counter
Expected
Return Val
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionrampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32RampLibRte_Call_SystemTime_DtrmnElapsedTime_mS_u32RampLibRte_Call_SystemTime_DtrmnElapsedTime_mS_u32P/FCPU Cycles
1rampState_T_Str.StartTime_mS_u32 = min020000.10.91534----0.71361--

2rampState_T_Str.StartTime_mS_u32 = max42949672951000.20.84000----0.81--

3rampState_T_Str.StartTime_mS_u32 = pos564780.30.7564----0.71--

4rampState_T_Str.Duration_mS_u32 = min5400.40.6458----0.61--

5rampState_T_Str.Duration_mS_u32 = max125442949672950.50.5125----0.51--

6rampState_T_Str.Duration_mS_u32 = pos210450.60.4147----0.41--

7rampState_T_Str.StartVal_Uls_f32 = min320125400.3369----0.08827751196172251--

8rampState_T_Str.StartVal_Uls_f32 = max45863510.2745----0.21--

9rampState_T_Str.StartVal_Uls_f32 = pos7899510.80.1321----0.5637223974763411--

10rampState_T_Str.EndVal_Uls_f32 = min2131480.50452----01--

11rampState_T_Str.EndVal_Uls_f32 = max563590.111459----11--

12rampState_T_Str.EndVal_Uls_f32 = pos57450.50.5325----0.51--

13Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32 = min125432100.60.40----0.61--

14Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32 = max32561000.70.34294967295----0.31--

15Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32 = pos8521200.90.23000----0.21--

16All Min00000----01--

17All Max42949672954294967295114294967295----11--














































































































































Sheet 9: RampLib() P

RampLibTS--









PI/PI/PI/PI/PFunc Stub
Return Val
Function
Return Val
Func Stub
Counter
Expected
Return Val
Expected
Stub Cnt
Test StatusPerf. MetricsComments
Vector NumberVector DescriptionrampState_T_Str.StartTime_mS_u32rampState_T_Str.Duration_mS_u32rampState_T_Str.StartVal_Uls_f32rampState_T_Str.EndVal_Uls_f32Rte_Call_SystemTime_DtrmnElapsedTime_mS_u32RampLibRte_Call_SystemTime_DtrmnElapsedTime_mS_u32RampLibRte_Call_SystemTime_DtrmnElapsedTime_mS_u32P/FCPU Cycles
1(ElapsedRamp_mS_T_u32 >= rampState_T_Str.Duration_mS_u32)=>True15615340.70.92000----0.91--

2(ElapsedRamp_mS_T_u32 >= rampState_T_Str.Duration_mS_u32)=>False2240000.90.8100----0.89751--