LogicToReal
Logic to Real converter
Library
Modelica/Electrical/Digital/Converters
Description
Conversion of a digital input into a Real output without any delay according to:
input output'U' (coded by 1) val_U'X' (coded by 2) val_X'0' (coded by 3) val_0'1' (coded by 4) val_1'Z' (coded by 5) val_Z'W' (coded by 6) val_W'L' (coded by 7) val_L'H' (coded by 8) val_H'-' (coded by 9) val_m
The values val... are given by parameters.
If the signal width is greater than 1 this conversion is done for each signal.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_n | n | Signal width | Scalar | |
mo_value_U | value_U | Value for digital U (uninitialized) | Scalar | |
mo_value_X | value_X | Value for digital X (Forcing Unknown) | Scalar | |
mo_value_0 | value_0 | Value for digital 0 (Forcing 0) | Scalar | |
mo_value_1 | value_1 | Value for digital 1 (Forcing 1) | Scalar | |
mo_value_Z | value_Z | Value for digital Z (High Impedance) | Scalar | |
mo_value_W | value_W | Value for digital W (Weak Unknown) | Scalar | |
mo_value_L | value_L | Value for digital L (Weak 0) | Scalar | |
mo_value_H | value_H | Value for digital H (Weak 1) | Scalar | |
mo_value_m | value_m | Value for digital m (Do not care) | Scalar |
Name | Label | Description | Data Type | Valid 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 | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
x | implicit | input | 1 | |
y | implicit | output | 1 |