Files
mgebyehu.nikhef.nl f88fad6626 temp save on 23-05-2013
2013-05-23 12:48:14 +00:00

67 lines
1.8 KiB
VHDL

--------------------------------------------------------------------------------
--
-- This VHDL file was generated by EASE/HDL 7.4 Revision 8 from HDL Works B.V.
--
-- Ease library : work
-- HDL library : work
-- Host name : ilex
-- User name : mgebyehu
-- Time stamp : Wed May 22 13:03:51 2013
--
-- Designed by :
-- Company :
-- Project info :
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Object : Entity work.LedDrv
-- Last modified : Tue Apr 09 15:46:24 2013.
--------------------------------------------------------------------------------
library ieee, work, unisim;
use ieee.std_logic_1164.all;
use work.endpoint_pkg.all;
use work.sysc_wbgen2_pkg.all;
use work.wrcore_pkg.all;
use work.genram_pkg.all;
use work.memory_loader_pkg.all;
use work.wishbone_pkg.all;
use work.wr_fabric_pkg.all;
use unisim.VCOMPONENTS.all;
use ieee.std_logic_unsigned.all;
entity LedDrv is
port(
blink : out std_logic;
clk_sys_i : in std_logic;
rst_n_i : in std_logic);
end entity LedDrv;
--------------------------------------------------------------------------------
-- Object : Architecture work.LedDrv.structure
-- Last modified : Tue Apr 09 15:46:24 2013.
--------------------------------------------------------------------------------
architecture structure of LedDrv is
signal counter : std_logic_vector(32 downto 0);
begin
blink <= counter(24);
process(clk_sys_i, rst_n_i)
begin
if(rst_n_i = '0') then
counter <= (others => '0');
elsif(rising_edge(clk_sys_i)) then
counter <= counter + 1;
end if;
end process;
end architecture structure ; -- of LedDrv