I am running a transient simulation in which I am varying the temperature from 0 to 125-C in step of 10-C after 1 us. This is done by using Dynamic Parameter option.
I want to use a PTAT current source for the test bench. I have the PTAT.csv file ( temp vs current) for this PTAT current source. Can I use this file by using $table_model in verilogA model of PTAT current source.
Like--> i = -$table_model ($temperature, "PTAT.csv", "1C").
Could anybody please comment on this possibility ?
This should work. Be careful about making big discontinuous steps though (remember too that $temperature is in Kelvin, not Celsius).
Thanks Andrew. You are right. I was not subtracting 273.15 (Kelvin to Celsius) from $temperature and that is why I was getting only the last value (constant in the plot) stored in the .csv file.