The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> AMS Simulators >> Accessing temperature in Spectre
https://designers-guide.org/forum/YaBB.pl?num=1122282747

Message started by vivkr on Jul 25th, 2005, 2:12am

Title: Accessing temperature in Spectre
Post by vivkr on 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

Title: Re: Accessing temperature in Spectre
Post by Geoffrey_Coram on 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
 

Title: Re: Accessing temperature in Spectre
Post by Ken Kundert on 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

Title: Re: Accessing temperature in Spectre
Post by Andrew Beckett on 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.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.