library IEEE; use IEEE.std_logic_1164.all; entity Vdlatch is port (D, C: in STD_LOGIC; Q, QN: buffer STD_LOGIC ); end Vdlatch; architecture Vdlatch_b of Vdlatch is begin process(C, D, Q) begin if (C='1') then Q <= D; end if; QN <= not Q; end process; end Vdlatch_b;