Sequential Processing 43
I0I1A BQMUX4ABQ00I010I101I211I3I3I2Figure 3-1
Four Input Mux Sym-
bol and Function.
Let’s look at two examples that illustrate this point more clearly. Both
examples are models of a 4 to 1 multiplexer device. The symbol and truth
table for this device are shown in Figure 3-1. One of the four input signals
is propagated to the output depending on the values of inputs A and B.
The first model for the multiplexer is an incorrect model, and the second
is a corrected version of the model.Incorrect Mux Example
The incorrect model of the multiplexer has a flaw in it that causes the
model to produce incorrect results. This is shown by the following model:LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
ENTITY mux IS
PORT (i0, i1, i2, i3, a, b : IN std_logic;