The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> how to record the zero-crossing timing points
https://designers-guide.org/forum/YaBB.pl?num=1117374907

Message started by jfyan on May 29th, 2005, 6:55am

Title: how to record the zero-crossing timing points
Post by jfyan on May 29th, 2005, 6:55am

hi all:

how can i record the zero-crossing timing points in spectre to a voltage wave?
i mean, i want to put down the wave's every zero-crossing times in transient analysis.

thanks in advance.

Title: Re: how to record the zero-crossing timing points
Post by Andrew Beckett on May 31st, 2005, 10:52am

In OCEAN, you can do:

selectResult('tran)
crosses=cross(v("/out") 0.0 0 'either)

The 0.0 is the threshold level, 0 tells it to output all crossings,
and 'either specifies both rising and falling.

The result will be a list.

See the OCEAN documentation for more details on what to do with the result!

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.