LogicalBlocks package

Requirements.Examples.Elementary.LogicalBlocks  ยท source

Icon of LogicalBlocks

Library of examples using LogicalBlocks blocks

Extends Modelica.Icons.ExamplesPackage

Examples of the blocks of package LogicalBlocks: the conversions between Boolean, Integer and Property signals, threshold comparisons of a Real signal, a delayed rising edge, the logical or and and of Boolean vectors (AnyTrue, AllTrue), and the not, or and and of Property signals in the multi-valued logic of the library. PropertyTable4 asserts the complete four-valued truth tables of and, or and not, including the value Undefined, together with the algebraic laws that hold and those that fail.

Contents

NameKindDescription
ConversionsmodelExamples for BooleanToProperty, IntegerToProperty, PropertyToBoolean, PropertyToInteger
ThresholdComparisonsmodelExamples for the threshold comparison blocks in package LogicalBlocks
DelayedRisingmodelExample for DelayedRising (output is true, after a duration of a rising input edge and false after a falling input edge)
AnyTruemodelExample for AnyTrue (output is true if at least one input is true)
AllTruemodelExample for AllTrue (output is true if all inputs are true)
PropertyNotmodelExample for PropertyNot (4-valued logic 'not' of a Property input)
PropertyOrmodelExample for PropertyOr (3-valued logic 'or' of Property input u)
PropertyAndmodelExample for PropertyAnd (3-valued logic 'and' of Property input u)
PropertyTable4modelThe four-valued (ETL) tables of and4, or4 and not4 asserted entry by entry, and the laws that fail