-- ------------------------------------------------
-- Model        :   373 Latch
--
-- File         :   latch373.vhd
--
-- Author       :   Michael Mayer,
--                  Department of Electrical Engineering
--                  University of Missouri - Rolla
--
-- Date Started :   December 3, 1997 
--
-- Limitations  :  
--
-- Revisions    :
--
-- REV    DATE       Description
-- -----  --------   _____________________________________ 
--

LIBRARY ieee; 
USE ieee.std_logic_1164.ALL;


ENTITY latch373 IS
    PORT (
        D    : IN  std_logic_vector(7 DOWNTO 0);  -- used for data input
        Q    : OUT std_logic_vector(7 DOWNTO 0);  -- used for data input
        LE   : IN  std_logic;   -- latch enable
        OE_n : IN  std_logic   -- output enable (active low)
     );
END ENTITY latch373;

ARCHITECTURE behav OF latch373 IS
    SIGNAL latched_data : std_logic_vector(7 DOWNTO 0);
BEGIN
    latched_data <= to_X01(D) WHEN to_X01(LE) = '1'
                    ELSE UNAFFECTED;
    Q <= latched_data WHEN to_X01(OE_n) = '0'
                    ELSE (OTHERS=>'Z');
END;
    
<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>