I am new to writing SVA and am trying to figure out the correct way to write an assertion for the below case.
I have two signals - one is a single bit signal (let’s say ‘bit A’) and the other is n-bit data-bus (let’s say ‘bit [7:0] B’)
Whenever ‘A’ toggles (going from 0->1 or 1->0), in the next 1 to 10 cycles, there must be a change in the value of signal B. So basically, everytime A changes it’s value, it is expected to see a change on the data-bus, B in the next 1-10 cycles.
The recommended way to implement SV concurrent assertions is
In your case A has been checked for the prc-condition.
The implication operator would be the non-overlapping implication operator.
In your condition you are using the concatenation [1:10].