gandhi_gaurav
New Member
Offline
Posts: 6
|
I am trying to run a simple simulation to calculate the amount of charge that passes through a simple device and am getting a "jacobian" error.
The code that I am using is very simple as follows:
`include "constants.vams" `include "disciplines.vams"
module res1(out,in); inout out,in; electrical out,in; real i,charge,finalcur;
analog begin i= I(out,in); charge = idt(i); finalcur = ddt(charge); end endmodule
The stimulus is a simple voltage source with 1mOhm resistance connected in series to voltage source. This is then applied to the veriloga block I have designed.
and the error that I am getting is zero found in diagonal of Jacobian.
Any guesses what am I doing wrong ? How can I calculate the amount of charge that is passing through a device ?
|