The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 10:53am
Pages: 1
Send Topic Print
Model for Average current consumption in Verilog (Read 6535 times)
Sinner
New Member
*
Offline



Posts: 4

Model for Average current consumption in Verilog
Dec 10th, 2008, 4:54am
 
Hi,

I am relatively new to verilog
Anyone has a model for current measurement for PMC. For both peak currents and average currents.
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: Model for Average current consumption in Verilog
Reply #1 - Dec 18th, 2008, 11:44am
 
This has been here a while with no answers..
in Verilog-A we usually measure current with an

Code:
Imeas = I(node1,node2); 



statement.. but "PMC" to me should be followed with "Sierra" - probably not what you meant..  care to expound?
Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
Sinner
New Member
*
Offline



Posts: 4

Re: Model for Average current consumption in Verilog
Reply #2 - Dec 18th, 2008, 8:30pm
 
Thanks..

In this case it stands for Power management controller
Smiley

I am using this construct, to elaborate

I have to measure the current flowing from the supply to my PMC with the supply itself ramping up or down.

Using

I(n1,n2) <+ V(n1,n2)*1/r  where r is a very low value resistance to minimize the drop

gives me extremely high current values

Is their another way to do this measurement?
Back to top
 
 
View Profile   IP Logged
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Re: Model for Average current consumption in Verilog
Reply #3 - Dec 19th, 2008, 3:32am
 
Hi,

Are  you adding the small r to measure the current?

If that is the case you do not need that perhaps!
Just use,  var = I(pwrp,pwrp_PMC) to probe
the current thru  pwrp, pwrp_PMC branch.
Make sure that these two nodes are shorted to each other
in your design. I assumed pwrp = the node that corrsponds
to the power supply and pwrp_PMC = node that is connected
to the power supply pwrp. var is a real variable.

This should  help.

Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   IP Logged
Sinner
New Member
*
Offline



Posts: 4

Re: Model for Average current consumption in Verilog
Reply #4 - Dec 23rd, 2008, 3:38am
 
Thanks Rajdeep,

I found another way to do it.

I have shorted my PAD and PMC Supply and in parallel I am using a CCCS with gain of 1, so whatever current flows in the branch also flows from the dependent source.

Back to top
 
 
View Profile   IP Logged
rajdeep
Senior Member
****
Offline



Posts: 220
UK
Re: Model for Average current consumption in Verilog
Reply #5 - Dec 24th, 2008, 3:07am
 
Thats great!

Just one point here. My suggestion of using var = I(pwrp,pwrp_PMC)
can be looked as a current controlled variable! So, instead of var,
if you use an electrical branch, say I(p,n) then it becomes your CCCS!
But, whatever way you right, the most imp thing was to short pwrp, pwrp_PMC before probing the current thru that branch  :), which
you have done now!

Rajdeep
Back to top
 
 

Design is fun, verification is a requirement.
View Profile   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.