The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 17th, 2024, 5:35am
Pages: 1
Send Topic Print
Function 'ln' is undefinded or is used recursively (Read 2374 times)
jimwest
Junior Member
**
Offline



Posts: 26

Function 'ln' is undefinded or is used recursively
Jan 05th, 2008, 1:07am
 
Hi Folks,
   I met with the following error:"Function 'ln' is undefinded or is used recursively".
And the ln function is used in the model file.
What should I do to fix such bug?


Kindest Regards,

Jim

Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Function 'ln' is undefinded or is used recursi
Reply #1 - Jan 7th, 2008, 3:19am
 
You could try replacing "ln" with "log"

Many languages (C, matlab) use "log" for the natural log, and log10 for base10.  Verilog-A is one of the few exceptions that use "ln" for natural log (and "log" is base10).  You should probably check that log gives you the natural log in that simulator's model file language -- the lazy man's approach is to check that "log10" is defined, and assume that implies that "log" is natural log.
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.