-- ----------------------------------------------------------------------- -- FILE: ffd_ce_rst.vhd -- DATE: 13 August 1999 -- AUTHOR: Antonio Esteves, GEC-DI-UM -- -- D Flip-flop with clock enable and asynchronous reset. -- ----------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_unsigned.all; -- flip-flop with clock enable and asynchronous reset entity ffd_ce_rst is port ( data_in : in std_logic; clock : in std_logic; enable : in std_logic; reset : in std_logic; data_out : out std_logic ); end ffd_ce_rst ; architecture rtl of ffd_ce_rst is begin process (reset, clock, enable) begin if (reset='1') then data_out <= '0'; elsif (clock'event and clock='1') then if (enable='1') then data_out <= data_in ; end if; end if; end process; end rtl; -- -----------------------------------------------------------------------