I am designing an I2C and want to use the SCL line as clock in one block and as an asynchronous reset in other block but the Lint checker throws a warning.
please give more informations:
* are you designing a I2C master, slave or both?
* How are you designing? HDL? PLD, FPGA, ASIC, discrete logic?
***
I need to guess: (HDL and FPGA, I2C master)
Then you should have a high frequency master clock, where you generate SCL.
Then synchronize your SCL line (read back from IO) with this master clock...and then use this signal as synchronous RESET.
its a slave I2C constructed in Verilog and I don't want to use SCL as IO; I want to use it as input itself and it should function as a reset for internal blocks.
I think it´s YOUR job, not mine.
Nobody could write individual code for you, as long as you don´t provide exact specifications.
And you don´t answer the questions.
The slave (and thats what you are talking about) doesn´t need to generate start and stop bits. It has to recognize start and stop condition.
And start and stop condition isn´t clocked by the SCL, instead it is clocked (or better say it uses the edges) of SDA.