PLECS 3.5 Online Help

Combinatorial Logic

Purpose

Use binary input signals to select one row from truth table

Library

Control / Logical

Description

pict

The Combinatorial Logic block interprets its input signals as boolean values. It calculates a row number        ∑   i
r = 1 +  i2ui   where ui = 1   if the i  th input signal is greater than 0, ui = 0   otherwise. The output of the Combinatorial Logic block is the r  th row of the truth table. For example, when using a truth table

⌊         ⌋
| 1.5   0 |
|⌈   4  2.5 |⌉
    3  1.5
  5.5   0

the output is:

Input  Output
[0 0]  [1.5 0]
[0 1]  [4 2.5]
[1 0]  [3 1.5]
[1 1]  [5.5 0]

Parameter

Truth table
The truth table to calculate the output. The table must have  n
2   rows where n   is the width of the input signal. The number of columns corresponds to the width of the output signal.

Probe Signals

Input
The input signals.
Output
The output signals.