-- +-----------------------------+ -- | Library: FF | -- | designer : Tim Pagden | -- | opened: 6 Jun 1993 | -- +-----------------------------+ -- Function: D-type transparent latch -- with active LOW enable library ieee; use ieee.std_logic_1164.all; entity d_latch is port ( d : in std_logic; enable : in std_logic; q : out std_logic ); end d_latch; architecture behaviour of d_latch is begin latch_d: process (enable, d) begin if enable='0' then q <= d; end if; end process; end behaviour;