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

Subversion Repositories i2c

[/] [i2c/] [trunk/] [rtl/] [vhdl/] [i2c_master_bit_ctrl.vhd] - Diff between revs 52 and 53

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

Rev 52 Rev 53
Line 35... Line 35...
----                                                             ----
----                                                             ----
---------------------------------------------------------------------
---------------------------------------------------------------------
 
 
--  CVS Log
--  CVS Log
--
--
--  $Id: i2c_master_bit_ctrl.vhd,v 1.11 2004-05-07 11:04:00 rherveille Exp $
--  $Id: i2c_master_bit_ctrl.vhd,v 1.12 2004-05-07 11:53:31 rherveille Exp $
--
--
--  $Date: 2004-05-07 11:04:00 $
--  $Date: 2004-05-07 11:53:31 $
--  $Revision: 1.11 $
--  $Revision: 1.12 $
--  $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.11  2004/05/07 11:04:00  rherveille
 
--               Fixed a bug where the core would signal an arbitration lost (AL bit set), when another master controls the bus and the other master generates a STOP bit.
 
--
--               Revision 1.10  2004/02/27 07:49:43  rherveille
--               Revision 1.10  2004/02/27 07:49:43  rherveille
--               Fixed a bug in the arbitration-lost signal generation. VHDL version only.
--               Fixed a bug in the arbitration-lost signal generation. VHDL version only.
--
--
--               Revision 1.9  2003/08/12 14:48:37  rherveille
--               Revision 1.9  2003/08/12 14:48:37  rherveille
--               Forgot an 'end if' :-/
--               Forgot an 'end if' :-/
Line 302... Line 305...
                      cmd_stop <= '0';
                      cmd_stop <= '0';
                    end if;
                    end if;
                  end if;
                  end if;
 
 
                  if (c_state = idle) then
                  if (c_state = idle) then
                    ial <= '0';
                    ial <= (sda_chk and not sSDA and isda_oen);
                  else
                  else
                    ial <= (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;
                  ial <= ial or (sda_chk and not sSDA and isda_oen);
 
 
 
                end if;
                end if;
              end if;
              end if;
            end process gen_al;
            end process gen_al;
            al <= ial;
            al <= ial;

powered by: WebSVN 2.1.0

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