spinfab
Junior Member
Offline
Posts: 10
|
Hello,
I wrote a .va model for a switch with a "if then else" approach using $discontinuity(0) and transition(..) commands to improve management of the sharp transition. For a transient analysis it is functional, but for a DC-sweep analysis ( to plot an I vs V curve), it fails.
Any idea to help me
fab nb: code skeleton
if (state==0) G=Gmax; else if (state==1) G=Gmin; G = transition(G_digital,0,1p); I(b1) <+ G*V(b1);
|