Counting the number of edges of a waveform in Cadence

20 August 2019 Link

To count the number of edges that cross a certain threshold use the following expression:
drVectorLength(drGetWaveformXVec(cross(clip(VT("/RO") 30e-6 31e-6) 1 1 "either" t "time")))

Here it will count the number of edges (rising and falling) crossing a threshold of 1V for the signal /RO in the time of 30us to 31us