SetDigital Set Source |
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.
x |
Value: Type: Logic Description: Logic value to be set |
---|
y |
Type: DigitalOutput |
---|
Modelica.Electrical.Digital.Examples 4 to 1 Bit Multiplexer Example |
|
Modelica.Electrical.Digital.Examples Full 1 Bit Adder Example |
|
Modelica.Electrical.Digital.Examples 4 Bit Adder Example |
|
Modelica.Electrical.Digital.Examples Simple RAM test example |