-- +-----------------------------+ -- | Library: multiplexer | -- | designer : Tim Pagden | -- | opened: 7 Jul 1998 | -- +-----------------------------+ -- Function: N-bit demultiplexer library ieee; use ieee.std_logic_1164.all; entity demux_generic is generic ( in_width : integer := 1 ); port ( a : in std_ulogic_vector(in_width-1 downto 0); enable : in std_ulogic; y : out std_ulogic_vector((2 ** in_width)-1 downto 0) ); end demux_generic;