Advertisement
Guest User

EJ1

a guest
Sep 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 1.07 KB | None | 0 0
  1. ----------------------------------------------------------------------------------
  2. -- Company:
  3. -- Engineer:
  4. --
  5. -- Create Date:    08:22:46 09/13/2018
  6. -- Design Name:
  7. -- Module Name:    tp06_ej01 - Behavioral
  8. -- Project Name:
  9. -- Target Devices:
  10. -- Tool versions:
  11. -- Description:
  12. --
  13. -- Dependencies:
  14. --
  15. -- Revision:
  16. -- Revision 0.01 - File Created
  17. -- Additional Comments:
  18. --
  19. ----------------------------------------------------------------------------------
  20. library IEEE;
  21. use IEEE.STD_LOGIC_1164.ALL;
  22. use IEEE.STD_LOGIC_ARITH.ALL;
  23. use IEEE.STD_LOGIC_UNSIGNED.ALL;
  24.  
  25. ---- Uncomment the following library declaration if instantiating
  26. ---- any Xilinx primitives in this code.
  27. --library UNISIM;
  28. --use UNISIM.VComponents.all;
  29.  
  30. entity tp06_ej01 is
  31.     Port ( C : in  STD_LOGIC;
  32.            B : in  STD_LOGIC;
  33.            A : in  STD_LOGIC;
  34.            Y : out  STD_LOGIC);
  35. end tp06_ej01;
  36.  
  37. architecture Behavioral of tp06_ej01 is
  38. begin
  39. Y<=(NOT C AND NOT B AND A)OR
  40. (NOT C AND B AND NOT A)OR
  41. (C AND NOT B AND NOT A)OR
  42. (C AND B AND A);
  43.  
  44. end Behavioral;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement