10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Electrothermal Simulation<br />

Verilog-A Support<br />

• Implicit .TEMPNODE specification—a SPICE resistor is replaced by the Verilog-A<br />

instance xra:<br />

*Verilog-A Electrothermal simulation example<br />

* I(V1) = -2.5607996733E-02<br />

* TEMP(X1) = 4.6050301765E+01 Celsius<br />

.hdl resistor.va<br />

.SUBCKT test a b<br />

xra a b resistor RS=1k tc1 = 0.1<br />

.ENDS<br />

.tempnode subckt=test thnode=thn<br />

.option numdgt = 10<br />

v1 a 0 100<br />

* instantiate the thermal subcircuit:<br />

* 2 pins to connect<br />

x1 a b test<br />

r2 b 0 1k<br />

* connect the implicit thermal node<br />

* to the thermal network<br />

rthn x1.thn 0 10<br />

.op<br />

.extract dc i(v1)<br />

.extract dc TEMP(x1)<br />

.end<br />

• An example of the $temperature function usage is shown in the small resistor code<br />

below. In this model, the temperature is evaluated at each iteration and the value of the<br />

resistor updated accordingly. This may have a certain cost.<br />

`include "disciplines.h"<br />

module resistor1 (a,b);<br />

electrical a , b;<br />

inout a,b;<br />

parameter real RS = 0;<br />

parameter real TC1 = 0;<br />

real rtval;<br />

analog begin<br />

rtval = RS*(1.0 + TC1*($temperature - 300.15));<br />

I(a,b)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!