RealToLogic
Real to Logic converter
Library
Modelica/Electrical/Digital/Converters
Description
Conversion of a real input into a digital output without any delay according to:
condition output first check: input greater upp lupp second check: input larger low llow else lmid
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_upper_limit | upper_limit | upper limit | Scalar | |
mo_lower_limit | lower_limit | lower limit | Scalar | |
mo_upper_value | upper_value | output if input > upper_limit | Structure | |
mo_upper_value/choice1 | U Uninitialized | Number | 0 | |
mo_upper_value/choice2 | X Forcing Unknown | Number | 0 | |
mo_upper_value/choice3 | 0 Forcing 0 | Number | 0 | |
mo_upper_value/choice4 | 1 Forcing 1 | Number | 0 | |
mo_upper_value/choice5 | Z High Impedance | Number | 0 | |
mo_upper_value/choice6 | W Weak Unknown | Number | 0 | |
mo_upper_value/choice7 | L Weak 0 | Number | 0 | |
mo_upper_value/choice8 | H Weak 1 | Number | 0 | |
mo_upper_value/choice9 | - Do not care | Number | 0 | |
mo_lower_value | lower_value | output if input < lower_limit | Structure | |
mo_lower_value/choice1 | U Uninitialized | Number | 0 | |
mo_lower_value/choice2 | X Forcing Unknown | Number | 0 | |
mo_lower_value/choice3 | 0 Forcing 0 | Number | 0 | |
mo_lower_value/choice4 | 1 Forcing 1 | Number | 0 | |
mo_lower_value/choice5 | Z High Impedance | Number | 0 | |
mo_lower_value/choice6 | W Weak Unknown | Number | 0 | |
mo_lower_value/choice7 | L Weak 0 | Number | 0 | |
mo_lower_value/choice8 | H Weak 1 | Number | 0 | |
mo_lower_value/choice9 | - Do not care | Number | 0 | |
mo_middle_value | middle_value | output else | Structure | |
mo_middle_value/choice1 | U Uninitialized | Number | 0 | |
mo_middle_value/choice2 | X Forcing Unknown | Number | 0 | |
mo_middle_value/choice3 | 0 Forcing 0 | Number | 0 | |
mo_middle_value/choice4 | 1 Forcing 1 | Number | 0 | |
mo_middle_value/choice5 | Z High Impedance | Number | 0 | |
mo_middle_value/choice6 | W Weak Unknown | Number | 0 | |
mo_middle_value/choice7 | L Weak 0 | Number | 0 | |
mo_middle_value/choice8 | H Weak 1 | Number | 0 | |
mo_middle_value/choice9 | - Do not care | Number | 0 |
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 |