rajdeep wrote on Jan 17th, 2008, 7:12am:Hi Geoffrey,
I have pasted the two slides I could not understand well. What is the relation between dqbs_dvbs and the next line ( shown commented)??
dqbs_dvbs is what the simulator computes as the derivative of qbs; the next line is what the model-writer wanted.
In C, the model-writer knows that, when vbs==0, q=0 and there's no need to do all the calculations. However, in Verilog-A, if you try to skip the calculations, you end up with the wrong derivative!