Pulse

Digital Pulse Source

    Pulse

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

Pulse_0

NameLabelDescriptionData TypeValid 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
1

mo_pulse/choice2

X Forcing Unknown

Number

0
1

mo_pulse/choice3

0 Forcing 0

Number

0
1

mo_pulse/choice4

1 Forcing 1

Number

0
1

mo_pulse/choice5

Z High Impedance

Number

0
1

mo_pulse/choice6

W Weak Unknown

Number

0
1

mo_pulse/choice7

L Weak 0

Number

0
1

mo_pulse/choice8

H Weak 1

Number

0
1

mo_pulse/choice9

- Do not care

Number

0
1

mo_quiet

quiet

quiet value

Structure

mo_quiet/choice1

U Uninitialized

Number

0
1

mo_quiet/choice2

X Forcing Unknown

Number

0
1

mo_quiet/choice3

0 Forcing 0

Number

0
1

mo_quiet/choice4

1 Forcing 1

Number

0
1

mo_quiet/choice5

Z High Impedance

Number

0
1

mo_quiet/choice6

W Weak Unknown

Number

0
1

mo_quiet/choice7

L Weak 0

Number

0
1

mo_quiet/choice8

H Weak 1

Number

0
1

mo_quiet/choice9

- Do not care

Number

0
1

mo_nperiod

nperiod

Number of periods (< 0 means infinite number of periods)

Scalar

mo_T0

T0

T0

Structure

mo_T0/fixed

fixed

Cell of scalars

true
false

mo_T0/start

start

Cell of scalars

mo_np

np

np

Structure

mo_np/fixed

fixed

Cell of scalars

true
false

mo_np/start

start

Cell of scalars

Pulse_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

'sampling'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

y

implicit

output

1

See Also