library IEEE; use IEEE.std_logic_1164.all; entity Vdff74 is port (D, CLK, PR_L, CLR_L: in STD_LOGIC; Q, QN: out STD_LOGIC ); end Vdff74; architecture Vdff74_b of Vdff74 is signal PR, CLR: STD_LOGIC; begin process(CLR_L, CLR, PR_L, PR, CLK) begin PR <= not PR_L; CLR <= not CLR_L; if (CLR and PR) = '1' then Q <= '0'; QN <= '0'; elsif CLR = '1' then Q <= '0'; QN <= '1'; elsif PR = '1' then Q <= '1'; QN <= '0'; elsif (CLK'event and CLK = '1') then Q <= D; QN <= not D; end if; end process; end Vdff74_b;