JK FF Testbench
JK FF Testbench
JK FF Testbench
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.numeric_std.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
ENTITY jkff_jkff_test_vhd_tb IS
END jkff_jkff_test_vhd_tb;
COMPONENT jkff
PORT(
clk : IN std_logic;
reset : IN std_logic;
j : IN std_logic;
k : IN std_logic;
q : INOUT std_logic;
qbar : INOUT std_logic
);
END COMPONENT;
BEGIN
END PROCESS;
tb : PROCESS
BEGIN
reset<='1';
qpre<=temp(2);
j<=temp(1);
k<=temp(0);
wait for 3 ns;
END PROCESS;
END;
Simulation Result
# ** Note: Correct output of JK flip flop
# Time: 3 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 6 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 9 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 9 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 12 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 12 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 15 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 18 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 18 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 21 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 21 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 24 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 24 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 27 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 30 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 30 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 33 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 33 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Assertion violation.
# Time: 36 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop
# Time: 36 ns Iteration: 0 Instance: /jkff_jkff_test_vhd_tb
# ** Note: Correct output of JK flip flop