URL
https://opencores.org/ocsvn/i2c/i2c/trunk
[/] [i2c/] [trunk/] [rtl/] [vhdl/] [i2c_master_bit_ctrl.vhd] - Diff between revs 66 and 67
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 66 |
Rev 67 |
Line 35... |
Line 35... |
---- ----
|
---- ----
|
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
|
|
-- CVS Log
|
-- CVS Log
|
--
|
--
|
-- $Id: i2c_master_bit_ctrl.vhd,v 1.16 2009-01-20 20:40:36 rherveille Exp $
|
-- $Id: i2c_master_bit_ctrl.vhd,v 1.17 2009-02-04 20:17:34 rherveille Exp $
|
--
|
--
|
-- $Date: 2009-01-20 20:40:36 $
|
-- $Date: 2009-02-04 20:17:34 $
|
-- $Revision: 1.16 $
|
-- $Revision: 1.17 $
|
-- $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.16 2009/01/20 20:40:36 rherveille
|
|
-- Fixed type iscl_oen instead of scl_oen
|
|
--
|
-- Revision 1.15 2009/01/20 10:34:51 rherveille
|
-- Revision 1.15 2009/01/20 10:34:51 rherveille
|
-- Added SCL clock synchronization logic
|
-- Added SCL clock synchronization logic
|
-- Fixed slave_wait signal generation
|
-- Fixed slave_wait signal generation
|
--
|
--
|
-- Revision 1.14 2006/10/11 12:10:13 rherveille
|
-- Revision 1.14 2006/10/11 12:10:13 rherveille
|
Line 204... |
Line 207... |
-- slave_wait remains asserted until the slave (other master) releases SCL
|
-- slave_wait remains asserted until the slave (other master) releases SCL
|
process (clk, nReset)
|
process (clk, nReset)
|
begin
|
begin
|
if (nReset = '0') then
|
if (nReset = '0') then
|
slave_wait <= '0';
|
slave_wait <= '0';
|
else
|
elsif (clk'event and clk = '1') then
|
slave_wait <= (iscl_oen and not dscl_oen and not sSCL) or (slave_wait and not sSCL);
|
slave_wait <= (iscl_oen and not dscl_oen and not sSCL) or (slave_wait and not sSCL);
|
end if;
|
end if;
|
end process;
|
end process;
|
|
|
-- master drives SCL high, but another master pulls it low
|
-- master drives SCL high, but another master pulls it low
|
© copyright 1999-2023
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.