How to write monitor for i2c protocol?

How to write monitor for i2c protocol? and how can we check when ack/nack will come ?

In reply to anjali swarnkar:

Look to te I2C Standard and extract your data with respect to this. ack Can be checked using SV assertions.