Pulse
Digital Pulse Source
Library
Modelica/Electrical/Digital/Sources
Description
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.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_width | width | Widths of pulses in % of periods | Scalar | |
mo_period | period | Time for one period | Scalar | |
mo_startTime | startTime | Output = quiet for time < startTime | Scalar | |
mo_pulse | pulse | pulsed value | Structure | |
mo_pulse/choice1 | U Uninitialized | Number | 0 | |
mo_pulse/choice2 | X Forcing Unknown | Number | 0 | |
mo_pulse/choice3 | 0 Forcing 0 | Number | 0 | |
mo_pulse/choice4 | 1 Forcing 1 | Number | 0 | |
mo_pulse/choice5 | Z High Impedance | Number | 0 | |
mo_pulse/choice6 | W Weak Unknown | Number | 0 | |
mo_pulse/choice7 | L Weak 0 | Number | 0 | |
mo_pulse/choice8 | H Weak 1 | Number | 0 | |
mo_pulse/choice9 | - Do not care | Number | 0 | |
mo_quiet | quiet | quiet value | Structure | |
mo_quiet/choice1 | U Uninitialized | Number | 0 | |
mo_quiet/choice2 | X Forcing Unknown | Number | 0 | |
mo_quiet/choice3 | 0 Forcing 0 | Number | 0 | |
mo_quiet/choice4 | 1 Forcing 1 | Number | 0 | |
mo_quiet/choice5 | Z High Impedance | Number | 0 | |
mo_quiet/choice6 | W Weak Unknown | Number | 0 | |
mo_quiet/choice7 | L Weak 0 | Number | 0 | |
mo_quiet/choice8 | H Weak 1 | Number | 0 | |
mo_quiet/choice9 | - Do not care | Number | 0 | |
mo_nperiod | nperiod | Number of periods (< 0 means infinite number of periods) | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_T0 | T0 | T0 | Structure | |
mo_T0/fixed | fixed | Cell of scalars | true | |
mo_T0/start | start | Cell of scalars | ||
mo_np | np | np | Structure | |
mo_np/fixed | fixed | Cell of scalars | true | |
mo_np/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
y | implicit | output | 1 |