Subcircuit TOTAL current measurement in HSIM

Status
Not open for further replies.

tadeoman

Junior Member level 3
Joined
Jun 8, 2011
Messages
27
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,283
Location
Atlanta, GA
Visit site
Activity points
1,469
Hello,


I am trying to measure the current of a subcircuit in HSIM.

My command looks like this:

.measure TRAN my_measurement = 'abs(x(path_to_my_subckt.vdd))' from=100E-9 to=200E-9
.measure TRAN my_measurement2 = 'abs(x(path_to_my_subckt2.vdd))' from=100E-9 to=200E-9
.. so on (I have over 100 measurements)


The only problem is that the result doesn't show the TOTAL current of the subcircuit. i.e. the subcircuit and it's child instances.

Reading the manual it says that HIMXSW can be used to measure the full subcircuit current, but I don't quite know how to use this flag.

Has anybody used the HSIMSW flag before? Does it work?
Is there any other suggestions?

Thanks you
 

I think you'd find it easiest to insert a trivial resistor (one that
will not change operation, or bother LVS later) in series between
the subcircuit external power port, and the internal power node.
Then you can probe that.

I think it could be tough to get the summation by specifying
all of the devices, and keep that current if you are still in the
modify-content phase. One ring to rule them all, like.
 

Thanks for the response dick_freebird.

I thought of a variation of this already. I was thinking more of a 0V source between the "top-level" power and the local power node. Then measure the current flow through that element.

Unfortunately I have almost 500 subcircuits, so I wanted to have a simpler solution, but if it comes to that, then I guess i'll get to script it.

Thanks,

- - - Updated - - -

SunnySkyguy, I might be confused on how power check (.pcheck) works, but I believe it checks the DC current of a node. I am looking more on averaging a the power of a transient simulation. Do you think it'll work?
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…