LogicalBlocks package

Requirements.LogicalBlocks  ยท source

Icon of LogicalBlocks

Library of logical blocks (2-/4-valued logical operators with and without memory)

Extends Modelica.Icons.Package

This package contains input/output blocks that operate on Boolean and Property signals (4-valued logic: Violated, Undecided, Satisfied, Undefined). The blocks are used to build the condition and check signals of requirements graphically. The package contains:

The blocks are demonstrated in Examples.Elementary.LogicalBlocks.

Contents

NameKindDescription
BooleanToPropertyblockConvert Boolean (false,true) to Property (Violated, Satisfied)
IntegerToPropertyblockConvert Integer (1,2,3,4) to Property (Violated, Undecided, Satisfied, Undefined)
PropertyToBooleanblockConvert Property (Violated, Undecided, Satisfied, Undefined) to Boolean (false, true)
PropertyToIntegerblockConvert Property (Violated, Undecided, Satisfied, Undefined) to Integer (1,2,3,4)
GreaterThresholdblockOutput y is true if input u is greater than threshold
GreaterEqualThresholdblockOutput y is true if input u is greater or equal than threshold
LessThresholdblockOutput y is true if input u is less than threshold
LessEqualThresholdblockOutput y is true if input u is less or equal than threshold
WithinBandblockOutput y is true if input u is within a lower and upper threshold
DelayedRisingblockOutput y is true after a duration of a rising input edge and false after a falling input edge
AnyTrueblockOutput y is true if at least on input is true (\"or\" of all inputs)
AllTrueblockOutput y is true if all inputs are true (\"and\" of all inputs)
PropertyNotblock4-valued logic 'not' of Property input u: y = not4(u)
PropertyOrblock4-valued logic 'or' of Property input u: y = or4All(u) = u[1] or u[2] or ... or u[nu]
PropertyAndblock4-valued logic 'and' of Property input u: y = and4All(u) = u[1] and u[2] and ... and u[nu]
FallingEdgeTerminateblockTerminate simulation when a falling edge of the input u occurs