Marq Kole
Senior Member
Offline
Hmmm. That's weird...
Posts: 122
Eindhoven, The Netherlands
|
In case you are not able to see the answer at the Cadence support site, the answer to your question is: yes, idt is applicable, but you also need to factor in the time window. You can rewrite the integral to the following form:
avg = 1 /TS * integral_from($abstime-TS)_to($abstime) vin(x)dx
avg = 1 /TS * (integral_from(0)_to($abstime) vin(x)dx - integral_from(0)_to($abstime-TS) vin(x)dx)
avg = 1 /TS * (integral_from(0)_to($abstime) vin(x)dx - integral_from(TS)_to($abstime) vin(x-TS)dx)
avg = 1 /TS * (integral_from(0)_to($abstime) vin(x)dx - integral_from(0)_to($abstime) vin(x-TS)dx)
avg = 1 /TS * integral_from(0)_to($abstime) (vin(x) - vin(x - TS))dx
Now you can use idt() and a delay operator to implement this transformed operation.
Marq
|