Sei sulla pagina 1di 46

SDD_SF_ArithLogic.

slx
Design Description
The MathWorks, Inc.
SDD_SF_ArithLogic.slx

SDD_SF_ArithLogic.slx: Design Description


The MathWorks, Inc.

Publication date 25-Aug-2016 23:52:51


Copyright © 2016
For Internal Distribution Only

2
Table of Contents
1. Model Version ................................................................................................................ 1
2. Root System ................................................................................................................... 2
Description ................................................................................................................. 2
Blocks ....................................................................................................................... 2
Parameters ......................................................................................................... 2
Block Execution Order ......................................................................................... 5
3. Subsystems ..................................................................................................................... 7
Aux_Switch ................................................................................................................ 7
Blocks ............................................................................................................... 7
State Charts ...................................................................................................... 10
4. System Design Variables ................................................................................................. 16
Design Variable Summary ........................................................................................... 16
Design Variable Details .............................................................................................. 17
5. System Model Configuration ............................................................................................ 23

iii
List of Figures
2.1. SDD_SF_ArithLogic ...................................................................................................... 2
3.1. SDD_SF_ArithLogic/Aux_Switch .................................................................................... 7

iv
List of Tables
2.1. "Data Type Conversion" Parameters ................................................................................. 2
2.2. "Data Type Conversion1" Parameters ................................................................................ 3
2.3. "Data Type Conversion2" Parameters ................................................................................ 3
2.4. "Data Type Conversion3" Parameters ................................................................................ 4
2.5. "Data Type Conversion4" Parameters ................................................................................ 4
2.6. "Demux" Parameters ...................................................................................................... 5
2.7. "From Workspace" Parameters ........................................................................................ 5
3.1. "cmd_RC" Parameters .................................................................................................... 7
3.2. "raw_Joystick" Parameters .............................................................................................. 8
3.3. "raw_Switch" Parameters ................................................................................................ 8
3.4. "state_Joystick" Parameters ............................................................................................. 8
3.5. "state_RC" Parameters ................................................................................................... 9
3.6. "state_Switch" Parameters ............................................................................................... 9
3.7. Data - ACTIVE ........................................................................................................... 13
3.8. Data - CD_DEBOUNCE_ACTIVE ................................................................................. 13
3.9. Data - CD_DEBOUNCE_INACTIVE ............................................................................. 13
3.10. Data - CD_FUNCTION .............................................................................................. 13
3.11. Data - CD_SWITCH_MASK ....................................................................................... 13
3.12. Data - cmd_RC ......................................................................................................... 14
3.13. Data - debounceCount ................................................................................................ 14
3.14. Data - eeJoystickState ................................................................................................. 14
3.15. Data - INACTIVE ..................................................................................................... 14
3.16. Data - NON_FUNCTIONAL ....................................................................................... 14
3.17. Data - NORMAL ....................................................................................................... 14
3.18. Data - raw_Joystick .................................................................................................... 14
3.19. Data - raw_Switch ..................................................................................................... 14
3.20. Data - state_Joystick ................................................................................................... 14
3.21. Data - state_RC ......................................................................................................... 14
3.22. Data - state_Switch .................................................................................................... 15
4.1. Design Variables ......................................................................................................... 16
4.2. ACTIVE .................................................................................................................... 17
4.3. ACTIVE.CoderInfo ...................................................................................................... 17
4.4. ACTIVE.CoderInfo.CustomAttributes ............................................................................. 17
4.5. INACTIVE ................................................................................................................. 18
4.6. INACTIVE.CoderInfo .................................................................................................. 19
4.7. INACTIVE.CoderInfo.CustomAttributes .......................................................................... 19
4.8. NON_FUNCTIONAL .................................................................................................. 19
4.9. NON_FUNCTIONAL.CoderInfo .................................................................................... 19
4.10. NON_FUNCTIONAL.CoderInfo.CustomAttributes .......................................................... 20
4.11. NORMAL ................................................................................................................ 20
4.12. NORMAL.CoderInfo .................................................................................................. 20
4.13. NORMAL.CoderInfo.CustomAttributes ......................................................................... 20
4.14. eeJoystickState .......................................................................................................... 21
4.15. eeJoystickState.CoderInfo ............................................................................................ 21
4.16. eeJoystickState.CoderInfo.CustomAttributes ................................................................... 21
4.17. rawData .................................................................................................................... 22
5.1. SDD_SF_ArithLogic Configuration Set ........................................................................... 23
5.2. SDD_SF_ArithLogic Configuration Set.Components(1) ...................................................... 23
5.3. SDD_SF_ArithLogic Configuration Set.Components(2) ...................................................... 24
5.4. SDD_SF_ArithLogic Configuration Set.Components(3) ...................................................... 25
5.5. SDD_SF_ArithLogic Configuration Set.Components(4) ...................................................... 26

v
SDD_SF_ArithLogic.slx

5.6. SDD_SF_ArithLogic Configuration Set.Components(5) ...................................................... 29


5.7. SDD_SF_ArithLogic Configuration Set.Components(6) ...................................................... 30
5.8. SDD_SF_ArithLogic Configuration Set.Components(7) ...................................................... 31
5.9. SDD_SF_ArithLogic Configuration Set.Components(8) ...................................................... 32
5.10. SDD_SF_ArithLogic Configuration Set.Components(9) .................................................... 34
5.11. SDD_SF_ArithLogic Configuration Set.Components(1).SampleTimeProperty ........................ 35
5.12. SDD_SF_ArithLogic Configuration Set.Components(8).CodeCoverageSettings ...................... 35
5.13. SDD_SF_ArithLogic Configuration Set.Components(8).Components(1) ............................... 35
5.14. SDD_SF_ArithLogic Configuration Set.Components(8).Components(2) ............................... 37
5.15. SDD_SF_ArithLogic Configuration Set.Components(8).Components(2).ReplacementTypes ..... 40

vi
Chapter 1. Model Version
Version: 1.573

Last modified: Thu Jan 07 11:41:25 2016

Checksum: 592921618 3116394115 2135701523 994888801

1
Chapter 2. Root System
Table of Contents
Description ......................................................................................................................... 2
Blocks ............................................................................................................................... 2
Parameters ................................................................................................................. 2
Block Execution Order ................................................................................................. 5

Figure 2.1. SDD_SF_ArithLogic

uint8
Convert raw_Switch
double

double
uint8
Convert state_Joystick

double

double
rawData'
uint32 uint8
double Convert raw_Joystick state_Switch
From state_Switch
Workspace Terminator1

double

uint8
Convert state_RC

double

uint32
Convert cmd_RC

Aux_Switch

Terminator

Simulink Report Generator (SDD Report) Test Model


Copyright 2009-2011 The MathWorks, Inc. SDD_SF_ArithLogic

Description
Simulink Report Generator (SDD Report) Test Model

Blocks
Parameters

"Data Type Conversion" (DataTypeConversion)


Table 2.1. "Data Type Conversion" Parameters
Parameter Value
Output minimum []

2
Root System

Parameter Value
Output maximum []
Output data type Inherit: Inherit via back propagation
Lock output data type se- off
tting against changes by
the fixed-point tools
Input and output to have Real World Value (RWV)
equal
Integer rounding mode Floor
Saturate on integer overf- off
low
Sample time (-1 for inhe- -1
rited)

"Data Type Conversion1" (DataTypeConversion)


Table 2.2. "Data Type Conversion1" Parameters
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propagation
Lock output data type se- off
tting against changes by
the fixed-point tools
Input and output to have Real World Value (RWV)
equal
Integer rounding mode Floor
Saturate on integer overf- off
low
Sample time (-1 for inhe- -1
rited)

"Data Type Conversion2" (DataTypeConversion)


Table 2.3. "Data Type Conversion2" Parameters
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propagation

3
Root System

Parameter Value
Lock output data type se- off
tting against changes by
the fixed-point tools
Input and output to have Real World Value (RWV)
equal
Integer rounding mode Floor
Saturate on integer overf- off
low
Sample time (-1 for inhe- -1
rited)

"Data Type Conversion3" (DataTypeConversion)


Table 2.4. "Data Type Conversion3" Parameters
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propagation
Lock output data type se- off
tting against changes by
the fixed-point tools
Input and output to have Real World Value (RWV)
equal
Integer rounding mode Floor
Saturate on integer overf- off
low
Sample time (-1 for inhe- -1
rited)

"Data Type Conversion4" (DataTypeConversion)


Table 2.5. "Data Type Conversion4" Parameters
Parameter Value
Output minimum []
Output maximum []
Output data type Inherit: Inherit via back propagation
Lock output data type se- off
tting against changes by
the fixed-point tools

4
Root System

Parameter Value
Input and output to have Real World Value (RWV)
equal
Integer rounding mode Floor
Saturate on integer overf- off
low
Sample time (-1 for inhe- -1
rited)

"Demux" (Demux)
Table 2.6. "Demux" Parameters
Parameter Value
Number of outputs 6
Display option bar
Bus selection mode off

"From Workspace" (FromWorkspace)


Table 2.7. "From Workspace" Parameters
Parameter Value
Data rawData'
Output data type Inherit: auto
Sample time (-1 for inhe- 0
rited)
Interpolate data on
Enable zero-crossing det- on
ection
Form output after final Extrapolation
data value by

Block Execution Order


1. From Workspace [5] (FromWorkspace)
2. Data Type Conversion [2] (DataTypeConversion)
3. Data Type Conversion1 [3] (DataTypeConversion)
4. Data Type Conversion2 [3] (DataTypeConversion)
5. Data Type Conversion3 [4] (DataTypeConversion)
6. Data Type Conversion4 [4] (DataTypeConversion)
7. Aux_Switch_State

5
Root System

1. SFunction (S-Function)

6
Chapter 3. Subsystems
Table of Contents
Aux_Switch ........................................................................................................................ 7
Blocks ....................................................................................................................... 7
State Charts .............................................................................................................. 10

Aux_Switch
Figure 3.1. SDD_SF_ArithLogic/Aux_Switch

uint8
1 raw_Switch
raw_Switch
raw_Switch

uint8
2 state_Joystick
state_Joystick
state_Joystick

uint32 uint8
3 raw_Joystick state_Switch 1
raw_Joystick state_Switch
raw_Joystick state_Switch

uint8
4 state_RC
state_RC
state_RC

uint32
5 cmd_RC
cmd_RC
cmd_RC

Aux_Switch_State

Blocks
Parameters

"cmd_RC" (Inport)

Table 3.1. "cmd_RC" Parameters
Parameter Value
Port number 5

7
Subsystems

Parameter Value
Port dimensions (-1 for -1
inherited)
Sample time (-1 for inhe- -1
rited)
Minimum []
Maximum []
Data type uint32

"raw_Joystick" (Inport)

Table 3.2. "raw_Joystick" Parameters
Parameter Value
Port number 3
Port dimensions (-1 for -1
inherited)
Sample time (-1 for inhe- -1
rited)
Minimum []
Maximum []
Data type uint32

"raw_Switch" (Inport)

Table 3.3. "raw_Switch" Parameters
Parameter Value
Port number 1
Port dimensions (-1 for -1
inherited)
Sample time (-1 for inhe- -1
rited)
Minimum []
Maximum []
Data type Inherit: auto

"state_Joystick" (Inport)

Table 3.4. "state_Joystick" Parameters
Parameter Value
Port number 2

8
Subsystems

Parameter Value
Port dimensions (-1 for -1
inherited)
Sample time (-1 for inhe- -1
rited)
Minimum []
Maximum []
Data type Inherit: auto

"state_RC" (Inport)

Table 3.5. "state_RC" Parameters

Parameter Value
Port number 4
Port dimensions (-1 for -1
inherited)
Sample time (-1 for inhe- -1
rited)
Minimum []
Maximum []
Data type Inherit: auto

"state_Switch" (Outport)

Table 3.6. "state_Switch" Parameters

Parameter Value
Port number 1
Icon display Port number
Minimum []
Maximum []
Data type Inherit: auto
Lock output data type se- off
tting against changes by
the fixed-point tools
Output as nonvirtual bus off
in parent model
Unit (e.g., m, m/s^2, N*- inherit
m)

9
Subsystems

Parameter Value
Port dimensions (-1 for -1
inherited)
Variable-size signal Inherit
Sample time (-1 for inhe- -1
rited)
Ensure outport is virtual off
Source of initial output Dialog
value
Output when disabled held
Initial output []

State Charts

Chart
1

NON_FUNCTIONAL
en:state_Switch = INACTIVE;

[(CD_FUNCTION != NON_FUNCTIONAL)...
&& (((eeJoystickState == ACTIVE) && (state_Joystick == NORMAL))...
|| (eeJoystickState != ACTIVE))] [((eeJoystickState == ACTIVE) && (state_Joystick != NORMAL))]

FUNCTIONAL

3 2 4

NON_FUNCTIONAL [11]
FUNCTIONAL [11]
[(CD_FUNCTION != NON_FUNCTIONAL)......
[((eeJoystickState == ACTIVE) && (state_Joystick != NORMAL))]

10
Subsystems

States
OR State - NON_FUNCTIONAL

NON_FUNCTIONAL
en:state_Switch = INACTIVE;

OR State - FUNCTIONAL
3

FUNCTIONAL

[((eeJoystickState != ACTIVE ) && (state_RC != NORMAL) && (raw_Switch == ACTIVE))...


|| ((eeJoystickState == ACTIVE) && (state_Joystick == NORMAL) && (state_RC != NORMAL) && ((raw_Joystick & CD_SWITCH_MASK) == ACTIVE))...
|| ((state_RC == NORMAL) && ((cmd_RC & CD_SWITCH_MASK ) == ACTIVE))] ACTIVE
INACTIVE

2 [((eeJoystickState != ACTIVE ) && (state_RC != NORMAL) && (raw_Switch != ACTIVE))...


|| ((eeJoystickState == ACTIVE) && (state_Joystick == NORMAL) && (state_RC != NORMAL) && ((raw_Joystick & CD_SWITCH_MASK) != ACTIVE))...
1
|| ((state_RC == NORMAL) && ((cmd_RC & CD_SWITCH_MASK) != ACTIVE))]

ACTIVE [11]
INACTIVE [12]
[((eeJoystickState != ACTIVE ) && (state_RC != NORMAL) && (raw_Switch == ACTIVE))......
[((eeJoystickState != ACTIVE ) && (state_RC != NORMAL) && (raw_Switch != ACTIVE))......

OR State - ACTIVE
3

ACTIVE

DEBOUNCE [(debounceCount >= CD_DEBOUNCE_ACTIVE)... ACTIVE


en:debounceCount =0; || (state_Switch == ACTIVE)] en:state_Switch = ACTIVE;
du:debounceCount++;

1 2

11
Subsystems

DEBOUNCE [12]
ACTIVE [12]
[(debounceCount >= CD_DEBOUNCE_ACTIVE)......

OR State - INACTIVE
3

INACTIVE

DEBOUNCE [(debounceCount >= CD_DEBOUNCE_INACTIVE)... INACTIVE


en:debounceCount =0; || (state_Switch == INACTIVE)] en:state_Switch = INACTIVE;
du:debounceCount++;
1 2

DEBOUNCE [13]
INACTIVE [13]
[(debounceCount >= CD_DEBOUNCE_INACTIVE)......

OR State - DEBOUNCE

DEBOUNCE
en:debounceCount =0;
du:debounceCount++;

OR State - ACTIVE

ACTIVE
en:state_Switch = ACTIVE;

12
Subsystems

OR State - DEBOUNCE

DEBOUNCE
en:debounceCount =0;
du:debounceCount++;

OR State - INACTIVE

INACTIVE
en:state_Switch = INACTIVE;

Data
Table 3.7. Data - ACTIVE
Scope Parameter
Data Type uint8

Table 3.8. Data - CD_DEBOUNCE_ACTIVE
Scope Parameter
Data Type uint16

Table 3.9. Data - CD_DEBOUNCE_INACTIVE
Scope Parameter
Data Type uint16

Table 3.10. Data - CD_FUNCTION
Scope Parameter
Data Type uint8

Table 3.11. Data - CD_SWITCH_MASK
Scope Parameter

13
Subsystems

Data Type uint32

Table 3.12. Data - cmd_RC
Scope Input
Data Type uint32

Table 3.13. Data - debounceCount
Scope Local
Data Type uint16

Table 3.14. Data - eeJoystickState
Scope Parameter
Data Type uint8

Table 3.15. Data - INACTIVE
Scope Parameter
Data Type uint8

Table 3.16. Data - NON_FUNCTIONAL
Scope Parameter
Data Type uint8

Table 3.17. Data - NORMAL
Scope Parameter
Data Type uint8

Table 3.18. Data - raw_Joystick
Scope Input
Data Type uint32

Table 3.19. Data - raw_Switch
Scope Input
Data Type uint8

Table 3.20. Data - state_Joystick
Scope Input
Data Type uint8

Table 3.21. Data - state_RC
Scope Input

14
Subsystems

Data Type uint8

Table 3.22. Data - state_Switch
Scope Output
Data Type uint8

15
Chapter 4. System Design Variables

Table of Contents
Design Variable Summary ................................................................................................... 16
Design Variable Details ...................................................................................................... 17

Design Variable Summary


Table 4.1. Design Variables
Variable Parent Blocks Size Bytes Class Value
Name
ACTIVE Aux_Switch_State [7] 1x1 1 uint8 1
CD_DEB- Aux_Switch_State [7] 1x1 2 uint16 100
OUNCE_-
ACTIVE
CD_DEB- Aux_Switch_State [7] 1x1 2 uint16 50
OUNCE_I-
NACTIVE
CD_FUN- Aux_Switch_State [7] 1x1 1 uint8 0
CTION
CD_SWIT- Aux_Switch_State [7] 1x1 4 uint32 2
CH_MASK
INACTIVE Aux_Switch_State [7] 1x1 1 uint8 0
NON_FU- Aux_Switch_State [7] 1x1 1 uint8 255
NCTION-
AL
NORMAL Aux_Switch_State [7] 1x1 1 uint8 8
eeJoystick- Aux_Switch_State [7] 1x1 auto 1
State
rawData From Workspace [5] 7x22 1232 double [0 20 20 21.01 21.01 25
From Workspace [5] 25 25.51 25.51 36.3 36-
.3 40 40 65 65 66.01 66-
.01 70 70 73.8 73.8 10-
0;
0000000000000
000000000;
8888888888888
888880000;
0022220000440
022222200;
0000000000000
000000000;
0000000000000
000000000;

16
System Design Variables

Variable Parent Blocks Size Bytes Class Value


Name
0000111100000
000110000]

Design Variable Details

Table 4.2. ACTIVE
Property Value
Value 1
CoderInfo ACTIVE.CoderInfo [17]
Description  
DataType uint8
Min  
Max  
Unit  
Complexity real
Dimensions [1 1 ]

Table 4.3. ACTIVE [17].CoderInfo
Property Value
StorageClass Auto
TypeQualifier  
Alias  
Alignment -1
CustomStorageClass Default
CustomAttributes ACTIVE.CoderInfo.CustomAttributes [17]

Table 4.4. ACTIVE.CoderInfo [17].CustomAttributes
Property Value
ConcurrentAccess false

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

17
System Design Variables

CD_DEBOUNCE_ACTIVE.  100

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

CD_DEBOUNCE_INACTIVE.  50

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

CD_FUNCTION.  0

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

CD_SWITCH_MASK.  2

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

Table 4.5. INACTIVE
Property Value
Value 0
CoderInfo INACTIVE.CoderInfo [18]
Description  
DataType uint8
Min  
Max  
Unit  
Complexity real
Dimensions [1 1 ]

18
System Design Variables

Table 4.6. INACTIVE [18].CoderInfo
Property Value
StorageClass Auto
TypeQualifier  
Alias  
Alignment -1
CustomStorageClass Default
CustomAttributes INACTIVE.CoderInfo.CustomAttributes [19]

Table 4.7. INACTIVE.CoderInfo [18].CustomAttributes
Property Value
ConcurrentAccess false

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

Table 4.8. NON_FUNCTIONAL
Property Value
Value 255
CoderInfo NON_FUNCTIONAL.CoderInfo [19]
Description  
DataType uint8
Min  
Max  
Unit  
Complexity real
Dimensions [1 1 ]

Table 4.9. NON_FUNCTIONAL [19].CoderInfo
Property Value
StorageClass Auto
TypeQualifier  
Alias  
Alignment -1

19
System Design Variables

CustomStorageClass Default
CustomAttributes NON_FUNCTIONAL.CoderInfo.CustomAttribut-
es [20]

Table 4.10. NON_FUNCTIONAL.CoderInfo [19].CustomAttributes
Property Value
ConcurrentAccess false

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

Table 4.11. NORMAL
Property Value
Value 8
CoderInfo NORMAL.CoderInfo [20]
Description  
DataType uint8
Min  
Max  
Unit  
Complexity real
Dimensions [1 1 ]

Table 4.12. NORMAL [20].CoderInfo
Property Value
StorageClass Auto
TypeQualifier  
Alias  
Alignment -1
CustomStorageClass Default
CustomAttributes NORMAL.CoderInfo.CustomAttributes [20]

Table 4.13. NORMAL.CoderInfo [20].CustomAttributes
Property Value

20
System Design Variables

ConcurrentAccess false

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

Table 4.14. eeJoystickState
Property Value
Value 1
CoderInfo eeJoystickState.CoderInfo [21]
Description  
DataType auto
Min  
Max  
Unit  
Complexity real
Dimensions [1 1 ]

Table 4.15. eeJoystickState [21].CoderInfo
Property Value
StorageClass Auto
TypeQualifier  
Alias  
Alignment -1
CustomStorageClass Default
CustomAttributes eeJoystickState.CoderInfo.CustomAttributes-
[21]

Table 4.16. eeJoystickState.CoderInfo [21].CustomAttributes
Property Value
ConcurrentAccess false

Used by Blocks:
• SDD_SF_ArithLogic/Aux_Switch/Aux_Switch_State [7]

Resolved in: model workspace (SDD_SF_ArithLogic)

21
System Design Variables

Table 4.17. rawData
0 20 20 21- 21- 25 25 25- 25- 36- 36- 40 40 65 65 66- 66- 70 70 73- 73- 100
.0- .0- .5- .5- .3- .3- .0- .0- .8- .8-
1- 1- 1- 1- 0- 0- 1- 1- 0- 0-
00 00 00 00 00 00 00 00 00 00
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 0 0 0 0
0 0 2 2 2 2 0 0 0 0 4 4 0 0 2 2 2 2 2 2 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0

Used by Blocks:
• SDD_SF_ArithLogic/From Workspace [5]

Resolved in: model workspace (SDD_SF_ArithLogic)

22
Chapter 5. System Model Configuration
Source: Model
Source Name: SDD_SF_ArithLogic

Table 5.1. SDD_SF_ArithLogic Configuration Set


Property Value
Description  
Components [SDD_SF_ArithLogic Configuration Set.Compon-
ents(1) [23], SDD_SF_ArithLogic Configura-
tion Set.Components(2) [24], SDD_SF_Arith-
Logic Configuration Set.Components(3) [25],
SDD_SF_ArithLogic Configuration Set.Compon-
ents(4) [26], SDD_SF_ArithLogic Configura-
tion Set.Components(5) [29], SDD_SF_Arith-
Logic Configuration Set.Components(6) [30],
SDD_SF_ArithLogic Configuration Set.Compone-
nts(7) [31], SDD_SF_ArithLogic Configurati-
on Set.Components(8) [32], SDD_SF_ArithL-
ogic Configuration Set.Components(9) [33]]
Name Configuration
SimulationMode normal
ConfigType Model

Table 5.2. SDD_SF_ArithLogic Configuration Set.Components [23](1)


Property Value
Name Solver
Description  
Components  
StartTime 0.0
StopTime 100
AbsTol auto
FixedStep 0.01
InitialStep auto
MaxNumMinSteps -1
MaxOrder 5
ZcThreshold auto
ConsecutiveZCsStepRelTol 10*128*eps
MaxConsecutiveZCs 1000
ExtrapolationOrder 4
NumberNewtonIterations 1
MaxStep auto

23
System Model Configuration

MinStep auto
MaxConsecutiveMinStep 1
RelTol 1e-3
SolverMode SingleTasking
EnableMultiTasking off
EnableConcurrentExecution off
ConcurrentTasks off
Solver FixedStepDiscrete
SolverName FixedStepDiscrete
SolverType Fixed-step
SolverJacobianMethodControl auto
ShapePreserveControl DisableAll
ZeroCrossControl UseLocalSettings
ZeroCrossAlgorithm Nonadaptive
SolverResetMethod Fast
PositivePriorityOrder off
AutoInsertRateTranBlk off
SampleTimeConstraint Unconstrained
InsertRTBMode Whenever possible
SampleTimeProperty SDD_SF_ArithLogic Configuration Set.Compone-
nts(1).SampleTimeProperty [35]

Table 5.3. SDD_SF_ArithLogic Configuration Set.Components [23](2)


Property Value
Name Data Import/Export
Description  
Components  
Decimation 1
ExternalInput [t, u]
FinalStateName xFinal
InitialState xInitial
LimitDataPoints on
MaxDataPoints 1000
LoadExternalInput off
LoadInitialState off
SaveFinalState off
SaveCompleteFinalSimState off
SaveFormat Array
SaveOutput off

24
System Model Configuration

SaveState off
SignalLogging off
DSMLogging on
InspectSignalLogs off
VisualizeSimOutput on
StreamToWorkspace off
StreamVariableName streamout
SaveTime off
ReturnWorkspaceOutputs off
StateSaveName xout
TimeSaveName tout
OutputSaveName yout
SignalLoggingName logsout
DSMLoggingName dsmout
OutputOption RefineOutputTimes
OutputTimes []
ReturnWorkspaceOutputsName out
Refine 1
LoggingToFile off
LoggingFileName out.mat
LoggingIntervals [-inf, inf]

Table 5.4. SDD_SF_ArithLogic Configuration Set.Components [23](3)


Property Value
Name Optimization
Description  
Components  
BlockReduction on
BooleanDataType on
ConditionallyExecuteInputs on
DefaultParameterBehavior Inlined
InlineParams on
UseDivisionForNetSlopeComputation off
UseFloatMulNetSlope off
DefaultUnderspecifiedDataType double
UseSpecifiedMinMax off
InlineInvariantSignals on
OptimizeBlockIOStorage on
BufferReuse on

25
System Model Configuration

GlobalBufferReuse on
GlobalVariableUsage None
StrengthReduction off
AdvancedOptControl  
EnforceIntegerDowncast on
ExpressionFolding off
BooleansAsBitfields off
BitfieldContainerType uint_T
EnableMemcpy on
MemcpyThreshold 64
PassReuseOutputArgsAs Structure reference
PassReuseOutputArgsThreshold 12
FoldNonRolledExpr on
LocalBlockOutputs on
RollThreshold 5
StateBitsets on
DataBitsets on
ActiveStateOutputEnumStorageType Native Integer
UseTempVars off
ZeroExternalMemoryAtStartup on
ZeroInternalMemoryAtStartup on
InitFltsAndDblsToZero on
NoFixptDivByZeroProtection off
EfficientFloat2IntCast on
EfficientMapNaN2IntZero on
LifeSpan inf
EvaledLifeSpan Inf
MaxStackSize Inherit from target
BufferReusableBoundary on
SimCompilerOptimization off
AccelVerboseBuild off

Table 5.5. SDD_SF_ArithLogic Configuration Set.Components [23](4)


Property Value
Name Diagnostics
Description  
Components  
RTPrefix error
ConsistencyChecking none

26
System Model Configuration

ArrayBoundsChecking none
SignalInfNanChecking none
SignalRangeChecking none
ReadBeforeWriteMsg UseLocalSettings
WriteAfterWriteMsg UseLocalSettings
WriteAfterReadMsg UseLocalSettings
AlgebraicLoopMsg warning
ArtificialAlgebraicLoopMsg warning
SaveWithDisabledLinksMsg warning
SaveWithParameterizedLinksMsg none
CheckSSInitialOutputMsg on
UnderspecifiedInitializationDetection Classic
MergeDetectMultiDrivingBlocksExec none
CheckExecutionContextRuntimeOutputMsg off
SignalResolutionControl UseLocalSettings
BlockPriorityViolationMsg warning
MinStepSizeMsg warning
TimeAdjustmentMsg none
MaxConsecutiveZCsMsg error
MaskedZcDiagnostic warning
IgnoredZcDiagnostic warning
SolverPrmCheckMsg warning
InheritedTsInSrcMsg warning
MultiTaskDSMMsg warning
MultiTaskCondExecSysMsg none
MultiTaskRateTransMsg error
SingleTaskRateTransMsg none
TasksWithSamePriorityMsg warning
SigSpecEnsureSampleTimeMsg warning
CheckMatrixSingularityMsg none
IntegerOverflowMsg warning
Int32ToFloatConvMsg warning
ParameterDowncastMsg error
ParameterOverflowMsg error
ParameterUnderflowMsg none
ParameterPrecisionLossMsg warning
ParameterTunabilityLossMsg warning
FixptConstUnderflowMsg none
FixptConstOverflowMsg none

27
System Model Configuration

FixptConstPrecisionLossMsg none
UnderSpecifiedDataTypeMsg none
UnnecessaryDatatypeConvMsg none
VectorMatrixConversionMsg none
InvalidFcnCallConnMsg error
FcnCallInpInsideContextMsg warning
SignalLabelMismatchMsg none
UnconnectedInputMsg warning
UnconnectedOutputMsg warning
UnconnectedLineMsg warning
UseOnlyExistingSharedCode error
SFcnCompatibilityMsg none
FrameProcessingCompatibilityMsg error
UniqueDataStoreMsg none
BusObjectLabelMismatch warning
RootOutportRequireBusObject warning
AssertControl UseLocalSettings
Echo  
EnableOverflowDetection off
AllowSymbolicDim on
ModelReferenceIOMsg none
ModelReferenceVersionMismatchMessage none
ModelReferenceIOMismatchMessage none
ModelReferenceCSMismatchMessage none
ModelReferenceSimTargetVerbose off
UnknownTsInhSupMsg warning
ModelReferenceDataLoggingMessage warning
ModelReferenceSymbolNameMessage warning
ModelReferenceExtraNoncontSigs error
StateNameClashWarn warning
SimStateInterfaceChecksumMismatchMsg warning
SimStateOlderReleaseMsg error
InitInArrayFormatMsg warning
StrictBusMsg ErrorLevel1
BusNameAdapt WarnAndRepair
NonBusSignalsTreatedAsBus none
SFUnusedDataAndEventsDiag warning
SFUnexpectedBacktrackingDiag warning
SFInvalidInputDataAccessInChartInitDiag warning

28
System Model Configuration

SFNoUnconditionalDefaultTransitionDiag warning
SFTransitionOutsideNaturalParentDiag warning
SFUnconditionalTransitionShadowingDiag warning
SFUnreachableExecutionPathDiag warning
SFUndirectedBroadcastEventsDiag warning
SFTransitionActionBeforeConditionDiag warning
SFOutputUsedAsStateInMooreChartDiag error
SFTemporalDelaySmallerThanSampleTimeDiag warning
SFUnconditionalPathOutOfParentDiag warning
SFSelfTransitionDiag warning
SFExecutionAtInitializationDiag none
SFMachineParentedDataDiag warning
SFUnreachableStateOrJunctionDiag warning
SFDanglingTransitionDiag warning
IntegerSaturationMsg warning
AllowedUnitSystems all
UnitsInconsistencyMsg warning
AllowAutomaticUnitConversions on

Table 5.6. SDD_SF_ArithLogic Configuration Set.Components [23](5)


Property Value
Name Hardware Implementation
Description  
Components  
ProdBitPerChar 8
ProdBitPerShort 16
ProdBitPerInt 16
ProdBitPerLong 32
ProdBitPerLongLong 64
ProdBitPerFloat 32
ProdBitPerDouble 64
ProdBitPerPointer 16
ProdBitPerSizeT 16
ProdBitPerPtrDiffT 16
ProdLargestAtomicInteger Char
ProdLargestAtomicFloat None
ProdIntDivRoundTo Zero
ProdEndianess BigEndian

29
System Model Configuration

ProdWordSize 16
ProdShiftRightIntArith on
ProdLongLongMode off
ProdHWDeviceType Motorola HC12
TargetBitPerChar 8
TargetBitPerShort 16
TargetBitPerInt 32
TargetBitPerLong 32
TargetBitPerLongLong 64
TargetBitPerFloat 32
TargetBitPerDouble 64
TargetBitPerPointer 32
TargetBitPerSizeT 32
TargetBitPerPtrDiffT 32
TargetLargestAtomicInteger Char
TargetLargestAtomicFloat None
TargetShiftRightIntArith on
TargetLongLongMode off
TargetIntDivRoundTo Undefined
TargetEndianess Unspecified
TargetWordSize 32
TargetTypeEmulationWarnSuppressLevel 0
TargetPreprocMaxBitsSint 32
TargetPreprocMaxBitsUint 32
TargetHWDeviceType Specified
TargetUnknown off
ProdEqTarget on
UseEmbeddedCoderFeatures on
UseSimulinkCoderFeatures on

Table 5.7. SDD_SF_ArithLogic Configuration Set.Components [23](6)


Property Value
Name Model Referencing
Description  
Components  
UpdateModelReferenceTargets IfOutOfDateOrStructuralChange
SkipRefExpFcnMdlSchedulingOrderCheck off
EnableRefExpFcnMdlSchedulingChecks on

30
System Model Configuration

CheckModelReferenceTargetMessage error
EnableParallelModelReferenceBuilds off
ParallelModelReferenceErrorOnInvalidPool on
ParallelModelReferenceMATLABWorkerInit None
ModelReferenceNumInstancesAllowed Multi
PropagateVarSize Infer from blocks in model
ModelDependencies  
ModelReferencePassRootInputsByReference on
ModelReferenceMinAlgLoopOccurrences off
PropagateSignalLabelsOutOfModel off
SupportModelReferenceSimTargetCustomCode off

Table 5.8. SDD_SF_ArithLogic Configuration Set.Components [23](7)


Property Value
Name Simulation Target
Description  
Components  
SimCustomSourceCode  
SimCustomHeaderCode  
SimCustomInitializer  
SimCustomTerminator  
SimReservedNameArray  
SimUserSources  
SimUserIncludeDirs  
SimUserLibraries  
SimUserDefines  
SFSimEnableDebug off
SFSimOverflowDetection on
SFSimEcho on
SimBlas on
SimCtrlC on
SimExtrinsic on
SimIntegrity on
SimUseLocalCustomCode off
SimParseCustomCode on
SimBuildMode sf_incremental_build
SimDataInitializer  
SimGenImportedTypeDefs off
CompileTimeRecursionLimit 50

31
System Model Configuration

EnableRuntimeRecursion on

Table 5.9. SDD_SF_ArithLogic Configuration Set.Components [23](8)


Property Value
Name Code Generation
SystemTargetFile ert.tlc
HardwareBoard None
TLCOptions  
CodeGenDirectory  
GenCodeOnly on
MakeCommand make_rtw
GenerateMakefile on
PackageGeneratedCodeAndArtifacts off
PackageName  
TemplateMakefile ert_default_tmf
PostCodeGenCommand  
Description Real-Time Workshop Embedded Coder (no auto
configuration)
GenerateReport on
SaveLog off
RTWVerbose on
RetainRTWFile off
ProfileTLC off
TLCDebug off
TLCCoverage off
TLCAssert off
ProcessScriptMode Default
ConfigurationMode Optimized
ProcessScript ert_make_rtw_hook
ConfigurationScript  
ConfigAtBuild off
RTWUseLocalCustomCode off
RTWUseSimCustomCode off
CustomSourceCode  
CustomHeaderCode #include "cdata.h"
CustomInclude  
CustomSource  
CustomLibrary  
CustomDefine  

32
System Model Configuration

CustomLAPACKCallback  
CustomInitializer  
CustomTerminator  
Toolchain Automatically locate an installed toolchain
BuildConfiguration Faster Builds
CustomToolchainOptions  
IncludeHyperlinkInReport on
LaunchReport on
RecursionLimit 50
PortableWordSizes off
GenerateErtSFunction off
CreateSILPILBlock None
CodeExecutionProfiling off
CodeExecutionProfileVariable executionProfile
CodeProfilingSaveOptions SummaryOnly
CodeProfilingInstrumentation off
CodeCoverageSettings SDD_SF_ArithLogic Configuration Set.Compone-
nts(8).CodeCoverageSettings [35]
SILDebugging off
TargetLang C
IncludeERTFirstTime off
GenerateTraceInfo off
GenerateTraceReport off
GenerateTraceReportSl off
GenerateTraceReportSf off
GenerateTraceReportEml off
GenerateCodeInfo off
GenerateWebview off
GenerateCodeMetricsReport off
GenerateCodeReplacementReport off
RTWCompilerOptimization off
ObjectivePriorities  
RTWCustomCompilerOptimizations  
CheckMdlBeforeBuild Off
CustomRebuildMode OnUpdate
DataInitializer  
Components [SDD_SF_ArithLogic Configuration Set.Compon-
ents(8).Components(1) [35], SDD_SF_ArithL-
ogic Configuration Set.Components(8).Componen-
ts(2) [36]]

33
System Model Configuration

Table 5.10. SDD_SF_ArithLogic Configuration Set.Components [23](9)


Property Value
Description Simulink Coverage Configuration Component
Components  
Name Simulink Coverage
CovEnable on
CovScope ReferencedModels
CovIncludeTopModel on
RecordCoverage on
CovPath /
CovSaveName covdata
CovCompData  
CovMetricSettings dcmw
CovFilter  
CovHTMLOptions  
CovNameIncrementing off
CovHtmlReporting on
CovForceBlockReductionOff on
CovEnableCumulative on
CovSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName covCumulativeData
CovCumulativeReport on
CovSaveOutputData on
CovOutputDir slcov_output/$ModelName$
CovDataFileName $ModelName$_cvdata
CovShowResultsExplorer on
CovReportOnPause on
CovModelRefEnable Off
CovModelRefExcluded  
CovExternalEMLEnable off
CovSFcnEnable on
CovBoundaryAbsTol 1.0000e-05
CovBoundaryRelTol 0.0100
CovUseTimeInterval off
CovStartTime 0
CovStopTime 0
CovMetricStructuralLevel MCDC
CovMetricLookupTable off

34
System Model Configuration

CovMetricSignalRange off
CovMetricSignalSize off
CovMetricObjectiveConstraint off
CovMetricSaturateOnIntegerOverflow off
CovMetricRelationalBoundary off
CovLogicBlockShortCircuit off
CovUnsupportedBlockWarning on
CovHighlightResults on

Table  5.11.  SDD_SF_ArithLogic Configuration


Set.Components(1) [23].SampleTimeProperty
Field Value
SampleTime 0.01
Offset 0
Priority 1

Table  5.12.  SDD_SF_ArithLogic Configuration


Set.Components(8) [32].CodeCoverageSettings
Property Value
TopModelCoverage off
ReferencedModelCoverage off
CoverageTool None

Table  5.13.  SDD_SF_ArithLogic Configuration


Set.Components(8).Components [33](1)
Property Value
Name Code Appearance
Description  
Components  
ForceParamTrailComments off
GenerateComments on
CommentStyle Auto
IgnoreCustomStorageClasses off
IgnoreTestpoints off
IncHierarchyInIds off
MaxIdLength 50
PreserveName off
PreserveNameWithParent off

35
System Model Configuration

ShowEliminatedStatement off
OperatorAnnotations off
IncAutoGenComments off
SimulinkDataObjDesc off
SFDataObjDesc off
MATLABFcnDesc off
IncDataTypeInIds off
PrefixModelToSubsysFcnNames on
MangleLength 1
CustomSymbolStr $R$N$M
CustomSymbolStrGlobalVar $R$N$M
CustomSymbolStrType $N$R$M
CustomSymbolStrField $N$M
CustomSymbolStrFcn $R$N$M$F
CustomSymbolStrSimulinkFcn $R$N
CustomSymbolStrFcnArg rt$I$N$M
CustomSymbolStrBlkIO rtb_$N$M
CustomSymbolStrTmpVar $N$M
CustomSymbolStrMacro $R$N$M
CustomSymbolStrUtil $N$C
CustomUserTokenString  
CustomCommentsFcn  
DefineNamingRule UpperCase
DefineNamingFcn  
ParamNamingRule None
ParamNamingFcn  
SignalNamingRule None
SignalNamingFcn  
InsertBlockDesc off
InsertPolySpaceComments off
SimulinkBlockComments on
MATLABSourceComments off
EnableCustomComments off
InternalIdentifier Classic
InlinedPrmAccess Literals
ReqsInCode off
UseSimReservedNames off
ReservedNameArray  

36
System Model Configuration

Table  5.14.  SDD_SF_ArithLogic Configuration


Set.Components(8).Components [33](2)
Property Value
Name Target
Description  
Components  
IsERTTarget on
TargetFcnLib ansi_tfl_tmw.mat
TargetLibSuffix  
TargetPreCompLibLocation  
GenFloatMathFcnCalls NOT IN USE
TargetLangStandard C89/C90 (ANSI)
TargetFunctionLibrary NOT IN USE
CodeReplacementLibrary None
UtilityFuncGeneration Auto
ERTMultiwordTypeDef System defined
ERTMultiwordLength 256
MultiwordLength 2048
GenerateFullHeader on
InferredTypesCompatibility off
ExistingSharedCode  
GenerateSampleERTMain off
GenerateTestInterfaces off
ModelReferenceCompliant on
ParMdlRefBuildCompliant on
CompOptLevelCompliant on
ConcurrentExecutionCompliant on
IncludeMdlTerminateFcn off
CombineOutputUpdateFcns on
CombineSignalStateStructs off
SuppressErrorStatus on
ERTFirstTimeCompliant on
IncludeFileDelimiter Auto
ERTCustomFileBanners on
SupportAbsoluteTime on
LogVarNameModifier rt_
MatFileLogging off
MultiInstanceERTCode off
CodeInterfacePackaging Nonreusable function

37
System Model Configuration

SupportNonFinite off
SupportComplex off
PurelyIntegerCode on
SupportContinuousTime off
SupportNonInlinedSFcns off
RemoveDisableFunc off
RemoveResetFunc off
SupportVariableSizeSignals off
ParenthesesLevel Nominal
CastingMode Nominal
GenerateClassInterface off
ModelStepFunctionPrototypeControlCompliant on
CPPClassGenCompliant on
GRTInterface off
GenerateAllocFcn off
UseToolchainInfoCompliant on
GenerateSharedConstants on
GenerateASAP2 off
ExtMode off
ExtModeTransport 0
ExtModeStaticAlloc off
ExtModeStaticAllocSize 1000000
ExtModeTesting off
ExtModeMexFile ext_comm
ExtModeMexArgs  
ExtModeIntrfLevel Level1
InlinedParameterPlacement Hierarchical
TargetOS BareBoardExample
MultiInstanceErrorCode Error
RateGroupingCode on
RootIOFormat Individual arguments
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
RTWCAPIRootIO off
ERTSrcFileBannerTemplate ert_code_template.cgt
ERTHdrFileBannerTemplate ert_code_template.cgt
ERTDataSrcFileTemplate ert_code_template.cgt
ERTDataHdrFileTemplate ert_code_template.cgt

38
System Model Configuration

ERTCustomFileTemplate gen_rtw_req_defines_h.tlc
EnableDataOwnership off
SignalDisplayLevel 10
ParamTuneLevel 10
GlobalDataDefinition Auto
DataDefinitionFile global.c
GlobalDataReference Auto
ERTFilePackagingFormat Modular
DataReferenceFile global.h
PreserveExpressionOrder off
PreserveIfCondition off
ConvertIfToSwitch off
PreserveExternInFcnDecls on
SuppressUnreachableDefaultCases off
EnableSignedLeftShifts on
EnableSignedRightShifts on
IndentStyle K&R
IndentSize 2
EnableUserReplacementTypes off
ReplacementTypes SDD_SF_ArithLogic Configuration Set.Compone-
nts(8).Components(2).ReplacementTypes [40]
MaxIdInt32 MAX_int32_T
MinIdInt32 MIN_int32_T
MaxIdUint32 MAX_uint32_T
MaxIdInt16 MAX_int16_T
MinIdInt16 MIN_int16_T
MaxIdUint16 MAX_uint16_T
MaxIdInt8 MAX_int8_T
MinIdInt8 MIN_int8_T
MaxIdUint8 MAX_uint8_T
BooleanTrueId true
BooleanFalseId false
TypeLimitIdReplacementHeaderFile  
MemSecPackage --- None ---
MemSecDataConstants Default
MemSecDataIO Default
MemSecDataInternal Default
MemSecDataParameters Default
MemSecFuncInitTerm Default

39
System Model Configuration

MemSecFuncExecute Default
MemSecFuncSharedUtil Default

Table  5.15.  SDD_SF_ArithLogic Configuration


Set.Components(8).Components(2) [36].ReplacementTypes
Field Value
double  
single  
int32  
int16  
int8  
uint32  
uint16  
uint8  
boolean  
int  
uint  
char  

40

Potrebbero piacerti anche