Professional Documents
Culture Documents
d-ff
****************
---------------------------------------------
library ieee ;
use ieee.std_logic_1164.all;
use work.all;
---------------------------------------------
entity dff is
port( data_in: in std_logic;
clock: in std_logic;
data_out: out std_logic
);
end dff;
----------------------------------------------
process(data_in, clock)
begin
end process;
end behv;
----------------------------------------------
**************
jk-ff
**************
----------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
----------------------------------------------
entity JK_FF is
port ( clock: in std_logic;
J, K: in std_logic;
reset: in std_logic;
Q, Qbar: out std_logic
);
end JK_FF;
-----------------------------------------------
begin
if (reset='1') then
state <= '0';
elsif (rising_edge(clock)) then
end process;
-- concurrent statements
Q <= state;
Qbar <= not state;
end behv;