basys3top.vhd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ----------------------------------------------------------------------------------
  2. -- Company:
  3. -- Engineer:
  4. --
  5. -- Create Date: 06/07/2023 05:57:43 PM
  6. -- Design Name:
  7. -- Module Name: basys3top - 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_unsigned.ALL;
  23. -- Uncomment the following library declaration if using
  24. -- arithmetic functions with Signed or Unsigned values
  25. --use IEEE.NUMERIC_STD.ALL;
  26. -- Uncomment the following library declaration if instantiating
  27. -- any Xilinx leaf cells in this code.
  28. --library UNISIM;
  29. --use UNISIM.VComponents.all;
  30. entity basys3top is
  31. Port ( clk : in STD_LOGIC;
  32. seg : out STD_LOGIC_VECTOR (7 downto 0);
  33. ssel : out STD_LOGIC_VECTOR (3 downto 0));
  34. end basys3top;
  35. architecture Behavioral of basys3top is
  36. component seven_seg port(clk : in std_logic; data: in std_logic_vector(15 downto 0); seg: out std_logic_vector(7 downto 0); ssel: out std_logic_vector(3 downto 0));
  37. end component;
  38. begin
  39. sseg: seven_seg port map(clk => clk, data => x"1337", seg => seg, ssel => ssel);
  40. end Behavioral;