DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 9/30/2024
Public
Document Table of Contents

14.4.60. XOR Gate (Xor)

The Xor block outputs the logical XOR of the input values:

q = (a XOR b)

Set the number of inputs to 1, to output the logical XOR of all the individual bits of the input word.

.

Table 265.  Parameters for the Xor Block
Parameter Description
Number of inputs Specifies the number of inputs.
Output data type mode Determines how the block sets its output data type:
  • Inherit via internal rule: the number of integer and fractional bits is the maximum of the number of bits in the input data types.
  • Specify via dialog: you can set the output type of the block explicitly using additional fields that are available when this option is selected.This option reinterprets the output bit pattern from the LSB up according to the specified type.
  • Boolean: the output type is Boolean.
Output data type Specifies the output data type. For example, sfix(16), uint(8).
Output scaling value Specifies the output scaling value. For example, 2^-15.
Table 266.  Port Interface for the Xor Block
Signal Direction Type Description Vector Data Support Complex Data Support
a Input Any fixed-point type Operand 1 Yes No
b Input Any fixed-point type Operand 2 Yes No
q Output Derived fixed-point type Result Yes No