The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 25th, 2024, 4:58pm
Pages: 1
Send Topic Print
Accessing temperature in Spectre (Read 5554 times)
vivkr
Community Fellow
*****
Offline



Posts: 780

Accessing temperature in Spectre
Jul 25th, 2005, 2:12am
 
Hi,

I am trying to use some environment variables in computing the outputs that I obtain for a large batch of runs. I am unable to find the option which would allow me to automatically find the temperature for which I simulate my circuit. Of course, I can see it but in running Corner Analysis with about a 100 odd corners, it would be useful if I could get the information using the Calculator.

Any suggestions are welcome.

Thanks
Vivek
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Accessing temperature in Spectre
Reply #1 - Jul 26th, 2005, 3:51am
 
Not quite sure why this is in the AMS section of the forum, but since it is, here's a possible solution.  Use the Verilog-A module below, and connect its output to a node; the voltage of that node will then be the temperature of the circuit (in Kelvin), and thus you should be able to get access to it in the Calculator.

`include "disciplines.vams" // or "discipline.h"
module tempout(out);
 inout out;
 electrical out;

analog
  V(out) <+ $temperature;
endmodule
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Accessing temperature in Spectre
Reply #2 - Jul 26th, 2005, 8:08am
 
In general it is a bad idea to use electrical nodes to pass non-electrical quantities. It tends to mess up the tolerancing. I recommend you use the thermal discipline for the output node.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Accessing temperature in Spectre
Reply #3 - Jul 31st, 2005, 9:39pm
 
Going back to the original question, which was how to access the simulation temperature in the calculator, it would be (something like):

Code:
resultParam("temp" ?result 'tran) 



Note, the 'tran would be whatever analysis you're running and want to get the temperature from.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   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.