blockLogicToReal
Logic to Real converter
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | Signal width | |
| Real | value_U | Value for digital U (uninitialized) | |
| Real | value_X | Value for digital X (Forcing Unknown) | |
| Real | value_0 | Value for digital 0 (Forcing 0) | |
| Real | value_1 | Value for digital 1 (Forcing 1) | |
| Real | value_Z | Value for digital Z (High Impedance) | |
| Real | value_W | Value for digital W (Weak Unknown) | |
| Real | value_L | Value for digital L (Weak 0) | |
| Real | value_H | Value for digital H (Weak 1) | |
| Real | value_m | Value for digital m (Do not care) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Digital.Interfaces.DigitalInput[n] | x | ||
| Modelica.Blocks.Interfaces.RealOutput[n] | y |
Revisions
- September 15, 2004
by Christoph Clauss colors changed
- November 5, 2003
by Christoph Clauss
initially modelled.