Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library IEEE;
- use IEEE.STD_LOGIC_1164.ALL;
- entity BlinkLEDs is
- Port ( CLK : in STD_LOGIC;
- LED : out STD_LOGIC);
- end BlinkLEDs;
- architecture Behavioral of BlinkLEDs is
- signal pulse : std_logic := '0';
- signal count : integer range 0 to 49999999 := 0;
- begin
- counter : process(CLK)
- begin
- if CLK'event and CLK = '1' then
- if count = 4 then
- count <= 0;
- pulse <= not pulse;
- else
- count <= count + 1;
- end if;
- end if;
- end process;
- LED <= pulse;
- end Behavioral;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement