OpenCores
URL https://opencores.org/ocsvn/i2c/i2c/trunk

Subversion Repositories i2c

[/] [i2c/] [trunk/] [rtl/] [vhdl/] [i2c_master_bit_ctrl.vhd] - Diff between revs 39 and 48

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 48
Line 35... Line 35...
----                                                             ----
----                                                             ----
---------------------------------------------------------------------
---------------------------------------------------------------------
 
 
--  CVS Log
--  CVS Log
--
--
--  $Id: i2c_master_bit_ctrl.vhd,v 1.9 2003-08-12 14:48:37 rherveille Exp $
--  $Id: i2c_master_bit_ctrl.vhd,v 1.10 2004-02-27 07:49:43 rherveille Exp $
--
--
--  $Date: 2003-08-12 14:48:37 $
--  $Date: 2004-02-27 07:49:43 $
--  $Revision: 1.9 $
--  $Revision: 1.10 $
--  $Author: rherveille $
--  $Author: rherveille $
--  $Locker:  $
--  $Locker:  $
--  $State: Exp $
--  $State: Exp $
--
--
-- Change History:
-- Change History:
--               $Log: not supported by cvs2svn $
--               $Log: not supported by cvs2svn $
 
--               Revision 1.9  2003/08/12 14:48:37  rherveille
 
--               Forgot an 'end if' :-/
 
--
--               Revision 1.8  2003/08/09 07:01:13  rherveille
--               Revision 1.8  2003/08/09 07:01:13  rherveille
--               Fixed a bug in the Arbitration Lost generation caused by delay on the (external) sda line.
--               Fixed a bug in the Arbitration Lost generation caused by delay on the (external) sda line.
--               Fixed a potential bug in the byte controller's host-acknowledge generation.
--               Fixed a potential bug in the byte controller's host-acknowledge generation.
--
--
--               Revision 1.7  2003/02/05 00:06:02  rherveille
--               Revision 1.7  2003/02/05 00:06:02  rherveille
Line 284... Line 287...
              elsif (clk'event and clk = '1') then
              elsif (clk'event and clk = '1') then
                if (rst = '1') then
                if (rst = '1') then
                  cmd_stop  <= '0';
                  cmd_stop  <= '0';
                  ial       <= '0';
                  ial       <= '0';
                else
                else
                  if (clk_en = '1' and cmd = I2C_CMD_STOP) then
                  if (clk_en = '1') then
 
                    if (cmd = I2C_CMD_STOP) then
                    cmd_stop <= '1';
                    cmd_stop <= '1';
                  else
                  else
                    cmd_stop <= '0';
                    cmd_stop <= '0';
                  end if;
                  end if;
 
                  end if;
 
 
                  ial <= (sda_chk and not sSDA and isda_oen) or (sto_condition and not cmd_stop);
                  ial <= (sda_chk and not sSDA and isda_oen) or (sto_condition and not cmd_stop);
                end if;
                end if;
              end if;
              end if;
            end process gen_al;
            end process gen_al;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.