----------------------------------------------------------------------------------
-- Company: 
-- Engineer: 
-- 
-- Create Date:    13:40:20 01/07/2010 
-- Design Name: 
-- Module Name:    clock_generator - Behavioral 
-- Project Name: 
-- Target Devices: 
-- Tool versions: 
-- Description: 
--
-- Dependencies: 
--
-- Revision: 
-- Revision 0.01 - File Created
-- Additional Comments: 
--
----------------------------------------------------------------------------------
-- hds interface_start
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_unsigned.all;

--   synthesis translate_off
ENTITY clock_generator IS
   GENERIC( 
      clock_period : time := 20 ns;
      reset_time   : time := 50 ns
   );
   PORT( 
      clk : out    std_logic  := '0';
      rst : out    std_logic  := '0'
   );
END clock_generator ;
-- hds interface_end

architecture Behavioral of clock_generator is

begin
 
	clock_gen_proc: process
	begin
		clk <= '0';
		wait for clock_period / 2;
		clk <= '1';
		wait for clock_period / 2;
	end process clock_gen_proc;
	
	reset_gen_proc: process
	begin
		rst <= '1';
		wait for reset_time;
		rst <= '0';
		wait;
	end process reset_gen_proc;


end Behavioral;
--synthesis translate_on
