Clock connected to the D input of the FF

Status
Not open for further replies.

mr_vasanth

Member level 5
Joined
Mar 12, 2007
Messages
86
Helped
5
Reputation
10
Reaction score
7
Trophy points
1,288
Location
Bangalore, India, India
Visit site
Activity points
1,906
In some of the designs, I have noticed a clock input is connected to the D input of the Flip Flop.
What could be the design scenario that would need these kind of connections ?
 

One example is that I2C slave design. The "START" condition is asserted when at SDA falling edge, SCL is high. This requires SCL, the "clock" signal be connected the the D-pin of a flip flop.
 

One example is that I2C slave design. The "START" condition is asserted when at SDA falling edge, SCL is high. This requires SCL, the "clock" signal be connected the the D-pin of a flip flop.
You'll do this may be in a small CPLD that has no suitable clock for synchronous processing of I2C signals. As an example, industry standard I2C peripherals are processing the bus signals in an asynchronous way.

There are also cases where you use "data as clock" in larger designs, e.g. in a toggle synchronizer. In timing analysis, the data will be considred as clock and must be respectively constrained.
 

ebuddy, could you elaborate the I2C case?
In this case, if SCL is hooked to D-pin of a flop, which signals is driving the clk-pin of the flop?
And how is SDA possible used, or sampled?

Thanks
Leo
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…