Fixed-Point Blockset    
FixPt Logical Operator

Perform the specified logical operation on the inputs

Description

The FixPt Logical Operation block is a masked S-function that performs the specified logical operation on its inputs. An input value is TRUE (1) if it is nonzero and FALSE (0) if it is zero.

You select the Boolean operation connecting the inputs with the Operator parameter list. The supported operations are given below.

Operation
Description
AND
TRUE if all inputs are TRUE
OR
TRUE if at least one input is TRUE
NAND
TRUE if at least one input is FALSE
NOR
TRUE when no inputs are TRUE
XOR
TRUE if an odd number of inputs are TRUE
NOT
TRUE if the input is FALSE

The number of input ports is specified with the Number of input ports parameter. The output type is specified with the Logical output data type parameter. An output value is 1 if TRUE and 0 if FALSE.

The size of the output depends on the number of inputs, their vector size, and the selected operator:

When configured as a multi-input XOR gate, this block performs an addition- modulo-two operation as mandated by the IEEE Standard for Logic Elements.

Parameters and Dialog Box

Operator
Logical operator used to connect the inputs.
Number of input ports
Number of inputs.
Logical output data type
Output data type. You should only use data types that represent zero exactly.

Characteristics

Input Port(s)
Any data type supported by the blockset
Output Port
Any data type supported by the blockset that can exactly represent zero
Direct Feedthrough
Yes
Sample Time
Inherited
Scalar Expansion
Of inputs
States
0
Vectorized
Yes


 FixPt Integer Delay FixPt Look-Up Table