Set

Digital Set Source

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Parameters (1)

x

Value:

Type: Logic

Description: Logic value to be set

Connectors (1)

y

Type: DigitalOutput

Used in Examples (4)

Multiplexer

Modelica.Electrical.Digital.Examples

4 to 1 Bit Multiplexer Example

FullAdder

Modelica.Electrical.Digital.Examples

Full 1 Bit Adder Example

Adder4

Modelica.Electrical.Digital.Examples

4 Bit Adder Example

RAM

Modelica.Electrical.Digital.Examples

Simple RAM test example