From eb95026ab9007631eb8e2a1c54dcd38fabcb60ad Mon Sep 17 00:00:00 2001 From: saurabhb17 Date: Wed, 18 Dec 2019 15:13:23 +0530 Subject: Examples Restructered --- Example/counter/up_counter_slv.vhdl | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 Example/counter/up_counter_slv.vhdl (limited to 'Example/counter/up_counter_slv.vhdl') diff --git a/Example/counter/up_counter_slv.vhdl b/Example/counter/up_counter_slv.vhdl deleted file mode 100644 index afef463..0000000 --- a/Example/counter/up_counter_slv.vhdl +++ /dev/null @@ -1,24 +0,0 @@ -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity up_counter_slv is -port(C : in std_logic; - CLR : in std_logic; - Q : out std_logic_vector(3 downto 0)); -end up_counter_slv; - -architecture bhv of up_counter_slv is - signal tmp: std_logic_vector(3 downto 0); - begin - process (C, CLR) - begin - if (CLR='1') then - tmp <= "0000"; - elsif (C'event and C='1') then - tmp <= std_logic_vector(to_unsigned(1+to_integer(unsigned(tmp)), tmp'length)); - end if; - end process; - Q <= tmp; - -end bhv; \ No newline at end of file -- cgit