This package contains basic definitions: Type definitions of Logic and Strength, interface definitions (connectors) for digital electrical components, and partial models for connection patterns which are often used.
Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).
Name | Description |
---|---|
Logic | Logic values and their coding according to IEEE 1164 STD_ULOGIC type |
UX01 | 4-valued subtype of IEEE 1164 STD_ULOGIC type |
Strength | Output strengthes of registers |
DigitalSignal | Digital port (both input/output possible) |
DigitalInput | Input DigitalSignal as connector |
DigitalOutput | Output DigitalSignal as connector |
SISO | Single input, single output |
MISO | Multiple input - single output |
MIMO | Multiple input - multiple output |
type Logic = enumeration( 'U' "U Uninitialized", 'X' "X Forcing Unknown", '0' "0 Forcing 0", '1' "1 Forcing 1", 'Z' "Z High Impedance", 'W' "W Weak Unknown", 'L' "L Weak 0", 'H' "H Weak 1", '-' "- Don't care") "Logic values and their coding according to IEEE 1164 STD_ULOGIC type";
type UX01 = enumeration( 'U' "U Uninitialized", 'X' "X Forcing Unknown", '0' "0 Forcing 0", '1' "1 Forcing 1") "4-valued subtype of IEEE 1164 STD_ULOGIC type";
type Strength = enumeration( 'S_X01', 'S_X0H', 'S_XL1', 'S_X0Z', 'S_XZ1', 'S_WLH', 'S_WLZ', 'S_WZH', 'S_W0H', 'S_WL1') "Output strengthes of registers";
DigitalSignal is the basic digital connector defintion. A direction (input, output) is not yet defined. DigitalSignal is of type Logic. It can have the logic values (U, X, 0, 1, ...) which are internally coded by integer values by using the enumeration (c.f. the definition of type Logic).
Extends from Logic (Logic values and their coding according to IEEE 1164 STD_ULOGIC type).
connector DigitalSignal = Logic "Digital port (both input/output possible)";
DigitalInput is the digital input connector defintion. DigitalInput is of type Logic. It can have the logic values (U, X, 0, 1, ...) which are internally coded by integer values by using the enumeration (c.f. the definition of type Logic).
Extends from DigitalSignal (Digital port (both input/output possible)).
connector DigitalInput = input DigitalSignal "Input DigitalSignal as connector";
DigitalOutput is the digital output connector defintion. DigitalOutput is of type Logic. It can have the logic values (U, X, 0, 1, ...) which are internally coded by integer values by using the enumeration (c.f. the definition of type Logic). The arrow shape symbolizes the signal flow direction.
Extends from DigitalSignal (Digital port (both input/output possible)).
connector DigitalOutput = output DigitalSignal "Output DigitalSignal as connector";
SISO is a partial model for the connection pattern whith single (scalar) digital input and single (scalar) digital output. Besides the connectors it provides a rectangel for the icon which can be filled in by the component which inherits the SISO model.
Type | Name | Description |
---|---|---|
input DigitalInput | x | Connector of Digital input signal |
output DigitalOutput | y | Connector of Digital output signal |
partial block SISO "Single input, single output" import D = Modelica.Electrical.Digital;D.Interfaces.DigitalInput x "Connector of Digital input signal"; D.Interfaces.DigitalOutput y "Connector of Digital output signal"; end SISO;
MISO is a partial model for the connection pattern whith multiple (vector) digital input and single (scalar) digital output. Besides the connectors it provides a rectangel for the icon which can be filled in by the component which inherits the MISO model.
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 2 | Number of inputs |
Type | Name | Description |
---|---|---|
input DigitalInput | x[n] | Connector of Digital input signal vector |
output DigitalOutput | y | Connector of Digital output signal |
partial block MISO "Multiple input - single output" import D = Modelica.Electrical.Digital; parameter Integer n(final min=2) = 2 "Number of inputs";D.Interfaces.DigitalInput x[n] "Connector of Digital input signal vector"; D.Interfaces.DigitalOutput y "Connector of Digital output signal"; end MISO;
MIMO is a partial model for the connection pattern whith multiple (vector) digital input and multiple (vector) digital output. Besides the connectors it provides a rectangel for the icon which can be filled in by the component which inherits the MISO model.
Type | Name | Default | Description |
---|---|---|---|
Integer | n | 1 | Number of inputs = Number of outputs |
Type | Name | Description |
---|---|---|
input DigitalInput | x[n] | Connector of Digital input signal vector |
output DigitalOutput | y[n] | Connector of Digital output signal vector |
partial block MIMO "Multiple input - multiple output" import D = Modelica.Electrical.Digital; parameter Integer n(final min=1) = 1 "Number of inputs = Number of outputs";D.Interfaces.DigitalInput x[n] "Connector of Digital input signal vector"; D.Interfaces.DigitalOutput y[n] "Connector of Digital output signal vector"; end MIMO;