The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 18th, 2024, 7:54pm
Pages: 1
Send Topic Print
How to calculate the freq of the signal with vams? (Read 2968 times)
icsoul
Junior Member
**
Offline



Posts: 29

How to calculate the freq of the signal with vams?
Jun 10th, 2008, 4:30am
 
Is there one command for this function directly?

If not, how to implement this function simply?

Thanks.
Back to top
 
 
View Profile   IP Logged
Stefan
Senior Member
****
Offline



Posts: 124

Re: How to calculate the freq of the signal with v
Reply #1 - Jun 10th, 2008, 4:45am
 
Frequency is the inverse of the period.
A period is defined as the delay between two positive crossings of a signal through a specified threshold (usually in the middle of the sine-wave).
So - what's the question ?

btw. maybe you should check the sourcecode section of designersguide Smiley
Back to top
 
 
View Profile 16731287   IP Logged
icsoul
Junior Member
**
Offline



Posts: 29

Re: How to calculate the freq of the signal with v
Reply #2 - Jun 10th, 2008, 5:43am
 
Stefan wrote on Jun 10th, 2008, 4:45am:
Frequency is the inverse of the period.
A period is defined as the delay between two positive crossings of a signal through a specified threshold (usually in the middle of the sine-wave).
So - what's the question ?

btw. maybe you should check the sourcecode section of designersguide Smiley



Thank you, Stefan

I'm newbie to veriloga. I do calculate the period, but an error is always be reported Sad.  Maybe the description method is not ritht.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: How to calculate the freq of the signal with v
Reply #3 - Jun 13th, 2008, 6:58am
 
Stefan wrote on Jun 10th, 2008, 4:45am:
btw. maybe you should check the sourcecode section of designersguide Smiley


Hint hint!  There's a model for "Period measurement" -- click "Verilog-AMS in the upper right of these pages.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
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.