Step

Digital Step Source

    Step

Library

Modelica/Electrical/Digital/Sources

Description

The step source output signal steps from the value before to the value afterat the time stepTime.

To specify the logic value parameters, the integer code has to be used.

Code Table

Logic value Integer code Meaning
'U' 1 Uninitialized
'X' 2 Forcing Unknown
'0' 3 Forcing 0
'1' 4 Forcing 1
'Z' 5 High Impedance
'W' 6 Weak Unknown
'L' 7 Weak 0
'H' 8 Weak 1
'-' 9 Do not care

If the logic values are imported by
import L = Digital.Interfaces.Logic;
they can be used to specify the parameter, e.g., L.'0' for forcing 0.

Parameters

Step_0

NameLabelDescriptionData TypeValid Values

mo_before

before

Logic value before step

Structure

mo_before/choice1

Modelica.Electrical.Digital.Interfaces.Logic.'U'

Number

0
1

mo_before/choice2

Modelica.Electrical.Digital.Interfaces.Logic.'X'

Number

0
1

mo_before/choice3

Modelica.Electrical.Digital.Interfaces.Logic.'0'

Number

0
1

mo_before/choice4

Modelica.Electrical.Digital.Interfaces.Logic.'1'

Number

0
1

mo_before/choice5

Modelica.Electrical.Digital.Interfaces.Logic.'Z'

Number

0
1

mo_before/choice6

Modelica.Electrical.Digital.Interfaces.Logic.'W'

Number

0
1

mo_before/choice7

Modelica.Electrical.Digital.Interfaces.Logic.'L'

Number

0
1

mo_before/choice8

Modelica.Electrical.Digital.Interfaces.Logic.'H'

Number

0
1

mo_before/choice9

Modelica.Electrical.Digital.Interfaces.Logic.'-'

Number

0
1

mo_after

after

Logic value after step

Structure

mo_after/choice1

Modelica.Electrical.Digital.Interfaces.Logic.'U'

Number

0
1

mo_after/choice2

Modelica.Electrical.Digital.Interfaces.Logic.'X'

Number

0
1

mo_after/choice3

Modelica.Electrical.Digital.Interfaces.Logic.'0'

Number

0
1

mo_after/choice4

Modelica.Electrical.Digital.Interfaces.Logic.'1'

Number

0
1

mo_after/choice5

Modelica.Electrical.Digital.Interfaces.Logic.'Z'

Number

0
1

mo_after/choice6

Modelica.Electrical.Digital.Interfaces.Logic.'W'

Number

0
1

mo_after/choice7

Modelica.Electrical.Digital.Interfaces.Logic.'L'

Number

0
1

mo_after/choice8

Modelica.Electrical.Digital.Interfaces.Logic.'H'

Number

0
1

mo_after/choice9

Modelica.Electrical.Digital.Interfaces.Logic.'-'

Number

0
1

mo_stepTime

stepTime

Step time

Scalar

Step_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

y

implicit

output

1

See Also