ABSTRACT

Selection macros (functions) are provided to enable one value to be selected from a number of given values according to certain criteria. The following selection macros are described in this chapter: move_R (Move), load_R (Load), select (Selection of One of Two 8-Bit Input Variables), select_16 (Selection of One of Two 16-Bit Input Variables), max_5 (Maximum in Five 8-Bit Variables), max_10 (Maximum in Ten 8-Bit Variables), max_N80 (Maximum in N 8-Bit Variables, N = 2, 3, …, 80), max_N40_16 (Maximum in N 16-Bit Variables, N = 2, 3, …, 40), max_N255 (Maximum in N 8-Bit Variables, N = 2, 3, …, 255), max_N255_16 (Maximum in N 16-Bit Variables, N = 2, 3, …, 255), min_5 (Minimum in Five 8-Bit Variables), min_10 (Minimum in Ten 8-Bit Variables), min_N80 (Minimum in N 8-Bit Variables, N = 2, 3, …, 80), min_N40_16 (Minimum in N 16-Bit Variables, N = 2, 3, …, 40), min_N255 (Minimum in N 8-Bit Variables, N = 2, 3, …, 255), min_N255_16 (Minimum in N 16-Bit Variables, N = 2, 3, …, 255), limiter, limiter_16, mux_2_1 (2×1 MUX), mux_2_1_E (2×1 MUX with Enable input), mux_4_1 (4×1 MUX), mux_4_1_E (4×1 MUX with Enable input), mux_8_1 (8×1 MUX), mux_8_1_E (8×1 MUX with Enable input), mux_16_1 (16×1 MUX), mux_16_1_E (16×1 MUX with Enable input), B_mux_2_1_E (2×1 Byte Multiplexer with Enable input), B_mux_4_1_E (4×1 Byte Multiplexer with Enable input), B_mux_8_1_E (8×1 Byte Multiplexer with Enable input). Twenty-two examples are considered to show the application of selection macros presented in this chapter.