Recent Articles:

About Me
I love making stuff and solving puzzles. I am mak...
Lua Libraries
Here are some Lua libraries that I have used or fi...
Lua FFI
Intro :Trying to learn and standardize the Foreig...
Electronics
This section contains links to everything related ...
Lua Compiler
Some notes on the C code of the Lua Compiler Lua ...

Counting the number of edges of a waveform in Cadence
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


Copyright 2018 Milind Gupta