AEL evaluation fails unpredictably (using abIPar())

P

Philipp Ritter

Guest
Hello,

I have parametrized schematic cells of which I need to do a layout. Some circuit elements of the cell depend on parent instance parameters (pPar) and inherent instance parameters (iPar), therefore the parameters of these elements are not evaluated in schematic editor.

I have found the following post by Andrew Beckett, that addresses the evaluation of such AEL-expressions:

http://community.cadence.com/cadence_technology_forums/f/48/t/26264

.... unfortunately it does not evaluate expressions that become a little bit more difficult.

Example:

1) I create a cell containing an analogLib resistor with
r=pPar("f")*1*1*iPar("ac")
ac=max(1/pPar("f")/1,1)

CDF parameter f is set to 1 in the instantiation of the cell one hierarchy level higher.

2) I select the resistor in schematic editor and call in virtuoso command line
abIPar("r" car(geGetSelSet()))

In your script this leads to the variable

unevaluated=pPar("f")*1*1*iPar("ac")

this string is further expanded in the subsequent line to aelEnvExecute(compiled)=1.0*(max(1.0,1.0)), but this cannot be resolved by aelNumber(aelEnvExecute(compiled)) in the line below.

Does anybody know how to fix that or has an other idea of how to evaluate expressions with pPar() and iPar() in the schematic editor?

Thanks

Philipp
 

Welcome to EDABoard.com

Sponsor

Back
Top