--
-- VHDL Architecture vme_firmware.i2c_lm82_wr.rtl
--
-- Created:
--          by - st79.UNKNOWN (TE2MALDIVES)
--          at - 14:06:49 02/06/04
--
-- Generated by Mentor Graphics' HDL Designer(TM) 2002.1b (Build 7)
--
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
USE ieee.numeric_std.ALL;
USE IEEE.VITAL_Timing.all;

ENTITY i2c_lm82_wr IS
   PORT( 
      CLK_80        : IN     std_logic;
      data_from_vme : IN     std_logic_VECTOR (31 DOWNTO 0);
      for_lm82_wr   : IN     std_logic;
      rst           : IN     std_logic;
      write         : IN     std_logic;
      data_to_lm82  : OUT    std_logic_VECTOR (16 DOWNTO 0)
   );

-- Declarations

END i2c_lm82_wr ;
ARCHITECTURE rtl OF i2c_lm82_wr IS
BEGIN
process(clk_80, rst)
begin

If rst = '1' then

	data_to_lm82 <= (others => '0') after 1 ns;  

elsif clk_80'event and clk_80 = '1' then
	
	If (write = '1' and for_lm82_wr = '1') then
		data_to_lm82 <= data_from_vme(16 downto 0) after 1 ns;
	end if;

end if;
end process;

END rtl;

