Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. ----------------------------------------------------------------------------------
  2. -- Company:
  3. -- Engineer:
  4. --
  5. -- Create Date: 15:03:39 12/13/2018
  6. -- Design Name:
  7. -- Module Name: TOP1 - 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.  
  23. -- Uncomment the following library declaration if using
  24. -- arithmetic functions with Signed or Unsigned values
  25. --use IEEE.NUMERIC_STD.ALL;
  26.  
  27. -- Uncomment the following library declaration if instantiating
  28. -- any Xilinx primitives in this code.
  29. --library UNISIM;
  30. --use UNISIM.VComponents.all;
  31.  
  32. entity TOP1 is
  33. Port ( inSTOP : in STD_LOGIC;
  34. inRL : in STD_LOGIC;
  35. inRR : in STD_LOGIC;
  36. inBLINK : in STD_LOGIC;
  37. iCLK : in STD_LOGIC;
  38. inRST : in STD_LOGIC;
  39. oLED : out STD_LOGIC_VECTOR (7 downto 0));
  40. end TOP1;
  41.  
  42. architecture Behavioral of TOP1 is
  43.  
  44. component LEDShow is
  45. Port ( inSTOP : in STD_LOGIC;
  46. inRL : in STD_LOGIC;
  47. inRR : in STD_LOGIC;
  48. inBLINK : in STD_LOGIC;
  49. oLED : out STD_LOGIC_VECTOR (7 downto 0);
  50. iCLK : in STD_LOGIC;
  51. inRST : in STD_LOGIC);
  52. end component;
  53.  
  54. component Modul2 is
  55. Port ( iDATA : in STD_LOGIC_VECTOR (7 downto 0);
  56. iCLK : in STD_LOGIC;
  57. inRST : in STD_LOGIC;
  58. oDATA : out STD_LOGIC_VECTOR (7 downto 0));
  59. end component;
  60.  
  61. signal S : std_logic_vector (7 downto 0);
  62.  
  63. begin
  64.  
  65. iCOMP1 : LEDShow port map (
  66. inSTOP => inSTOP,
  67. inRL => inRL,
  68. inRR => inRR,
  69. inBLINK => inBLINK,
  70. iCLK => iCLK,
  71. inRST => inRST,
  72. oLED => S
  73. );
  74.  
  75. iCOMP2 : Modul2 port map (
  76. iDATA => S,
  77. iCLK => iCLK,
  78. inRST => inRST,
  79. oDATA => oLED
  80. );
  81.  
  82.  
  83.  
  84. end Behavioral;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement