The sources are not taken from Standard Logic. They were added since they turned out to be quite useful, since such sources are often needed. For a better optical overview the colour green was chosen for the sources.
Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).Name | Description |
---|---|
Set | Digital Set Source |
Step | Digital Step Source |
Table | Digital Tabular Source |
Pulse | Digital Pulse Source |
Clock | Digital Clock Source |
Sets a nine valued digital signal, which is specified by the setval parameter.
To specify setval, 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.
Name | Description |
---|---|
x | Logic value to be set |
Name | Description |
---|---|
y |
The step source output signal steps from the value before to the value after at 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.
Name | Description |
---|---|
before | Logic value before step |
after | Logic value after step |
stepTime | step time |
Name | Description |
---|---|
y |
The table source output signal y steps to the values of the x table at the corresponding
timepoints in the t table.
The initial value is specified by y0.
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.
Name | Description |
---|---|
x[:] | vector of values |
t[size(x, 1)] | vector of corresponding time points |
y0 | initial output value |
Name | Description |
---|---|
y |
The pulse source forms pulses between the quiet value and the pulse value. The pulse length width is specified in percent of the period length period. The number of periods is specified by nperiod. If nperiod is less than zero, the number of periods is unlimited.
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.
Name | Description |
---|---|
width | Widths of pulses in % of periods |
period | Time for one period [s] |
startTime | Output = quiet for time < startTime [s] |
pulse | pulsed value |
quiet | quiet value |
nperiod | Number of periods (< 0 means infinite number of periods) |
Name | Description |
---|---|
y |
The clock source forms pulses between the '0' value (forcing 0) and the '1' value (forcing 1). The pulse length width is specified in percent of the period length period. The number of periods is unlimited. The first pulse starts at startTime.
The clock source is a special but often used variant of the pulse source.
Name | Description |
---|---|
startTime | Output = offset for time < startTime [s] |
period | Time for one period [s] |
width | Width of pulses in % of period |
Name | Description |
---|---|
y | Connector of Digital output signal |