7 use IEEE.std_logic_1164.all;
 
  12         READ_SEL                        :in             std_logic_vector ( 1 downto 0);
 
  13         USER_DATA                       :in             std_logic_vector (31 downto 0);
 
  14         CONFIG_DATA             :in             std_logic_vector (31 downto 0);
 
  15         PCI_AD                          :in             std_logic_vector (31 downto 0);
 
  16         IO_DATA                         :out    std_logic_vector (31 downto 0)
 
  20 architecture IO_MUX_DESIGN of IO_MUX is
 
  22         signal  MUX             :std_logic_vector (31 downto 0); 
 
  26         MUX     <=      PCI_AD                  when    READ_SEL        =       "00"    else    -- WRITE_CONFIG 
 
  27                                         PCI_AD                  when    READ_SEL        =       "01"    else    -- WRITE_IO
 
  28                                         CONFIG_DATA     when    READ_SEL        =       "10"    else    -- READ_CONFIG 
 
  29                                         USER_DATA               when    READ_SEL        =       "11"    else    -- READ_IO      
 
  36 end architecture IO_MUX_DESIGN;