[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [oc] I2C slave model



On Thu, Mar 28, 2002 at 05:56:47AM +0100, vikasakalwadi@rediffmail.com wrote:
>      Hey my slave's address is 4A, and i thought by changing the
> parameter in your slave module to 4A, it will give the behaviour of
> required slave. If your slave does not do so, then what is the use of
> having the address as parameter then ? Please respond at the earliest.
> 
>        One of the signals i think st0 in your module checks for
> posedge of sda, then depending on the value of scl, it is initialised
> to some value. That is why if i permenently tie sda and scl to 'H',
> that even and further triggering will not happen. That is why i
> initially made it 'X', then changed it to 'H'.
> Thanks for your time and response,
> regards,
> Vikas

sto is the i2c 'stop' event, a posedge on sda with scl==1 

you are right however, the way the i2c_slave model matches the i2c
address is currently seriously broken. 
my_adr is not properly qualified when latched (well, its not latched)
so it responds to many addresses and datapatterns.

john
--
To unsubscribe from cores mailing list please visit http://www.opencores.org/mailinglists.shtml