Logic and Bit Operations
In the Logic and Bit Operations of the basic block library, you can perform various bitwise operations, logic comparisons, and signal change tests. These blocks allow you to manipulate bits, perform arithmetic and logic shifts, and detect signal changes and edges.
- Bit Clear
-
Sets the specified input bit to zero.
- Bit Concat
-
Combines up to 16 input words into one output.
- Bit Reduce
-
Reduces the AND, OR, or XOR bits of all input signal bits to one bit.
- Bit Rotate
-
Shifts the input signal by bit positions.
- Bit Set
-
Sets the specified bit of the input signal to one.
- Bit Shift
-
Performs a logical or arithmetic shift of the input signal.
- Bit Slice
-
Returns a field of consecutive bits from the input signal.
- Bit to Integer Converter
-
Maps a vector of bits to the corresponding vector of integers.
- Bits to Word
-
Converts a bit vector to an integer.
- Bitwise Operator
-
Performs a specified bitwise operation on the input signals.
- Combinatorial Logic
-
Performs logical operations on the truth table.
- Compare To Constant
-
Compares the input signal with a constant.
- Compare To Zero
-
Compares the input signal with zero.
- Detect Change
-
Detecting a change in the signal value.
- Detect Decrease
-
Detection of a signal cutoff.
- Detect Fall Negative
-
Detection of a falling edge, provided that the signal value decreases to a strictly negative value, and its previous value was non-negative.
- Detect Fall Nonpositive
-
Detection of a falling edge, provided that the signal value decreases to a non-positive value, and its previous value was strictly positive.
- Detect Increase
-
Detection of the signal edge.
- Detect Rise Nonnegative
-
Detection of a rising edge, provided that the value of the signal increases to a non-negative value, and its previous value was strictly negative.
- Detect Rise Positive
-
Detection of a rising edge, provided that the signal value increases to a strictly positive value, and its previous value was non-positive.
- Extract Bits
-
Output of a sample of consecutive bits from an input signal.
- Interval Test
-
Determines whether the signal is in the specified range.
- Interval Test Dynamic
-
Determines whether the signal is in the specified range.
- Logical Operator
-
Performs the specified logical operation on the input signals.
- Relational Operator
-
Compares the input signals.
- Shift Arithmetic
-
Performs a bit shift or a binary point of the signal.