LogicToBoolean

Logic to Boolean converter

    LogicToBoolean

Library

Modelica/Electrical/Digital/Converters

Description

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

 input                 output 'U'  (coded by 1)     false 'X'  (coded by 2)     false '0'  (coded by 3)     false '1'  (coded by 4)     true 'Z'  (coded by 5)     false 'W'  (coded by 6)     false 'L'  (coded by 7)     false 'H'  (coded by 8)     true '-'  (coded by 9)     false

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

Parameters

LogicToBoolean_0

NameLabelDescriptionData TypeValid Values

mo_n

n

signal width

Scalar

LogicToBoolean_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

x

implicit

input

1

y

implicit

output

1

See Also