From 1767f8bbdf94ade51a3895c696840b6fcb825cc5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 9 Nov 2022 16:51:38 +0100 Subject: format/move code a little for consistency --- blink/blink.srcs/sources_1/main.vhd | 22 ++++++++++++++++++++++ blink/blink.srcs/sources_1/new/main.vhd | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 blink/blink.srcs/sources_1/main.vhd delete mode 100644 blink/blink.srcs/sources_1/new/main.vhd (limited to 'blink/blink.srcs/sources_1') diff --git a/blink/blink.srcs/sources_1/main.vhd b/blink/blink.srcs/sources_1/main.vhd new file mode 100644 index 0000000..12aff02 --- /dev/null +++ b/blink/blink.srcs/sources_1/main.vhd @@ -0,0 +1,22 @@ +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; diff --git a/blink/blink.srcs/sources_1/new/main.vhd b/blink/blink.srcs/sources_1/new/main.vhd deleted file mode 100644 index 12aff02..0000000 --- a/blink/blink.srcs/sources_1/new/main.vhd +++ /dev/null @@ -1,22 +0,0 @@ -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; -- cgit v1.2.3