The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 10:21pm
Pages: 1
Send Topic Print
parameters in analog function (Read 3364 times)
spinfab
Junior Member
**
Offline



Posts: 10

parameters in analog function
Jul 22nd, 2013, 2:14am
 
Hello,

Is it possible to get parameters (declare with: parameter real a 1.0) or globals variables (declare with: real b ) in an analog function without passing these var in the function argument.
instead writing if
  myAnlogFunction(x, a, b)
i would prefer it
   myAnlogFunction(x).

Thanks for your help

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



Posts: 1999
Massachusetts, USA
Re: parameters in analog function
Reply #1 - Jul 23rd, 2013, 12:56pm
 
In the LRM (version 2.3.1) section 4.7.1:

An analog user defined function:
...
— shall only reference locally-defined variables, variables passed as arguments, locally-defined parameters and module level parameters; and
— If a locally-defined parameter with the specified name does not exist, then the module level parameter of the specified name will be used.

Sounds like you can get module-level parameters, but not variables.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
spinfab
Junior Member
**
Offline



Posts: 10

Re: parameters in analog function
Reply #2 - Jul 24th, 2013, 12:02am
 
indeed but I got an error with spectre
ERROR (VACOMP-1008): Cannot compile ahdlcmi module library. Check the log file input.ahdlSimDB/3605_sdk_models_model_source_XXXXX.va.spitt_v1.ahdlcmi/Linux/../
ahdlcmi.out for details. If the compiler ran out of memory, use 'setenv CDS_CMI_COMPLEVEL 0', and try again. If the reason for the failure was a syntax error, contact your Cadence Customer Support representative with the netlist, log files, behavioral model files, and any other information that can help identify the problem.
   ERROR (SFE-91): Error when elaborating the instance XXXX. Simulation should be terminated.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: parameters in analog function
Reply #3 - Aug 2nd, 2013, 8:48am
 
You can check the Spectre documentation; maybe this is a known limitation.  Either way, you should contact them and demonstrate your need.
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.