what is the best way to write a skill function for this requ

Y

yvk

Guest
Hi,

I want to access the DC OP of the subcircuit and do some manipulations, finally want this as a function call to apply on all the instances in the design.

ex: inverter subcircuit with mosfets Mp and Mn.
evaluate (gmn+gmp)/(gdsp+gdsn) and return it to function.

if I simply want to tell the instance name of inverter as input to the function how do I start accessing the OP of devices Mp,Mn here inside the skill function defn?

(I did create it by sending gm,gds etc as inp arguments to func call everytime and it works very well)

thanks,
yvk
 
On 11/27/12 18:29, yvk wrote:
Hi,

I want to access the DC OP of the subcircuit and do some
manipulations, finally want this as a function call to apply on all the
instances in the design.
ex: inverter subcircuit with mosfets Mp and Mn. evaluate
(gmn+gmp)/(gdsp+gdsn) and return it to function.

if I simply want to tell the instance name of inverter as input to
the
function how do I start accessing the OP of devices Mp,Mn here inside
the skill function defn?
(I did create it by sending gm,gds etc as inp arguments to func call
everytime and it works very well)

thanks, yvk
The simplest way is probably to use some regular expression functions
(e.g. pcreMatchList or rexMatchList (if using IC5141 where pcreMatchList
doesn't exist)) on the result of outputs(?result 'dcOpInfo) to find the
devices which have a matching first part of the instance name, and then
you know the device names and you can use the pv() function with these
devices and compute the operating points.

Something like that.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top