Set
Digital Set Source
Library
Electrical/Digital/Sources
Description
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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_x | x | Logic value to be set | Structure | |
mo_x/choice1 | U Uninitialized | Number | 0 | |
mo_x/choice2 | X Forcing Unknown | Number | 0 | |
mo_x/choice3 | 0 Forcing 0 | Number | 0 | |
mo_x/choice4 | 1 Forcing 1 | Number | 0 | |
mo_x/choice5 | Z High Impedance | Number | 0 | |
mo_x/choice6 | W Weak Unknown | Number | 0 | |
mo_x/choice7 | L Weak 0 | Number | 0 | |
mo_x/choice8 | H Weak 1 | Number | 0 | |
mo_x/choice9 | - Do not care | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
y | implicit | output | 1 |