Modelica.Electrical.Digital.Gates

Logic gates including delays

Information


Gates contains the basic gates according to standard logic as they are provided in the Basic package. Additionally they contain an InertialDelaySensitive component They are composed graphically, not using any equations.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Electrical.Digital.Gates.InvGate InvGate InvGate with 1 input value, composed by Not and sensitive intertial delay
Modelica.Electrical.Digital.Gates.AndGate AndGate AndGate with multiple input
Modelica.Electrical.Digital.Gates.NandGate NandGate NandGate with multiple input
Modelica.Electrical.Digital.Gates.OrGate OrGate OrGate with multiple input
Modelica.Electrical.Digital.Gates.NorGate NorGate NorGate with multiple input
Modelica.Electrical.Digital.Gates.XorGate XorGate XorGate with multiple input
Modelica.Electrical.Digital.Gates.XnorGate XnorGate XnorGate with multiple input
Modelica.Electrical.Digital.Gates.BufGate BufGate BufGate with 1 input value, composed by Not and sensitive intertial delay


Modelica.Electrical.Digital.Gates.InvGate Modelica.Electrical.Digital.Gates.InvGate

InvGate with 1 input value, composed by Not and sensitive intertial delay

Modelica.Electrical.Digital.Gates.InvGate

Information


The InvGate model has a single valued input, and a single valued output. It is composed by a Basic Not and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.SISO (Single input, single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output

Connectors

TypeNameDescription
input DigitalInputxConnector of Digital input signal
output DigitalOutputyConnector of Digital output signal

Modelica definition

model InvGate 
  "InvGate with 1 input value, composed by Not and sensitive intertial delay"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.SISO;
  D.Basic.Not G1;
  D.Delay.InertialDelaySensitive G2(tLH=tLH, tHL=tHL);
equation 
  connect(G2.y, y);
  connect(G1.x, x);
  connect(G1.y, G2.x);
end InvGate;

Modelica.Electrical.Digital.Gates.AndGate Modelica.Electrical.Digital.Gates.AndGate

AndGate with multiple input

Modelica.Electrical.Digital.Gates.AndGate

Information


The AndGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic And and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Interfaces.MISO (Multiple input - single output), D.Delay.DelayParams (Definition of delay parameters).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model AndGate "AndGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Interfaces.MISO;
  extends D.Delay.DelayParams;
  D.Basic.And G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(x, G1.x);
  connect(y, G2.y);
  connect(G1.y, G2.x);
end AndGate;

Modelica.Electrical.Digital.Gates.NandGate Modelica.Electrical.Digital.Gates.NandGate

NandGate with multiple input

Modelica.Electrical.Digital.Gates.NandGate

Information


The NandGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic Nand and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output
Integern2Number of inputs

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model NandGate "NandGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.MISO;
  D.Basic.Nand G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(x, G1.x);
  connect(G1.y, G2.x);
  connect(G2.y, y);
end NandGate;

Modelica.Electrical.Digital.Gates.OrGate Modelica.Electrical.Digital.Gates.OrGate

OrGate with multiple input

Modelica.Electrical.Digital.Gates.OrGate

Information


The OrGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic Or and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output
Integern2Number of inputs

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model OrGate "OrGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.MISO;
  D.Basic.Or G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(G1.y, G2.x);
  connect(x,G1. x);
  connect(y, G2.y);
end OrGate;

Modelica.Electrical.Digital.Gates.NorGate Modelica.Electrical.Digital.Gates.NorGate

NorGate with multiple input

Modelica.Electrical.Digital.Gates.NorGate

Information


The NorGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic Nor and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output
Integern2Number of inputs

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model NorGate "NorGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.MISO;
  D.Basic.Nor G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(G1.y, G2.x);
  connect(x, G1.x);
  connect(y, G2.y);
end NorGate;

Modelica.Electrical.Digital.Gates.XorGate Modelica.Electrical.Digital.Gates.XorGate

XorGate with multiple input

Modelica.Electrical.Digital.Gates.XorGate

Information


The XorGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic Xor and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output
Integern2Number of inputs

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model XorGate "XorGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.MISO;
  D.Basic.Xor G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(x, G1.x);
  connect(G1.y, G2.x);
  connect(G2.y, y);
end XorGate;

Modelica.Electrical.Digital.Gates.XnorGate Modelica.Electrical.Digital.Gates.XnorGate

XnorGate with multiple input

Modelica.Electrical.Digital.Gates.XnorGate

Information


The XnorGate model has a multiple valued (n) input vector, and a single valued output. It is composed by a Basic Xnor and an InertialDelaySensitive. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output
Integern2Number of inputs

Connectors

TypeNameDescription
input DigitalInputx[n]Connector of Digital input signal vector
output DigitalOutputyConnector of Digital output signal

Modelica definition

model XnorGate "XnorGate with multiple input"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.MISO;
  D.Basic.Xnor G1(final n=n);
  D.Delay.InertialDelaySensitive G2(
    tLH=tLH,
    tHL=tHL,
    y0=y0);
equation 
  connect(x, G1.x);
  connect(G2.y, y);
  connect(G1.y, G2.x);
end XnorGate;

Modelica.Electrical.Digital.Gates.BufGate Modelica.Electrical.Digital.Gates.BufGate

BufGate with 1 input value, composed by Not and sensitive intertial delay

Modelica.Electrical.Digital.Gates.BufGate

Information


The BufGate model has a single valued input, and a single valued output. It consists of an InertialDelaySensitive only. Its parameters are the delay parameters (rise and fall intertial delay time, and intitial value).

Extends from D.Delay.DelayParams (Definition of delay parameters), D.Interfaces.SISO (Single input, single output).

Parameters

TypeNameDefaultDescription
TimetLH Rise inertial delay [s]
TimetHL Fall inertial delay [s]
Logicy0L.'U'Initial value of output

Connectors

TypeNameDescription
input DigitalInputxConnector of Digital input signal
output DigitalOutputyConnector of Digital output signal

Modelica definition

model BufGate 
  "BufGate with 1 input value, composed by Not and sensitive intertial delay"
  import D = Modelica.Electrical.Digital;
  extends D.Delay.DelayParams;
  extends D.Interfaces.SISO;
  D.Delay.InertialDelaySensitive G1(tLH=tLH, tHL=tHL);
equation 
  connect(G1.y, y);
  connect(G1.x, x);
end BufGate;

Automatically generated Fri Nov 12 16:28:29 2010.