modelPulse
Digital Pulse Source
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | width | Widths of pulses in % of periods | |
| SI.Time | period | Time for one period | |
| SI.Time | startTime | Output = quiet for time < startTime | |
| D.Interfaces.Logic | pulse | Pulsed value | |
| D.Interfaces.Logic | quiet | Quiet value | |
| Integer | nperiod | Number of periods (< 0 means infinite number of periods) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| D.Interfaces.DigitalOutput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Time | T0 | Start time of current period | |
| Integer | np |
Revisions
- September 2, 2003
- by Christoph Clauss initially modelled.