How to Design a J-K Flip Flop Using VHDL?

  • Thread starter Thread starter hajer jamal
  • Start date Start date
  • Tags Tags
    Flip flop
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
hajer jamal
Messages
2
Reaction score
0
j_k flip flop .by using vhdl ..please help

hi every body

i hope every things gana be okay

i really have pro,,in my class

so anyone can help me please give is hand to help

any ways ,, my problem is about ,, my doctor give us homework about some things we don't know how to do , so it's about how can design j
j-k flip flop by using vhdl

anyways ,, tnaks a lot
 
on Phys.org


try this:

Entity T_FF IS
PORT( T, Clock : IN STD_LOGIC;
Q : OUT STD_LOGIC;
END T_FF;
ARCHITECTURE Behavior OF T_FF IS
signal tmp : STD_LOGIC;
BEGIN
PROCESS (Clock)
BEGIN
IF Clock' EVENT AND Clock = '1' THEN
if T = '1' THEN
tmp <= NOT tmp;
else
tmp <= tmp;
end IF;
END IF;
END PROCESS;
Q <= tmp;
END Behavior
 


thanks a lot for help
and i still search for good one