Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About This Guide

This Application Note explains the use of the LogicBinaryOpCombination module in the Audio Weaver Application.

The LogicBinaryOpCombination Module

The LogicBinaryOpCombination module allows construction of logic equations of a specific form. While there can be multiple inputs and outputs, the following constraints apply.

...

The module has one input pin and one output pin. Multiple signals coming in must be interleaved onto multiple channels of a single wire. The input signals must be integers but they do not have to be boolean. The logic operations are applied bit by bit to the 32-bit integer value.

Valid and invalid combinations

The following combinations are valid:

...

Figure 6. Error: Gate input is not from previous stage

Configuring the module as a single gate

The simplest function, which is a single logic gate, requires two operations. By default, there is only one operation defined, so you must add another one. Let’s configure a NAND gate. This section of the layout has a wire with 7 channels of int data. We want to pick off channels 2 and 5 and NAND them together.

...

Figure 13. (( In[1] & In[3] ) | In[0] ) & In[2]

Multiple Expressions

Two expressions of three operations each are implemented below. Note that it is possible to use the same input channel in both expressions. You can add more expressions by increasing numOut. Each expression uses a single output channel.

...

Figure 17. Equivalent logic diagram

Typical uses

Although this module cannot be used to implement arbitrary combinatorial logic with N inputs and M outputs, it can be leveraged to quickly implement wide AND and OR gates.

...