The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> parameters in analog function https://designers-guide.org/forum/YaBB.pl?num=1374484474 Message started by spinfab on Jul 22nd, 2013, 2:14am |
Title: parameters in analog function Post by spinfab on 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 |
Title: Re: parameters in analog function Post by Geoffrey_Coram on 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. |
Title: Re: parameters in analog function Post by spinfab on 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. |
Title: Re: parameters in analog function Post by Geoffrey_Coram on 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. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |