1 -------------------------------------------------------
3 --! @brief 2:1 Mux using with-select
4 -------------------------------------------------------
6 --! Use standard library
9 use ieee.std_logic_1164.all;
11 --! Mux entity brief description
13 --! Detailed description of this
14 --! mux design element.
15 entity mux_using_with is
17 din_0 : in std_logic; --! Mux first input
18 din_1 : in std_logic; --! Mux Second input
19 sel : in std_logic; --! Select input
20 mux_out : out std_logic --! Mux output
24 --! @brief Architure definition of the MUX
25 --! @details More details about this mux element.
26 architecture behavior of mux_using_with is
29 mux_out <= din_0 when '0',