PLECS 3.0 Online Help

Combinatorial Logic

Purpose

Output a row from a truth table which is selected by the input signals.

Library

Control / Functions & Tables

Description

pict

The Combinatorial Logic block interprets its input signals as boolean values. It calculates a row number        ∑   i
r = 1+   i2 ui   where ui = 0   if the i  th input signal is 0, ui = 1   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 [5.5 0] for input values [0 0] and [4 2.5] for input values [0 1].

Parameter

Truth table
The truth table to calculate the output. The table must have 2n   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.