The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Modeling >> Semiconductor Devices >> Function 'ln' is undefinded or is used recursively
https://designers-guide.org/forum/YaBB.pl?num=1199524034

Message started by jimwest on Jan 5th, 2008, 1:07am

Title: Function 'ln' is undefinded or is used recursively
Post by jimwest on Jan 5th, 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


Title: Re: Function 'ln' is undefinded or is used recursi
Post by Geoffrey_Coram on 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.

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