Coverage For SPI, I2C? Which Points to add?

Hi,

I am new-bee to OVM, but fine with SV. I have been assigned work with writing Coverage for I2C and SPI interface.

But when see the protocol I2C has just 3 output lines and so for SPI hardly 4. I am pretty confused on what to write as coverage and coverpoint.

Can anyone spark an idea or give a sample for these protocl on which point to cover for coverage. Its an urgent task, help me.

Br/
Jolie Dizoza

Hi,
I am new-bee to OVM, but fine with SV. I have been assigned work with writing Coverage for I2C and SPI interface.
But when see the protocol I2C has just 3 output lines and so for SPI hardly 4. I am pretty confused on what to write as coverage and coverpoint.
Can anyone spark an idea or give a sample for these protocl on which point to cover for coverage. Its an urgent task, help me.
Br/
Jolie Dizoza

HI Jolie,
I have worked on SPI protocol.
You can mail me on dineshpai.23@gmail.com.

–Regards,
Dinesh Pai

Well USB 2.0 is only 2 wires, but all respectable vendors have never ending list of coverage for this.

We write coverage on transactions and not on signals in most of the cases.

In reply to seahawk12:

can u show a sample code to write the coverage on transactions?(if on I2c protocol that will be added helpful)