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

ID 683337
Date 7/15/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

14.4.40. Multiplexer (Mux)

The Mux block allows a variable number of inputs and outputs the selected input, or zero if the select value is invalid (outside the number of data signals).
Note: You can make a multiple input multiplexer by combining more than one mux2 blocks in a tree or by using a Select block.

.

Table 227.  Parameters for the Mux Block
Parameter Description
Number of data signals The input type for s is an unsigned integer of width log2(number of data signals). Boolean is also allowed in the case of two data 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 228.  Port Interface for the Mux Block
Signal Direction Type Description Vector Data Support Complex Data Support
s Input Any fixed-point type Select input Yes No
0 Input Any fixed- or floating-point type Input 0 Yes Yes
1 Input Any fixed- or floating-point type Input 1 Yes Yes
q Output Derived fixed- or floating-point type Result Yes Yes