Professional Documents
Culture Documents
all; entity d_ff is port (d, clk : in std_logic; q, q_bar : out std_logic); end entity d_ff; architecture behav of d_ff is begin state_change : process (clk) is begin if clk'event and clk = '1' then q <= d; q_bar <= not d; end if; end process state_change; end architecture behave;