library ieee;
use ieee.std_logic_1164.all;

entity INHIBITED_TFF is
  generic (TPHTQ, TPHRQ : time);
  port (I0, T, RESET : in std_logic;
        Q, QN : out std_logic);
end INHIBITED_TFF;

architecture BEHAV of INHIBITED_TFF is
begin
  process (I0, T, RESET)
  begin
    if (RESET = '1') then
      Q <= '0' after TPHRQ;
      QN <= '1' after TPHRQ;
    elsif (T'event and T = '1' and I0 = '1') then
      Q <= not Q after TPHTQ;
      QN <= not QN after TPHTQ;
    end if;
  end process;
end BEHAV;
    

