The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 27th, 2024, 6:42pm
Pages: 1
Send Topic Print
voltage limited current controlled current source (cccs) (Read 3133 times)
Ari
Junior Member
**
Offline



Posts: 17
Israel
voltage limited current controlled current source (cccs)
Feb 16th, 2009, 2:07pm
 
I wish to build voltage limited current controlled current source using Verilog A module, to model ideal current source which is limited to supply voltage when current sink has high resistivity.

I tried using the following code, but it fails to converge for high impedance load on Isink.

any ideas how to implement such a source?


  Code:
 I(sink,src) <+ gain*I(ctrl_p,ctrl_n);

   if (V(src)>vclip) begin
      $strobe("cccs_vlimit clipping voltage as it is=:%g and clip value is:%g\n",V(sink,src),vclip);
      I(sink,src)<+ max(0, gain*I(ctrl_p,ctrl_n) + gm_nom*(V(src)-vclip));
   end //if 


Back to top
 
 
View Profile   IP Logged
Peruzzi
Community Member
***
Offline



Posts: 71

Re: voltage limited current controlled current source (cccs)
Reply #1 - Feb 16th, 2009, 3:27pm
 
Ari,

Try combining with exponential functions for limiting.  It will be continuous in all its derivitives and will behave better.

Bob Peruzzi

Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.