The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 23rd, 2024, 4:27pm
Pages: 1
Send Topic Print
how to record the zero-crossing timing points (Read 1838 times)
jfyan
Guest




how to record the zero-crossing timing points
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.
Back to top
 
 
  IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: how to record the zero-crossing timing points
Reply #1 - 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.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.