APB Dual Timer VIP

,

Hi,

Anyone suggest me how to write a test case for free running, periodic and oneshot mode with automatic interrupt generation after reaches 0

In reply to mdzaheer92:

Could you please elaborate. The APB spec does not know the term ‘Äoneshot mode’.

In reply to chr_sue:

Hi, i have been developing APB Dual Input timer VIP, i’m facing issue while writing test cases with the help of APB im doing register configuration,but till what time i need to wait to get interrupt high, how to code this.
EX.periodic mode- load some random 32 bit value and the timer do down count and when it reaches 0 interrupt is high, need to clear interrupt after it

In reply to chr_sue:

hi,

I am looking solution for apb timer vip, how to write test case with interrupt generation for periodic/oneshot and free running modes

In reply to mdzaheer92:

The solution is to write SV assertions (SVA) which reflect exactly this timing. SVA provides constructs also to model behavior which has no fixed timing like an interrupt has. You are expecting the interrupt in a timimng range of a certain length.

In reply to mdzaheer92:

Hi, have you written the test cases, I am also facing the same issue