aboutsummaryrefslogtreecommitdiff
path: root/blink/blink.srcs/sources_1/new/main.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'blink/blink.srcs/sources_1/new/main.vhd')
-rw-r--r--blink/blink.srcs/sources_1/new/main.vhd23
1 files changed, 23 insertions, 0 deletions
diff --git a/blink/blink.srcs/sources_1/new/main.vhd b/blink/blink.srcs/sources_1/new/main.vhd
new file mode 100644
index 0000000..b90915b
--- /dev/null
+++ b/blink/blink.srcs/sources_1/new/main.vhd
@@ -0,0 +1,23 @@
+library IEEE;
+use IEEE.STD_LOGIC_1164.ALL;
+use IEEE.STD_LOGIC_ARITH.ALL;
+use IEEE.STD_LOGIC_UNSIGNED.ALL;
+use IEEE.NUMERIC_STD.ALL;
+
+entity main is
+ Port (clk : in STD_LOGIC;
+ led : out STD_LOGIC);
+end main;
+
+architecture Behavioral of main is
+ signal count: STD_LOGIC_VECTOR(24 downto 0);
+begin
+ process(clk)
+ begin
+ if rising_edge(clk) then
+ count <= (count + 1);
+ end if;
+ end process;
+ led <= count(24);
+
+end Behavioral;