library ieee;
use ieee.std_logic_1164.all;
entity bejoy_jkff is
port(j,k,clk:in std_logic;q,q1,z:inout std_logic);
end bejoy_jkff;
architecture arc of bejoy_jkff is
begin
process(clk)
begin
if clk='1' then
z<=(j and (not q)) or ((not k) and q);
q<=z after 5ns;
q1<=not z after 5ns;
end if;
end process;
end arc;
use ieee.std_logic_1164.all;
entity bejoy_jkff is
port(j,k,clk:in std_logic;q,q1,z:inout std_logic);
end bejoy_jkff;
architecture arc of bejoy_jkff is
begin
process(clk)
begin
if clk='1' then
z<=(j and (not q)) or ((not k) and q);
q<=z after 5ns;
q1<=not z after 5ns;
end if;
end process;
end arc;
nice one...thanks for sharing.
ReplyDeletenice coding
ReplyDeletethanks for posting this
ReplyDeletethank you for posting dude !!!!
DeleteWhen J=1 & K=1, how will the values toggle?
ReplyDeletenice dude
ReplyDeletestfu nigga!
ReplyDeletethanks anyways
thnx yaar.. practical mei kaam aa gya :)
ReplyDelete