blockBooleanToLogic

Boolean to Logic converter

Information

Conversion of a Boolean input into a digital output without any delay according to:

input      output
true       '1'  (coded by 4)
false      '0'  (coded by 3)

If the signal width is greater than 1 this conversion is done for each signal.

Parameters

TypeNameDefaultDescription
IntegernSignal width

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInput[n]x
Modelica.Electrical.Digital.Interfaces.DigitalOutput[n]y

Revisions

  • September 15, 2004 by Christoph Clauss colors changed
  • November 4, 2003 by Christoph Clauss
    initially modelled.