soumendu89
Junior Member level 1
- Joined
- Apr 29, 2011
- Messages
- 18
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- India
- Activity points
- 1,397
Hello,
I am trying to create a subcircuit in PSPICE and I need to include following (dependent)voltage expression between two nodes 2 and 10 inside the subcircuit
E 2 10 value={(q/Ceq)*(Nsil*(exp(-2*V(2,10)*ET)-exp(V(46)))/(exp(-2*V(2,10)*ET)+exp(V(23))*exp(-1*V(2,10)*ET)+exp(V(46))))+{(q/Ceq)*(Nnit*(exp(-1*V(2,10)*ET))/(exp(-1*V(2,10)*ET)+(Kn)*exp(V(23))))}
The complete expression cannot fit in one line due to 132 character limit, so I tried using the following technique of breaking the expression into two lines
E 2 10 value={(q/Ceq)*(Nsil*(exp(-2*V(2,10)*ET)-exp(V(46)))/(exp(-2*V(2,10)*ET)+exp(V(23))*exp(-1*V(2,10)*ET)+exp(V(46))))}
+{(q/Ceq)*(Nnit*(exp(-1*V(2,10)*ET))/(exp(-1*V(2,10)*ET)+(Kn)*exp(V(23))))}
Yet, the simulator does not take into account the second line while calculating the voltage between nodes 2 and 10. I am using Orcad PSPICE for the simulation. Can someone help me in solving this issue?
Please let me know if you need the complete subcircuit code where I have defined terms like q, Ceq, Nsil etc.
Soumendu
I am trying to create a subcircuit in PSPICE and I need to include following (dependent)voltage expression between two nodes 2 and 10 inside the subcircuit
E 2 10 value={(q/Ceq)*(Nsil*(exp(-2*V(2,10)*ET)-exp(V(46)))/(exp(-2*V(2,10)*ET)+exp(V(23))*exp(-1*V(2,10)*ET)+exp(V(46))))+{(q/Ceq)*(Nnit*(exp(-1*V(2,10)*ET))/(exp(-1*V(2,10)*ET)+(Kn)*exp(V(23))))}
The complete expression cannot fit in one line due to 132 character limit, so I tried using the following technique of breaking the expression into two lines
E 2 10 value={(q/Ceq)*(Nsil*(exp(-2*V(2,10)*ET)-exp(V(46)))/(exp(-2*V(2,10)*ET)+exp(V(23))*exp(-1*V(2,10)*ET)+exp(V(46))))}
+{(q/Ceq)*(Nnit*(exp(-1*V(2,10)*ET))/(exp(-1*V(2,10)*ET)+(Kn)*exp(V(23))))}
Yet, the simulator does not take into account the second line while calculating the voltage between nodes 2 and 10. I am using Orcad PSPICE for the simulation. Can someone help me in solving this issue?
Please let me know if you need the complete subcircuit code where I have defined terms like q, Ceq, Nsil etc.
Soumendu