How to use the default temperature while defining a device in ngspice

Thread Starter

Abbas_BrainAlive

Joined Feb 21, 2018
113
Hi.

I am trying to use the system temperature in ngspice, but am unable to do succeed.

Here is the code:

.SUBCKT VOS_DRIFT_LMP7701 VOS+ VOS-
.PARAM DC = -16.29E-06
.PARAM POL = 1
.PARAM DRIFT = 1.00E-06
E1 VOS+ VOS- VALUE={DC+POL*DRIFT*(TEMP-27)}
.ENDS

Here, "TEMP" is where I want to use the system temperature. But ngspice says:

Undefined number [temp]

I read the ngspice manual, and it does recognise the "TEMP" keyword, but I don't know why this is not working. The manual certainly lacks clarity in describing how to use the default system temperature.


I would be really grateful if someone could guide me through this.
 
Top