Last active
August 29, 2015 13:59
-
-
Save davilamds/10903391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library ieee; | |
use ieee.std_logic_1164.all; | |
entity eq2_testbench is | |
end eq2_testbench; | |
architecture tb_arch of eq2_testbench is | |
signal test_in0 , test_in1 : std_logic_vector (1 downto 0); | |
signal test_out : std_logic; | |
begin | |
uut : entity work.eq2(struc_arch) | |
port map(a=>test_in0 , b=>test_in1 , aeqb=>test_out); | |
process | |
begin | |
test_in0<="00"; | |
test_in1<="00"; | |
wait for 200 ns; | |
test_in0<="01"; | |
test_in1<="00"; | |
wait for 200 ns; | |
test_in0<="01"; | |
test_in1<="11"; | |
wait for 200 ns; | |
test_in0<="10"; | |
test_in1<="10"; | |
wait for 200 ns; | |
test_in0<="10"; | |
test_in1<="00"; | |
wait for 200 ns; | |
test_in0<="11"; | |
test_in1<="11"; | |
wait for 200 ns; | |
test_in0<="11"; | |
test_in1<="01"; | |
wait for 200 ns; | |
end process; | |
end tb_arch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment