Created
August 30, 2014 04:18
-
-
Save davilamds/e66de0854a66415ce4d5 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 encoderp_sym IS | |
END encoderp_sym; | |
ARCHITECTURE tb_arch OF encoderp_sym IS | |
signal test_r: std_logic_vector(4 downto 1); | |
signal test_pcode: std_logic_vector(2 downto 0); | |
begin | |
uut: entity work.Priority_encoder(cond_arch) | |
port map(r => test_r, pcode=> test_pcode); | |
process | |
begin | |
test_r<="1000"; | |
wait for 100 ns; | |
test_r<="0100"; | |
wait for 100 ns; | |
test_r<="0010"; | |
wait for 100 ns; | |
test_r<="0001"; | |
wait for 100 ns; | |
test_r<="0000"; | |
wait for 100 ns; | |
test_r<="1111"; | |
wait for 100 ns; | |
test_r<="0111"; | |
wait for 100 ns; | |
test_r<="0011"; | |
wait for 100 ns; | |
test_r<="0001"; | |
wait for 100 ns; | |
test_r<="0000"; | |
wait for 100 ns; | |
end process; | |
end tb_arch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment