Modelica.Electrical.Digital.Basic

Basic logic blocks without delays

Information



Package Content

NameDescription
Modelica.Electrical.Digital.Basic.Not Not Not Logic
Modelica.Electrical.Digital.Basic.And And And logic with multiple input and one output
Modelica.Electrical.Digital.Basic.Nand Nand Nand logic with multiple input and one output
Modelica.Electrical.Digital.Basic.Or Or Or logic with multiple input and one output
Modelica.Electrical.Digital.Basic.Nor Nor Nor logic with multiple input and one output
Modelica.Electrical.Digital.Basic.Xor Xor Xor logic with multiple input and one output
Modelica.Electrical.Digital.Basic.Xnor Xnor Xnor logic with multiple input and one output


Modelica.Electrical.Digital.Basic.Not Modelica.Electrical.Digital.Basic.Not

Not Logic

Modelica.Electrical.Digital.Basic.Not

Information


Not with 1 input value, without delay.

Extends from D.Interfaces.SISO (Single input, single output).

Connectors

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

Modelica definition

model Not "Not Logic"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.SISO;
protected 
  D.Interfaces.Logic auxiliary(start=L.'0', fixed=true);
equation 
  auxiliary = D.Tables.NotTable[x];
  y = pre(auxiliary);
end Not;

Modelica.Electrical.Digital.Basic.And Modelica.Electrical.Digital.Basic.And

And logic with multiple input and one output

Modelica.Electrical.Digital.Basic.And

Information


And with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model And "And logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.AndTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(auxiliary[n]);
end And;

Modelica.Electrical.Digital.Basic.Nand Modelica.Electrical.Digital.Basic.Nand

Nand logic with multiple input and one output

Modelica.Electrical.Digital.Basic.Nand

Information


Nand with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model Nand "Nand logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.AndTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(D.Tables.NotTable[auxiliary[n]]);
end Nand;

Modelica.Electrical.Digital.Basic.Or Modelica.Electrical.Digital.Basic.Or

Or logic with multiple input and one output

Modelica.Electrical.Digital.Basic.Or

Information


Or with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model Or "Or logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.OrTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(auxiliary[n]);
end Or;

Modelica.Electrical.Digital.Basic.Nor Modelica.Electrical.Digital.Basic.Nor

Nor logic with multiple input and one output

Modelica.Electrical.Digital.Basic.Nor

Information


Nor with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model Nor "Nor logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.OrTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(D.Tables.NotTable[auxiliary[n]]);
end Nor;

Modelica.Electrical.Digital.Basic.Xor Modelica.Electrical.Digital.Basic.Xor

Xor logic with multiple input and one output

Modelica.Electrical.Digital.Basic.Xor

Information


Xor with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model Xor "Xor logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.XorTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(auxiliary[n]);
end Xor;

Modelica.Electrical.Digital.Basic.Xnor Modelica.Electrical.Digital.Basic.Xnor

Xnor logic with multiple input and one output

Modelica.Electrical.Digital.Basic.Xnor

Information


XNor with n input values, without delay.

Extends from D.Interfaces.MISO (Multiple input - single output).

Parameters

TypeNameDefaultDescription
Integern2Number of inputs

Connectors

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

Modelica definition

model Xnor "Xnor logic with multiple input and one output"
  import D = Modelica.Electrical.Digital;
  import L = Modelica.Electrical.Digital.Interfaces.Logic;
  extends D.Interfaces.MISO;
protected 
  D.Interfaces.Logic auxiliary[n](each start=L.'U', each fixed=true);
equation 
  auxiliary[1] = x[1];
  for i in 1:n - 1 loop
    auxiliary[i + 1] = D.Tables.XorTable[auxiliary[i], x[i + 1]];
  end for;
  y = pre(D.Tables.NotTable[auxiliary[n]]);
end Xnor;

HTML-documentation generated by Dymola Sun Jan 17 21:10:28 2010.